Commit b3f528ab by 杨北旺

添加客户来源字段

1 parent c5ca6692
...@@ -79,6 +79,14 @@ ...@@ -79,6 +79,14 @@
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="客户来源"
align="center"
prop="salesType">
<template slot-scope="scope">
<span v-if="scope.row.salesType>-1">{{ scope.row.salesType == 1 ? "售后" : "售前" }}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="客户车型" <el-table-column label="客户车型"
align="center" align="center"
width="200" width="200"
...@@ -612,6 +620,14 @@ export default { ...@@ -612,6 +620,14 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'invoiceStatusList' optionsName: 'invoiceStatusList'
},{
label: '客户来源',
name: 'salesType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'salesTypeList'
} }
], ],
searchForm: { searchForm: {
...@@ -630,7 +646,8 @@ export default { ...@@ -630,7 +646,8 @@ export default {
businessType: "", businessType: "",
paySuccessDate: '', paySuccessDate: '',
provinceId: '', provinceId: '',
invoiceStatus: '' invoiceStatus: '',
salesType:''
}, },
baseData: { baseData: {
orderStatusList: [ orderStatusList: [
...@@ -749,6 +766,16 @@ export default { ...@@ -749,6 +766,16 @@ export default {
confId: '2', confId: '2',
confLabel: '已开票' confLabel: '已开票'
} }
],
salesTypeList:[
{
confId: '0',
confLabel: '售前'
},
{
confId: '1',
confLabel: '售后'
}
] ]
}, },
tableData: [], tableData: [],
......
...@@ -269,6 +269,14 @@ ...@@ -269,6 +269,14 @@
<span>{{ scope.row.source == 7 ? '系统导入' : '小程序订单' }}</span> <span>{{ scope.row.source == 7 ? '系统导入' : '小程序订单' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="客户来源"
align="center"
prop="source">
<template slot-scope="scope">
<span>{{ scope.row.salesType == 1 ? '售后' : '售前' }}</span>
</template>
</el-table-column>
<el-table-column label="操作" <el-table-column label="操作"
align="center" align="center"
fixed="right"> fixed="right">
...@@ -631,6 +639,14 @@ export default { ...@@ -631,6 +639,14 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'invoiceStatusList' optionsName: 'invoiceStatusList'
},{
label: '客户来源',
name: 'salesType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'salesTypeList'
}], }],
searchForm: { searchForm: {
sceneType: 1, sceneType: 1,
...@@ -648,7 +664,8 @@ export default { ...@@ -648,7 +664,8 @@ export default {
subShopMerchantId: '', subShopMerchantId: '',
paySuccessDate: '', paySuccessDate: '',
provinceId: '', provinceId: '',
invoiceStatus: '' invoiceStatus: '',
salesType:''
}, },
baseData: { baseData: {
orderStatusList: [{ orderStatusList: [{
...@@ -753,6 +770,16 @@ export default { ...@@ -753,6 +770,16 @@ export default {
confId: '2', confId: '2',
confLabel: '已开票' confLabel: '已开票'
} }
],
salesTypeList:[
{
confId: '0',
confLabel: '售前'
},
{
confId: '1',
confLabel: '售后'
}
] ]
}, },
tableData: [], tableData: [],
......
...@@ -90,6 +90,9 @@ ...@@ -90,6 +90,9 @@
<el-form-item label="用户姓名:"> <el-form-item label="用户姓名:">
{{ detail.customerName || $$(detail, 'customer', 'customerName') }} {{ detail.customerName || $$(detail, 'customer', 'customerName') }}
</el-form-item> </el-form-item>
<el-form-item label="客户来源:">
{{ detail.customer.salesType==1?'售后':'售前'}}
</el-form-item>
<el-form-item label="评论:"> <el-form-item label="评论:">
{{ detail.customerComment }} {{ detail.customerComment }}
</el-form-item> </el-form-item>
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
<el-form-item label="姓名:"> <el-form-item label="姓名:">
{{ $$(detail.ownerDTO, 'owner') }} {{ $$(detail.ownerDTO, 'owner') }}
</el-form-item> </el-form-item>
<el-form-item label="车主来源:">
{{ detail.ownerDTO.salesType==1?'售后':'售前' }}
</el-form-item>
<el-form-item label="手机号:"> <el-form-item label="手机号:">
{{ $$(detail.ownerDTO, 'phone') }} {{ $$(detail.ownerDTO, 'phone') }}
</el-form-item> </el-form-item>
......
...@@ -152,6 +152,14 @@ export default { ...@@ -152,6 +152,14 @@ export default {
width: "250px" width: "250px"
}, },
{ {
label: "客户来源",
prop: "salesType",
width: "100px",
formatter:(cellValue)=>{
return cellValue.salesType==1?'售后':'售前'
}
},
{
label: "车架号", label: "车架号",
prop: "carVin", prop: "carVin",
width: "250px" width: "250px"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!