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

生产报工添加待加工数量

parent 16526d75
......@@ -705,9 +705,9 @@ export default {
width: 140
},
{
name: 'quantity',
name: 'quantityWait',
label: '待加工数量',
width: 140
width: 80
},
{
name: 'status',
......@@ -753,20 +753,20 @@ export default {
},
{
name: 'quantity',
label: '数量',
width: 60,
label: '排产数量',
width: 80,
align: 'center'
},
{
name: 'quantityQuanlify',
label: '合格数量',
width: 60,
width: 80,
align: 'center'
},
{
name: 'quantityUnquanlify',
label: '不合格数量',
width: 60,
width: 80,
align: 'center'
},
{
......@@ -1289,13 +1289,7 @@ export default {
this.open = false;
},
feedback() {
// this.$refs.feedbackForm.validate(valid => {
// // if (valid) {
// // console.log('验证通过');
// // } else {
// // console.log('验证失败');
// // }
// });
this.open = true;
this.feedbackForms.forEach((item) => {
if (item.quantityQualify === 0 && item.quantityUnqualify === 0) {
this.$u.toast('请填写合格/不合格产品数量!');
......@@ -1305,7 +1299,7 @@ export default {
.feedback({
taskId: item.taskId,
taskCode: item.taskCode,
quantityFeedback: item.quantity,
quantityFeedback: item.quantityQualify+item.quantityUnqualify,
quantityQualified: item.quantityQualify,
quantityUnquanlified: item.quantityUnqualify,
userName: this.vuex_user.userName,
......@@ -1327,6 +1321,7 @@ export default {
})
.then((res) => {
if (res.code === 200) {
this.open = false;
if (res.msg === '') {
this.$u.toast('上报成功');
} else {
......@@ -1336,7 +1331,6 @@ export default {
}
});
});
this.open = false;
},
feedingInspectionShow() {
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