半成品

master
zhaoxiaolin 6 months ago
parent ce683404bd
commit 89887c03a5

@ -1376,13 +1376,13 @@ export default {
return false; return false;
} }
// submitConsumePS(this.consumeRows).then(response => { submitConsumePS(this.consumeRows).then(response => {
// this.$modal.msgSuccess(""); this.$modal.msgSuccess("报工信息修改成功");
// this.openConsume = false; this.openConsume = false;
// this.reset(); this.reset();
// this.getList(); this.getList();
// this.loading = false; this.loading = false;
// }); });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -1554,12 +1554,6 @@ export default {
) )
) )
); );
console.log(
this.pConsumeRowsall,
this.pConsumeRows,
"111111",
this.mergedArray
);
const materialCodeSet = new Set( const materialCodeSet = new Set(
this.pConsumeRows.map((item) => item.materialCode) this.pConsumeRows.map((item) => item.materialCode)
); );
@ -1589,52 +1583,6 @@ export default {
this.$modal.msgError("选择物料重复,自动过滤!"); 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) { addRemarksblur(table, remark, index) {

@ -112,7 +112,8 @@ export default {
componentName : '', componentName : '',
productGroupName:'', productGroupName:'',
workorderCode:'', workorderCode:'',
parentOrder:'' parentOrder:'',
productType:''
}, },
selectionRows:[], selectionRows:[],
tableIndex:'' tableIndex:''
@ -129,10 +130,11 @@ export default {
return cellValue.slice(7,18); // return cellValue.slice(7,18); //
} }
}, },
init(workorderCode,parentOrder,tableIndex){ init(workorderCode,parentOrder,tableIndex,productType){
this.workorderCode = workorderCode; this.workorderCode = workorderCode;
this.queryParams.workorderCode = this.workorderCode; this.queryParams.workorderCode = this.workorderCode;
this.queryParams.parentOrder = parentOrder; this.queryParams.parentOrder = parentOrder;
this.queryParams.productType = productType
this.tableIndex = tableIndex; this.tableIndex = tableIndex;
this.getList(); this.getList();
}, },

Loading…
Cancel
Save