Browse Source

lihuilin/feature-20251104102812-现金二期
lihuilin 1 week ago
parent
commit
136152c50e
  1. 87
      src/views/moneyManage/executor/executor.vue
  2. 100
      src/views/moneyManage/refundDetail/refundCharge.vue
  3. 96
      src/views/moneyManage/refundDetail/refundFinance.vue
  4. 98
      src/views/moneyManage/refundDetail/refundHeader.vue
  5. 85
      src/views/moneyManage/refundDetail/refundService.vue

87
src/views/moneyManage/executor/executor.vue

@ -247,6 +247,7 @@ const adminStore = useAdminStore()
const { adminData, menuTree } = storeToRefs(adminStore)
import { permissionMapping, findMenuById } from "@/utils/menuTreePermission.js"
import moment from 'moment'
import { isNumber } from 'lodash'
const uploadUrl = 'https://api.homilychart.com/hljw/api/aws/upload'
const dateRange = ref([])
@ -280,9 +281,13 @@ const getRefund = async function () {
statusesParam.value = [40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
}
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
pageNum: pagination.value.pageNum,
@ -291,7 +296,7 @@ const getRefund = async function () {
jwcode: searchForm.value.jwcode,
name: searchForm.value.name,
markets: searchForm.value.markets,
goodsName: searchForm.value.goodsName,
goodsName: goodsName,
statuses: statusesParam.value,//1012
// 2022
// 3032
@ -398,78 +403,8 @@ const hideEditDialog = () => {
jwcode: ''
}
}
const channelOptions = ref([{
value: '银行转账',
label: '银行转账'
},
{
value: '刷卡',
label: '刷卡'
},
{
value: '现金',
label: '现金'
},
{
value: '支票',
label: '支票'
},
{
value: 'Grabpay',
label: 'Grabpay'
},
{
value: 'Nets',
label: 'Nets'
},
{
value: 'E-Transfer',
label: 'E-Transfer'
},
{
value: 'PayPal',
label: 'PayPal'
},
{
value: 'Stripe-链接收款',
label: 'Stripe-链接收款'
},
{
value: 'PaymentAsia-链接收款',
label: 'PaymentAsia-链接收款'
},
{
value: 'Ipay88-链接收款',
label: 'Ipay88-链接收款'
}
])
const currencies = ref([
{
value: '新币',
label: '新币'
},
{
value: '港币',
label: '港币'
},
{
value: '马币',
label: '马币'
},
{
value: '加币',
label: '加币'
},
{
value: '泰铢',
label: '泰铢'
},
{
value: '越南盾',
label: '越南盾'
}
])
const currencies = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
const channelOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"])
//
const previewImage = (imageUrl) => {

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

@ -31,14 +31,13 @@
<div class="item2">
<el-text size="large" style="width:4vw;">付款币种</el-text>
<el-select v-model="searchForm.paymentCurrency" style="width:9vw;" placeholder="请选择付款币种" clearable>
<el-option v-for="item in currencies" :key="item.value" :label="item.label" :value="item.value" />
<el-option v-for="item in currencies" :key="item" :label="item" :value="item" />
</el-select>
</div>
<div class="item2">
<el-text size="large" style="width:4vw;">支付方式</el-text>
<el-select v-model="searchForm.payType" style="width:9vw;" placeholder="请选择支付方式" clearable>
<el-option v-for="item in channelOptions" :key="item.value" :label="item.label"
:value="item.value" />
<el-option v-for="item in channelOptions" :key="item" :label="item" :value="item" />
</el-select>
</div>
<div class="item2" style="width: 28.5vw;">
@ -350,6 +349,7 @@ import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menu
import moment from 'moment'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import RefundChargeBackground from '@/assets/images/refund-progress.png'
import { isNumber } from 'lodash'
const currentStep = ref(0)//
const searchForm = ref({
@ -393,77 +393,8 @@ const statusStepMap = {
40: [7, false],
41: [8, false]
}
const currencies = ref([
{
value: '新币',
label: '新币'
},
{
value: '港币',
label: '港币'
},
{
value: '马币',
label: '马币'
},
{
value: '加币',
label: '加币'
},
{
value: '泰铢',
label: '泰铢'
},
{
value: '越南盾',
label: '越南盾'
}
])
const channelOptions = ref([{
value: '银行转账',
label: '银行转账'
},
{
value: '刷卡',
label: '刷卡'
},
{
value: '现金',
label: '现金'
},
{
value: '支票',
label: '支票'
},
{
value: 'Grabpay',
label: 'Grabpay'
},
{
value: 'Nets',
label: 'Nets'
},
{
value: 'E-Transfer',
label: 'E-Transfer'
},
{
value: 'PayPal',
label: 'PayPal'
},
{
value: 'Stripe-链接收款',
label: 'Stripe-链接收款'
},
{
value: 'PaymentAsia-链接收款',
label: 'PaymentAsia-链接收款'
},
{
value: 'Ipay88-链接收款',
label: 'Ipay88-链接收款'
}
])
const currencies = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
const channelOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"])
const statusList = ref(['待审核', '审核通过', '已驳回', '退款成功'])
//
const getRefund = async function () {
@ -485,8 +416,12 @@ const getRefund = async function () {
statuses.value = [20, 22, 30, 32, 40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
@ -496,7 +431,7 @@ const getRefund = async function () {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
markets: searchForm.value.markets,//
goodsName: searchForm.value.goodsName,//
goodsName: goodsName,//
statuses: statuses.value,//1012
// 2022
// 3032
@ -647,10 +582,13 @@ const exportExcel = async function () {
statuses.value = [20, 22, 30, 32, 40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
}
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
pageNum: pagination.value.pageNum,
@ -659,7 +597,7 @@ const exportExcel = async function () {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
markets: searchForm.value.markets,//
goodsName: searchForm.value.goodsName,//
goodsName: goodsName,//
statuses: statuses.value,//1012
// 2022
// 3032

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

@ -349,6 +349,7 @@ import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menu
import moment from 'moment'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import RefundFinanceBackground from '@/assets/images/refund-progress.png'
import { isNumber } from 'lodash'
const currentStep = ref(0)//
const searchForm = ref({
@ -476,8 +477,12 @@ const getRefund = async function () {
statusParam.value = [10, 20, 22, 30, 32, 40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
ElMessage.error('精网号必须为数字')
return
}
const params = {
@ -487,7 +492,7 @@ const getRefund = async function () {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
markets: searchForm.value.markets,//
goodsName: searchForm.value.goodsName,//
goodsName: goodsName,//
statuses: statusParam.value,//1012
// 2022
// 3032
@ -570,77 +575,9 @@ const handleReject = async function () {
ElMessage.error(error.message || '审核失败')
}
}
const currencies = ref([
{
value: '新币',
label: '新币'
},
{
value: '港币',
label: '港币'
},
{
value: '马币',
label: '马币'
},
{
value: '加币',
label: '加币'
},
{
value: '泰铢',
label: '泰铢'
},
{
value: '越南盾',
label: '越南盾'
}
])
const channelOptions = ref([{
value: '银行转账',
label: '银行转账'
},
{
value: '刷卡',
label: '刷卡'
},
{
value: '现金',
label: '现金'
},
{
value: '支票',
label: '支票'
},
{
value: 'Grabpay',
label: 'Grabpay'
},
{
value: 'Nets',
label: 'Nets'
},
{
value: 'E-Transfer',
label: 'E-Transfer'
},
{
value: 'PayPal',
label: 'PayPal'
},
{
value: 'Stripe-链接收款',
label: 'Stripe-链接收款'
},
{
value: 'PaymentAsia-链接收款',
label: 'PaymentAsia-链接收款'
},
{
value: 'Ipay88-链接收款',
label: 'Ipay88-链接收款'
}
])
const currencies = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
const channelOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"])
const getMarket = async function () {
try {
const result = await API({
@ -707,6 +644,15 @@ const exportExcel = async function () {
} else {
statusParam.value = [10, 20, 22, 30, 32, 40, 41]
}
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) {
ElMessage.error('精网号必须为数字')
return
}
const params = {
pageNum: pagination.value.pageNum,
pageSize: pagination.value.pageSize,
@ -714,7 +660,7 @@ const exportExcel = async function () {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
markets: searchForm.value.markets,//
goodsName: searchForm.value.goodsName[searchForm.value.goodsName.length - 1],//
goodsName: goodsName,//
statuses: statusParam.value,//1012
// 2022
// 3032

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

@ -361,7 +361,7 @@ const { adminData, menuTree } = storeToRefs(adminStore)
import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menuTreePermission.js"
import moment from 'moment'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import { isNumber } from 'lodash'
const startsWith1 = (mainStr, prefix) => {
//
if (prefix === '') {
@ -417,77 +417,9 @@ const statusStepMap = {
40: [7, false],
41: [8, false]
}
const currencies = ref([
{
value: '新币',
label: '新币'
},
{
value: '港币',
label: '港币'
},
{
value: '马币',
label: '马币'
},
{
value: '加币',
label: '加币'
},
{
value: '泰铢',
label: '泰铢'
},
{
value: '越南盾',
label: '越南盾'
}
])
const channelOptions = ref([{
value: '银行转账',
label: '银行转账'
},
{
value: '刷卡',
label: '刷卡'
},
{
value: '现金',
label: '现金'
},
{
value: '支票',
label: '支票'
},
{
value: 'Grabpay',
label: 'Grabpay'
},
{
value: 'Nets',
label: 'Nets'
},
{
value: 'E-Transfer',
label: 'E-Transfer'
},
{
value: 'PayPal',
label: 'PayPal'
},
{
value: 'Stripe-链接收款',
label: 'Stripe-链接收款'
},
{
value: 'PaymentAsia-链接收款',
label: 'PaymentAsia-链接收款'
},
{
value: 'Ipay88-链接收款',
label: 'Ipay88-链接收款'
}
])
const currencies = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
const channelOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"])
const statusList = ref(['待审核', '审核通过', '已驳回', '退款成功'])
const executorList = ref([
{
@ -543,8 +475,12 @@ const getRefund = async function () {
statusParam.value = [30, 32, 40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
@ -554,7 +490,7 @@ const getRefund = async function () {
jwcode: searchForm.value.jwcode,
name: searchForm.value.name,
markets: searchForm.value.markets,
goodsName: searchForm.value.goodsName,
goodsName: goodsName,
statuses: statusParam.value,
paymentCurrency: searchForm.value.paymentCurrency,
payType: searchForm.value.payType,
@ -686,9 +622,13 @@ const exportExcel = async function () {
statusParam.value = [30, 32, 40, 41]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
}
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
pageNum: pagination.value.pageNum,
@ -697,7 +637,7 @@ const exportExcel = async function () {
jwcode: searchForm.value.jwcode,
name: searchForm.value.name,
markets: searchForm.value.markets,
goodsName: searchForm.value.goodsName,
goodsName: goodsName,
statuses: statusParam.value,
paymentCurrency: searchForm.value.paymentCurrency,
payType: searchForm.value.payType,

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

@ -234,6 +234,7 @@ import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
import { pa } from 'element-plus/es/locales.mjs'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import RefundRecallBackground from '@/assets/images/refund-recall.png'
import { isNumber } from 'lodash'
const dateRange = ref([])
const searchForm = ref({
@ -283,8 +284,12 @@ const getRefund = async function () {
statusParam.value = [12, 22, 32]
}
if (searchForm.value.goodsName) {
searchForm.value.goodsName = searchForm.value.goodsName[searchForm.value.goodsName.length - 1]
const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0
? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''
if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){
ElMessage.error('精网号必须为数字')
return
}
const params = {
@ -294,7 +299,7 @@ const getRefund = async function () {
jwcode: searchForm.value.jwcode,//
name: searchForm.value.name,//
markets: searchForm.value.market,//
goodsName: searchForm.value.goodsName,//
goodsName: goodsName,//
statuses: statusParam.value,//1012
// 2022
// 3032
@ -446,77 +451,9 @@ const cancelEdit = function () {
}
showEdit.value = false
}
const currencies = ref([
{
value: '新币',
label: '新币'
},
{
value: '港币',
label: '港币'
},
{
value: '马币',
label: '马币'
},
{
value: '加币',
label: '加币'
},
{
value: '泰铢',
label: '泰铢'
},
{
value: '越南盾',
label: '越南盾'
}
])
const channelOptions = ref([{
value: '银行转账',
label: '银行转账'
},
{
value: '刷卡',
label: '刷卡'
},
{
value: '现金',
label: '现金'
},
{
value: '支票',
label: '支票'
},
{
value: 'Grabpay',
label: 'Grabpay'
},
{
value: 'Nets',
label: 'Nets'
},
{
value: 'E-Transfer',
label: 'E-Transfer'
},
{
value: 'PayPal',
label: 'PayPal'
},
{
value: 'Stripe-链接收款',
label: 'Stripe-链接收款'
},
{
value: 'PaymentAsia-链接收款',
label: 'PaymentAsia-链接收款'
},
{
value: 'Ipay88-链接收款',
label: 'Ipay88-链接收款'
}
])
const currencies = ref(['美元(USD)', '港币(HKD)', '新币(SGD)', '马币(MYR)', '泰铢(THB)', '加币(CAD)', '越南盾(VDN)', '韩元(KRW)'])
const channelOptions = ref(["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"])
const reset = function () {
searchForm.value = {
jwcode: '',

Loading…
Cancel
Save