|
|
|
@ -125,10 +125,12 @@ export default { |
|
|
|
this.pageData.reportTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
//设置对应的参数 |
|
|
|
this.pageData.orderNo = scheduleData.orderNo; |
|
|
|
this.pageData.itemNo = scheduleData.orderNo; |
|
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
|
this.pageData.seqNo = scheduleData.seqNo; |
|
|
|
this.pageData.rollNo = scheduleData.rollNo; |
|
|
|
this.pageData.operatorId = operatorData.operatorId; |
|
|
|
this.pageData.newRollNo = ''; |
|
|
|
this.pageData.newRollQty = 0; |
|
|
|
//执行获取页面参数的功能 |
|
|
|
this.refreshPageData(); |
|
|
|
//自动获取焦点 |
|
|
|
@ -160,13 +162,11 @@ export default { |
|
|
|
if (rollQty == null || rollQty == '') { |
|
|
|
//this.$message.error('请输入新卷数量!'); |
|
|
|
this.pageData.rollQty = 0;//重新赋值 |
|
|
|
return false; |
|
|
|
} |
|
|
|
//转换成整数 |
|
|
|
if (rollQty <= 0) { |
|
|
|
//this.$message.error('新卷数量必须是大于零的整数!'); |
|
|
|
this.pageData.rollQty = 0;//重新赋值 |
|
|
|
return false; |
|
|
|
}else{ |
|
|
|
this.pageData.rollQty = rollQty; |
|
|
|
} |
|
|
|
@ -175,12 +175,10 @@ export default { |
|
|
|
if (newRollQty == null || newRollQty == '') { |
|
|
|
//this.$message.error('请输入新卷数量!'); |
|
|
|
this.pageData.newRollQty = 0;//重新赋值 |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (newRollQty <= 0) { |
|
|
|
//this.$message.error('新卷数量必须是大于零的整数!'); |
|
|
|
this.pageData.newRollQty = 0;//重新赋值 |
|
|
|
return false; |
|
|
|
}else{ |
|
|
|
this.pageData.newRollQty = newRollQty; |
|
|
|
} |
|
|
|
@ -203,6 +201,7 @@ export default { |
|
|
|
this.pageData.newRollQty = 0;//重新赋值 |
|
|
|
return false; |
|
|
|
} |
|
|
|
debugger; |
|
|
|
let requestData = { |
|
|
|
'site': this.pageData.site, |
|
|
|
'orderNo': this.pageData.orderNo, |
|
|
|
@ -212,7 +211,7 @@ export default { |
|
|
|
'rollQty': this.pageData.rollQty, |
|
|
|
'newRollNo': this.pageData.newRollNo, |
|
|
|
'newRollQty': this.pageData.newRollQty, |
|
|
|
'userId': this.scheduleData.userName, |
|
|
|
'username': this.pageData.username, |
|
|
|
'operatorId': this.pageData.operatorId, |
|
|
|
'newRollFlag': false |
|
|
|
}; |
|
|
|
@ -244,7 +243,8 @@ export default { |
|
|
|
if (data.code == 500) { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.closeDialog(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -254,7 +254,8 @@ export default { |
|
|
|
if (data.code == 500) { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.closeDialog(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -279,7 +280,8 @@ export default { |
|
|
|
if (data.code == 500) { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.closeDialog(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -289,7 +291,8 @@ export default { |
|
|
|
if (data.code == 500) { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.closeDialog(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|