Commit 9ba27063 by 前端

Merge branch 'dev_v4.31.0_1031' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into dev_v4.31.0_1031
2 parents 669a518a bf81151a
<!-- 财务分账测试 --> <!-- 财务分账测试 -->
<template> <template>
<d2-dialog title="分账测试" :is-visible="verificationCodeVisible" class="verificationCode" width="1000px" <d2-dialog title="分账测试" :is-visible="verificationCodeVisible" class="verificationCode" width="1000px"
@closeDialog="handleClose" @confirmDialog="handleConfirm"> @closeDialog="handleClose" @confirmDialog="handleConfirm">
<!-- <d2-container> --> <!-- <d2-container> -->
<el-form ref="form" border :model="form" :rules="rules" label-width="100px"> <el-form ref="form" border :model="form" :rules="rules" label-width="100px">
<div class="formItem"> <div class="formItem">
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
分账结果 分账结果
</p> </p>
<div class="tableHeader"><span class="serviceCharge item">手续费计算(仅针对线上支付订单)</span><span <div class="tableHeader"><span class="serviceCharge item">手续费计算(仅针对线上支付订单)</span><span
class="diversionSide item">导流方分润<span class="diversionSide item">导流方分润<span
v-if="rulesTestParams.goodsTypeGroupRule.shop4sDeductChargeFlag != 'Y'">不</span>扣除手续费;服务商分润<span v-if="rulesTestParams.goodsTypeGroupRule.shop4sDeductChargeFlag != 'Y'">不</span>扣除手续费;服务商分润<span
v-if="rulesTestParams.goodsTypeGroupRule.partnerDeductChargeFlag != 'Y'">不</span>扣除手续费</span> v-if="rulesTestParams.goodsTypeGroupRule.partnerDeductChargeFlag != 'Y'">不</span>扣除手续费</span>
</div> </div>
<el-table :header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }" <el-table :header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }"
:cell-style="{ 'text-align': 'center', 'color': '#666666;' }" border :span-method="objectSpanMethod" :cell-style="{ 'text-align': 'center', 'color': '#666666;' }" border :span-method="objectSpanMethod"
:data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults"> :data="categoryTableData.expenseCategoryCalculatedItemForRuleTestsResults">
<el-table-column prop="targetType" label="类型" width="143"> <el-table-column prop="targetType" label="类型" width="143">
<template slot-scope="scope"> <template slot-scope="scope">
{{ targetType[scope.row.targetType] }} {{ targetType[scope.row.targetType] }}
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
</p> </p>
<d2-table :table-data="resultTableData" :has-num="false" :has-page="false" :row-style="{ height: '40px' }" <d2-table :table-data="resultTableData" :has-num="false" :has-page="false" :row-style="{ height: '40px' }"
:header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }" :header-cell-style="{ background: '#F2F4F7', 'text-align': 'center', 'color': '#333333' }"
:cell-style="{ 'text-align': 'center', 'color': '#666666;' }" :table-params="tableParams" /> :cell-style="{ 'text-align': 'center', 'color': '#666666;' }" :table-params="tableParams" />
<!-- </d2-container> --> <!-- </d2-container> -->
</d2-dialog> </d2-dialog>
...@@ -92,7 +92,7 @@ const targetMerchantType = { ...@@ -92,7 +92,7 @@ const targetMerchantType = {
1: '平台方', 1: '平台方',
2: '服务商', 2: '服务商',
3: '4s店', 3: '4s店',
4: '子商户' 4: '平台方'
} }
export default { export default {
name: 'MerchantTestDialog', name: 'MerchantTestDialog',
...@@ -150,14 +150,14 @@ export default { ...@@ -150,14 +150,14 @@ export default {
virtualAccountCost: [{ required: true, message: '请输虚拟对账成本', trigger: ['change', 'blur'] }], virtualAccountCost: [{ required: true, message: '请输虚拟对账成本', trigger: ['change', 'blur'] }],
recoveryCost: [{ required: true, message: '请输回收成本', trigger: ['change', 'blur'] }], recoveryCost: [{ required: true, message: '请输回收成本', trigger: ['change', 'blur'] }],
goodsCost: [{ required: true, message: '请输入商品成本', trigger: ['change', 'blur'] }, goodsCost: [{ required: true, message: '请输入商品成本', trigger: ['change', 'blur'] },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (!this.form.totalPrice) return callback(new Error('请先输入商品价格')) if (!this.form.totalPrice) return callback(new Error('请先输入商品价格'))
if (value > Number(this.form.totalPrice)) return callback(new Error('成本不能大于商品价格')) if (value > Number(this.form.totalPrice)) return callback(new Error('成本不能大于商品价格'))
return callback() return callback()
}, },
trigger: 'change' trigger: 'change'
} }
] ]
}, },
tableParams: { tableParams: {
......
...@@ -4,16 +4,9 @@ ...@@ -4,16 +4,9 @@
<p class="edit-sub-title"> <p class="edit-sub-title">
分账金额设置 分账金额设置
</p> </p>
<el-form ref="divisionRuleRef" <el-form ref="divisionRuleRef" :model="form" :rules="rules" label-suffix=":" label-width="180px">
:model="form" <el-form-item label="" label-width="54px">
:rules="rules" <table cellpadding="0" cellspacing="0" class="table-block">
label-suffix=":"
label-width="180px">
<el-form-item label=""
label-width="54px">
<table cellpadding="0"
cellspacing="0"
class="table-block">
<!-- <tr> <!-- <tr>
<th rowspan="2"> <th rowspan="2">
分账方-账户 分账方-账户
...@@ -23,10 +16,9 @@ ...@@ -23,10 +16,9 @@
</th> </th>
</tr> --> </tr> -->
<tr class="tableHeader"> <tr class="tableHeader">
<td>分账对象/分账方</td> <td>分账对象/分账项目</td>
<td>平台方分账金额</td> <td>平台方分账金额</td>
<td v-for="(item,index) in radioList" <td v-for="(item, index) in radioList" :key="index">{{ item.applicationObjectName }}</td>
:key="index">{{ item.applicationObjectName }}</td>
<!-- <td v-if="merchantAccountInfo.partnerSettleAccountModel == 1"> <!-- <td v-if="merchantAccountInfo.partnerSettleAccountModel == 1">
服务商分账金额 服务商分账金额
</td> --> </td> -->
...@@ -47,34 +39,24 @@ ...@@ -47,34 +39,24 @@
<!-- class="one-line-ellipsis" <!-- class="one-line-ellipsis"
style="width: 300px;" --> style="width: 300px;" -->
<!-- 对应的分账对象 --> <!-- 对应的分账对象 -->
<p :title="item|filterMerchantType" <p :title="item | filterMerchantType" v-for="(item, index) in tableSelectOptions" :key="index">
v-for="(item,index) in tableSelectOptions" {{ item | filterMerchantType }}
:key="index">
{{ item|filterMerchantType }}
</p> </p>
</td> </td>
<td class="p-b-20"> <td class="p-b-20">
<el-form-item label-width="0px"> <el-form-item label-width="0px">
<el-radio-group v-model="platformSideLabel"> <el-radio-group v-model="platformSideLabel">
<el-radio v-for="(item, index) in tableSelectOptions" <el-radio v-for="(item, index) in tableSelectOptions" :key="index + 'index'" :disabled="item != 0"
:key="index+'index'" :label="index" />
:disabled="item!=0"
:label="index" />
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</td> </td>
<td class="p-b-20" <td class="p-b-20" v-for="(item, index) in radioList" :key="index + 'radioList'">
v-for="(item,index) in radioList" <el-form-item label-width="0" :prop="`id${item.id}`"
:key="index+'radioList'"> :rules="[{ required: true, message: `请选择${item.applicationObjectName}`, trigger: 'change' }]">
<el-form-item label-width="0" <el-radio-group v-model="form['id' + item.id]" @change="e => handleClearValid(e, 'id' + item.id)">
:prop="`id${item.id}`" <el-radio v-for="(el, index) in tableSelectOptions" :key="index" :label="+(el.merchantId)" />
:rules="[{ required: true, message: `请选择${item.applicationObjectName}`, trigger: 'change' }]">
<el-radio-group v-model="form['id'+item.id]"
@change="e => handleClearValid(e,'id'+item.id)">
<el-radio v-for="(el,index) in tableSelectOptions"
:key="index"
:label="+(el.merchantId)" />
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</td> </td>
...@@ -119,7 +101,7 @@ export default { ...@@ -119,7 +101,7 @@ export default {
1: '平台方', 1: '平台方',
2: '服务商', 2: '服务商',
3: '导流方', 3: '导流方',
4: '子商户' 4: '平台方'
} }
const type = val.targetMerchantType const type = val.targetMerchantType
return `${name[type]}: ${val.merchantName}` return `${name[type]}: ${val.merchantName}`
...@@ -282,10 +264,12 @@ export default { ...@@ -282,10 +264,12 @@ export default {
border: 1px solid #e5e6e7; border: 1px solid #e5e6e7;
border-width: 1px 0 0 1px; border-width: 1px 0 0 1px;
} }
.division-rule table tr { .division-rule table tr {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
} }
.division-rule table th, .division-rule table th,
.division-rule table td { .division-rule table td {
font-size: 12px; font-size: 12px;
...@@ -299,19 +283,23 @@ export default { ...@@ -299,19 +283,23 @@ export default {
/* overflow: hidden; */ /* overflow: hidden; */
/* text-overflow: ellipsis; */ /* text-overflow: ellipsis; */
} }
.division-rule .flex { .division-rule .flex {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
} }
.division-rule .table-block .el-radio { .division-rule .table-block .el-radio {
display: block; display: block;
height: 60px; height: 60px;
line-height: 42px; line-height: 42px;
margin-right: 0; margin-right: 0;
} }
.division-rule .table-block .el-radio__label { .division-rule .table-block .el-radio__label {
display: none !important; display: none !important;
} }
.p-b-20 { .p-b-20 {
padding-bottom: 26px !important; padding-bottom: 26px !important;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!