Commit 257e7b71 by wangql

4.7.1版本代码提交

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