Commit c88ddaaa by zhangxw

退款审核优化开发

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