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