|
|
@ -673,19 +673,15 @@ export default {
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
// 校验是否可以修改
|
|
|
|
// 校验是否可以修改
|
|
|
|
let check = 0;
|
|
|
|
|
|
|
|
checkWorkOrder(this.selectWork.workorderId).then(response => {
|
|
|
|
checkWorkOrder(this.selectWork.workorderId).then(response => {
|
|
|
|
if (response.code == 500){
|
|
|
|
if (response.code == 500){
|
|
|
|
check = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (check == 1){
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
message:'该工单已有湿料计划,不可修改!',
|
|
|
|
message:'该工单已有湿料计划,不可修改!',
|
|
|
|
type:'warning'
|
|
|
|
type:'warning'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
|
|
console.log("这里是你要的数据")
|
|
|
|
console.log("这里是你要的数据")
|
|
|
|
console.log(this.selectWork)
|
|
|
|
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.open = true;
|
|
|
|
this.title = "修改生产工单";
|
|
|
|
this.title = "修改生产工单";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**下达工单**/
|
|
|
|
/**下达工单**/
|
|
|
|
handleUpdateDown(row) {
|
|
|
|
handleUpdateDown(row) {
|
|
|
|