From 0b0769abd0a765d95a379eab319e284582f53c6f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 10 Dec 2025 15:57:08 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-10=20=E9=A2=86=E6=96=99=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=AE=A1=E7=90=86-=E3=80=8B=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E9=A2=86=E6=96=99=E7=94=B3=E8=AF=B7=E5=8D=95=E6=97=B6=E2=80=9C?= =?UTF-8?q?=E8=BD=A6=E9=97=B4=E2=80=9D=E8=AE=BE=E7=BD=AE=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../soIssueNotify/searchIssureNotify.vue | 75 ++++++++++++------- 1 file changed, 46 insertions(+), 29 deletions(-) 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: '确定' + }) + } + }) + }); }, //新增派工单明细