diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue index 878dc43..80ada50 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue @@ -420,10 +420,10 @@ - + - + - + { - if (data.code === 0) { - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => {} - }) - this.createNotifyFlag = false - // 刷新主表数据 - this.searchTable() - }else { - this.$alert(data.msg, '错误', { - confirmButtonText: '确定' - }) + // 验证表单 + this.$refs.notifyForm.validate((valid) => { + if (!valid) { + this.$message.warning('请填写必填项'); + return false; } - }) + + let buValue = this.notifyData.bu + let site = buValue.split('_')[0] + let bu = buValue.split('_')[1] + let inData = { + site: site, + bu: bu, + userName: this.$store.state.user.name, + remark: this.notifyData.remark, + workCenterNo: this.notifyData.workCenterNo, + } + createNotify(inData).then(({data})=>{ + if (data.code === 0) { + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => {} + }) + this.createNotifyFlag = false + // 刷新主表数据 + this.searchTable() + }else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }); }, //新增派工单明细