Commit 1589b835 by wangql

4.7.1代码提交

1 parent 257e7b71
......@@ -62,9 +62,9 @@
:beforeSearchFn="beforeSearchFn">
<template slot="divisionStatus"
slot-scope="scope">
<span v-if="scope.scope.orderDivision">
<span v-if="scope.scope.divisionStatus">
<span
:style="{ 'color': [4, 5].includes(+scope.scope.orderDivision.divisionStatus) ? 'red' : '#606266' }">{{baseData.divisionStatusList.find(item => +item.confId === scope.scope.orderDivision.divisionStatus).confLabel}}</span>
:style="{ 'color': [4, 5].includes(+scope.scope.divisionStatus) ? 'red' : '#606266' }">{{baseData.divisionStatusList.find(item => +item.confId === scope.scope.divisionStatus).confLabel}}</span>
</span>
<span v-else>-</span>
</template>
......@@ -210,7 +210,7 @@ export default {
label: '分账时间',
prop: 'divisionDate',
formatter: (cellValue) => {
return cellValue.orderDivision ? (cellValue.orderDivision.divisionDate ? Util.dateFormate(cellValue.orderDivision.divisionDate, 'YYYY-MM-DD HH:mm:ss') : '') : ''
return cellValue.divisionDate ? Util.dateFormate(cellValue.divisionDate, 'YYYY-MM-DD HH:mm:ss') : ''
}
}, {
label: '订单支付时间',
......
......@@ -159,50 +159,66 @@
<td class="blue">{{detail.yqProfitMoney}}</td>
</tr>
<tr>
<td class="grey p-l-45">平台方:{{detail.glName}}</td>
<td class="grey"></td>
<td class="grey p-l-45">
平台方:{{(detail.platformMerchantName || (detail.platformMerchantId && detail.platformMerchantId != '-1')) ? detail.platformMerchantName : '嘀加智慧云'}}
</td>
<td class="grey">{{detail.platformMerchantId}}</td>
<td class="grey blue">{{detail.glProfitPer ? (detail.glProfitPer + '%') : '-'}}</td>
<td class="grey blue">{{detail.glProfitMoney}}</td>
</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>
</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>
<tr v-if="detail.partnerSettleAccountModel == '1'">
<td class="grey p-l-45">服务商:{{detail.singlePartnerMerchantName}}</td>
<td class="grey">{{detail.singlePartnerMerchantId}}</td>
<td class="grey blue">
{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<div v-if="detail.partnerSettleAccountModel == '2'">
<div v-if="isSubOrder">
<tr>
<td class="grey p-l-45">服务商总分润</td>
<td class="grey">-</td>
<td class="grey blue">
{{detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-'}}</td>
<td class="grey blue">
{{detail.franchiseeMerchantName ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
</div>
<div v-else>
<tr>
<td class="grey p-l-45">服务商总分润</td>
<td class="grey">-</td>
<td class="grey blue">-</td>
<td class="grey blue">
{{detail.franchiseeProfitMoney ? detail.franchiseeProfitMoney : '-'}}</td>
</tr>
<tr>
<td class="grey p-l-55">安装费-服务商:{{detail.installCostMerchantName}}</td>
<td class="grey">{{detail.installCostMerchantId}}</td>
<td class="grey blue">-</td>
<td class="grey blue">
{{(!detail.installCost || detail.installCost === '¥0') ? '-' : detail.installCost}}
</td>
</tr>
<tr>
<td class="grey p-l-55">营销费-服务商:{{detail.marketingCostMerchantName}}</td>
<td class="grey">{{detail.marketingCostMerchantId}}</td>
<td class="grey blue">-</td>
<td class="grey blue">
{{(!detail.marketingCost || detail.marketingCost === '¥0') ? '-' : detail.marketingCost}}
</td>
</tr>
<tr>
<td class="grey p-l-55">奖惩费-服务商:{{detail.marketingCostMerchantName}}</td>
<td class="grey">{{detail.marketingCostMerchantId}}</td>
<td class="grey blue">-</td>
<td class="grey blue">
{{(!detail.rewardAndPenaltyCost || detail.rewardAndPenaltyCost === '¥0') ? '-' : detail.rewardAndPenaltyCost}}
</td>
</tr>
</div>
</div>
<!-- <tr>
<td class="lb" colspan="4">分账总计</td>
<td>{{detail.distributeMoney}}</td>
......
......@@ -336,7 +336,7 @@
align="center">
</el-table-column>
</el-table-column>
<el-table-column label="服务商分账"
<!-- <el-table-column label="服务商分账"
align="center"
v-show="userInfo.beSuper">
<el-table-column prop="franchiseeMerchantName"
......@@ -368,8 +368,8 @@
}}</span>
</template>
</el-table-column>
</el-table-column>
<!-- <el-table-column label="服务商"
</el-table-column> -->
<el-table-column label="服务商"
align="center"
v-show="userInfo.beSuper">
<el-table-column prop="franchiseeProfitPer"
......@@ -447,8 +447,8 @@
width="100"
align="center">
</el-table-column>
</el-table-column> -->
<!-- <el-table-column label="平台方"
</el-table-column>
<el-table-column label="平台方"
align="center">
<el-table-column prop="glProfitMoney"
label="平台方金额"
......@@ -463,16 +463,16 @@
width="100"
align="center">
<template slot-scope="scope">
<span>{{scope.row.platformMerchantName ? scope.row.platformMerchantName : '嘀加智慧云'}}</span>
<span>{{(scope.row.platformMerchantName || (scope.row.platformMerchantId && scope.row.platformMerchantId != '-1')) ? scope.row.platformMerchantName : '嘀加智慧云'}}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column v-show="userInfo.beSuper"
</el-table-column>
<!-- <el-table-column v-show="userInfo.beSuper"
label="嘀加智慧云"
align="center"
width="100"
prop="glProfitMoney">
</el-table-column>
</el-table-column> -->
<el-table-column label="订单类型"
align="center"
prop="orderType">
......@@ -543,7 +543,7 @@ export default {
merchantId: '',
orderCode: '',
divisionType: '',
realityPlatformMerchantId: ''
platformMerchantId: ''
},
searchSelectObj: {
orderOrTrade: {
......@@ -645,7 +645,7 @@ export default {
}
}, {
label: '平台方',
name: 'realityPlatformMerchantId',
name: 'platformMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantId',
......@@ -736,7 +736,7 @@ export default {
merchantId: '',
orderCode: '',
divisionType: '',
realityPlatformMerchantId: ''
platformMerchantId: ''
}
this.searchSelectObj = {
orderOrTrade: {
......
......@@ -107,7 +107,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>共{{totalObj.nums}}笔订单,累计订单分账金额:{{totalObj.totalFranchiseeProfitMoney}}元</p>
......@@ -253,7 +253,7 @@
align="center">
</el-table-column>
</el-table-column>
<el-table-column label="服务商分账"
<!-- <el-table-column label="服务商分账"
align="center">
<el-table-column prop="franchiseeMerchantName"
label="分账对象"
......@@ -281,8 +281,8 @@
<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="服务商"
</el-table-column> -->
<el-table-column label="服务商"
align="center"
v-show="userInfo.beSuper">
<el-table-column prop="franchiseeProfitPer"
......@@ -313,9 +313,6 @@
label="服务商对象1"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="installCost"
label="安装费金额"
......@@ -333,9 +330,6 @@
label="服务商对象2"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="marketingCost"
label="营销费金额"
......@@ -365,9 +359,6 @@
label="服务商对象3"
width="100"
align="center">
<template slot-scope="scope">
<span></span>
</template>
</el-table-column>
<el-table-column prop="divisionType"
label="分账类型"
......@@ -376,8 +367,8 @@
<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="平台方"
</el-table-column>
<el-table-column label="平台方"
align="center">
<el-table-column prop="glProfitMoney"
label="平台方金额"
......@@ -392,10 +383,10 @@
width="100"
align="center">
<template slot-scope="scope">
<span>scope.row.platformMerchantName ? scope.row.platformMerchantName : '嘀加智慧云'</span>
<span>{{scope.row.platformMerchantName ? scope.row.platformMerchantName : '嘀加智慧云'}}</span>
</template>
</el-table-column>
</el-table-column> -->
</el-table-column>
<el-table-column prop="yqMerchantName"
label="园区店名称"
......@@ -429,7 +420,7 @@
<script>
import moment from 'moment'
import serviceDetailDialog from './serviceDetailDialog'
import { getServiceListApi, exportFile, getListTotal, getServicerefApi, getServiceSummaryApi } from '@api/finance'
import { getServiceListApi, exportFile, getListTotal, getServicerefApi, getServiceSummaryApi, getList } from '@api/finance'
import { getPartnerYqListApi } from '@/api/account'
import { getServiceStore } from '@api/editCustomer'
import { mapActions } from 'vuex'
......@@ -724,7 +715,7 @@ export default {
}
// console.log(params)
getServiceListApi(params).then(res => {
getList(params).then(res => {
let temp = 1
this.tableData = res.list.map((item, index) => {
item['uniqueKey'] = temp++
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!