Commit 2fc4a491 by 前端

Merge branch 'SAAS+V4.38.6' into 'master'

上线合并SAAS+V4.38.7

See merge request !7
2 parents 4237547a 96edbe17
......@@ -31,6 +31,19 @@ const getyqMerchantList = params => {
const getServiceStore = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path2}servicemerchantref.list`
// params.routerMethod = `${path2}scenemerchantref.query4SRefByYqShop`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
/** 获取园区店列表 - 新改流量来源 */
const query4SRefByYqShop = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// params.routerMethod = `${path2}servicemerchantref.list`
params.routerMethod = `${path2}scenemerchantref.query4SRefByYqShop`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
......@@ -51,4 +64,4 @@ const getChannelType = params => {
})
}
export default { getParkStore, getServiceStore, getChannelType, getyqMerchantList }
export default { getParkStore, getServiceStore, getChannelType, getyqMerchantList, query4SRefByYqShop }
......@@ -6,18 +6,8 @@
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" :search-select-obj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset(activeName)"></GLCombiForm>
<div class="table-header">
<span class="priceSpan">
<p>
合计: 收款:{{ totalObj.totalPrice }} 元, 毛利收益:{{
totalObj.totalYqGrossProfit
}}元
</p>
<p>
累计分账金额:导流方{{ totalObj.totalShopProfitMoney }} 元,
服务对接:{{ totalObj.totalYqProfitMoney }}元,平台方{{
totalObj.totalGlProfitMoney
}}
元,服务商{{ totalObj.totalFranchiseeProfitMoney }} 元
</p>
<p>合计: 收款:{{ totalObj.totalPrice }} 元, 毛利收益:{{ totalObj.totalYqGrossProfit }}元</p>
<p>累计分账金额:导流方{{ totalObj.totalShopProfitMoney }} 元, 服务对接:{{ totalObj.totalYqProfitMoney }}元,平台方{{ totalObj.totalGlProfitMoney }} 元,服务商{{ totalObj.totalFranchiseeProfitMoney }} 元</p>
</span>
<el-button type="primary" class="btn" size="small" @click="exportExcel">导出</el-button>
</div>
......@@ -66,44 +56,33 @@
</template>
</el-table-column>
<el-table-column prop="paidMoney" label="支付金额" minWidth="90" align="center" />
<el-table-column prop="serviceCharge" label="入账手续费" minWidth="110" align="center">
</el-table-column>
<el-table-column prop="serviceCharge" label="入账手续费" minWidth="110" align="center"></el-table-column>
<el-table-column prop="userActualIncomeMoney " label="实收金额" minWidth="90" align="center">
<template slot-scope="scope">
<span>{{
scope.row.hasOwnProperty('subOrderProfitAllocations')
? scope.row.userActualIncomeMoney
: '-'
}}</span>
<span>{{ scope.row.hasOwnProperty('subOrderProfitAllocations') ? scope.row.userActualIncomeMoney : '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="distributeMoney" label="总分账金额" minWidth="110" align="center">
<template slot-scope="scope">
<span>{{
scope.row.distributeMoney === '¥0'
? '-'
: scope.row.distributeMoney
}}</span>
<span>{{ scope.row.distributeMoney === '¥0' ? '-' : scope.row.distributeMoney }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="
4S店分账" align="center">
<el-table-column
label="
4S店分账"
align="center"
>
<el-table-column prop="shopMerchantName" label="流量方" width="170" align="center" />
<el-table-column prop="shopProfitType" label="流量方比例" width="120" align="center" v-if="shopProfitType_visible">
<template slot-scope="scope">
<span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType]
}}{{ scope.row.shopProfitPer }}%</span>
<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>
<span>{{ scope.row.shopProfitMoney === '¥0' ? '-' : scope.row.shopProfitMoney }}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -234,24 +213,16 @@
</el-table-column> -->
</el-table-column>
<el-table-column label="订单类型" align="center" minWidth="90" prop="orderType">
<span slot-scope="scope">{{
scope.row.orderType
? baseData.orderTypeList.find(
item => +item.confId === scope.row.orderType
).confLabel
: ''
}}</span>
<span slot-scope="scope">{{ scope.row.orderType ? baseData.orderTypeList.find(item => +item.confId === scope.row.orderType).confLabel : '' }}</span>
</el-table-column>
<el-table-column align="center" label="操作" width="120" fixed="right">
<template slot-scope="scope">
<el-button type="text" size="mini" style="margin-right: 10px;" @click="handleDetail(scope.row)">
查看明细
</el-button>
<el-button type="text" size="mini" style="margin-right: 10px" @click="handleDetail(scope.row)">查看明细</el-button>
<auth-button :data="scope" />
</template>
</el-table-column>
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.currentPage" :page-sizes="[10,20,30,40]" :page-size="page.pageSize" :total="total" layout="sizes,total,->,prev,pager,next,jumper" />
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="total" layout="sizes,total,->,prev,pager,next,jumper" />
<!-- 表格区域 end -->
</div>
</div>
......@@ -269,23 +240,23 @@ export default {
},
data() {
return {
activeName: "1",
activeName: '1',
tabPaneList: [
{
label: "精品升级",
name: "1"
label: '精品升级',
name: '1'
},
{
label: "次新车转化",
name: "2"
label: '次新车转化',
name: '2'
},
{
label: "售后众筹",
name: "3"
label: '售后众筹',
name: '3'
},
{
label: "车损升级",
name: "0"
label: '车损升级',
name: '0'
}
],
sessionInfo: this.$globalState.session,
......@@ -297,7 +268,7 @@ export default {
yqMerchantId: '',
merchantId: '',
orderCode: '',
divisionType: '',
divisionType: ''
},
searchSelectObj: {
orderOrTrade: {
......@@ -323,13 +294,12 @@ export default {
optionLabel: 'merchantName',
optionsName: 'parkServiceList',
changeAttr: (value, targetItem) => {
value
? this.getServiceStore(value)
: (this.baseData.storeIdList = [])
value ? this.getServiceStore(value) : (this.baseData.storeIdList = [])
this.searchForm.merchantId = ''
this.getOptionsList()
}
}, {
},
{
label: '流量来源',
name: 'merchantId',
type: 'select',
......@@ -338,13 +308,15 @@ export default {
optionId: 'merchantId',
optionLabel: 'merchantName',
optionsName: 'storeIdList'
}, {
},
{
label: '商户名称',
name: 'merchantNameKeyWord',
type: 'input',
placeholder: '请输入服务商/服务对接/导流方名称',
isClear: true
}, {
},
{
label: '分账方式',
name: 'divisionType',
type: 'select',
......@@ -352,7 +324,8 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'divisionTypeList'
}, {
},
{
label: '支付方式',
name: 'payType',
type: 'select',
......@@ -360,7 +333,8 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'payTypeList'
}, {
},
{
label: '订单类型',
name: 'orderType',
type: 'select',
......@@ -368,18 +342,22 @@ export default {
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'orderTypeList'
}, {
},
{
type: 'selectInput',
selectName: 'orderOrTrade',
isClear: true,
selectOption: [{
label: '主订单编号',
name: 'orderCode'
}, {
label: '交易参考号',
name: 'tradeNo'
}],
handleSelectChange: (value) => {
selectOption: [
{
label: '主订单编号',
name: 'orderCode'
},
{
label: '交易参考号',
name: 'tradeNo'
}
],
handleSelectChange: value => {
this.searchSelectObj.orderOrTrade.value = ''
}
}
......@@ -395,7 +373,7 @@ export default {
divisionTypeList: Util.deepClone(divisionTypeList),
orderTypeList: Util.deepClone(orderTypeList),
payTypeList: Util.deepClone(payTypeList),
manageTypeList: Util.deepClone(manageTypeList),
manageTypeList: Util.deepClone(manageTypeList)
},
page: {
pageSize: 10,
......@@ -423,11 +401,9 @@ export default {
this.getBaseData()
this.handleSearch()
},
computed: {
},
computed: {},
watch: {
'activeName': {
activeName: {
handler(val) {
if (val == 0) {
/** 1.0场景(暂无业务支撑)
......@@ -474,12 +450,16 @@ export default {
this.getOptionsList()
},
getServiceStore(merchantId) {
this.$apis.public.getServiceStore({
yqMerchantId: merchantId
}).then(res => {
this.baseData.storeIdList = res || []
this.getOptionsList()
})
this.$apis.public
.query4SRefByYqShop({
yqMerchantIds: merchantId,
// yqMerchantId: merchantId,
scene: this.activeName
})
.then(res => {
this.baseData.storeIdList = res || []
this.getOptionsList()
})
},
getOptionsList(formName = 'showFormData', hasAll = true, refreshSigle) {
......@@ -596,10 +576,7 @@ export default {
this.tableData = res.list.map((item, index) => {
this.isSubOrder = !item.hasOwnProperty('subOrderProfitAllocations')
item.uniqueKey = temp++
if (
item.hasOwnProperty('subOrderProfitAllocations') &&
item.subOrderProfitAllocations
) {
if (item.hasOwnProperty('subOrderProfitAllocations') && item.subOrderProfitAllocations) {
item.subOrderProfitAllocations.forEach(subItem => {
subItem.uniqueKey = temp++
subItem = this.numAddPrefix(subItem)
......@@ -616,29 +593,9 @@ export default {
},
numAddPrefix(item) {
const moneyLabels = [
'goodsCost',
'totalPrice',
'serviceCharge',
'userActualIncomeMoney',
'yqCost',
'distributeMoney',
'shopProfitMoney',
'yqProfitMoney',
'glProfitMoney',
'franchiseeProfitMoney',
'extraCost',
'yqGrossProfit',
'paidMoney',
'sellPrice',
'shopCost',
'installCost',
'marketingCost',
'rewardAndPenaltyCost',
'franchiseeProfitMoneyForAudit',
'glProfitMoneyForAudit'
]
const rateToFloat = [ // 分润比例整数补零字段
const moneyLabels = ['goodsCost', 'totalPrice', 'serviceCharge', 'userActualIncomeMoney', 'yqCost', 'distributeMoney', 'shopProfitMoney', 'yqProfitMoney', 'glProfitMoney', 'franchiseeProfitMoney', 'extraCost', 'yqGrossProfit', 'paidMoney', 'sellPrice', 'shopCost', 'installCost', 'marketingCost', 'rewardAndPenaltyCost', 'franchiseeProfitMoneyForAudit', 'glProfitMoneyForAudit']
const rateToFloat = [
// 分润比例整数补零字段
'franchiseeProfitPer',
'shopProfitPer',
'yqProfitPer',
......@@ -691,7 +648,7 @@ export default {
// window.location.href = res
exportFn(res)
})
},
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!