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; + } } } }