Commit f631b513 authored by 黄卓's avatar 黄卓

客户字段id转义翻译

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