Browse Source

精网号最长8位

lihuilin/feature-20251104102812-现金二期
lihuilin 6 days ago
parent
commit
8d944a595c
  1. 24
      src/views/moneyManage/executor/executor.vue
  2. 25
      src/views/moneyManage/refundDetail/refundCharge.vue
  3. 23
      src/views/moneyManage/refundDetail/refundFinance.vue
  4. 28
      src/views/moneyManage/refundDetail/refundHeader.vue
  5. 22
      src/views/moneyManage/refundDetail/refundService.vue

24
src/views/moneyManage/executor/executor.vue

@ -41,8 +41,8 @@
<div class="search2" style="width: 25.5vw;"> <div class="search2" style="width: 25.5vw;">
<el-text size="large" style="width:4vw;">退款时间</el-text> <el-text size="large" style="width:4vw;">退款时间</el-text>
<el-date-picker v-model="dateRange" type="datetimerange" range-separator="" start-placeholder="起始时间" <el-date-picker v-model="dateRange" type="datetimerange" range-separator="" start-placeholder="起始时间"
end-placeholder="结束时间" style="width:18vw;" clearable
:disabled-date="disabledDate" :default-time="defaultTime" />
end-placeholder="结束时间" style="width:18vw;" clearable :disabled-date="disabledDate"
:default-time="defaultTime" />
</div> </div>
<div> <div>
<el-button type="primary" size="medium" @click="getRefund">查询</el-button> <el-button type="primary" size="medium" @click="getRefund">查询</el-button>
@ -127,7 +127,8 @@
layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" style="margin-top: 1vh;" /> layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" style="margin-top: 1vh;" />
</el-card> </el-card>
<el-dialog v-model="showEdit" class="edit" overflow draggable style="width: 40vw; background-color: #F3FAFE !important;">
<el-dialog v-model="showEdit" class="edit" overflow draggable
style="width: 40vw; background-color: #F3FAFE !important;">
<div style="display: flex;"> <div style="display: flex;">
<div class="left"> <div class="left">
<div class="dialog-item"> <div class="dialog-item">
@ -175,7 +176,8 @@
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">转账凭证</el-text> <el-text style="width:4vw;">转账凭证</el-text>
<img v-if="editRow.payVoucher" :src="editRow.payVoucher" style="width: 80px; height: 80px; object-fit: cover;">
<img v-if="editRow.payVoucher" :src="editRow.payVoucher"
style="width: 80px; height: 80px; object-fit: cover;">
<div v-else> <div v-else>
无转账凭证 无转账凭证
</div> </div>
@ -284,9 +286,17 @@ const getRefund = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) {
ElMessage.error('请输入正确的精网号')
return;
}
}
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
} }
const params = { const params = {

25
src/views/moneyManage/refundDetail/refundCharge.vue

@ -421,10 +421,6 @@ const getRefund = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) { if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) { if (!isPositiveInteger) {
@ -432,6 +428,11 @@ const getRefund = async function () {
return; return;
} }
} }
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
if (searchForm.value.paymentCurrency) { if (searchForm.value.paymentCurrency) {
payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency)
@ -599,10 +600,18 @@ const exportExcel = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) {
ElMessage.error('请输入正确的精网号')
return
}
}
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
if (searchForm.value.paymentCurrency) { if (searchForm.value.paymentCurrency) {
payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency)

23
src/views/moneyManage/refundDetail/refundFinance.vue

@ -103,7 +103,8 @@
style="margin-top: 1vh;"></el-pagination> style="margin-top: 1vh;"></el-pagination>
</el-card> </el-card>
<el-dialog v-model="showAudit" title="审核" class="audit" width="35vw" overflow draggable style="background-color: #F3FAFE !important;">
<el-dialog v-model="showAudit" title="审核" class="audit" width="35vw" overflow draggable
style="background-color: #F3FAFE !important;">
<div class="top"> <div class="top">
<el-button @click="" class="smallTitle" size="small">退款申请信息</el-button> <el-button @click="" class="smallTitle" size="small">退款申请信息</el-button>
<div class="top-item"> <div class="top-item">
@ -479,10 +480,6 @@ const getRefund = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) { if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) { if (!isPositiveInteger) {
@ -490,6 +487,11 @@ const getRefund = async function () {
return; return;
} }
} }
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,
@ -652,12 +654,8 @@ const exportExcel = async function () {
} }
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '';
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) { if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) { if (!isPositiveInteger) {
@ -665,6 +663,11 @@ const exportExcel = async function () {
return; return;
} }
} }
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,

28
src/views/moneyManage/refundDetail/refundHeader.vue

@ -104,7 +104,8 @@
style="margin-top: 1vh;"></el-pagination> style="margin-top: 1vh;"></el-pagination>
</el-card> </el-card>
<el-dialog v-model="showAudit2" title="审核" class="audit2" width="35vw" overflow draggable style="background-color: #F3FAFE !important;">
<el-dialog v-model="showAudit2" title="审核" class="audit2" width="35vw" overflow draggable
style="background-color: #F3FAFE !important;">
<div class="top"> <div class="top">
<el-button @click="" class="smallTitle" size="small">退款申请信息</el-button> <el-button @click="" class="smallTitle" size="small">退款申请信息</el-button>
<div class="top-item"> <div class="top-item">
@ -477,10 +478,6 @@ const getRefund = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) { if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) { if (!isPositiveInteger) {
@ -488,6 +485,11 @@ const getRefund = async function () {
return; return;
} }
} }
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,
@ -633,10 +635,18 @@ const exportExcel = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) {
ElMessage.error('请输入正确的精网号')
return;
}
}
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,

22
src/views/moneyManage/refundDetail/refundService.vue

@ -115,7 +115,8 @@
style="margin-top: 1vh;"></el-pagination> style="margin-top: 1vh;"></el-pagination>
</el-card> </el-card>
<el-dialog v-model="showEdit" title="退款" class="editDialog" overflow draggable style="width: 40vw; background-color: #F3FAFE !important;">
<el-dialog v-model="showEdit" title="退款" class="editDialog" overflow draggable
style="width: 40vw; background-color: #F3FAFE !important;">
<div style="display: flex;"> <div style="display: flex;">
<div class="left"> <div class="left">
<div class="add-item"> <div class="add-item">
@ -287,10 +288,6 @@ const getRefund = async function () {
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
// if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
// ElMessage.error('')
// return
// }
if (searchForm.value.jwcode) { if (searchForm.value.jwcode) {
const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode);
if (!isPositiveInteger) { if (!isPositiveInteger) {
@ -298,6 +295,11 @@ const getRefund = async function () {
return; return;
} }
} }
// 400
if (searchForm.value.jwcode.length > 8) {
ElMessage.error('精网号长度不能超过8位')
return;
}
const params = { const params = {
pageNum: pagination.value.pageNum, pageNum: pagination.value.pageNum,
@ -375,8 +377,8 @@ const submitEdit = async function () {
jwcode: editRow.value.jwcode, jwcode: editRow.value.jwcode,
paymentAmount: editRow.value.paymentAmount, paymentAmount: editRow.value.paymentAmount,
paymentCurrency: editRow.value.paymentCurrency, paymentCurrency: editRow.value.paymentCurrency,
newRefundGold: (editForm.value.partRefundGold*100),
newRefundFree: (editForm.value.partRefundFree)*100
newRefundGold: (editForm.value.partRefundGold * 100),
newRefundFree: (editForm.value.partRefundFree) * 100
} }
console.log(editRow.value.goodsName); console.log(editRow.value.goodsName);
@ -385,12 +387,12 @@ const submitEdit = async function () {
params.newRefundGold = '' params.newRefundGold = ''
params.newRefundFree = '' params.newRefundFree = ''
} }
if(editRow.value.goodsName == '金币充值'){
if(editForm.value.partRefundGold>editRow.value.gold){
if (editRow.value.goodsName == '金币充值') {
if (editForm.value.partRefundGold > editRow.value.gold) {
ElMessage.error('退款金币数不能大于原金币数') ElMessage.error('退款金币数不能大于原金币数')
return return
} }
if(editForm.value.partRefundFree>editRow.value.free){
if (editForm.value.partRefundFree > editRow.value.free) {
ElMessage.error('退款免费金币数不能大于原免费金币数') ElMessage.error('退款免费金币数不能大于原免费金币数')
return return
} }

Loading…
Cancel
Save