Commit a18dd2ab by chenwq

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

修复SystemBillDetailDialog中退款标识显示条件错误,由sourceType==2改为!=1
统一ChooseRefundOrderDialog中的字段命名,orderCode改为orderCodeKeyword,upgradeGoodsName改为orderGoodsName
优化SystemBillDialog中的表单验证逻辑及UI显示
1 parent d011fab5
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<template> <template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" @handleClick="handleAddConfirm"> <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"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="labelWidth" :form-data="showFormData">
<template slot="orderCode"> <template slot="orderCodeKeyword">
<el-input v-model="searchForm.orderCode" maxlength="50" placeholder="请输入订单编码" @input="handleOrderCode"></el-input> <el-input v-model="searchForm.orderCodeKeyword" maxlength="50" placeholder="请输入订单编码" @input="handleOrderCode"></el-input>
</template> </template>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right"> <el-tooltip class="item" :content="formatSelected(selectedData, 'all')" placement="right">
<span v-html="formatSelected(selectedData)"></span> <span v-html="formatSelected(selectedData)"></span>
</el-tooltip> </el-tooltip>
<span class="totle_price">{{ `共${selectedTotalPrice}元` }}</span> <span class="totle_price">{{ selectedTotalPrice ? `共${selectedTotalPrice}元` : '--元' }}</span>
</div> </div>
</baseDialog> </baseDialog>
</template> </template>
...@@ -99,17 +99,17 @@ export default { ...@@ -99,17 +99,17 @@ export default {
}, },
tableData: [], tableData: [],
searchForm: { searchForm: {
orderCode: '', orderCodeKeyword: '',
customerName: '', customerName: '',
payDate: '', payDate: '',
payType: '', payType: '',
upgradeGoodsName: '' orderGoodsName: ''
}, },
showFormData: [{ showFormData: [{
label: '订单编码', label: '订单编码',
name: '', name: '',
type: 'slot', type: 'slot',
addHtml: 'orderCode' addHtml: 'orderCodeKeyword'
}, { }, {
label: '客户名称', label: '客户名称',
name: 'customerName', name: 'customerName',
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
optionsName: 'searchPayTypeList' optionsName: 'searchPayTypeList'
}, { }, {
label: '商品名称', label: '商品名称',
name: 'upgradeGoodsName', name: 'orderGoodsName',
type: 'input', type: 'input',
maxlength: '50', maxlength: '50',
isClear: true isClear: true
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
// 订单编号查询条件 仅输入数字 // 订单编号查询条件 仅输入数字
handleOrderCode(e) { handleOrderCode(e) {
let newValue = e.replace(/[^\d.]/g, '') let newValue = e.replace(/[^\d.]/g, '')
this.searchForm.orderCode = newValue this.searchForm.orderCodeKeyword = newValue
}, },
handleChange(selection, row) { handleChange(selection, row) {
// 不再选中后将输入框的值重置 // 不再选中后将输入框的值重置
...@@ -305,11 +305,11 @@ export default { ...@@ -305,11 +305,11 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
orderCode: '', orderCodeKeyword: '',
customerName: '', customerName: '',
payDate: '', payDate: '',
payType: '', payType: '',
upgradeGoodsName: '' orderGoodsName: ''
} }
this.page.currentPage = 1 this.page.currentPage = 1
this.handleSearch() this.handleSearch()
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
<!-- 普通文本显示 --> <!-- 普通文本显示 -->
<div v-else> <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': '' "> <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> <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> {{ 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!