Commit 37aed453 by cwq0219

财务,我的分账

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