Browse Source

去掉公司名称(客户单位)

master
yunuo970428 11 months ago
parent
commit
57044739bd
  1. 24
      yxt-as-ui/src/components/publicPage/quickAddCustomer.vue
  2. 24
      yxt-as-ui/src/views/client/customermanagement/customermanagementAdd.vue
  3. 6
      yxt-as-ui/src/views/client/customermanagement/customermanagementInfo.vue

24
yxt-as-ui/src/components/publicPage/quickAddCustomer.vue

@ -30,16 +30,6 @@
<el-form-item><el-input class="addinputInfo" style="width: 30%" v-model="formobj.weixin" clearable placeholder="" /></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.customerType == '个人'">
<el-col :span="24">
<div class="span-sty">公司名称</div>
<el-form-item>
<el-select class="addinputInfo" style="width: 40%" v-model="formobj.customerOrgSid" filterable clearable placeholder="" @change="customerOrgChange">
<el-option v-for="item in customerOrg_list" :key="item.sid" :label="item.orgName" :value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">客户地址</div>
@ -308,7 +298,6 @@ export default {
viewTitle: '',
viewState: 1,
submitdisabled: false,
customerOrg_list: [],
province_list: [],
city_list: [],
county_list: [],
@ -415,19 +404,6 @@ export default {
this.source_list = res.data
}
})
req.selCustomerOrgList({ useOrgSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) }).then((res) => {
if (res.success) {
this.customerOrg_list = res.data
}
})
},
customerOrgChange(value) {
const choose = this.customerOrg_list.filter((item) => item.sid === value)
if (choose.length > 0 && choose !== null) {
this.formobj.customerOrgName = choose[0].orgName
} else {
this.formobj.customerOrgName = ''
}
},
provinceChange(value) {
const choose = this.province_list.filter((item) => item.name === value)

24
yxt-as-ui/src/views/client/customermanagement/customermanagementAdd.vue

@ -30,16 +30,6 @@
<el-form-item><el-input class="addinputInfo" style="width: 30%" v-model="formobj.weixin" clearable placeholder="" /></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.customerType == '个人'">
<el-col :span="24">
<div class="span-sty">公司名称</div>
<el-form-item>
<el-select class="addinputInfo" style="width: 40%" v-model="formobj.customerOrgSid" filterable clearable placeholder="" @change="customerOrgChange">
<el-option v-for="item in customerOrg_list" :key="item.sid" :label="item.orgName" :value="item.sid"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">客户地址</div>
@ -174,7 +164,6 @@ export default {
viewTitle: '',
viewState: 1,
submitdisabled: false,
customerOrg_list: [],
province_list: [],
city_list: [],
county_list: [],
@ -250,19 +239,6 @@ export default {
this.source_list = res.data
}
})
req.selCustomerOrgList({ useOrgSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) }).then((res) => {
if (res.success) {
this.customerOrg_list = res.data
}
})
},
customerOrgChange(value) {
const choose = this.customerOrg_list.filter((item) => item.sid === value)
if (choose.length > 0 && choose !== null) {
this.formobj.customerOrgName = choose[0].orgName
} else {
this.formobj.customerOrgName = ''
}
},
provinceChange(value) {
const choose = this.province_list.filter((item) => item.name === value)

6
yxt-as-ui/src/views/client/customermanagement/customermanagementInfo.vue

@ -29,12 +29,6 @@
<el-form-item><span class="addinputInfo">{{ formobj.weixin }}</span></el-form-item>
</el-col>
</el-row>
<el-row v-if="formobj.customerType == '个人'">
<el-col :span="24">
<div class="span-sty">公司名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerOrgName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">客户地址</div>

Loading…
Cancel
Save