Commit a18dd2ab by chenwq

fix(financeManage): 修复退款订单显示条件及字段命名问题

修复SystemBillDetailDialog中退款标识显示条件错误,由sourceType==2改为!=1
统一ChooseRefundOrderDialog中的字段命名,orderCode改为orderCodeKeyword,upgradeGoodsName改为orderGoodsName
优化SystemBillDialog中的表单验证逻辑及UI显示
1 parent d011fab5
......@@ -2,8 +2,8 @@
<template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" @handleClick="handleAddConfirm">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="labelWidth" :form-data="showFormData">
<template slot="orderCode">
<el-input v-model="searchForm.orderCode" maxlength="50" placeholder="请输入订单编码" @input="handleOrderCode"></el-input>
<template slot="orderCodeKeyword">
<el-input v-model="searchForm.orderCodeKeyword" maxlength="50" placeholder="请输入订单编码" @input="handleOrderCode"></el-input>
</template>
</d2-search>
<div class="up-btns">
......@@ -63,7 +63,7 @@
<el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right">
<span v-html="formatSelected(selectedData)"></span>
</el-tooltip>
<span class="totle_price">{{ `共${selectedTotalPrice}元` }}</span>
<span class="totle_price">{{ selectedTotalPrice ? `共${selectedTotalPrice}元` : '--元' }}</span>
</div>
</baseDialog>
</template>
......@@ -99,17 +99,17 @@ export default {
},
tableData: [],
searchForm: {
orderCode: '',
orderCodeKeyword: '',
customerName: '',
payDate: '',
payType: '',
upgradeGoodsName: ''
orderGoodsName: ''
},
showFormData: [{
label: '订单编码',
name: '',
type: 'slot',
addHtml: 'orderCode'
addHtml: 'orderCodeKeyword'
}, {
label: '客户名称',
name: 'customerName',
......@@ -133,7 +133,7 @@ export default {
optionsName: 'searchPayTypeList'
}, {
label: '商品名称',
name: 'upgradeGoodsName',
name: 'orderGoodsName',
type: 'input',
maxlength: '50',
isClear: true
......@@ -197,7 +197,7 @@ export default {
// 订单编号查询条件 仅输入数字
handleOrderCode(e) {
let newValue = e.replace(/[^\d.]/g, '')
this.searchForm.orderCode = newValue
this.searchForm.orderCodeKeyword = newValue
},
handleChange(selection, row) {
// 不再选中后将输入框的值重置
......@@ -305,11 +305,11 @@ export default {
handleReset() {
this.searchForm = {
orderCode: '',
orderCodeKeyword: '',
customerName: '',
payDate: '',
payType: '',
upgradeGoodsName: ''
orderGoodsName: ''
}
this.page.currentPage = 1
this.handleSearch()
......
......@@ -17,7 +17,7 @@
</div>
<!-- 普通文本显示 -->
<div v-else>
<div v-if="subItem.fieldCode == 'orderCode' && scope.row.ORDER.sourceType == 2" class="refund-txt">退</div>
<div v-if="subItem.fieldCode == 'orderCode' && scope.row.ORDER.sourceType != 1" class="refund-txt">退</div>
<span v-if="subItem.fieldCode == 'tradeNo'" :class="scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length ? 'txt-blue': '' ">
<el-image v-if="scope.row.ORDER.payVoucherList && scope.row.ORDER.payVoucherList.length" style="width: 20px; height: 20px" :src="scope.row.ORDER.payVoucherList[0].payVoucher" :preview-src-list="srcList" @click="handleReviewImg(scope.row)"></el-image>
{{ scope.row[subItem.extInfo.source || 'ORDER'][subItem.fieldCode] || '-' }}</span>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!