Browse Source

fix:征信管理限制上传文件个数,组织机构管理删除部门限制

lazy 6 months ago
parent
commit
990ddc5461

+ 2 - 0
src/views/creditInfoManage/components/CompanyAdd.vue

@@ -47,6 +47,7 @@
           }"
           :file-data="ruleForm.creditAuth"
           :upload-from-orange-status="true"
+          :limit="1"
           placeholder="请上传征信查询授权书"
         />
       </el-form-item>
@@ -61,6 +62,7 @@
           }"
           :file-data="ruleForm.creditReport"
           :upload-from-orange-status="true"
+          :limit="1"
           placeholder="请上传征信报告"
         />
       </el-form-item>

+ 2 - 0
src/views/creditInfoManage/components/CompanyEdit.vue

@@ -65,6 +65,7 @@
             :upload-from-orange-status="true"
             placeholder="请上传征信查询授权书"
             :disabled="type==='view'"
+            :limit="1"
           />
         </el-form-item>
         <el-form-item label="征信查询日期" prop="searchDate" style="width: 100%;" :rules="[{required: operationShow, trigger: 'change', message: '请选择征信查询日期'}]">
@@ -81,6 +82,7 @@
             :upload-from-orange-status="true"
             placeholder="请上传征信标报告"
             :disabled="type==='view'"
+            :limit="1"
           />
         </el-form-item>
       </template>

+ 3 - 0
src/views/creditInfoManage/components/PersonAdd.vue

@@ -47,6 +47,7 @@
           }"
           :file-data="ruleFormPer.cardPhoto"
           :upload-from-orange-status="true"
+          :limit="1"
           placeholder="请上传证照正面"
         />
       </el-form-item>
@@ -58,6 +59,7 @@
           }"
           :file-data="ruleFormPer.cardRevPhoto"
           :upload-from-orange-status="true"
+          :limit="1"
           placeholder="请上传证照反面"
         />
       </el-form-item>
@@ -71,6 +73,7 @@
             fileType: 'creditReport'
           }"
           :file-data="ruleFormPer.creditReport"
+          :limit="1"
           :upload-from-orange-status="true"
           placeholder="请上传征信报告"
         />

+ 3 - 0
src/views/creditInfoManage/components/PersonEdit.vue

@@ -52,6 +52,7 @@
           :upload-from-orange-status="true"
           placeholder="请上传证照正面"
           :disabled="type==='view'"
+          :limit="1"
         />
       </el-form-item>
       <el-form-item label="证照反面" prop="cardRevPhoto" style="width: 100%">
@@ -64,6 +65,7 @@
           :upload-from-orange-status="true"
           placeholder="请上传证照反面"
           :disabled="type==='view'"
+          :limit="1"
         />
       </el-form-item>
 
@@ -100,6 +102,7 @@
             :upload-from-orange-status="true"
             placeholder="请上传征信报告"
             :disabled="type==='view'"
+            :limit="1"
           />
         </el-form-item>
       </template>

+ 4 - 0
src/views/systemManage/orgManage/components/orgInfo.vue

@@ -243,6 +243,10 @@ export default {
       })
     },
     deleteOrg() {
+      if (this.tableData.length > 0) {
+        this.$message.error('该部门下有成员,不能删除')
+        return
+      }
       const data = new FormData()
       data.append('id', this.info.id)
       request({