Commit 4c3847dd by 王琦琳

Merge branch 'v4.26.0' into 'v4.27.0'

V4.26.0

See merge request !1
2 parents cfb82825 a48232c6
......@@ -76,3 +76,12 @@ html {
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
.tb-ellipsis {
display: inline-block;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
vertical-align: middle;
white-space: nowrap;
}
......@@ -4,6 +4,20 @@
<div>
<slot name="search"></slot>
<GLTable ref="storeRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="tb-ellipsis" slot="merchantName" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.merchantName">
<span slot="reference">
{{ scope.scope.merchantName }}
</span>
</el-popover>
</div>
<div class="tb-ellipsis" slot="merchantAddress" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.merchantAddress">
<span slot="reference">
{{ scope.scope.merchantAddress }}
</span>
</el-popover>
</div>
<div slot="brand" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.merchantBrandNameList ? scope.scope.merchantBrandNameList.join('/') : '--'">
<span slot="reference" class="one-line-ellipsis">
......@@ -11,6 +25,13 @@
</span>
</el-popover>
</div>
<div class="tb-ellipsis" slot="yqMerchantName" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.yqMerchantName">
<span slot="reference">
{{ scope.scope.yqMerchantName }}
</span>
</el-popover>
</div>
<div slot="applyStatus" slot-scope="scope" class="flex">
<div :class="['dot', statusClass[scope.scope.reviewStatus]]"></div>
{{ reviewStatusObj[scope.scope.reviewStatus] }}
......@@ -39,8 +60,8 @@ export default {
{
label: '客户名称',
prop: 'merchantName',
width: 120,
line: 1
addHtml: 'merchantName',
minWidth: 120
},
{
label: '联系人',
......@@ -56,8 +77,8 @@ export default {
{
label: '地址',
prop: 'merchantAddress',
width: 140,
line: 1
addHtml: 'merchantAddress',
minWidth: 120
},
{
label: '主营品牌',
......@@ -65,20 +86,17 @@ export default {
width: 140,
line: 1,
addHtml: 'brand'
// formatter: cellValue => {
// return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--'
// }
},
{
label: '所属服务中心',
prop: 'yqMerchantName',
width: 120,
line: 1
addHtml: 'yqMerchantName',
minWidth: 120
},
{
label: '申请时间',
prop: 'createdDate',
width: '170px',
width: '180px',
formatter: cellValue => {
return cellValue.createdDate ? dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
......
......@@ -29,14 +29,14 @@ export default {
showFormData: [
{
label: '销售顾问',
name: '',
name: 'employeeName',
type: 'input',
isClear: true,
maxlength: 50
},
{
label: '手机号',
name: '',
name: 'phone',
type: 'input',
isClear: true,
maxlength: 11
......
......@@ -9,7 +9,7 @@
<Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="scope.scope.labelName" :inline="scope.scope.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province>
</div>
<div slot="business" slot-scope="scope">
<el-select v-model="editForm[scope.scope.name]" multiple filterable placeholder="请选择">
<el-select v-model="editForm[scope.scope.name]" multiple filterable placeholder="请选择" @change="handleMutiSelctChange">
<el-option-group v-for="group in baseData.sceneList" :key="group.sceneCode" :label="group.name">
<el-option v-for="item in group.productList" :key="item.productCode" :label="item.productName" :value="item.productCode"></el-option>
</el-option-group>
......@@ -90,7 +90,7 @@ export default {
label: '客户名称',
name: 'merchantName',
type: 'input',
maxlength: 20
maxlength: 50
},
{
label: '联系人',
......@@ -156,6 +156,9 @@ export default {
},
methods: {
handleMutiSelctChange() {
this.$refs.editFormRef.$refs[this.editChildRef].validateField('productCodeList')
},
changeFormAttr(formName, attrName, labelList, attrValue) {
labelList.forEach(item => {
let idx = this[formName].findIndex(k => k.label == item)
......@@ -253,7 +256,7 @@ export default {
params.serviceCenterMerchantId = this.editForm.yqMerchantId
}
// 判断省市地址填写
if (!params.provinceName || !params.cityName || !params.merchantAddress) {
if (!params.provinceName || !params.cityName || !params.merchantAddress || !params.latitude || !params.longitude) {
this.$message({
message: '请选择省市地址',
type: 'error'
......@@ -278,7 +281,7 @@ export default {
const apiName = this.routeInfo.editType == 'edit' ? 'updateMerchant' : 'createMerchant'
this.$apis.customer[apiName](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : '操作失败',
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
if (res.code == '0') {
......
......@@ -6,12 +6,26 @@
<h2>客户管理列表</h2>
<div>
<el-button size="small" @click="handleEditCustomer('add')" type="primary" plain>新增客户</el-button>
<el-button size="small" @click="handleApply" type="primary">我的开店申请</el-button>
<el-button size="small" @click="handleApply">我的开店申请</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="pointRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="tb-ellipsis" slot="shopMerchantName" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.shopMerchantName">
<span slot="reference">
{{ scope.scope.shopMerchantName }}
</span>
</el-popover>
</div>
<div class="tb-ellipsis" slot="yqMerchantName" slot-scope="scope">
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="scope.scope.yqMerchantName">
<span slot="reference">
{{ scope.scope.yqMerchantName }}
</span>
</el-popover>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
......@@ -44,11 +58,11 @@ export default {
name: 'shopMerchantName',
type: 'input',
isClear: true,
maxlength: 20
maxlength: 50
},
{
label: '商户号',
name: 'shopMerchantId',
name: 'shopMerchantIdKeyword',
type: 'input',
isClear: true,
maxlength: 20
......@@ -102,13 +116,15 @@ export default {
getListApi: this.$apis.customer.getList,
tableParams: {
listName: 'list',
tableOption: true,
tableOption: {
width: '150px'
},
tableColumns: [
{
label: '客户名称',
prop: 'shopMerchantName',
width: 180,
line: 1
addHtml: 'shopMerchantName',
minWidth: 120
},
{
label: '商户号',
......@@ -118,23 +134,24 @@ export default {
{
label: '联系人',
prop: 'contactName',
width: 120
width: 130,
line: 1
},
{
label: '联系电话',
prop: 'phone',
width: '120px'
width: 130
},
{
label: '所属服务中心',
prop: 'yqMerchantName',
width: 200,
line: 1
addHtml: 'yqMerchantName',
minWidth: 120
},
{
label: '销售顾问',
prop: 'employeeNum',
width: '180px'
width: 100
},
{
label: '创建时间',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!