工单管理(点击修改功能判断是否可修改问题修复)

yangwl
wws 1 year ago
parent 442b669145
commit 62d80d2138

@ -673,19 +673,15 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
//
let check = 0;
checkWorkOrder(this.selectWork.workorderId).then(response => {
if (response.code == 500){
check = 1;
}
})
if (check == 1){
this.$message({
message:'该工单已有湿料计划,不可修改!',
type:'warning'
})
return;
}
}else {
console.log("这里是你要的数据")
console.log(this.selectWork)
//
@ -762,18 +758,11 @@ export default {
})
// function setAtrr1(order,work) {
// order.quantitySplit = Number(order.quantitySplit) - Number(work.quantitySplit)
// order.atrr1 = work.quantitySplit
// if (order.children !== undefined) {
// setAtrr1(order.children[0],work.children[0])
// }
// }
//
// setAtrr1(this.productData[0],this.splitData[0])
this.open = true;
this.title = "修改生产工单";
}
})
},
/**下达工单**/
handleUpdateDown(row) {

Loading…
Cancel
Save