Commit d03bb9ad by cwq0219

财务列表

1 parent 6c81b83d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<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 class="finnance_table"> <table v-if="!detail.hasOwnProperty('subOrderProfitAllocations')" class="finnance_table">
<tr> <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 class="lb">商品名称</td>
......
...@@ -3,7 +3,13 @@ ...@@ -3,7 +3,13 @@
<div class="view-detail"> <div class="view-detail">
<el-row> <el-row>
<el-col :span="12">自动打款:{{form.autoFlag === 'N' ? '否' : '是'}}</el-col> <el-col :span="12">自动打款:{{form.autoFlag === 'N' ? '否' : '是'}}</el-col>
<el-col v-show="form.settleTimeType" :span="12">分账周期:n+{{form.settleTime}}</el-col> <el-col
v-show="form.settleTimeType"
:span="12"
>分账周期:
<span v-if="form.settleTimeType === 1">n+{{form.settleTime}}</span>
<span v-else>每月{{form.settleTime}}号</span>
</el-col>
</el-row> </el-row>
<p>金额分配设置:</p> <p>金额分配设置:</p>
<p class="edit-sub-title">导流方(4S店)基础信息</p> <p class="edit-sub-title">导流方(4S店)基础信息</p>
...@@ -108,7 +114,7 @@ ...@@ -108,7 +114,7 @@
<script> <script>
import { Util } from '@/common/util' import { Util } from '@/common/util'
import { getAccountRule } from '@api/merchant' import { getAccountRule, getDivisionRuleApi } from '@api/merchant'
import { userType, ghUserType, merchantClassifyList } from '@/common/constants' import { userType, ghUserType, merchantClassifyList } from '@/common/constants'
export default { export default {
name: 'viewDetail', name: 'viewDetail',
...@@ -125,6 +131,11 @@ export default { ...@@ -125,6 +131,11 @@ export default {
parentAddr: '', parentAddr: '',
parentCreatedDate: '' parentCreatedDate: ''
}, },
DivisionFlagToTxt: {
1: '嘀加智慧云',
2: '服务商',
3: '4S店'
},
// 分账列表 // 分账列表
settleRuleList: [], settleRuleList: [],
baseData: { baseData: {
...@@ -174,12 +185,12 @@ export default { ...@@ -174,12 +185,12 @@ export default {
parentAddr: this.viewDetailData.partnerMerchant ? ((this.viewDetailData.partnerMerchant.provinceName || '') + (this.viewDetailData.partnerMerchant.cityName || '') + (this.viewDetailData.partnerMerchant.areaName || '') + (this.viewDetailData.partnerMerchant.address || '')) : '', parentAddr: this.viewDetailData.partnerMerchant ? ((this.viewDetailData.partnerMerchant.provinceName || '') + (this.viewDetailData.partnerMerchant.cityName || '') + (this.viewDetailData.partnerMerchant.areaName || '') + (this.viewDetailData.partnerMerchant.address || '')) : '',
parentCreatedDate: this.viewDetailData.partnerMerchant ? (this.viewDetailData.partnerMerchant.createdDate ? Util.dateFormate(this.viewDetailData.partnerMerchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : '' parentCreatedDate: this.viewDetailData.partnerMerchant ? (this.viewDetailData.partnerMerchant.createdDate ? Util.dateFormate(this.viewDetailData.partnerMerchant.createdDate, 'YYYY-MM-DD HH:mm:ss') : '') : ''
} }
getDivisionRuleApi({ merchantId: this.viewDetailData.merchantId }).then(res => {
Object.assign(this.form, res)
})
getAccountRule({ 'merchantId': this.viewDetailData.merchantId }).then(res => { getAccountRule({ 'merchantId': this.viewDetailData.merchantId }).then(res => {
console.log(res) console.log(res)
if (res) { if (res) {
this.form.autoFlag = res.autoFlag
this.form.settleTimeType = res.settleTimeType
this.form.settleTime = res.settleTime
this.settleRuleList = res.goodsTypeSettleRuleList this.settleRuleList = res.goodsTypeSettleRuleList
this.settleRuleList.unshift({ this.settleRuleList.unshift({
goodsTypeName: '全部', goodsTypeName: '全部',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!