|
|
@@ -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) {
|