|
|
@@ -1714,6 +1714,7 @@
|
|
|
this.materialList.map((item, index) => {
|
|
|
if (item.parentIndex === row.index) {
|
|
|
this.$set(this.materialList[index], 'result', value);
|
|
|
+ this.$set(this.materialList[index], 'status', 2);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1730,6 +1731,7 @@
|
|
|
return item.result == 1;
|
|
|
});
|
|
|
this.$set(this.packingList[packingIndex], 'result', boolen ? 1 : 2);
|
|
|
+ this.$set(this.packingList[packingIndex], 'status', 2);
|
|
|
},
|
|
|
// 重量限制
|
|
|
weightInput(value, row, type) {
|
|
|
@@ -2191,8 +2193,18 @@
|
|
|
isUnpack: row.isUnpack, // 是否允许拆包
|
|
|
productionDate: productionDate, // 生产日期
|
|
|
purchaseDate: purchaseDate, // 采购时间
|
|
|
- result: this.formData.bizType == 2 && this.form.isQmsCheck ? 0 : 1, // 结果(0无 1合格 2不合格) 是否质检isQmsCheck(0否 1是) bizType(2采购入库)
|
|
|
- status: this.formData.bizType == 2 && this.form.isQmsCheck ? 0 : 2 // 状态(0未质检 1待检 2已质检)
|
|
|
+ result:
|
|
|
+ this.clientEnvironmentId == 3
|
|
|
+ ? 1
|
|
|
+ : this.formData.bizType == 2 && this.form.isQmsCheck
|
|
|
+ ? 0
|
|
|
+ : 1, // 结果(0无 1合格 2不合格) 是否质检isQmsCheck(0否 1是) bizType(2采购入库)
|
|
|
+ status:
|
|
|
+ this.clientEnvironmentId == 3
|
|
|
+ ? 2
|
|
|
+ : this.formData.bizType == 2 && this.form.isQmsCheck
|
|
|
+ ? 0
|
|
|
+ : 2 // 状态(0未质检 1待检 2已质检)
|
|
|
};
|
|
|
packingList.push(item);
|
|
|
}
|
|
|
@@ -2280,8 +2292,18 @@
|
|
|
clientCode: '', // 客户代号
|
|
|
materielDesignation: '', // 物料代号
|
|
|
engrave: '', // 刻码
|
|
|
- result: this.formData.bizType == 2 && this.form.isQmsCheck ? 0 : 1, // 结果(0无 1合格 2不合格) 是否质检isQmsCheck(0否 1是) bizType(2采购入库)
|
|
|
- status: this.formData.bizType == 2 && this.form.isQmsCheck ? 0 : 2 // 状态(0未质检 1待检 2已质检)
|
|
|
+ result:
|
|
|
+ this.clientEnvironmentId == 3
|
|
|
+ ? 1
|
|
|
+ : this.formData.bizType == 2 && this.form.isQmsCheck
|
|
|
+ ? 0
|
|
|
+ : 1, // 结果(0无 1合格 2不合格) 是否质检isQmsCheck(0否 1是) bizType(2采购入库)
|
|
|
+ status:
|
|
|
+ this.clientEnvironmentId == 3
|
|
|
+ ? 2
|
|
|
+ : this.formData.bizType == 2 && this.form.isQmsCheck
|
|
|
+ ? 0
|
|
|
+ : 2 // 状态(0未质检 1待检 2已质检)
|
|
|
});
|
|
|
}
|
|
|
return materialList;
|