|
@@ -202,13 +202,7 @@
|
|
|
return {
|
|
return {
|
|
|
printedList: [],
|
|
printedList: [],
|
|
|
printed: "无印刷",
|
|
printed: "无印刷",
|
|
|
- production_lineList: [{
|
|
|
|
|
- label: "一期",
|
|
|
|
|
- value: "一期",
|
|
|
|
|
- }, {
|
|
|
|
|
- label: "二期",
|
|
|
|
|
- value: "二期",
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ production_lineList: [],
|
|
|
production_line: "一期",
|
|
production_line: "一期",
|
|
|
container_code: "",
|
|
container_code: "",
|
|
|
product_code: "",
|
|
product_code: "",
|
|
@@ -281,7 +275,8 @@
|
|
|
_this = this;
|
|
_this = this;
|
|
|
_this.firstFocus = true;
|
|
_this.firstFocus = true;
|
|
|
_this.getSn()
|
|
_this.getSn()
|
|
|
- this.PrintedGet();
|
|
|
|
|
|
|
+ _this.PrintedGet();
|
|
|
|
|
+ _this.ProductionLineGet();
|
|
|
// 打印相关
|
|
// 打印相关
|
|
|
/*
|
|
/*
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -821,6 +816,39 @@
|
|
|
})
|
|
})
|
|
|
}, 500);
|
|
}, 500);
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ ProductionLineGet() {
|
|
|
|
|
+ uni.request({
|
|
|
|
|
+ url: reqRootUrl + '/wms/api',
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
|
+ },
|
|
|
|
|
+ data: JSON.stringify({
|
|
|
|
|
+ "method": "ProductionLineGet",
|
|
|
|
|
+ "param": {
|
|
|
|
|
+ "disable": false,
|
|
|
|
|
+ }
|
|
|
|
|
+ }),
|
|
|
|
|
+ success: (ret) => {
|
|
|
|
|
+ if (ret.data.ret === "ok") {
|
|
|
|
|
+ let rows = ret.data.data;
|
|
|
|
|
+ for (var i = 0; i < rows.length; i++) {
|
|
|
|
|
+ this.production_lineList.push({
|
|
|
|
|
+ label: rows[i].name,
|
|
|
|
|
+ value: rows[i].name
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: (err) => {
|
|
|
|
|
+ // console.log('request fail', err);
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: () => {
|
|
|
|
|
+ // console.log('complete');
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
PrintedGet() {
|
|
PrintedGet() {
|
|
|
uni.request({
|
|
uni.request({
|
|
|
url: reqRootUrl + '/wms/api',
|
|
url: reqRootUrl + '/wms/api',
|