Commit 7e75a761 authored by 李驰骋's avatar 李驰骋

生产报工添加待加工数量

parent 16526d75
...@@ -705,9 +705,9 @@ export default { ...@@ -705,9 +705,9 @@ export default {
width: 140 width: 140
}, },
{ {
name: 'quantity', name: 'quantityWait',
label: '待加工数量', label: '待加工数量',
width: 140 width: 80
}, },
{ {
name: 'status', name: 'status',
...@@ -753,20 +753,20 @@ export default { ...@@ -753,20 +753,20 @@ export default {
}, },
{ {
name: 'quantity', name: 'quantity',
label: '数量', label: '排产数量',
width: 60, width: 80,
align: 'center' align: 'center'
}, },
{ {
name: 'quantityQuanlify', name: 'quantityQuanlify',
label: '合格数量', label: '合格数量',
width: 60, width: 80,
align: 'center' align: 'center'
}, },
{ {
name: 'quantityUnquanlify', name: 'quantityUnquanlify',
label: '不合格数量', label: '不合格数量',
width: 60, width: 80,
align: 'center' align: 'center'
}, },
{ {
...@@ -1289,13 +1289,7 @@ export default { ...@@ -1289,13 +1289,7 @@ export default {
this.open = false; this.open = false;
}, },
feedback() { feedback() {
// this.$refs.feedbackForm.validate(valid => { this.open = true;
// // if (valid) {
// // console.log('验证通过');
// // } else {
// // console.log('验证失败');
// // }
// });
this.feedbackForms.forEach((item) => { this.feedbackForms.forEach((item) => {
if (item.quantityQualify === 0 && item.quantityUnqualify === 0) { if (item.quantityQualify === 0 && item.quantityUnqualify === 0) {
this.$u.toast('请填写合格/不合格产品数量!'); this.$u.toast('请填写合格/不合格产品数量!');
...@@ -1305,7 +1299,7 @@ export default { ...@@ -1305,7 +1299,7 @@ export default {
.feedback({ .feedback({
taskId: item.taskId, taskId: item.taskId,
taskCode: item.taskCode, taskCode: item.taskCode,
quantityFeedback: item.quantity, quantityFeedback: item.quantityQualify+item.quantityUnqualify,
quantityQualified: item.quantityQualify, quantityQualified: item.quantityQualify,
quantityUnquanlified: item.quantityUnqualify, quantityUnquanlified: item.quantityUnqualify,
userName: this.vuex_user.userName, userName: this.vuex_user.userName,
...@@ -1327,6 +1321,7 @@ export default { ...@@ -1327,6 +1321,7 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.open = false;
if (res.msg === '') { if (res.msg === '') {
this.$u.toast('上报成功'); this.$u.toast('上报成功');
} else { } else {
...@@ -1336,7 +1331,6 @@ export default { ...@@ -1336,7 +1331,6 @@ export default {
} }
}); });
}); });
this.open = false;
}, },
feedingInspectionShow() { feedingInspectionShow() {
this.feedingInspectionVisible = true; this.feedingInspectionVisible = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment