浏览代码

前:所代理制造商名称判断fix

baichengfei 5 年之前
父节点
当前提交
b7a1e6f48b
共有 1 个文件被更改,包括 21 次插入20 次删除
  1. 21 20
      src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

+ 21 - 20
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1559,26 +1559,6 @@ export default {
         })
         return
       }
-      if (this.formData.OperType === '制造商') {
-        // if (!this.formData.MaunLicense && !this.formData.SafetyLicense) {
-        //   valid1 = false
-        //   this.$message({
-        //     type: 'warning',
-        //     message: '【生产制造许可证获证情况及编号】或【安全生产许可证】 为必填项'
-        //   })
-        //   return
-        // }
-      } else if (this.formData.OperType === '代理商') {
-        let countM = this.getCurrentManufactureCount1()
-        if (countM <= 0 && this.certId) {
-          valid1 = false
-          this.$message({
-            type: 'warning',
-            message: '【所代理制造商名称】不能为空'
-          })
-          return
-        }
-      }
       if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
         this.$message({
           type: 'warning',
@@ -1850,6 +1830,27 @@ export default {
           return false
         }
       }
+      if (this.formData.OperType === '制造商') {
+        // if (!this.formData.MaunLicense && !this.formData.SafetyLicense) {
+        //   valid1 = false
+        //   this.$message({
+        //     type: 'warning',
+        //     message: '【生产制造许可证获证情况及编号】或【安全生产许可证】 为必填项'
+        //   })
+        //   return
+        // }
+      } else if (this.formData.OperType === '代理商') {
+        let countM = this.getCurrentManufactureCount1()
+        if (!countM && this.certId) {
+          // valid1 = false
+          this.$notify({
+            title: '提示',
+            type: 'warning',
+            message: '【所代理制造商名称】不能为空'
+          })
+          return false
+        }
+      }
       this.saveEntity(1)
       this.updateNumberEntityNoInfo()
       apiCert.checkSupplierCertCanSubmit(this.formData.CertId, this.$axios)