|
|
|
@ -1376,13 +1376,13 @@ export default {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// submitConsumePS(this.consumeRows).then(response => {
|
|
|
|
|
// this.$modal.msgSuccess("报工信息修改成功");
|
|
|
|
|
// this.openConsume = false;
|
|
|
|
|
// this.reset();
|
|
|
|
|
// this.getList();
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
// });
|
|
|
|
|
submitConsumePS(this.consumeRows).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("报工信息修改成功");
|
|
|
|
|
this.openConsume = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
@ -1554,12 +1554,6 @@ export default {
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
console.log(
|
|
|
|
|
this.pConsumeRowsall,
|
|
|
|
|
this.pConsumeRows,
|
|
|
|
|
"111111",
|
|
|
|
|
this.mergedArray
|
|
|
|
|
);
|
|
|
|
|
const materialCodeSet = new Set(
|
|
|
|
|
this.pConsumeRows.map((item) => item.materialCode)
|
|
|
|
|
);
|
|
|
|
@ -1589,52 +1583,6 @@ export default {
|
|
|
|
|
this.$modal.msgError("选择物料重复,自动过滤!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// this.pConsumeRows = this.mergedArray
|
|
|
|
|
// for (let i = 0; i < obj.length; i++) {
|
|
|
|
|
// if (this.pConsumeRows.length != 0) {
|
|
|
|
|
// this.pConsumeRows.forEach(item => {
|
|
|
|
|
// console.log(item.materialCode == obj[i].component)
|
|
|
|
|
// if (item.materialCode == obj[i].component) {
|
|
|
|
|
// this.$modal.msgError("选择物料重复,自动过滤!");
|
|
|
|
|
// } else {
|
|
|
|
|
// const row = {
|
|
|
|
|
// workorderCode: obj[i].workorderCode,
|
|
|
|
|
// materialCode: obj[i].component,
|
|
|
|
|
// materialName: obj[i].componentName,
|
|
|
|
|
// quantity: obj[i].quantity,
|
|
|
|
|
// unit: obj[i].unit,
|
|
|
|
|
// recoil: "X",
|
|
|
|
|
// parentOrder: sr.workorderCode
|
|
|
|
|
// };
|
|
|
|
|
// this.consumeList.push(row);
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// let dynamicRef = 'tableIndex' + tableIndx;
|
|
|
|
|
// console.log(this.consumeList, row, this.pConsumeRows,'22222')
|
|
|
|
|
// _this.$refs[dynamicRef][0].toggleRowSelection(row);
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// } else {
|
|
|
|
|
// const row = {
|
|
|
|
|
// workorderCode: obj[i].workorderCode,
|
|
|
|
|
// materialCode: obj[i].component,
|
|
|
|
|
// materialName: obj[i].componentName,
|
|
|
|
|
// quantity: obj[i].quantity,
|
|
|
|
|
// unit: obj[i].unit,
|
|
|
|
|
// recoil: "X",
|
|
|
|
|
// parentOrder: sr.workorderCode
|
|
|
|
|
// };
|
|
|
|
|
// this.consumeList.push(row);
|
|
|
|
|
|
|
|
|
|
// // 默认勾选新添加的这一行
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// let dynamicRef = 'tableIndex' + tableIndx;
|
|
|
|
|
// console.log(this.consumeList, row, this.pConsumeRows,'333333')
|
|
|
|
|
// _this.$refs[dynamicRef][0].toggleRowSelection(row);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
//添加备注
|
|
|
|
|
addRemarksblur(table, remark, index) {
|
|
|
|
|