Commit 257e7b71 by wangql

4.7.1版本代码提交

1 parent c47521bd
...@@ -3,6 +3,8 @@ import request from './request' ...@@ -3,6 +3,8 @@ import request from './request'
const path = 'dj.api.smartcarlife.orderDivision.' const path = 'dj.api.smartcarlife.orderDivision.'
const pathSub = 'dj.api.smartcarlife.subOrderDivision.' const pathSub = 'dj.api.smartcarlife.subOrderDivision.'
const path2 = 'dj.api.withdraw.' const path2 = 'dj.api.withdraw.'
const pathServicer = 'dj.api.smartcarlife.sevicerOrderDivision.'
const path3 = 'dj.api.smartcarlife.'
// 分账 - start // 分账 - start
export function getListApi(data) { export function getListApi(data) {
...@@ -66,3 +68,21 @@ export function getPartnerYqListApi(data) { ...@@ -66,3 +68,21 @@ export function getPartnerYqListApi(data) {
data.method = 'dj.smartcarlife.api.partnerMerchant.listYq' data.method = 'dj.smartcarlife.api.partnerMerchant.listYq'
return request(data, 'post') return request(data, 'post')
} }
// 分账-服务商-列表
export function getSeviceList(data) {
data.method = `${pathServicer}page`
return request(data, 'post')
}
// 分账-服务商-统计
export function getSeviceCount(data) {
data.method = `${pathServicer}count`
return request(data, 'post')
}
// 分账-服务商-导出
export function getSeviceExport(data) {
data.method = `${pathServicer}export`
return request(data, 'post')
}
...@@ -46,3 +46,9 @@ export function getIncomeProductList(data) { ...@@ -46,3 +46,9 @@ export function getIncomeProductList(data) {
data.method = `${path2}workbench.statistics.goods.grossProfitRadio` data.method = `${path2}workbench.statistics.goods.grossProfitRadio`
return request(data) return request(data)
} }
// 获取平台方列表
export function getPlatformMerchantList(data) {
data.method = `${path2}serviceMerchant.platformMerchant.list`
return request(data, 'post')
}
...@@ -19,6 +19,12 @@ export function addParentMerchant(data) { ...@@ -19,6 +19,12 @@ export function addParentMerchant(data) {
return request(data, 'post') return request(data, 'post')
} }
// 保存园区店服务商关联
export function saveParentMerchant(data) {
data.method = `${path}partnerMerchant.serviceRef.save`
return request(data, 'post')
}
// 删除关联服务商 // 删除关联服务商
export function deleteParentMerchant(data) { export function deleteParentMerchant(data) {
data.method = `${path}partnerMerchant.serviceRef.delete` data.method = `${path}partnerMerchant.serviceRef.delete`
......
...@@ -147,6 +147,18 @@ export const deductChargeFlagObj = { ...@@ -147,6 +147,18 @@ export const deductChargeFlagObj = {
N: '不扣除手续费' N: '不扣除手续费'
} }
// 导流方分润手续费
export const shop4sDeductChargeFlagObj = {
Y: '导流方分润扣除手续费',
N: '导流方分润不扣除手续费'
}
// 服务商分润手续费
export const partnerDeductChargeFlagObj = {
Y: '服务商分润扣除手续费',
N: '服务商分润不扣除手续费'
}
// 品牌商 // 品牌商
export const brandMerchantList = [ export const brandMerchantList = [
{ {
......
...@@ -38,4 +38,9 @@ export default { ...@@ -38,4 +38,9 @@ export default {
.table-header .grid { .table-header .grid {
margin-right: 20px; margin-right: 20px;
} }
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
</style> </style>
<!-- 服务商 - 我的分账 - 线下对账 --> <!-- 服务商 - 我的分账 - 线下对账 -->
<template> <template>
<div class="my-off-account"> <div class="my-off-account">
<div <div class="d2-container-content"
class="d2-container-content" style="padding: 10px 20px;">
style="padding: 10px 20px;" <d2-search ref="showSearch"
> class="show-search"
<d2-search :searchForm="searchForm"
ref="showSearch" :searchSelectObj="searchSelectObj"
class="show-search" :formData="showFormData">
:searchForm="searchForm"
:searchSelectObj="searchSelectObj"
:formData="showFormData"
>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button <el-button :id="tableParams.btnId"
:id="tableParams.btnId" size="small"
size="small" type="primary">查询</el-button>
type="primary" <el-button size="small"
>查询</el-button> @click="handleReset">重置</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header :leftSpan="22"> <d2-table-header :leftSpan="22">
<span slot="left">共<span class="count-txt">{{countObj.orderCount}}</span>笔订单,累计线下分账金额<span class="count-txt">{{countObj.divisionMoneyCount}}</span>元。</span> <span slot="left">共<span class="count-txt">{{countObj.orderCount}}</span>笔订单,累计线下分账金额<span
<el-button class="count-txt">{{countObj.divisionMoneyCount}}</span>元。</span>
type="primary" <el-button type="primary"
size="mini" size="mini"
@click="handleExport" @click="handleExport">导出</el-button>
>导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table <d2-table ref="merchantTable"
ref="merchantTable" :getListApi="getListApi"
:getListApi="getListApi" :searchForm="searchFormSearch"
:searchForm="searchFormSearch" :tableParams="tableParams"
:tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
:beforeSearchFn="beforeSearchFn"
>
</d2-table> </d2-table>
</div> </div>
</div> </div>
...@@ -50,7 +39,7 @@ ...@@ -50,7 +39,7 @@
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { Util } from '@/common/util' import { Util } from '@/common/util'
// import { divisionTypeList } from '@/common/constants.js' // import { divisionTypeList } from '@/common/constants.js'
import { getSeviceListApi, getSeviceCountApi, exportSeviceApi, getPartnerYqListApi } from '@/api/account' import { getSeviceListApi, getSeviceCountApi, exportSeviceApi, getPartnerYqListApi, getSeviceList, getSeviceCount, getSeviceExport } from '@/api/account'
export default { export default {
name: 'serviceOfflineList', name: 'serviceOfflineList',
data() { data() {
...@@ -101,7 +90,8 @@ export default { ...@@ -101,7 +90,8 @@ export default {
} }
}], }],
// 表格 // 表格
getListApi: getSeviceListApi, // getListApi: getSeviceListApi,
getListApi: getSeviceList,
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
...@@ -117,16 +107,18 @@ export default { ...@@ -117,16 +107,18 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return cellValue.payOrder ? cellValue.payOrder.tradeNo : '' return cellValue.payOrder ? cellValue.payOrder.tradeNo : ''
} }
}, { },
label: '子订单编号', // {
prop: 'subOrderCode' // label: '子订单编号',
}, { // prop: 'subOrderCode'
// },
{
label: '园区店名', label: '园区店名',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: '170', width: '170',
formatter: (cellValue) => { // formatter: (cellValue) => {
return cellValue.orderDivision ? cellValue.orderDivision.yqMerchantName : '' // return cellValue.orderDivision ? cellValue.orderDivision.yqMerchantName : ''
} // }
}, { }, {
label: '分账类型', label: '分账类型',
prop: 'divisionType', prop: 'divisionType',
...@@ -136,13 +128,13 @@ export default { ...@@ -136,13 +128,13 @@ export default {
} }
}, { }, {
label: '分账账户', label: '分账账户',
prop: 'merchantName', prop: 'serviceDivisionAccount',
width: '170' width: '170'
}, { }, {
label: '实际分账金额(元)', label: '实际分账金额(元)',
prop: 'divisionMoney', prop: 'serviceDivisionMoney',
formatter: cellValue => { formatter: cellValue => {
return cellValue.divisionMoney ? ('¥' + cellValue.divisionMoney) : '-' return cellValue.serviceDivisionMoney ? ('¥' + cellValue.serviceDivisionMoney) : '-'
} }
}, { }, {
label: '订单支付时间', label: '订单支付时间',
...@@ -150,19 +142,21 @@ export default { ...@@ -150,19 +142,21 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.payOrder.successDate ? Util.dateFormate(cellValue.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : '' return cellValue.payOrder.successDate ? Util.dateFormate(cellValue.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : ''
} }
}, { },
label: '商品编号', // {
prop: '', // label: '商品编号',
formatter: cellValue => { // prop: '',
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsCommodityCode : '' // formatter: cellValue => {
} // return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsCommodityCode : ''
}, { // }
label: '商品名称', // }, {
prop: '', // label: '商品名称',
formatter: cellValue => { // prop: '',
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsName : '' // formatter: cellValue => {
} // return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsName : ''
}] // }
// }
]
}, },
baseData: { baseData: {
parkServiceList: [] parkServiceList: []
...@@ -226,7 +220,8 @@ export default { ...@@ -226,7 +220,8 @@ export default {
getCount() { getCount() {
var params = this.getParams() var params = this.getParams()
getSeviceCountApi(params).then(res => { // getSeviceCountApi(params).then(res => {
getSeviceCount(params).then(res => {
this.countObj = res this.countObj = res
console.log(this.countObj) console.log(this.countObj)
}) })
...@@ -265,7 +260,8 @@ export default { ...@@ -265,7 +260,8 @@ export default {
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
exportSeviceApi(params).then(res => { // exportSeviceApi(params).then(res => {
getSeviceExport(params).then(res => {
this.$open(res) this.$open(res)
}) })
} }
......
...@@ -22,63 +22,58 @@ ...@@ -22,63 +22,58 @@
@click="handleCash" @click="handleCash"
>提现></el-button> >提现></el-button>
</div> --> </div> -->
<div <div class="d2-container-content"
class="d2-container-content" style="padding: 10px 20px;">
style="padding: 10px 20px;" <d2-search ref="showSearch"
> class="show-search"
<d2-search :searchForm="searchForm"
ref="showSearch" :searchSelectObj="searchSelectObj"
class="show-search" :formData="showFormData">
:searchForm="searchForm"
:searchSelectObj="searchSelectObj"
:formData="showFormData"
>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button <el-button :id="tableParams.btnId"
:id="tableParams.btnId" size="small"
size="small" type="primary">查询</el-button>
type="primary" <el-button size="small"
>查询</el-button> @click="handleReset">重置</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header :leftSpan="22"> <d2-table-header :leftSpan="22">
<span slot="left">共<span class="count-txt">{{countObj.orderCount}}</span>笔订单,累计分账金额<span class="count-txt">{{countObj.divisionMoneyCount}}</span>元,分账成功金额<span class="count-txt">{{countObj.divisionSuccessMoneyCount}}</span>元,分账中金额<span class="count-txt">{{countObj.inDivisionMoneyCount}}</span>元,分账失败金额<span class="count-txt">{{countObj.divisionFailureMoneyCount}}</span>元,异常分账金额<span class="count-txt">{{countObj.divisionExceptionMoneyCount}}</span>元。</span> <!-- <span slot="left">共<span class="count-txt">{{countObj.orderCount}}</span>笔订单,累计分账金额<span
<el-button class="count-txt">{{countObj.divisionMoneyCount}}</span>元,分账成功金额<span
type="primary" class="count-txt">{{countObj.divisionSuccessMoneyCount}}</span>元,分账中金额<span
size="mini" class="count-txt">{{countObj.inDivisionMoneyCount}}</span>元,分账失败金额<span
@click="handleExport" class="count-txt">{{countObj.divisionFailureMoneyCount}}</span>元,异常分账金额<span
>导出</el-button> class="count-txt">{{countObj.divisionExceptionMoneyCount}}</span>元。</span> -->
<span slot="left">共<span class="count-txt">{{countObj.orderCount}}</span>笔订单,累计线上分账成功金额<span
class="count-txt">{{countObj.divisionMoneyCount}}</span>元,分账中金额<span
class="count-txt">{{countObj.inDivisionMoneyCount}}</span>元,分账失败金额<span
class="count-txt">{{countObj.divisionFailureMoneyCount}}</span>元,待分账金额<span
class="count-txt">{{countObj.waitingDivisionMoneyCount}}</span>元。</span>
<el-button type="primary"
size="mini"
@click="handleExport">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table <d2-table ref="merchantTable"
ref="merchantTable" :getListApi="getListApi"
:getListApi="getListApi" :searchForm="searchFormSearch"
:searchForm="searchFormSearch" :tableParams="tableParams"
:tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
:beforeSearchFn="beforeSearchFn" <template slot="divisionStatus"
> slot-scope="scope">
<template
slot="divisionStatus"
slot-scope="scope"
>
<span v-if="scope.scope.orderDivision"> <span v-if="scope.scope.orderDivision">
<span :style="{ 'color': [4, 5].includes(+scope.scope.orderDivision.divisionStatus) ? 'red' : '#606266' }">{{baseData.divisionStatusList.find(item => +item.confId === scope.scope.orderDivision.divisionStatus).confLabel}}</span> <span
:style="{ 'color': [4, 5].includes(+scope.scope.orderDivision.divisionStatus) ? 'red' : '#606266' }">{{baseData.divisionStatusList.find(item => +item.confId === scope.scope.orderDivision.divisionStatus).confLabel}}</span>
</span> </span>
<span v-else>-</span> <span v-else>-</span>
</template> </template>
</d2-table> </d2-table>
</div> </div>
<cash-dialog <cash-dialog :cashForm="cashForm"
:cashForm="cashForm" :cashVisible="cashVisible"
:cashVisible="cashVisible" @handleCashConfirm="handleCashConfirm"
@handleCashConfirm="handleCashConfirm" @handleCashClose="handleCashClose"></cash-dialog>
@handleCashClose="handleCashClose"
></cash-dialog>
</div> </div>
</template> </template>
...@@ -88,7 +83,7 @@ import { Util } from '@/common/util' ...@@ -88,7 +83,7 @@ import { Util } from '@/common/util'
import cashDialog from './cashDialog' import cashDialog from './cashDialog'
import { divisionStatusList } from '@/common/constants.js' import { divisionStatusList } from '@/common/constants.js'
// import { getPartnerYqListApi } from '@api/editCustomer' // import { getPartnerYqListApi } from '@api/editCustomer'
import { getSeviceListApi, getSeviceCountApi, exportSeviceApi, getBankBalanceApi, getPartnerYqListApi } from '@/api/account' import { getSeviceListApi, getSeviceCountApi, exportSeviceApi, getBankBalanceApi, getPartnerYqListApi, getSeviceList, getSeviceCount, getSeviceExport } from '@/api/account'
export default { export default {
name: 'serviceOnlineList', name: 'serviceOnlineList',
data() { data() {
...@@ -160,7 +155,8 @@ export default { ...@@ -160,7 +155,8 @@ export default {
} }
}], }],
// 表格 // 表格
getListApi: getSeviceListApi, // getListApi: getSeviceListApi,
getListApi: getSeviceList,
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
...@@ -176,16 +172,18 @@ export default { ...@@ -176,16 +172,18 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return cellValue.payOrder ? cellValue.payOrder.tradeNo : '' return cellValue.payOrder ? cellValue.payOrder.tradeNo : ''
} }
}, { },
label: '子订单编号', // {
prop: 'subOrderCode' // label: '子订单编号',
}, { // prop: 'subOrderCode'
// },
{
label: '园区店名', label: '园区店名',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: '170', width: '170',
formatter: cellValue => { // formatter: cellValue => {
return cellValue.orderDivision ? cellValue.orderDivision.yqMerchantName : '' // return cellValue.orderDivision ? cellValue.orderDivision.yqMerchantName : ''
} // }
}, { }, {
label: '分账类型', label: '分账类型',
prop: 'divisionType', prop: 'divisionType',
...@@ -195,13 +193,13 @@ export default { ...@@ -195,13 +193,13 @@ export default {
} }
}, { }, {
label: '分账账户', label: '分账账户',
prop: 'merchantName', prop: 'serviceDivisionAccount',
width: '170' width: '170'
}, { }, {
label: '实际分账金额(元)', label: '实际分账金额(元)',
prop: 'divisionMoney', prop: 'serviceDivisionMoney',
formatter: cellValue => { formatter: cellValue => {
return cellValue.divisionMoney ? ('¥' + cellValue.divisionMoney) : '-' return cellValue.serviceDivisionMoney ? ('¥' + cellValue.serviceDivisionMoney) : '-'
} }
}, { }, {
label: '分账状态', label: '分账状态',
...@@ -220,19 +218,21 @@ export default { ...@@ -220,19 +218,21 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.payOrder.successDate ? Util.dateFormate(cellValue.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : '' return cellValue.payOrder.successDate ? Util.dateFormate(cellValue.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : ''
} }
}, { },
label: '商品编号', // {
prop: '', // label: '商品编号',
formatter: cellValue => { // prop: '',
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsCommodityCode : '' // formatter: cellValue => {
} // return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsCommodityCode : ''
}, { // }
label: '商品名称', // }, {
prop: '', // label: '商品名称',
formatter: cellValue => { // prop: '',
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsName : '' // formatter: cellValue => {
} // return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.upgradeGoodsName : ''
}] // }
// }
]
}, },
// 提现弹窗 // 提现弹窗
cashVisible: false, cashVisible: false,
...@@ -316,7 +316,8 @@ export default { ...@@ -316,7 +316,8 @@ export default {
getCount() { getCount() {
var params = this.getParams() var params = this.getParams()
getSeviceCountApi(params).then(res => { // getSeviceCountApi(params).then(res => {
getSeviceCount(params).then(res => {
this.countObj = res this.countObj = res
}) })
}, },
...@@ -379,7 +380,8 @@ export default { ...@@ -379,7 +380,8 @@ export default {
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
exportSeviceApi(params).then(res => { // exportSeviceApi(params).then(res => {
getSeviceExport(params).then(res => {
this.$open(res) this.$open(res)
}) })
} }
......
...@@ -3,18 +3,12 @@ ...@@ -3,18 +3,12 @@
<d2-container class="finnance_detail"> <d2-container class="finnance_detail">
<div class="finnance_table_wrap d2-container-content"> <div class="finnance_table_wrap d2-container-content">
<p class="finnance_title">对账详情</p> <p class="finnance_title">对账详情</p>
<table <table v-if="isSubOrder"
v-if="isSubOrder" class="finnance_table">
class="finnance_table"
>
<tr> <tr>
<td <td rowspan="3"
rowspan="3" class="product_td"><img class="product_img"
class="product_td" :src="detail.goodsThumbUrl" /></td>
><img
class="product_img"
:src="detail.goodsThumbUrl"
/></td>
<td class="lb">商品名称</td> <td class="lb">商品名称</td>
<td colspan="3">{{detail.goodsName}}</td> <td colspan="3">{{detail.goodsName}}</td>
<td class="lb">品牌商</td> <td class="lb">品牌商</td>
...@@ -25,10 +19,8 @@ ...@@ -25,10 +19,8 @@
<td>{{detail.goodsTypeName}}</td> <td>{{detail.goodsTypeName}}</td>
<td class="lb">数量</td> <td class="lb">数量</td>
<td>{{detail.nums}}件</td> <td>{{detail.nums}}件</td>
<td <td rowspan="2"
rowspan="2" class="lb">支付金额</td>
class="lb"
>支付金额</td>
<td rowspan="2">{{detail.paidMoney}}</td> <td rowspan="2">{{detail.paidMoney}}</td>
</tr> </tr>
<tr> <tr>
...@@ -41,10 +33,8 @@ ...@@ -41,10 +33,8 @@
<table class="finnance_table"> <table class="finnance_table">
<!-- 订单信息 --> <!-- 订单信息 -->
<tr> <tr>
<td <td colspan="7"
colspan="7" class="finnance_table_title">订单信息</td>
class="finnance_table_title"
>订单信息</td>
</tr> </tr>
<tr> <tr>
<td class="lb">订单编号</td> <td class="lb">订单编号</td>
...@@ -73,20 +63,16 @@ ...@@ -73,20 +63,16 @@
</table> </table>
<table class="finnance_table"> <table class="finnance_table">
<tr> <tr>
<td <td colspan="7"
colspan="7" class="finnance_table_title">客户信息</td>
class="finnance_table_title"
>客户信息</td>
</tr> </tr>
<tr> <tr>
<td class="lb">客户姓名</td> <td class="lb">客户姓名</td>
<td>{{detail.customerName}}</td> <td>{{detail.customerName}}</td>
<td class="lb">性别</td> <td class="lb">性别</td>
<td>{{customerSexOpts[detail.customerSex]}}</td> <td>{{customerSexOpts[detail.customerSex]}}</td>
<td <td rowspan="4"
rowspan="4" class="lb_total">归属信息</td>
class="lb_total"
>归属信息</td>
<td class="lb">园区店</td> <td class="lb">园区店</td>
<td>{{detail.sellerMerchantName}}</td> <td>{{detail.sellerMerchantName}}</td>
</tr> </tr>
...@@ -111,37 +97,38 @@ ...@@ -111,37 +97,38 @@
</table> </table>
<table class="finnance_table"> <table class="finnance_table">
<tr> <tr>
<td <td colspan="7"
colspan="7" class="finnance_table_title">订单分账详情
class="finnance_table_title" <div v-show="detail.shopProfitType"
>订单分账详情 style="float:right; font-size:14px;">
<div 分账规则:此笔订单按<strong>{{shopProfitTypeOpts[detail.shopProfitType]}}</strong>分成方法计算。</div>
v-show="detail.shopProfitType"
style="float:right; font-size:14px;"
>分账规则:此笔订单按<strong>{{shopProfitTypeOpts[detail.shopProfitType]}}</strong>分成方法计算。</div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3">分润计算<span class="blue">(仅针对POS机收款订单)</span></td> <td colspan="3">分润计算<span class="blue">(仅针对POS机收款订单)</span></td>
<td colspan="4">{{deductChargeFlagObj[detail.deductChargeFlag]}}</td> <td colspan="4">
{{shop4sDeductChargeFlagObj[detail.shop4sDeductChargeFlag]}};{{partnerDeductChargeFlagObj[detail.partnerDeductChargeFlag]}}
</td>
</tr> </tr>
<tr> <tr>
<td <td rowspan="2"
rowspan="2" class="lb_total">收账明细</td>
class="lb_total"
>收账明细</td>
<td class="lb">支付金额</td> <td class="lb">支付金额</td>
<td :colspan="userInfo.beSuper ? (!isSubOrder ? 1 : 6) : ((detail.deductChargeFlag === 'Y') ? 1 : 6)">{{detail.paidMoney}}</td>
<td <td
v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y')))" :colspan="userInfo.beSuper ? (!isSubOrder ? 1 : 6) : ((detail.deductChargeFlag === 'Y') ? 1 : 6)">
class="lb" {{detail.paidMoney}}</td>
>{{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y'))) ? '入账手续费' : '' }}</td> <td v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y')))"
<td v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y')))">{{((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y'))) ? (detail.serviceCharge === '¥0' ? '-' : detail.serviceCharge) : ''}}</td> class="lb">
{{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y'))) ? '入账手续费' : '' }}
</td>
<td <td
v-show="(userInfo.beSuper && !isSubOrder)" v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y')))">
class="lb" {{((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.deductChargeFlag === 'Y'))) ? (detail.serviceCharge === '¥0' ? '-' : detail.serviceCharge) : ''}}
>{{ (userInfo.beSuper && !isSubOrder) ? '实收金额' : ''}}</td> </td>
<td v-show="(userInfo.beSuper && !isSubOrder)">{{(userInfo.beSuper && !isSubOrder) ? detail.userActualIncomeMoney : ''}}</td> <td v-show="(userInfo.beSuper && !isSubOrder)"
class="lb">{{ (userInfo.beSuper && !isSubOrder) ? '实收金额' : ''}}</td>
<td v-show="(userInfo.beSuper && !isSubOrder)">
{{(userInfo.beSuper && !isSubOrder) ? detail.userActualIncomeMoney : ''}}</td>
</tr> </tr>
<tr> <tr>
<td class="lb">商品成本</td> <td class="lb">商品成本</td>
...@@ -152,10 +139,8 @@ ...@@ -152,10 +139,8 @@
</table> </table>
<table class="finnance_table"> <table class="finnance_table">
<tr> <tr>
<td <td class="lb_total"
class="lb_total" :rowspan="isSubOrder ? '5' : '8'">分账明细</td>
rowspan="5"
>分账明细</td>
<td class="lb_respond">分账主体</td> <td class="lb_respond">分账主体</td>
<td class="lb_respond">商户编号</td> <td class="lb_respond">商户编号</td>
<td class="lb_respond">分账比例</td> <td class="lb_respond">分账比例</td>
...@@ -179,11 +164,44 @@ ...@@ -179,11 +164,44 @@
<td class="grey blue">{{detail.glProfitPer ? (detail.glProfitPer + '%') : '-'}}</td> <td class="grey blue">{{detail.glProfitPer ? (detail.glProfitPer + '%') : '-'}}</td>
<td class="grey blue">{{detail.glProfitMoney}}</td> <td class="grey blue">{{detail.glProfitMoney}}</td>
</tr> </tr>
<tr> <tr v-show="isSubOrder">
<td class="grey p-l-45">服务商:{{detail.franchiseeMerchantName}}</td> <td class="grey p-l-45">服务商:{{detail.franchiseeMerchantName}}</td>
<td class="grey">{{detail.franchiseeMerchantId}}</td> <td class="grey">{{detail.franchiseeMerchantId}}</td>
<td class="grey blue">{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td> <td class="grey blue">
<td class="grey blue">{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td> {{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<tr v-show="!isSubOrder">
<td class="grey p-l-45">服务商总分润</td>
<td class="grey">-</td>
<td class="grey blue">-</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<tr v-show="!isSubOrder">
<td class="grey p-l-55">安装费-服务商:{{detail.franchiseeMerchantName}}</td>
<td class="grey">{{detail.franchiseeMerchantId}}</td>
<td class="grey blue">
{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<tr v-show="!isSubOrder">
<td class="grey p-l-55">营销费-服务商:{{detail.franchiseeMerchantName}}</td>
<td class="grey">{{detail.franchiseeMerchantId}}</td>
<td class="grey blue">
{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<tr v-show="!isSubOrder">
<td class="grey p-l-55">奖惩费-服务商:{{detail.franchiseeMerchantName}}</td>
<td class="grey">{{detail.franchiseeMerchantId}}</td>
<td class="grey blue">
{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr> </tr>
<!-- <tr> <!-- <tr>
<td class="lb" colspan="4">分账总计</td> <td class="lb" colspan="4">分账总计</td>
...@@ -191,10 +209,8 @@ ...@@ -191,10 +209,8 @@
</tr> --> </tr> -->
</table> </table>
<p style="text-align:left;"> <p style="text-align:left;">
<el-button <el-button type="primary"
type="primary" @click="handleClose">返回</el-button>
@click="handleClose"
>返回</el-button>
</p> </p>
</div> </div>
...@@ -203,7 +219,7 @@ ...@@ -203,7 +219,7 @@
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { deductChargeFlagObj } from '@/common/constants' import { shop4sDeductChargeFlagObj, partnerDeductChargeFlagObj } from '@/common/constants'
export default { export default {
name: 'financeDetail', name: 'financeDetail',
data() { data() {
...@@ -232,7 +248,9 @@ export default { ...@@ -232,7 +248,9 @@ export default {
'1': '毛利', '1': '毛利',
'2': '收入' '2': '收入'
}, },
deductChargeFlagObj: deductChargeFlagObj // deductChargeFlagObj: deductChargeFlagObj
shop4sDeductChargeFlagObj: shop4sDeductChargeFlagObj,
partnerDeductChargeFlagObj: partnerDeductChargeFlagObj
} }
}, },
...@@ -295,6 +313,9 @@ export default { ...@@ -295,6 +313,9 @@ export default {
&.p-l-45 { &.p-l-45 {
padding-left: 45px; padding-left: 45px;
} }
&.p-l-55 {
padding-left: 55px;
}
&.grey { &.grey {
background-color: #fafafa; background-color: #fafafa;
} }
......
...@@ -12,16 +12,13 @@ ...@@ -12,16 +12,13 @@
<el-button size="mini" <el-button size="mini"
@click="hideVisible = !hideVisible" @click="hideVisible = !hideVisible"
style="float:right;" style="float:right;"
:icon="{ :icon="hideVisible?'el-icon-arrow-up':'el-icon-arrow-down'">
'el-icon-arrow-down': !hideVisible,
'el-icon-arrow-up': hideVisible
}">
</el-button> </el-button>
</div> </div>
<div v-show="hideVisible" <div v-show="hideVisible"
style="padding:20px;"> style="padding:20px;">
<el-row> <el-row>
<el-col span="14" <el-col :span="14"
style="border-right: 1px solid #E7EAEC; "> style="border-right: 1px solid #E7EAEC; ">
<div class="picker-placeholder"> <div class="picker-placeholder">
<el-date-picker v-model="summaryDate" <el-date-picker v-model="summaryDate"
...@@ -93,7 +90,7 @@ ...@@ -93,7 +90,7 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col span="10"> <el-col :span="10">
<h4 class="funnel_title">转化漏斗模型:</h4> <h4 class="funnel_title">转化漏斗模型:</h4>
<div class="funnel_wrap"> <div class="funnel_wrap">
<div class="funnel_info"> <div class="funnel_info">
...@@ -126,7 +123,7 @@ ...@@ -126,7 +123,7 @@
</d2-search> </d2-search>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header leftSpan="23"> <d2-table-header :leftSpan="23">
<span class="table-header-left" <span class="table-header-left"
slot="left"> slot="left">
<p> <p>
...@@ -246,6 +243,7 @@ ...@@ -246,6 +243,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="serviceCharge" <el-table-column prop="serviceCharge"
label="入账手续费" label="入账手续费"
width="100"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
...@@ -272,6 +270,7 @@ ...@@ -272,6 +270,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="distributeMoney" <el-table-column prop="distributeMoney"
label="总分账金额" label="总分账金额"
width="100"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
...@@ -283,15 +282,16 @@ ...@@ -283,15 +282,16 @@
</el-table-column> </el-table-column>
<!-- </el-table-column> --> <!-- </el-table-column> -->
</el-table-column> </el-table-column>
<el-table-column label="4S店分账" <el-table-column label="流量方"
align="center"> align="center">
<el-table-column prop="shopMerchantName" <el-table-column prop="shopMerchantName"
label="分账对象" label="流量方"
width="170" width="170"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column prop="shopProfitType" <el-table-column prop="shopProfitType"
label="分账规则" label="流量方比例"
width="100"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType] <span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType]
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="shopProfitMoney" <el-table-column prop="shopProfitMoney"
label="分账金额" label="流量费"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column prop="yqProfitMoney" <el-table-column prop="yqProfitMoney"
label="园区店分账金额" label="园区店总金额"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
...@@ -327,10 +327,10 @@ ...@@ -327,10 +327,10 @@
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="extraCost" <!-- <el-table-column prop="extraCost"
label="额外成本" label="额外成本"
align="center"> align="center">
</el-table-column> </el-table-column> -->
<el-table-column prop="yqGrossProfit" <el-table-column prop="yqGrossProfit"
label="园区店毛利收益" label="园区店毛利收益"
align="center"> align="center">
...@@ -369,9 +369,108 @@ ...@@ -369,9 +369,108 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<!-- <el-table-column label="服务商"
align="center"
v-show="userInfo.beSuper">
<el-table-column prop="franchiseeProfitPer"
label="服务商比例"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.franchiseeProfitPer
? scope.row.franchiseeProfitPer + '%'
: '-'
}}</span>
</template>
</el-table-column>
<el-table-column prop="franchiseeProfitMoney"
label="服务商总金额"
width="110"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.franchiseeProfitMoney === '¥0'
? '-'
: scope.row.franchiseeProfitMoney
}}</span>
</template>
</el-table-column>
<el-table-column prop="franchiseeMerchantName"
label="服务商对象1"
width="100"
align="center">
</el-table-column>
<el-table-column prop="installCost"
label="安装费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.installCost === '¥0'
? '-'
: scope.row.installCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="installCostMerchantName"
label="服务商对象2"
width="100"
align="center">
</el-table-column>
<el-table-column prop="marketingCost"
label="营销费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.marketingCost === '¥0'
? '-'
: scope.row.marketingCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="rewardAndPenaltyCost"
label="奖惩费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.rewardAndPenaltyCost === '¥0'
? '-'
: scope.row.rewardAndPenaltyCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="marketingCostMerchantName"
label="服务商对象3"
width="100"
align="center">
</el-table-column>
</el-table-column> -->
<!-- <el-table-column label="平台方"
align="center">
<el-table-column prop="glProfitMoney"
label="平台方金额"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="platformMerchantName"
label="平台方对象"
width="100"
align="center">
<template slot-scope="scope">
<span>{{scope.row.platformMerchantName ? scope.row.platformMerchantName : '嘀加智慧云'}}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column v-show="userInfo.beSuper" <el-table-column v-show="userInfo.beSuper"
label="嘀加智慧云" label="嘀加智慧云"
align="center" align="center"
width="100"
prop="glProfitMoney"> prop="glProfitMoney">
</el-table-column> </el-table-column>
<el-table-column label="订单类型" <el-table-column label="订单类型"
...@@ -413,7 +512,7 @@ ...@@ -413,7 +512,7 @@
import moment from 'moment' import moment from 'moment'
import * as api from '@api/finance' import * as api from '@api/finance'
// import { getSummary, exportFile, getListTotal } from '@api/finance' // import { getSummary, exportFile, getListTotal } from '@api/finance'
import { getTransferData } from '@api/index' import { getTransferData, getPlatformMerchantList } from '@api/index'
import funnelOption from '../index/funnelOption' import funnelOption from '../index/funnelOption'
import { getServiceStore, getParkStore } from '@api/editCustomer' import { getServiceStore, getParkStore } from '@api/editCustomer'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
...@@ -443,7 +542,8 @@ export default { ...@@ -443,7 +542,8 @@ export default {
yqMerchantId: '', yqMerchantId: '',
merchantId: '', merchantId: '',
orderCode: '', orderCode: '',
divisionType: '' divisionType: '',
realityPlatformMerchantId: ''
}, },
searchSelectObj: { searchSelectObj: {
orderOrTrade: { orderOrTrade: {
...@@ -543,15 +643,23 @@ export default { ...@@ -543,15 +643,23 @@ export default {
handleSelectChange: value => { handleSelectChange: value => {
this.searchSelectObj.orderOrTrade.value = '' this.searchSelectObj.orderOrTrade.value = ''
} }
} }, {
], label: '平台方',
name: 'realityPlatformMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'PlatformMerchantList'
}],
tableData: [], tableData: [],
baseData: { baseData: {
parkServiceList: [], parkServiceList: [],
storeIdList: [], storeIdList: [],
divisionTypeList: _.cloneDeep(divisionTypeList), divisionTypeList: _.cloneDeep(divisionTypeList),
orderTypeList: _.cloneDeep(orderTypeList) orderTypeList: _.cloneDeep(orderTypeList),
PlatformMerchantList: []
}, },
total: 0, total: 0,
page: { page: {
...@@ -627,7 +735,8 @@ export default { ...@@ -627,7 +735,8 @@ export default {
yqMerchantId: '', yqMerchantId: '',
merchantId: '', merchantId: '',
orderCode: '', orderCode: '',
divisionType: '' divisionType: '',
realityPlatformMerchantId: ''
} }
this.searchSelectObj = { this.searchSelectObj = {
orderOrTrade: { orderOrTrade: {
......
...@@ -195,9 +195,63 @@ ...@@ -195,9 +195,63 @@
</el-table-column> </el-table-column>
<!-- </el-table-column> --> <!-- </el-table-column> -->
</el-table-column> </el-table-column>
<el-table-column prop="yqGrossProfit" <el-table-column label="流量方"
align="center">
<el-table-column prop="shopMerchantName"
label="流量方"
width="170"
align="center">
</el-table-column>
<el-table-column prop="shopProfitType"
label="流量方比例"
width="100"
align="center">
<template slot-scope="scope">
<span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType]
}}{{ scope.row.shopProfitPer }}%</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column prop="shopProfitMoney"
label="流量费"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.shopProfitMoney === '¥0'
? '-'
: scope.row.shopProfitMoney
}}</span>
</template>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="yqGrossProfit"
label="园区店毛利收益" label="园区店毛利收益"
align="center"> align="center">
</el-table-column> -->
<el-table-column label="园区店"
align="center">
<el-table-column prop="yqMerchantName"
label="园区店名称"
width="170"
align="center">
</el-table-column>
<el-table-column prop="yqProfitMoney"
label="园区店总金额"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.yqProfitMoney === '¥0' ? '-' : scope.row.yqProfitMoney
}}</span>
</template>
</el-table-column>
<!-- <el-table-column prop="extraCost"
label="额外成本"
align="center">
</el-table-column> -->
<el-table-column prop="yqGrossProfit"
label="园区店毛利收益"
align="center">
</el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="服务商分账" <el-table-column label="服务商分账"
align="center"> align="center">
...@@ -228,6 +282,120 @@ ...@@ -228,6 +282,120 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<!-- <el-table-column label="服务商"
align="center"
v-show="userInfo.beSuper">
<el-table-column prop="franchiseeProfitPer"
label="服务商比例"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.franchiseeProfitPer
? scope.row.franchiseeProfitPer + '%'
: '-'
}}</span>
</template>
</el-table-column>
<el-table-column prop="franchiseeProfitMoney"
label="服务商总金额"
width="110"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.franchiseeProfitMoney === '¥0'
? '-'
: scope.row.franchiseeProfitMoney
}}</span>
</template>
</el-table-column>
<el-table-column prop="franchiseeMerchantName"
label="服务商对象1"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="installCost"
label="安装费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.installCost === '¥0'
? '-'
: scope.row.installCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="installCostMerchantName"
label="服务商对象2"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="marketingCost"
label="营销费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.marketingCost === '¥0'
? '-'
: scope.row.marketingCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="rewardAndPenaltyCost"
label="奖惩费金额"
width="100"
align="center">
<template slot-scope="scope">
<span>{{
scope.row.rewardAndPenaltyCost === '¥0'
? '-'
: scope.row.rewardAndPenaltyCost
}}</span>
</template>
</el-table-column>
<el-table-column prop="marketingCostMerchantName"
label="服务商对象3"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="divisionType"
label="分账类型"
align="center">
<template slot-scope="scope">
<span>{{scope.row.divisionType ? baseData.divisionTypeList.find(item => +item.confId === scope.row.divisionType).confLabel : '-'}}</span>
</template>
</el-table-column>
</el-table-column> -->
<!-- <el-table-column label="平台方"
align="center">
<el-table-column prop="glProfitMoney"
label="平台方金额"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="platformMerchantName"
label="平台方对象"
width="100"
align="center">
<template slot-scope="scope">
<span>scope.row.platformMerchantName ? scope.row.platformMerchantName : '嘀加智慧云'</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column prop="yqMerchantName" <el-table-column prop="yqMerchantName"
label="园区店名称" label="园区店名称"
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
name: 'merchantName', name: 'merchantName',
type: 'input', type: 'input',
isClear: true, isClear: true,
placeholder: '请输入4S店/服务商名称', placeholder: '请输入4S店/服务商/子公司名称',
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, { }, {
label: '账户状态', label: '账户状态',
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
inputType: 'number', inputType: 'number',
maxlength: '9', maxlength: '9',
isClear: true, isClear: true,
placeholder: '请输入4S店/服务商商务号', placeholder: '请输入4S店/服务商/子公司商户号',
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}], }],
// 表格 // 表格
......
...@@ -59,7 +59,10 @@ ...@@ -59,7 +59,10 @@
<el-form-item label="选择关联的服务商:" <el-form-item label="选择关联的服务商:"
prop="merchantId"> prop="merchantId">
<el-select v-model="relateForm.merchantId" <el-select v-model="relateForm.merchantId"
filterable> multiple
:multiple-limit="5"
filterable
style="width:400px">
<el-option v-for="item in baseData.serviceList.filter(i => i.merchantName !== '全部')" <el-option v-for="item in baseData.serviceList.filter(i => i.merchantName !== '全部')"
:key="item.merchantId" :key="item.merchantId"
:value="item.merchantId" :value="item.merchantId"
...@@ -100,7 +103,7 @@ ...@@ -100,7 +103,7 @@
<script> <script>
import { Util } from '@/common/util' import { Util } from '@/common/util'
import { getList, getMerchantList, addParentMerchant, deleteParentMerchant } from '@api/serviceManage' import { getList, getMerchantList, addParentMerchant, deleteParentMerchant, saveParentMerchant } from '@api/serviceManage'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { BaseData } from '@/common/constants.js' import { BaseData } from '@/common/constants.js'
import { sendSms, getAdminInfo } from '@api/merchant' import { sendSms, getAdminInfo } from '@api/merchant'
...@@ -146,18 +149,51 @@ export default { ...@@ -146,18 +149,51 @@ export default {
}, { }, {
label: '登录账户', label: '登录账户',
prop: 'accountName', prop: 'accountName',
width: '160', width: '200',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : '' // return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
list.push(item.accountName)
})
html = list.join('/')
}
return html
} }
}, { }, {
label: '关联服务商名称', label: '关联服务商名称',
prop: 'merchantName', prop: 'merchantName',
width: '200' width: '200',
formatter: (cellValue) => {
// return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
list.push(item.merchantName)
})
html = list.join('/')
}
return html
}
}, { }, {
label: '关联服务商号', label: '关联服务商号',
prop: 'merchantId', prop: 'merchantId',
width: '120' width: '200',
formatter: (cellValue) => {
// return cellValue.yqMerchant ? cellValue.yqMerchant.accountName : ''
var html = ''
var list = []
if (cellValue.merchants && cellValue.merchants.length > 0) {
cellValue.merchants.map(item => {
list.push(item.merchantId)
})
html = list.join('/')
}
return html
}
}, { }, {
label: '最近更新时间', label: '最近更新时间',
prop: 'updatedDate', prop: 'updatedDate',
...@@ -231,7 +267,7 @@ export default { ...@@ -231,7 +267,7 @@ export default {
}, },
handleRelateClose() { handleRelateClose() {
this.relateVisible = !this.relateVisible this.relateVisible = !this.relateVisible
this.relateForm = {} this.relateForm = { merchantId: [] }
this.$refs.relateDialog && this.$refs.relateDialog.resetFields() this.$refs.relateDialog && this.$refs.relateDialog.resetFields()
if (this.relateVisible) { if (this.relateVisible) {
// 园区店 // 园区店
...@@ -261,15 +297,32 @@ export default { ...@@ -261,15 +297,32 @@ export default {
handleRelateConfirm() { handleRelateConfirm() {
this.$refs.relateDialog.validate(valid => { this.$refs.relateDialog.validate(valid => {
if (valid) { if (valid) {
var serviceItem = this.baseData.serviceList.find(item => item.merchantId === this.relateForm.merchantId) // var serviceItem = this.baseData.serviceList.find(item => item.merchantId === this.relateForm.merchantId)
let serviceItemList = []
this.baseData.serviceList.map(item => {
// item.merchantId === this.relateForm.merchantId
this.relateForm.merchantId.map((ele) => {
if (ele == item.merchantId) {
serviceItemList.push(item)
}
})
})
console.log(serviceItemList);
var params = { var params = {
...this.relateForm, ...this.relateForm,
yqMerchantName: this.baseData.yqList.find(item => item.merchantId === this.relateForm.yqMerchantId).merchantName, yqMerchantName: this.baseData.yqList.find(item => item.merchantId === this.relateForm.yqMerchantId).merchantName,
...serviceItem // ...serviceItem
// merchant: serviceItem list: serviceItemList
} }
// console.log(params) console.log(params)
addParentMerchant({ data: params }).then(res => { // addParentMerchant({ data: params }).then(res => {
// this.notice.okTips()
// this.handleRelateClose()
// this.keyDowmGetList()
// })
saveParentMerchant(params).then(res => {
this.notice.okTips() this.notice.okTips()
this.handleRelateClose() this.handleRelateClose()
this.keyDowmGetList() this.keyDowmGetList()
...@@ -332,4 +385,30 @@ export default { ...@@ -332,4 +385,30 @@ export default {
.delete-dialog .delete-title { .delete-dialog .delete-title {
font-size: 16px; font-size: 16px;
} }
/*下拉选择框-多选-内容过长-用...代替 begin */
.el-tag.el-tag--info {
background-color: #f4f4f5;
border-color: #e9e9eb;
color: #909399;
max-width: calc(100% - 50px);
/* white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;*/
}
.el-tag.el-tag--info {
width: calc(100% - 200px);
}
.el-tag.el-tag--info .el-select__tags-text {
width: calc(100% - 20px);
float: left;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
/*下拉选择框-多选-内容过长-用...代替 end */
.el-select-dropdown__item {
width: 395px !important;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!