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