Commit 01646854 by 王志慧

Merge branch 'dev_v4.17.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into wangzh_dev_v4.17.0
2 parents cddbd1d5 6f8784f1
...@@ -3508,27 +3508,6 @@ ...@@ -3508,27 +3508,6 @@
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
}, },
"dependencies": { "dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": { "acorn-walk": {
"version": "8.2.0", "version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz", "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
...@@ -3918,6 +3897,27 @@ ...@@ -3918,6 +3897,27 @@
"lodash": "^4.17.4" "lodash": "^4.17.4"
} }
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": { "@vue/vue2-jest": {
"version": "27.0.0", "version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz", "resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
...@@ -17687,7 +17687,7 @@ ...@@ -17687,7 +17687,7 @@
}, },
"yarn": { "yarn": {
"version": "1.22.19", "version": "1.22.19",
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz", "resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==" "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
}, },
"yorkie": { "yorkie": {
......
...@@ -30,15 +30,15 @@ export const severSelectOptions = [ ...@@ -30,15 +30,15 @@ export const severSelectOptions = [
}, },
{ {
expenseCategoryCalculateType: 4, expenseCategoryCalculateType: 4,
label: "按(产值-流量成本)比例" label: "按园区店总金额比例"
}, },
{ {
expenseCategoryCalculateType: 5, expenseCategoryCalculateType: 5,
label: "按(产值-流量成本-其他费用不包含产品成本))比例" label: "按园区店毛利(不扣除产品成本)比例"
}, },
{ {
expenseCategoryCalculateType: 6, expenseCategoryCalculateType: 6,
label: "按(产值-流量成本-其他费用包含产品成本)比例" label: "按园区店毛利比例"
} }
] ]
// 回显财务管理-费用管理-费用类别-费用类 // 回显财务管理-费用管理-费用类别-费用类
......
...@@ -328,7 +328,7 @@ export const routerName = { ...@@ -328,7 +328,7 @@ export const routerName = {
authId: "90613", authId: "90613",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantCheck" activePath: "/merchantManage",
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheck") component: _import("systemConfig/merchant/merchantStep/merchantCheck")
}, },
...@@ -340,7 +340,7 @@ export const routerName = { ...@@ -340,7 +340,7 @@ export const routerName = {
authId: "90614", authId: "90614",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantCheckDetail" activePath: "/merchantManage",
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheckDetail") component: _import("systemConfig/merchant/merchantStep/merchantCheckDetail")
}, },
...@@ -352,7 +352,7 @@ export const routerName = { ...@@ -352,7 +352,7 @@ export const routerName = {
authId: "90615", authId: "90615",
parentId: "90603", parentId: "90603",
cache: false, cache: false,
activePath: "/merchantCheckRecord" activePath: "/merchantManage",
}, },
component: _import("systemConfig/merchant/merchantStep/merchantCheckRecord") component: _import("systemConfig/merchant/merchantStep/merchantCheckRecord")
}, },
......
...@@ -23,12 +23,13 @@ ...@@ -23,12 +23,13 @@
:ref="'selectMerchant' + index" :ref="'selectMerchant' + index"
v-el-select-loadmore="interestsLoadmore" v-el-select-loadmore="interestsLoadmore"
:loading="interesLoading"> :loading="interesLoading">
<!-- !v.isSetUpgradeSettleRule -->
<el-option <el-option
v-for="(v, k) in merchantList" v-for="(v, k) in merchantList"
:key="k" :key="k"
:label="(v.merchant && v.merchant.merchantName) + ' ' + (v.merchant && v.merchant.merchantId)" :label="(v.merchant && v.merchant.merchantName) + ' ' + (v.merchant && v.merchant.merchantId)"
:value="(v.merchant && v.merchant.merchantName) + ' ' + (v.merchant && v.merchant.merchantId)" :value="(v.merchant && v.merchant.merchantName) + ' ' + (v.merchant && v.merchant.merchantId)"
:disabled="!v.isSetUpgradeSettleRule"> :disabled="false">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
......
...@@ -27,15 +27,15 @@ ...@@ -27,15 +27,15 @@
prop="yqMerchantName" prop="yqMerchantName"
label="园区店名称" label="园区店名称"
align="center"> align="center">
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<span <span
:class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.yqMerchantName }}</span> :class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.yqMerchantName }}</span>
</template> </template> -->
</el-table-column> </el-table-column>
<el-table-column prop="merchantName" <el-table-column prop="merchantName"
label="4S店名称" label="4S店名称"
align="center"> align="center">
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<span <span
:class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.merchantName }}</span> :class="{'red': !scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)}">{{ scope.row.merchantName }}</span>
<el-tooltip v-if="!scope.row.isSetUpgradeSettleRule" <el-tooltip v-if="!scope.row.isSetUpgradeSettleRule"
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)" <span v-if="!scope.row.isSetUpgradeSettleRule && needTip.includes(sourcePage)"
class="tip-icon">?</span> class="tip-icon">?</span>
</el-tooltip> </el-tooltip>
</template> </template> -->
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination small <el-pagination small
...@@ -170,13 +170,14 @@ export default { ...@@ -170,13 +170,14 @@ export default {
methods: { methods: {
selectable(row, index) { selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true // var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
if (this.sourcePage === 'editProduct') { // if (this.sourcePage === 'editProduct') {
// 不能选的判断 // // 不能选的判断
// console.log('??') // // console.log('??')
isSelect = row.isSetUpgradeSettleRule // isSelect = row.isSetUpgradeSettleRule
} // }
return isSelect // return isSelect
return true
}, },
recoverySelection() { recoverySelection() {
var exitIds = this.selectedData.map(item => item.merchantId) var exitIds = this.selectedData.map(item => item.merchantId)
...@@ -224,7 +225,8 @@ export default { ...@@ -224,7 +225,8 @@ export default {
this.selectingData.forEach(item => { this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantId === item.merchantId) var isExit = this.selectedData.findIndex(subItem => subItem.merchantId === item.merchantId)
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && (isExit === -1) && !isServed && item.isSetUpgradeSettleRule) { // if (selection.length && (isExit === -1) && !isServed && item.isSetUpgradeSettleRule) {
if (selection.length && (isExit === -1) && !isServed) {
this.selectedData.push(item) this.selectedData.push(item)
} else if (!selection.length && (isExit !== -1)) { } else if (!selection.length && (isExit !== -1)) {
this.selectedData.splice(isExit, 1) this.selectedData.splice(isExit, 1)
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<auth-button <auth-button
slot="auth-button" slot="auth-button"
:show-btn-ids="['9040102']" :show-btn-ids="['9040111']"
:data="scope" :data="scope"
/> />
</template> </template>
......
...@@ -18,15 +18,18 @@ ...@@ -18,15 +18,18 @@
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" <el-form-item class="d2-drawer-item"
label="主订单编号:"> label="主订单编号:">
<span>{{ recordInfo.inputtedOrderCode }}</span> <!-- <span>{{ recordInfo.inputtedOrderCode }}</span> -->
<span>{{ recordInfo.orderCode }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" <el-form-item class="d2-drawer-item"
label="订单金额:"> label="订单金额:">
<span>{{ recordInfo.totalFee ? '¥' + recordInfo.totalFee / 100 : '' }}</span> <!-- <span>{{ recordInfo.totalFee ? '¥' + recordInfo.totalFee / 100 : '' }}</span> -->
<span>{{ recordInfo.totalPrice ? '¥' + recordInfo.totalPrice : '' }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" <el-form-item class="d2-drawer-item"
label="支付时间:"> label="支付时间:">
<span>{{ recordInfo.accountDate }}</span> <!-- <span>{{ recordInfo.accountDate }}</span> -->
<span>{{ recordInfo.paySuccessDate }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="fontD">请选择要应用的分账规则:</div> <div class="fontD">请选择要应用的分账规则:</div>
...@@ -110,7 +113,7 @@ export default { ...@@ -110,7 +113,7 @@ export default {
}, },
mounted() { mounted() {
this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : '' // this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.getLedgerHistoryRecord() this.getLedgerHistoryRecord()
}, },
methods: { methods: {
...@@ -150,7 +153,8 @@ export default { ...@@ -150,7 +153,8 @@ export default {
} }
var params = {} var params = {}
params.outTradeNo = this.recordInfo.outTradeNo params.outTradeNo = this.recordInfo.outTradeNo
params.inputtedOrderCode = this.recordInfo.inputtedOrderCode // params.inputtedOrderCode = this.recordInfo.inputtedOrderCode
params.inputtedOrderCode = this.recordInfo.orderCode
params.effectRuleId = this.radio params.effectRuleId = this.radio
// return console.log('params', params); // return console.log('params', params);
......
<!-- 订单列表 -->
<template> <template>
<div class="order-list-wrap"> <div class="order-list-wrap">
<div class="header" slot="header" style="background: #e7eaec"> <div class="header"
<el-tabs v-model="activeName" @tab-click="handleClick"> slot="header"
<el-tab-pane style="background: #e7eaec">
v-for="(item, index) in tabPaneList" <el-tabs v-model="activeName"
@tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList"
:label="item.label" :label="item.label"
:name="item.name" :name="item.name"
:key="index" :key="index">
>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<components :is="tabName"></components> <components :is="tabName"></components>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import Order from "./order.vue" import Order from "./order.vue"
import CrowdFunding from "./crowdfunding.vue" import CrowdFunding from "./crowdfunding.vue"
...@@ -47,7 +46,7 @@ export default { ...@@ -47,7 +46,7 @@ export default {
tabName: "Order" tabName: "Order"
} }
}, },
mounted() {}, mounted() { },
watch: {}, watch: {},
methods: { methods: {
async getBaseData() { async getBaseData() {
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
@click="cancelRelat(scope.scope)"> @click="cancelRelat(scope.scope)">
取消关联 取消关联
</el-button> </el-button>
<el-button type="text" <!-- <el-button type="text"
v-if="scope.scope.inputStatus == '5'" v-if="scope.scope.inputStatus == '5'"
@click="chooseRule(scope.scope)"> @click="chooseRule(scope.scope)">
发起分账 发起分账
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
v-if="scope.scope.manualFlag == '1'" v-if="scope.scope.manualFlag == '1'"
@click="ruleHistory(scope.scope)"> @click="ruleHistory(scope.scope)">
分账记录 分账记录
</el-button> </el-button> -->
</div> </div>
</template> </template>
</d2-table> </d2-table>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<d2-dialog title="关联活动订单" <d2-dialog title="关联活动订单"
:is-visible="relatActivityVisible" :is-visible="relatActivityVisible"
class="relatActivityDailog" class="relatActivityDailog"
width="70%" width="80%"
@closeDialog="handleClose" @closeDialog="handleClose"
@confirmDialog="handleAddConfirm"> @confirmDialog="handleAddConfirm">
<div> <div>
...@@ -83,12 +83,29 @@ export default { ...@@ -83,12 +83,29 @@ export default {
label: '商户名称', label: '商户名称',
name: 'merchantName', name: 'merchantName',
type: 'input', type: 'input',
maxlength: 20,
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, { }, {
label: '所属活动', label: '所属活动',
name: 'activityName', name: 'activityName',
type: 'input', type: 'input',
maxlength: 20,
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '客户名称',
name: 'customerName',
type: 'input',
maxlength: 20,
isClear: true,
keyFn: this.keyDowmGetList
}, {
label: '手机号',
name: 'customerPhone',
type: 'input',
inputType: "number",
maxlength: 11,
isClear: true, isClear: true,
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}], }],
......
<!-- 选择分账规则弹窗 --> <!-- 选择分账规则弹窗 -->
<template> <template>
<d2-dialog title="查看分账操作记录" :is-visible="ruleInfoVisible" class="ruleInfoDialog" width="60%" @closeDialog="handleClose"> <d2-dialog title="查看分账操作记录"
<el-form class="rule-form" label-width="110px" :inline="true"> :is-visible="ruleInfoVisible"
<el-form-item class="d2-drawer-item" label="订单所属商户:"> class="ruleInfoDialog"
width="60%"
@closeDialog="handleClose">
<el-form class="rule-form"
label-width="110px"
:inline="true">
<el-form-item class="d2-drawer-item"
label="订单所属商户:">
<span>{{ recordInfo.merchantName }}</span> <span>{{ recordInfo.merchantName }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" label="主订单编号:"> <el-form-item class="d2-drawer-item"
<span>{{ recordInfo.inputtedOrderCode }}</span> label="主订单编号:">
<!-- <span>{{ recordInfo.inputtedOrderCode }}</span> -->
<span>{{ recordInfo.orderCode }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" label="订单金额:"> <el-form-item class="d2-drawer-item"
<span>{{ recordInfo.totalFee ? '¥' + recordInfo.totalFee / 100 : '' }}</span> label="订单金额:">
<!-- <span>{{ recordInfo.totalFee ? '¥' + recordInfo.totalFee / 100 : '' }}</span> -->
<span>{{ recordInfo.totalPrice ? '¥' + recordInfo.totalPrice : '' }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" label="支付时间:"> <el-form-item class="d2-drawer-item"
<span>{{ recordInfo.accountDate }}</span> label="支付时间:">
<!-- <span>{{ recordInfo.accountDate }}</span> -->
<span>{{ recordInfo.paySuccessDate }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="fontD">已应用分账规则:</div> <div class="fontD">已应用分账规则:</div>
<div> <div>
<div class="merchant-checkrecord"> <div class="merchant-checkrecord">
<div class="account-detail" ref="accountDetail"> <div class="account-detail"
ref="accountDetail">
<div v-if="ruleInfo"> <div v-if="ruleInfo">
<p class="sub-title" :class="{ 'sub-border': !ruleInfo.show }"> <p class="sub-title"
:class="{ 'sub-border': !ruleInfo.show }">
<span class="label"> <span class="label">
<span>{{ ruleInfo.formatEffectStartDate }}</span> <span>{{ ruleInfo.formatEffectStartDate }}</span>
<span v-if="ruleInfo.formatEffectStartDate"> - </span> <span v-if="ruleInfo.formatEffectStartDate"> - </span>
...@@ -39,20 +54,27 @@ ...@@ -39,20 +54,27 @@
</p> </p>
</div> </div>
<div v-else class="nothingtips"> <div v-else
<img style="height: 109px; width: 109px" src="../systemConfig/merchant/images/empty.png" /> class="nothingtips">
<img style="height: 109px; width: 109px"
src="../systemConfig/merchant/images/empty.png" />
<p class="title">暂无财务规则</p> <p class="title">暂无财务规则</p>
<p class="tips">快去设置看看~</p> <p class="tips">快去设置看看~</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<el-form class="rule-form" style="marginTop:35px" label-width="110px" :inline="true"> <el-form class="rule-form"
<el-form-item class="d2-drawer-item" label="分账操作人:"> style="marginTop:35px"
<span>{{ recordInfo.updatedBy }}</span> label-width="110px"
:inline="true">
<el-form-item class="d2-drawer-item"
label="分账操作人:">
<span>{{ recordInfo.wioUpdatedBy }}</span>
</el-form-item> </el-form-item>
<el-form-item class="d2-drawer-item" label="分账操作时间:"> <el-form-item class="d2-drawer-item"
<span>{{ recordInfo.updatedDate }}</span> label="分账操作时间:">
<span>{{ recordInfo.wioUpdatedDate }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
</d2-dialog> </d2-dialog>
...@@ -87,15 +109,17 @@ export default { ...@@ -87,15 +109,17 @@ export default {
}, },
mounted() { mounted() {
this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : '' console.log(this.recordInfo);
this.recordInfo.updatedDate = this.recordInfo.updatedDate ? Util.dateFormate(this.recordInfo.updatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
// this.recordInfo.accountDate = this.recordInfo.accountDate ? Util.dateFormate(this.recordInfo.accountDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.recordInfo.wioUpdatedDate = this.recordInfo.wioUpdatedDate ? Util.dateFormate(this.recordInfo.wioUpdatedDate, 'YYYY-MM-DD HH:mm:ss') : ''
this.getRuleInfo() this.getRuleInfo()
}, },
methods: { methods: {
// 获取分账记录 // 获取分账记录
getRuleInfo() { getRuleInfo() {
getDivisionRecordById({ id: this.recordInfo.effectRuleId }).then(res => { getDivisionRecordById({ id: this.recordInfo.wioEffectRuleId }).then(res => {
this.ruleInfo = res this.ruleInfo = res
const format = "YYYY/MM/DD HH:mm" const format = "YYYY/MM/DD HH:mm"
this.ruleInfo.formatEffectEndDate = this.ruleInfo.effectEndDate this.ruleInfo.formatEffectEndDate = this.ruleInfo.effectEndDate
...@@ -234,7 +258,8 @@ $color: #2a58ad; ...@@ -234,7 +258,8 @@ $color: #2a58ad;
} }
} }
.title {} .title {
}
.type { .type {
margin-top: 6px; margin-top: 6px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<d2-Container> <d2-Container>
<div class="divece-history"> <div class="divece-history">
<div class="title"> <div class="title">
我是终端编码 {{recordInfo.posTrmNo}}
</div> </div>
<div class="account-detail" <div class="account-detail"
ref="accountDetail"> ref="accountDetail">
...@@ -89,88 +89,17 @@ export default { ...@@ -89,88 +89,17 @@ export default {
return { return {
formArray: [], formArray: [],
recordInfo: null, recordInfo: null,
// testData: [{
// "id": 287,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1672045943000,
// "effectEndDate": null,
// "createdBy": "glsadmin",
// "createdDate": 1672037915000
// }, {
// "id": 285,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1672037366000,
// "effectEndDate": 1672045943000,
// "createdBy": "glsadmin",
// "createdDate": 1672037366000
// }, {
// "id": 103,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1656432000000,
// "effectEndDate": 1656559315000,
// "createdBy": "glsadmin",
// "createdDate": 1656559315000
// }, {
// "id": 97,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1656172800000,
// "effectEndDate": 1656432000000,
// "createdBy": "system",
// "createdDate": 1656432000000
// }, {
// "id": 91,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1656000000000,
// "effectEndDate": 1656172800000,
// "createdBy": "system",
// "createdDate": 1656172800000
// }, {
// "id": 51,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1644545185000,
// "effectEndDate": 1656000000000,
// "createdBy": "system",
// "createdDate": 1656000000000
// }, {
// "id": 50,
// "merchantId": 44210956,
// "merchantName": "老梁用车",
// "yqMerchantId": 44210956,
// "yqMerchantName": "老梁用车",
// "effectStartDate": 1644545169000,
// "effectEndDate": 1644545185000,
// "createdBy": "glsadmin",
// "createdDate": 1644545185000
// }]
} }
}, },
components: { components: {
}, },
computed: {}, computed: {
},
created() { created() {
this.recordInfo = this.$route.params.info
}, },
mounted() { mounted() {
this.recordInfo = this.$route.params.info
this.getHistoryRecord() this.getHistoryRecord()
}, },
methods: { methods: {
...@@ -184,7 +113,6 @@ export default { ...@@ -184,7 +113,6 @@ export default {
this.formArray = this.formArray.map((element, index) => { this.formArray = this.formArray.map((element, index) => {
if (SelectIndex == index) { if (SelectIndex == index) {
element.show = !element.show element.show = !element.show
console.log(element);
} else { } else {
element.show = false element.show = false
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</el-tooltip>: </el-tooltip>:
</span> </span>
<el-input v-model.trim="form.posTrmNo" <el-input v-model.trim="form.posTrmNo"
maxlength="8" maxlength="20"
class="itd" class="itd"
placeholder="请输入POS机的终端编码" placeholder="请输入POS机的终端编码"
:disabled="isDisabled" :disabled="isDisabled"
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
var info = deepClone(res) var info = deepClone(res)
this.form.posTrmNo = info.posTrmNo this.form.posTrmNo = info.posTrmNo
this.form.yqMerchantId = info.yqMerchantId.toString() this.form.yqMerchantId = info.yqMerchantId.toString()
this.form.merchantId = info.merchantId.toString() this.form.merchantId = info.merchantId
}) })
}, },
......
...@@ -55,14 +55,21 @@ ...@@ -55,14 +55,21 @@
:data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults"> :data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults">
<el-table-column prop="targetType" <el-table-column prop="targetType"
label="类型" label="类型"
width="200"> width="143">
<template slot-scope="scope"> <template slot-scope="scope">
{{ targetType[scope.row.targetType] }} {{ targetType[scope.row.targetType] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="expenseCategoryName" <el-table-column prop="expenseCategoryName"
label="分账类目" label="分账类目"
width="200" /> width="143" />
<el-table-column prop="calculateMode"
label="计算模式"
width="143">
<template slot-scope="scope">
<span>{{ scope.row.calculateMode == 1 ? '按类目计算' : scope.row.calculateMode == 2 ? '按整单计算' : '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="expenseCategoryCalculateType" <el-table-column prop="expenseCategoryCalculateType"
label="分账规则"> label="分账规则">
<!-- width="180" --> <!-- width="180" -->
......
...@@ -128,12 +128,14 @@ ...@@ -128,12 +128,14 @@
<div class="title-table"> <div class="title-table">
<div class="head"> <div class="head">
<div class="cost">费用类目</div> <div class="cost">费用类目</div>
<div class="cost">计算模式</div>
<div class="cost">分润规则</div> <div class="cost">分润规则</div>
</div> </div>
<div class="detail" <div class="detail"
v-for="(ininItem,ininIdx) in inItem.expenseCategoryRules" v-for="(ininItem,ininIdx) in inItem.expenseCategoryRules"
:key="ininIdx+'expenseCategory3'"> :key="ininIdx+'expenseCategory3'">
<div class="detail-i">{{ ininItem.expenseCategoryName }}</div> <div class="detail-i">{{ ininItem.expenseCategoryName }}</div>
<div class="detail-i">{{ ininItem.calculateMode == 1 ? '按类目计算' : ininItem.calculateMode == 2 ? '按整单计算' : '-' }}</div>
<div class="detail-i"> <div class="detail-i">
{{ getExpenseCategoryCalculateType(ininItem.expenseCategoryCalculateType,ininItem.expenseCategoryValue) }} {{ getExpenseCategoryCalculateType(ininItem.expenseCategoryCalculateType,ininItem.expenseCategoryValue) }}
</div> </div>
...@@ -232,12 +234,14 @@ ...@@ -232,12 +234,14 @@
<div class="title-table"> <div class="title-table">
<div class="head"> <div class="head">
<div class="cost">费用类目</div> <div class="cost">费用类目</div>
<div class="cost">计算模式</div>
<div class="cost">分润规则</div> <div class="cost">分润规则</div>
</div> </div>
<div class="detail" <div class="detail"
v-for="(ininItem,ininIdx) in inItem.expenseCategoryRules" v-for="(ininItem,ininIdx) in inItem.expenseCategoryRules"
:key="ininIdx+'expenseCategory4'"> :key="ininIdx+'expenseCategory4'">
<div class="detail-i">{{ ininItem.expenseCategoryName }}</div> <div class="detail-i">{{ ininItem.expenseCategoryName }}</div>
<div class="detail-i">{{ ininItem.calculateMode == 1 ? '按类目计算' : ininItem.calculateMode == 2 ? '按整单计算' : '-' }}</div>
<div class="detail-i"> <div class="detail-i">
{{ getExpenseCategoryCalculateType(ininItem.expenseCategoryCalculateType,ininItem.expenseCategoryValue) }} {{ getExpenseCategoryCalculateType(ininItem.expenseCategoryCalculateType,ininItem.expenseCategoryValue) }}
</div> </div>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<div class="title-table"> <div class="title-table">
<div class="head"> <div class="head">
<div class="cost">费用类目</div> <div class="cost">费用类目</div>
<div class="cost">计算模式</div>
<div class="cost">分润规则</div> <div class="cost">分润规则</div>
<div class="cost">对账对象</div> <div class="cost">对账对象</div>
<div class="cost">商户号</div> <div class="cost">商户号</div>
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
<div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules1'"> <div v-for="(childItem, idx) in item.expenseCategoryRules" :key="idx + 'expenseCategoryRules1'">
<div class="detail" v-if="childItem.targetType == 1"> <div class="detail" v-if="childItem.targetType == 1">
<div class="detail-i">{{ childItem.expenseCategoryName }}</div> <div class="detail-i">{{ childItem.expenseCategoryName }}</div>
<div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算' : '-' }}</div>
<div class="detail-i">{{ childItem.ruleDescription }}</div> <div class="detail-i">{{ childItem.ruleDescription }}</div>
<div class="detail-i">{{ childItem.targetMerchantName }}</div> <div class="detail-i">{{ childItem.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div> <div class="detail-i">{{ childItem.targetMerchantId }}</div>
...@@ -57,6 +59,7 @@ ...@@ -57,6 +59,7 @@
<div class="title-table"> <div class="title-table">
<div class="head"> <div class="head">
<div class="cost">费用类目</div> <div class="cost">费用类目</div>
<div class="cost">计算模式</div>
<div class="cost">分润规则</div> <div class="cost">分润规则</div>
<div class="cost">对账对象</div> <div class="cost">对账对象</div>
<div class="cost">商户号</div> <div class="cost">商户号</div>
...@@ -67,6 +70,7 @@ ...@@ -67,6 +70,7 @@
class="detail" class="detail"
v-if="childItem.targetType == 2"> v-if="childItem.targetType == 2">
<div class="detail-i">{{ childItem.expenseCategoryName }}</div> <div class="detail-i">{{ childItem.expenseCategoryName }}</div>
<div class="detail-i">{{ childItem.calculateMode == 1 ? '按类目计算' : childItem.calculateMode == 2 ? '按整单计算' : '-' }}</div>
<div class="detail-i">{{ childItem.ruleDescription }}</div> <div class="detail-i">{{ childItem.ruleDescription }}</div>
<div class="detail-i">{{ childItem.targetMerchantName }}</div> <div class="detail-i">{{ childItem.targetMerchantName }}</div>
<div class="detail-i">{{ childItem.targetMerchantId }}</div> <div class="detail-i">{{ childItem.targetMerchantId }}</div>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</span> </span>
<span class="collapse" <span class="collapse"
@click="collapseItem(index)"> @click="collapseItem(index)">
<i :class="{ move: !formItem.show }" <i :class="{ move: formItem.show }"
class="arrow el-icon-arrow-down" /> class="arrow el-icon-arrow-down" />
{{ formItem.show ? "收起" : "展开" }} {{ formItem.show ? "收起" : "展开" }}
</span> </span>
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
getYqMerchantSceneConfigAPI({ yqMerchantId: this.info.yqMerchantId }).then(res => { getYqMerchantSceneConfigAPI({ yqMerchantId: this.info.yqMerchantId }).then(res => {
res?.forEach(val => { res?.forEach(val => {
this.sceneList.map(v => { this.sceneList.map(v => {
if (v.sceneType === val.scene && val.sceneOpenFlag === 1) { if (v.sceneType === val.scene && val.sceneOpenFlag === 0) {
v.isOpen = 'Y' v.isOpen = 'Y'
} }
return v return v
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
this.sceneList.forEach(v => { this.sceneList.forEach(v => {
arr.push({ arr.push({
merchantId: this.info.yqMerchantId, merchantId: this.info.yqMerchantId,
sceneOpenFlag: v.isOpen === 'Y' ? 1 : 0, sceneOpenFlag: v.isOpen === 'Y' ? 0 : 1,
scene: v.sceneType scene: v.sceneType
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!