作者 王勋

修改

... ... @@ -569,10 +569,7 @@ export default {
mounted() {
let status = (this.status = this.$route.query.status);
let list = (this.list = this.$route.query.list);
let define = JSON.parse(list.processDefineStruct)
console.log(define)
this.check = this.$route.query.check;
console.log(list)
if(this.$route.query.check){
this.checkdis = true
}
... ... @@ -582,6 +579,7 @@ export default {
};
this.getscrapnum(params);
} else {
let define = JSON.parse(list.processDefineStruct)
this.scrapInfo.recordNum = list.resdz;
this.scrapInfo.totalCount = list.totalCount;
this.scrapInfo.remark = list.remark;
... ... @@ -801,7 +799,6 @@ export default {
return new Promise((r) => {
getWorkshopList(params).then((res) => {
that.workshopList = res.items;
console.log("getWorkshopList", that.workshopList);
});
});
},
... ... @@ -898,7 +895,6 @@ export default {
params.skipCount = 0;
params.maxResultCount = 20;
worknumber(params).then((res) => {
console.log("ggag");
this.worknumberlist = res.items;
});
});
... ... @@ -907,7 +903,6 @@ export default {
//设备编码
return new Promise((r) => {
deviceCode(params).then((res) => {
console.log(res);
this.deviceCodelist = res.items;
});
});
... ... @@ -916,7 +911,6 @@ export default {
//根据工单号码查产品编码
return new Promise((r) => {
worknumber(params).then((res) => {
console.log(res);
this.ProductCode = res.items.productCode;
});
});
... ... @@ -932,14 +926,12 @@ export default {
return new Promise((r) => {
scrapnum(params).then((res) => {
this.scrapInfo.recordNum = res.data;
console.log(res);
});
});
},
scrapsubmit(params) {
return new Promise((r) => {
scrapsave(params).then((res) => {
console.log(res);
if (res === true) {
this.$router.push({
path: "./retirementManagement",
... ... @@ -967,7 +959,6 @@ export default {
},
delscrapitembtn(i) {
//报废单明细删除
console.log();
let listdel = this.scrapInfo.prodRecordScrapItems;
listdel.forEach((item, index) => {
if (i === index) {
... ...