Explorar o código

产品管理-供应商管理,供应商分公司无法选择到省,只能选择到最县区。系统目前现状为根据地址带保保司代码
供应商管理,保险公司总公司需要录入logo,除总公司外,其他层级无需录入,出单及报价等展示logo与总公司一致

li.pengfei %!s(int64=3) %!d(string=hai) anos
pai
achega
1dc591f7ba
Modificáronse 1 ficheiros con 21 adicións e 5 borrados
  1. 21 5
      src/views/Esm/Esmcompany.vue

+ 21 - 5
src/views/Esm/Esmcompany.vue

@@ -73,8 +73,8 @@
         <el-row>
           <el-col :span="8" v-if="operType == 'ADD2'">
             <el-form-item label="选择公司地区" prop="area">
-              <el-cascader size="small" v-model="dataForm.area" :options="areaList" :props="optionProps"
-                @change="areaHandleChange"></el-cascader>
+              <el-cascader ref="areaCascaderRef" size="small" v-model="dataForm.area" :options="areaList" :props="optionProps" clearable
+                           @change="areaHandleChange"></el-cascader>
               <!-- <el-cascader
               size="small"
               v-model="area"
@@ -301,11 +301,11 @@ export default {
       area: [],
       optionProps: {
         //配置节点
-        // checkStrictly: true,
+        checkStrictly: true,
         value: "code",
         label: "name",
         children: "sub",
-        expandTrigger: "hover",
+        expandTrigger: "hover"
       },
       searchForm: {
         name: "",
@@ -461,6 +461,7 @@ export default {
       if (value != "") {
         this.dataForm.id =
           this.dataForm.parentId.substring(0, 4) + this.dataForm.type + value[value.length - 1];
+        this.$refs['areaCascaderRef'].dropDownVisible = false;
       } else {
         this.dataForm.id = "";
       }
@@ -483,8 +484,23 @@ export default {
       this.dataForm.logo = "";
       this.dataForm.openQuote = row.openQuote;
       this.dialogVisible = true;
-      this.imgList1 = [];
       this.uploadDisabled = false;
+      //查询上级详情,带出logo
+      this.$api.insCompany.getInsCompanyById(row.id).then((res) => {
+        if (res.data.openQuote == "1") {
+          this.value = true;
+        } else {
+          this.value = false;
+        }
+        if (res.data.logo == "") {
+          this.imgList1 = [];
+        } else {
+          this.imgList1 = [];
+          this.imgList1.push({url: res.data.logo});
+          this.dataForm.logo = res.data.logo;
+          this.uploadDisabled = true;
+        }
+      })
     },
     //系统字典统一调用
     getDicType(type, options) {