2
3
lining 5 жил өмнө
parent
commit
96258fcef2

+ 35 - 10
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -63,7 +63,7 @@
 
                 <el-col :span="8">
                   <el-form-item label="准入编码">
-                    <el-input v-model="supplierData.WZAccessCardNo" :readonly="true" placeholder="请输入" style="width: 100%">
+                    <el-input v-model="supplierData.JSAccessCardNo" :readonly="true" placeholder="请输入" style="width: 100%">
                     </el-input>
                   </el-form-item>
                 </el-col>
@@ -570,7 +570,7 @@
         <el-row>
           <el-col :span="12">
             <el-form-item label="分类名称" prop="Name">
-              <el-input placeholder="请选择分类" v-model="dialogFormData.Name" style="width:100%">
+              <el-input placeholder="请选择分类" v-model="dialogFormData.Name" style="width:100%" readonly>
                 <el-button type="primary" style="width:30%" @click="basisDialog = true" slot="append">选择</el-button>
               </el-input>
             </el-form-item>
@@ -1285,14 +1285,14 @@
             required: true,
             message: '用户名',
             trigger: 'blur'
-          }],
-          rules: {
-            NeedFileType: [
-              {required: true, message: '资质名称不能为空', trigger: 'blur'}
-            ],
-            EffectDate:
-              [{ required: true, message: '请选择有效日期', trigger: 'change' }]
-          }
+          }]
+        },
+        rules: {
+          NeedFileType: [
+            {required: true, message: '资质名称不能为空', trigger: 'blur'}
+          ],
+          EffectDate:
+            [{ required: true, message: '请选择有效日期', trigger: 'change' }]
         },
         // 增项信息表
         formData: {
@@ -1580,6 +1580,15 @@
           })
           return
         }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.UnitOrg === '') {
           this.$message({
             type: 'warning',
@@ -2570,6 +2579,22 @@
 
       // 提交审批
       AuditEntity () {
+        if (this.myentityList == null || this.myentityList.length <= 0) {
+          this.$message({
+            type: 'warning',
+            message: '没有新增准入项,不能提交!'
+          })
+          return
+        }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.auditer === '') {
           this.$message({
             type: 'warning',

+ 25 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -3019,7 +3019,22 @@
       },
       // 提交审批
       AuditEntity () {
-
+        if (this.myentityList == null || this.myentityList.length <= 0) {
+          this.$message({
+            type: 'warning',
+            message: '没有新增准入项,不能提交!'
+          })
+          return
+        }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -3085,6 +3100,15 @@
           })
           return
         }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.UnitOrg === '') {
           this.$message({
             type: 'warning',

+ 26 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -63,7 +63,7 @@
 
                 <el-col :span="8">
                   <el-form-item label="准入编码">
-                    <el-input v-model="supplierData.WZAccessCardNo" :readonly="true" placeholder="请输入" style="width: 100%">
+                    <el-input v-model="supplierData.JFAccessCardNo" :readonly="true" placeholder="请输入" style="width: 100%">
                     </el-input>
                   </el-form-item>
                 </el-col>
@@ -2488,6 +2488,22 @@
 
       // 提交审批
       AuditEntity () {
+        if (this.myentityList == null || this.myentityList.length <= 0) {
+          this.$message({
+            type: 'warning',
+            message: '没有新增准入项,不能提交!'
+          })
+          return
+        }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -2554,6 +2570,15 @@
           })
           return
         }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
         if (this.UnitOrg === '') {
           this.$message({
             type: 'warning',