Commit c88ddaaa by zhangxw

退款审核优化开发

1 parent f9eae6e6
......@@ -928,6 +928,13 @@ export const refundOrderSourceOpt = [
{ confId: 1, confValue: "小程序" }
]
// 订单管理-退款审核-退款类型
export const refundPayTypeOpt = [
{ confId: 1, confValue: "已录订单退款" },
{ confId: 2, confValue: "门店退款标记" },
{ confId: 3, confValue: "未关联流水退款" }
]
// 虚拟对公账户银盛到账模式
export const receiptModeList = [
{ confId: 1, confValue: "T+1" },
......
......@@ -11,10 +11,10 @@
label-width="200px"
:inline="true">
<el-form-item label="审批编号:">
{{ detailInfo.applyCode ? detailInfo.applyCode : "-" }}
{{ detailInfo.applyCode ? detailInfo.applyCode : "--" }}
</el-form-item>
<el-form-item label="标题:">
{{ detailInfo.title ? detailInfo.title : "-" }}
{{ detailInfo.title ? detailInfo.title : "--" }}
</el-form-item>
<div class="itemDiv">
<el-form-item label="付款主体:"
......@@ -22,13 +22,13 @@
{{
detailInfo.platformMerchantShowName
? detailInfo.platformMerchantShowName
: "-"
: "--"
}}
</el-form-item>
<el-form-item label="本次付款金额:"
class="halfItem">
{{
detailInfo.payAmount ? detailInfo.payAmount.toFixed(2) : "-"
detailInfo.payAmount ? detailInfo.payAmount.toFixed(2) : "--"
}}
</el-form-item>
</div>
......@@ -39,7 +39,7 @@
{{
detailInfo.refundPoints || detailInfo.refundPoints === 0
? detailInfo.refundPoints
: "-"
: "--"
}}
</el-form-item>
<el-form-item :label="'退还积分(' + detailInfo.deliveryEmployeeName + '):'"
......@@ -47,22 +47,22 @@
{{
detailInfo.refundPoints2 || detailInfo.refundPoints2 === 0
? detailInfo.refundPoints2
: "-"
: "--"
}}
</el-form-item>
</div>
<el-form-item label="付款事由:">
{{ detailInfo.payReason ? detailInfo.payReason : "-" }}
{{ detailInfo.payReason ? detailInfo.payReason : "--" }}
</el-form-item>
<div class="itemDiv">
<el-form-item label="收款人:"
class="halfItem">
{{ detailInfo.payee ? detailInfo.payee : "-" }}
{{ detailInfo.payee ? detailInfo.payee : "--" }}
</el-form-item>
<el-form-item label="开户行:"
class="halfItem">
{{
detailInfo.openAccBankName ? detailInfo.openAccBankName : "-"
detailInfo.openAccBankName ? detailInfo.openAccBankName : "--"
}}
</el-form-item>
</div>
......@@ -72,7 +72,7 @@
? detailInfo.bankAccountNo
.replace(/\s/g, "")
.replace(/(.{4})/g, "$1 ")
: "-"
: "--"
}}
</el-form-item>
</el-form>
......@@ -109,7 +109,7 @@
<div class="info-item">
<span class="item-label">支付金额:</span>
<span>{{
item.orderAmount ? item.orderAmount.toFixed(2) : "-"
item.orderAmount ? item.orderAmount.toFixed(2) : "--"
}}</span>
</div>
</block>
......@@ -127,10 +127,10 @@
<span class="max-width">{{ detailInfo[item.name] }}</span>
</el-tooltip>
</template>
<template v-else><span>-</span></template>
<template v-else><span>--</span></template>
</template>
<template v-else>
<span>{{ detailInfo[item.name] || "-" }}</span>
<span>{{ detailInfo[item.name] || "--" }}</span>
</template>
</div>
<block v-for="(item, index) in busiInfoAttrObj.dynamic"
......@@ -174,7 +174,7 @@
<div class="title">
操作记录<el-button type="text"
class="edit-btn"
@click="handleRecordUpdate" v-if="detailInfo.approveType == 1">编辑</el-button>
@click="handleRecordUpdate" v-if="detailInfo.approveType == 1 && detailInfo.refundPayType != 2">编辑</el-button>
</div>
<div class="record-div">
<div class="record-div-d"
......
......@@ -43,31 +43,31 @@
:show-btn-ids="['9040804']" />
</span>
<!-- 补充 -->
<span style="margin-right: 10px;" v-if="scope.scope.status == 8 && !scope.scope.oaApproveStatus">
<span style="margin-right: 10px;" v-if="scope.scope.status == 8 && !scope.scope.oaApproveStatus && scope.scope.refundPayType != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040810']" />
</span>
<!-- 审核 -->
<span style="margin-right: 10px;"
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2) && scope.scope.approveType == 1">
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2) && scope.scope.approveType == 1 && scope.scope.refundPayType != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040805']" />
</span>
<!-- 结算 -->
<span style="margin-right: 10px;"
v-if="scope.scope.status == 3 && scope.scope.approveType == 1">
v-if="scope.scope.status == 3 && scope.scope.approveType == 1 && scope.scope.refundPayType != 1 && scope.scope.refundPayType != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040806']" />
</span>
<!-- 驳回 -->
<span style="margin-right: 10px;"
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3) && scope.scope.approveType == 1">
v-if="(scope.scope.status == 0 || scope.scope.status == 1 || scope.scope.status == 2 || scope.scope.status == 3) && scope.scope.approveType == 1 && scope.scope.refundPayType != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040807']" />
</span>
<!-- 下载 -->
<span style="margin-right: 10px;"
v-if="scope.scope.approveType == 1 && ![7, 8].includes(scope.scope.status)">
v-if="scope.scope.approveType == 1 && ![7, 8].includes(scope.scope.status) && scope.scope.refundPayType != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9040808']" />
<span v-if="scope.scope.downCount != 0"
......@@ -113,7 +113,7 @@
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { refundExamine_status, refundExamine_approveTypeOpt, oaApproveStatusOpt, refundOrderSourceOpt } from '@/common/constants.js'
import { refundExamine_status, refundExamine_approveTypeOpt, oaApproveStatusOpt, refundOrderSourceOpt, refundPayTypeOpt } from '@/common/constants.js'
import examineDialog from './components/examineDialog'
import rejectDialog from './components/rejectDialog'
import detailDialog from './components/detailDialog'
......@@ -144,7 +144,8 @@ export default {
applyTime: '',
approveType: '',
oaApproveStatus: '',
refundOrderSource: ''
refundOrderSource: '',
refundPayType: ''
},
searchFormSearch: {},
showFormData: [{
......@@ -238,6 +239,14 @@ export default {
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'refundOrderSourceOpt'
}, {
label: '退款类型',
name: 'refundPayType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'refundPayTypeOpt'
}],
getListApi: refundApplyRecordPage,
tableParams: {
......@@ -370,6 +379,13 @@ export default {
formatter: (cellValue) => {
return this.baseData.approveTypeOpt.find(item => item.confId === cellValue.approveType)?.confValue
}
}, {
label: '退款类型',
prop: 'refundPayType',
width: '100px',
formatter: (cellValue) => {
return this.baseData.refundPayTypeOpt.find(item => item.confId === cellValue.refundPayType)?.confValue
}
}
]
},
......@@ -378,7 +394,8 @@ export default {
approveTypeOpt: deepClone(refundExamine_approveTypeOpt),
oaApproveStatusOpt: deepClone(oaApproveStatusOpt),
platformMerchantIdList: [],
refundOrderSourceOpt: deepClone(refundOrderSourceOpt)
refundOrderSourceOpt: deepClone(refundOrderSourceOpt),
refundPayTypeOpt: deepClone(refundPayTypeOpt)
},
infos: [],
......@@ -475,7 +492,8 @@ export default {
matchBizOrderCode: '',
approveType: '',
oaApproveStatus: '',
refundOrderSource: ''
refundOrderSource: '',
refundPayType: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!