Commit f631b513 authored by 黄卓's avatar 黄卓

客户字段id转义翻译

parent ee8b6e4e
......@@ -9,13 +9,14 @@
style="width: 100%"
>
<el-table-column
prop=""
type="index"
label="#"
>
</el-table-column>
<el-table-column
prop="followType"
label="跟进类型"
:formatter="(row, column, cellValue) => getDictDataLabel(DICT_TYPE.CUSTOMER_FOLLOW_TYPE, cellValue)"
>
</el-table-column>
<el-table-column
......@@ -26,6 +27,7 @@
<el-table-column
prop="followMethod"
label="跟进方式"
:formatter="(row, column, cellValue) => getDictDataLabel(DICT_TYPE.CUSTOMER_FOLLOW_METHOD, cellValue)"
>
</el-table-column>
<el-table-column
......@@ -47,6 +49,7 @@
<el-table-column
prop="followUserId"
label="跟进业务"
:formatter="(row, column, cellValue) => serviceUserList.find(e => e.id === cellValue).nickname"
>
</el-table-column>
</el-table>
......@@ -136,6 +139,7 @@ export default {
data() {
return {
DICT_TYPE,
getDictDataLabel,
parseTime,
customerFollowList: [],
serviceUserList: [],
......
......@@ -529,7 +529,7 @@ export default {
},
getCustomer(id) {
getCustomer(id).then(response => {
this.form = { ...this.form, ...response.data };
this.form = { ...this.form, ...response.data, id: this.customerId };
this.open = true;
this.title = "修改客户";
});
......
......@@ -25,8 +25,8 @@
<el-descriptions-item label="客户来源">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_SOURCE, customer.source) }}</el-descriptions-item>
<el-descriptions-item label="客户类别">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_TYPE, customer.type) }}</el-descriptions-item>
<!-- <el-descriptions-item label="联系方式">{{ customer }}</el-descriptions-item>-->
<el-descriptions-item label="推介人">{{ customer.promoter }}</el-descriptions-item>
<el-descriptions-item label="跟进客服">{{ customer.customerService }}</el-descriptions-item>
<el-descriptions-item label="推介人">{{ promoter }}</el-descriptions-item>
<el-descriptions-item label="跟进客服">{{ customerService }}</el-descriptions-item>
<el-descriptions-item label="公司名称">{{ customer.company }}</el-descriptions-item>
<el-descriptions-item label="联系地址">{{ customer.address }}</el-descriptions-item>
<el-descriptions-item label="创建时间">{{ parseTime(customer.createTime) }}</el-descriptions-item>
......@@ -172,7 +172,7 @@
</template>
<script>
import { getCustomer } from '@/api/ecw/customer'
import { getCustomer, getCustomerSelect } from '@/api/ecw/customer'
import { DICT_TYPE, getDictDataLabel } from '@/utils/dict'
import { getProductTypeList } from '@/api/ecw/productType'
import { getNodeList } from '@/api/ecw/node'
......@@ -180,6 +180,7 @@ import DictSelector from "@/components/DictSelector"
import CustomerFollow from "@/components/CustomerFollow"
import { parseTime } from '@/utils/ruoyi'
import CustomerComplaint from '@/views/ecw/customerComplaint'
import { listServiceUser } from '@/api/system/user'
export default {
name: 'query',
......@@ -202,6 +203,12 @@ export default {
this.productTypeList = r.data
})
getCustomerSelect().then(r => {
this.customerSelect = r.data
})
listServiceUser().then(r => {
this.serviceUserList = r.data
})
},
data() {
return {
......@@ -210,6 +217,8 @@ export default {
parseTime,
nodeList: [],
productTypeList: [],
customerSelect: [],
serviceUserList: [],
customer: {
id: undefined,
number: undefined,
......@@ -258,6 +267,12 @@ export default {
pickupPoint(){
const pickupPoint = this.nodeList.find(p => p.id === parseInt(this.customer.pickupPoint))
return pickupPoint ? pickupPoint.titleZh : ''
},
promoter() {
return this.customerSelect.find(e => e.id === this.customer.promoter)?.name || ''
},
customerService() {
return this.serviceUserList.find(e => e.id === this.customer.customerService)?.nickname || ''
}
}
}
......
......@@ -100,7 +100,7 @@
v-for="item in customerSelect"
:key="item.id"
:label="item.name"
:value="item.id.toString()"></el-option>
:value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="投诉类型" prop="type">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment