Commit 37aed453 by cwq0219

财务,我的分账

1 parent 12715c1c
......@@ -67,7 +67,7 @@ export const Validator = {
51: '四川',
52: '贵州',
53: '云南',
54: '西藏 ',
54: '西藏',
61: '陕西',
62: '甘肃',
63: '青海',
......
......@@ -52,12 +52,16 @@
label="子订单编号"
prop="subOrderCode"
align="center"
></el-table-column>
>
<span slot-scope="scope">{{scope.row.goodsSubOrder ? scope.row.goodsSubOrder.subOrderCode : ''}}</span>
</el-table-column>
<el-table-column
label="商品名"
prop=""
align="center"
></el-table-column>
>
<span slot-scope="scope">{{scope.row.goodsSubOrder ? scope.row.goodsSubOrder.upgradeGoodsName : ''}}</span>
</el-table-column>
<el-table-column
label="分账类型"
align="center"
......@@ -93,7 +97,9 @@
label="总分账金额"
prop=""
align="center"
></el-table-column>
>
<span slot-scope="scope">{{'¥' + scope.row.divisionMoney}}</span>
</el-table-column>
<el-table-column
label="嘀加智慧云实际分账金额"
prop="glDivisionMoney"
......@@ -101,7 +107,7 @@
width="100px"
>
<template slot-scope="scope">
{{ (scope.row.glDivisionMoney - (scope.row.fee || 0)).toFixed(2) == 0 ? '-' : ('¥' + (scope.row.glDivisionMoney - (scope.row.fee || 0)).toFixed(2)) }}
{{scope.row.glDivisionMoney ? ('¥' + scope.row.glDivisionMoney) : '-'}}
</template>
</el-table-column>
<el-table-column
......@@ -113,14 +119,16 @@
prop="partnerMerchantName"
align="center"
width="100px"
></el-table-column>
>
<span slot-scope="scope">{{scope.row.partnerMerchantName}}</span>
</el-table-column>
<el-table-column
label="实际分账金额"
prop="partnerDivisionMoney"
align="center"
>
<template slot-scope="scope">
<span>{{scope.row.partnerDivisionMoney === 0 ? '-' : ('¥' + scope.row.partnerDivisionMoney)}}</span>
<span>{{scope.row.partnerDivisionMoney ? ('¥' + scope.row.partnerDivisionMoney) : '-'}}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -140,7 +148,7 @@
align="center"
>
<template slot-scope="scope">
<span>{{scope.row.shopDivisionMoney === 0 ? '-' : ('¥' + scope.row.shopDivisionMoney)}}</span>
<span>{{scope.row.shopDivisionMoney ? ('¥' + scope.row.shopDivisionMoney) : '-'}}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -155,7 +163,7 @@
prop="orderType"
align="center"
>
<span slot-scope="scope">{{scope.row.orderType ? baseData.orderTypeList.find(item => +item.confId === scope.row.orderType).confLabel : ''}}</span>
<span slot-scope="scope">{{scope.row.goodsOrder ? baseData.orderTypeList.find(item => +item.confId === scope.row.goodsOrder.orderType).confLabel : '-'}}</span>
</el-table-column>
</el-table>
<el-pagination
......@@ -178,6 +186,7 @@ import { Util } from '@/common/util'
import { mapActions } from 'vuex'
import { getParkStore } from '@api/editCustomer'
import { getListApi, getCountApi, exportApi } from '@/api/account'
import { orderTypeList } from '@/common/constants.js'
export default {
name: 'offlineAccountList',
data() {
......@@ -244,7 +253,8 @@ export default {
},
total: 0,
baseData: {
parkServiceList: []
parkServiceList: [],
orderTypeList: _.cloneDeep(orderTypeList)
}
}
},
......@@ -318,7 +328,7 @@ export default {
this.tableList = res.list
this.total = res.total
this.tableList.forEach(item => {
item.successDateStr = item.successDate ? Util.dateFormate(item.successDate, 'YYYY-MM-DD HH:mm:ss') : ''
item.successDateStr = item.payOrder ? Util.dateFormate(item.payOrder.successDate, 'YYYY-MM-DD HH:mm:ss') : ''
})
})
},
......
......@@ -50,14 +50,18 @@
></el-table-column>
<el-table-column
label="子订单编号"
prop="subOrderCode"
prop=""
align="center"
></el-table-column>
>
<span slot-scope="scope">{{scope.row.goodsSubOrder ? scope.row.goodsSubOrder.subOrderCode : '-'}}</span>
</el-table-column>
<el-table-column
label="商品名"
prop=""
align="center"
></el-table-column>
>
<span slot-scope="scope">{{scope.row.goodsSubOrder ? scope.row.goodsSubOrder.upgradeGoodsName : '-'}}</span>
</el-table-column>
<el-table-column
label="分账类型"
align="center"
......@@ -93,7 +97,9 @@
label="总分账金额"
prop=""
align="center"
></el-table-column>
>
<span slot-scope="scope">{{'¥' + scope.row.divisionMoney}}</span>
</el-table-column>
<el-table-column
label="嘀加智慧云实际分账金额"
prop="glDivisionMoney"
......@@ -101,7 +107,7 @@
width="100px"
>
<template slot-scope="scope">
{{ (scope.row.glDivisionMoney - (scope.row.fee || 0)).toFixed(2) == 0 ? '-' : ('¥' + (scope.row.glDivisionMoney - (scope.row.fee || 0)).toFixed(2)) }}
{{scope.row.glDivisionMoney ? ('¥' + scope.row.glDivisionMoney) : '-'}}
</template>
</el-table-column>
<el-table-column
......@@ -120,7 +126,7 @@
align="center"
>
<template slot-scope="scope">
<span>{{scope.row.partnerDivisionMoney === 0 ? '-' : ('¥' + scope.row.partnerDivisionMoney)}}</span>
<span>{{scope.row.partnerDivisionMoney ? ('¥' + scope.row.partnerDivisionMoney) : '-'}}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -140,7 +146,7 @@
align="center"
>
<template slot-scope="scope">
<span>{{scope.row.shopDivisionMoney === 0 ? '-' : ('¥' + scope.row.shopDivisionMoney)}}</span>
<span>{{scope.row.shopDivisionMoney ? ('¥' + scope.row.shopDivisionMoney) : '-'}}</span>
</template>
</el-table-column>
</el-table-column>
......@@ -174,7 +180,7 @@
prop="orderType"
align="center"
>
<span slot-scope="scope">{{scope.row.orderType ? baseData.orderTypeList.find(item => +item.confId === scope.row.orderType).confLabel : ''}}</span>
<span slot-scope="scope">{{scope.row.goodsOrder ? baseData.orderTypeList.find(item => +item.confId === scope.row.goodsOrder.orderType).confLabel : '-'}}</span>
</el-table-column>
</el-table>
<el-pagination
......
......@@ -115,7 +115,10 @@ export default {
prop: 'tradeNo'
}, {
label: '子订单编号',
prop: 'subOrderCode'
prop: '',
formatter: cellValue => {
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.subOrderCode : ''
}
}, {
label: '园区店名',
prop: 'yqMerchantName'
......
......@@ -175,7 +175,10 @@ export default {
prop: 'tradeNo'
}, {
label: '子订单编号',
prop: 'subOrderCode'
prop: '',
formatter: cellValue => {
return cellValue.goodsSubOrder ? cellValue.goodsSubOrder.subOrderCode : ''
}
}, {
label: '园区店名',
prop: 'yqMerchantName'
......@@ -192,12 +195,7 @@ export default {
}, {
label: '实际分账金额(元)',
prop: ''
},
// {
// label: '总分账金额(元)',
// prop: 'partnerDivisionMoney'
// },
{
}, {
label: '分账状态',
prop: 'divisionStatus',
width: '110px',
......
......@@ -164,7 +164,7 @@ import viewDetail from './viewDetail'
import { getList, deleteMerchant, serviceGetMerchantList, addServiceMerchant, getPartnerByYq } from '@api/merchant'
import { mapActions } from 'vuex'
import { getParkStore } from '@api/editCustomer'
import { BaseData, userTypeList, ghUserTypeList, merchantClassifyList, divisionTypeList } from '@/common/constants.js'
import { BaseData, userTypeList, ghUserTypeList, merchantClassifyList } from '@/common/constants.js'
export default {
name: 'merchantManage',
data() {
......@@ -200,12 +200,12 @@ export default {
keyFn: this.keyDowmGetList
}, {
label: '分账类型',
name: 'divisionType',
name: 'autoFlag',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'divisionTypeList'
optionsName: 'autoFlagList'
}],
getListApi: getList,
tableParams: {
......@@ -291,7 +291,13 @@ export default {
channelTypeList: [],
userTypeList: [],
merchantClassifyList: merchantClassifyList,
divisionTypeList: divisionTypeList
autoFlagList: [{
confId: 'Y',
confLabel: '开启'
}, {
confId: 'N',
confLabel: '关闭'
}]
}
}
},
......
......@@ -252,7 +252,7 @@ export default {
changeParentVal(obj) {
this[obj.attrName] = obj.value
if (obj.ruleForm === 'ruleForm') {
if (obj.attrName === 'ruleForm') {
this.handleStep(this.ruleForm.progress)
}
},
......
......@@ -275,7 +275,8 @@
</template>
<script>
import { userType, ghUserType } from '@/common/constants.js'
import { mapActions } from 'vuex'
import { BaseData, userType, ghUserType } from '@/common/constants.js'
import { getAccountRule, updateRule } from '@api/merchant'
export default {
name: 'stepOne',
......@@ -342,9 +343,18 @@ export default {
}
},
mounted() { },
mounted() {
this.getRule()
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get'
}),
async getBaseData() {
this.baseData.productTypeList = _.cloneDeep(await this.get(BaseData.productType))
},
getRule() {
console.log(this.form.merchantId)
getAccountRule({ 'merchantId': this.form.merchantId }).then(res => {
......
......@@ -305,6 +305,7 @@ export default {
console.log(this.moneyForm)
moneyValidApi({ ...this.moneyForm, merchantId: this.merchantInfo.merchantId }).then(res => {
console.log(res)
this.notice.okTips()
this.$emit('changeParentVal', { attrName: 'ruleForm', value: res })
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!