|
|
@@ -17,7 +17,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户类型" prop="custIndustry">
|
|
|
<el-select v-model="editForm.custIndustry" placeholder="请选择客户类型" style="width: 100%">
|
|
|
- <el-option v-for="item in industryOptions" :key="item.value" :label="item.value" :value="item.value" />
|
|
|
+ <el-option v-for="item in industryOptions" :key="item.key" :label="item.value" :value="item.key" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -227,11 +227,6 @@
|
|
|
params.custCity = params.city.distName
|
|
|
params.custRegionId = params.region.id
|
|
|
params.custRegion = params.region.distName
|
|
|
- this.industryOptions.forEach((i) => {
|
|
|
- if (params.custIndustry == i.value) {
|
|
|
- params.custIndustryCode = i.key
|
|
|
- }
|
|
|
- })
|
|
|
if (!params.followUpDate) params.followUpDate = null
|
|
|
const [err, res] = await to(api.createCustomer(params))
|
|
|
if (err) return
|