|
@@ -55,7 +55,7 @@
|
55
|
55
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
56
|
56
|
const moment = require('moment');
|
57
|
57
|
import { uParseTime } from '@/utils/tools'
|
58
|
|
-import { getInventoryExportList } from "@/api/stock"
|
|
58
|
+import { getPrintList } from "@/api/stock"
|
59
|
59
|
import print from "print-js";
|
60
|
60
|
export default {
|
61
|
61
|
components:{
|
|
@@ -72,6 +72,7 @@ export default {
|
72
|
72
|
ids:"",
|
73
|
73
|
tableData:[],
|
74
|
74
|
manufacturerList:[],
|
|
75
|
+ houseList:[],
|
75
|
76
|
}
|
76
|
77
|
},
|
77
|
78
|
methods:{
|
|
@@ -96,14 +97,20 @@ export default {
|
96
|
97
|
}
|
97
|
98
|
},
|
98
|
99
|
getlist(){
|
99
|
|
- // getInventoryExportList().then(response=>{
|
100
|
|
- // if(response.data.state == 1){
|
101
|
|
- // var list = response.data.data.list
|
102
|
|
- // console.log("list233233232323",list)
|
103
|
|
- // this.tableData = list
|
104
|
|
- // this.manufacturerList = response.data.data.manufacturerList
|
105
|
|
- // }
|
106
|
|
- // })
|
|
100
|
+ var params = {
|
|
101
|
+ storehouse_id:this.$route.query.storehouse_id,
|
|
102
|
+ good_name:this.$route.query.good_name,
|
|
103
|
+ limit:this.$route.query.limit,
|
|
104
|
+ page:this.$route.query.page,
|
|
105
|
+ }
|
|
106
|
+ getPrintList(params).then(response=>{
|
|
107
|
+ if(response.data.state == 1){
|
|
108
|
+ var list = response.data.data.list
|
|
109
|
+ console.log("list233233232323",list)
|
|
110
|
+ this.tableData = list
|
|
111
|
+ this.houseList = response.data.data.houseList
|
|
112
|
+ }
|
|
113
|
+ })
|
107
|
114
|
},
|
108
|
115
|
getManufacturerName(id){
|
109
|
116
|
var name = ""
|
|
@@ -116,6 +123,7 @@ export default {
|
116
|
123
|
}
|
117
|
124
|
},
|
118
|
125
|
created(){
|
|
126
|
+
|
119
|
127
|
this.getlist()
|
120
|
128
|
}
|
121
|
129
|
}
|