From a6e24abfbfd2e934a5f8f54a962a2cd08122aa7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=96?= <10034423+lihaoyuelijing@user.noreply.gitee.com> Date: Mon, 2 Sep 2024 17:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E6=A3=80=E5=90=88?= =?UTF-8?q?=E6=A0=BC=E4=B8=8D=E5=90=88=E6=A0=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quality/Materialinspection/index.vue | 118 +++++++++--------- 1 file changed, 60 insertions(+), 58 deletions(-) diff --git a/src/pages/quality/Materialinspection/index.vue b/src/pages/quality/Materialinspection/index.vue index 11d343e..586f139 100644 --- a/src/pages/quality/Materialinspection/index.vue +++ b/src/pages/quality/Materialinspection/index.vue @@ -1286,7 +1286,7 @@ export default class PurchaseWHSRM extends BasePage { // } } } - //来料oa校验 + //来料oa校验 不合格发起oa 合格不发起oa if (this.selectList.value == 'checkTypeLL') { if (this.formdata.checkResult == 'N') { if (this.formdata.startOA == '1') { @@ -1314,64 +1314,66 @@ export default class PurchaseWHSRM extends BasePage { } } } - //首见,过程oa校验 + //首见,过程oa校验 不合格发起oa 合格不发起oa if (this.selectList.value == 'checkTypeSC' || this.selectList.value == 'checkTypeSCXJ' || this.selectList.value == 'checkTypeCP' || this.selectList.value == 'checkTypeCC') { - if (this.formdata.startOA == '1') { - if (this.formdata.checkLoc === null || this.formdata.checkLoc === '') { - (this.$refs.uToast as any).show({ - title: '请输入发现地点', - type: 'default', - }); - return; - } - if (this.formdata.oaFactoryF === null || this.formdata.oaFactoryF === '') { - (this.$refs.uToast as any).show({ - title: '请选择异常范围', - type: 'default', - }); - return; - } - if (this.formdata.sfgyswt === null || this.formdata.sfgyswt === '') { - (this.$refs.uToast as any).show({ - title: '请选择是否供应商问题', - type: 'default', - }); - return; - } - if (this.formdata.sfxvzq === null || this.formdata.sfxvzq === '') { - (this.$refs.uToast as any).show({ - title: '请选择是否需要主管审核', - type: 'default', - }); - return; - } - if (this.formdata.sqbm === null || this.formdata.sqbm === '') { - (this.$refs.uToast as any).show({ - title: '请选择申请部门', - type: 'default', - }); - return; - } - if (this.formdata.sccj === null || this.formdata.sccj === '') { - (this.$refs.uToast as any).show({ - title: '请选择所属车间', - type: 'default', - }); - return; - } - if (this.selectischeckType.value == '0' && !this.formdata.pgzg) { - (this.$refs.uToast as any).show({ - title: '请选择QC主管', - type: 'default', - }); - return; - } - if (this.formdata.pgzr == null || this.formdata.pgzr == '') { - (this.$refs.uToast as any).show({ - title: '请选择质量主管', - type: 'default', - }); - return; + if (this.formdata.checkResult == 'N') { + if (this.formdata.startOA == '1') { + if (this.formdata.checkLoc === null || this.formdata.checkLoc === '') { + (this.$refs.uToast as any).show({ + title: '请输入发现地点', + type: 'default', + }); + return; + } + if (this.formdata.oaFactoryF === null || this.formdata.oaFactoryF === '') { + (this.$refs.uToast as any).show({ + title: '请选择异常范围', + type: 'default', + }); + return; + } + if (this.formdata.sfgyswt === null || this.formdata.sfgyswt === '') { + (this.$refs.uToast as any).show({ + title: '请选择是否供应商问题', + type: 'default', + }); + return; + } + if (this.formdata.sfxvzq === null || this.formdata.sfxvzq === '') { + (this.$refs.uToast as any).show({ + title: '请选择是否需要主管审核', + type: 'default', + }); + return; + } + if (this.formdata.sqbm === null || this.formdata.sqbm === '') { + (this.$refs.uToast as any).show({ + title: '请选择申请部门', + type: 'default', + }); + return; + } + if (this.formdata.sccj === null || this.formdata.sccj === '') { + (this.$refs.uToast as any).show({ + title: '请选择所属车间', + type: 'default', + }); + return; + } + if (this.selectischeckType.value == '0' && !this.formdata.pgzg) { + (this.$refs.uToast as any).show({ + title: '请选择QC主管', + type: 'default', + }); + return; + } + if (this.formdata.pgzr == null || this.formdata.pgzr == '') { + (this.$refs.uToast as any).show({ + title: '请选择质量主管', + type: 'default', + }); + return; + } } } }