Browse Source

lihuilin/feature-20251104102812-现金二期
lihuilin 2 weeks ago
parent
commit
1132254022
  1. 8
      src/views/activityManage/activity.vue
  2. 9
      src/views/moneyManage/refundDetail/refundHeader.vue
  3. 18
      src/views/moneyManage/refundDetail/refundService.vue

8
src/views/activityManage/activity.vue

@ -104,7 +104,7 @@
</div> </div>
<div style="display: flex; justify-content: center; margin-top: 5vh;"> <div style="display: flex; justify-content: center; margin-top: 5vh;">
<el-button type="primary" @click="hideAdd">取消</el-button> <el-button type="primary" @click="hideAdd">取消</el-button>
<el-button type="primary" @click="handleAdd">确定</el-button>
<el-button type="primary" @click="throttleGetActivity">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -155,7 +155,7 @@ import { permissionMapping, hasMenuPermission } from "@/utils/menuTreePermission
const adminStore = useAdminStore(); const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore) const { adminData, menuTree } = storeToRefs(adminStore)
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue' import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
import { add } from 'lodash';
import _ from 'lodash'
// //
const activityNameReg = /^[-a-zA-Z0-9\u4e00-\u9fa5,。!?、;:“”‘’()《》【】——~,.!?:;'"()\[\]_&+=]{0,100}$/; const activityNameReg = /^[-a-zA-Z0-9\u4e00-\u9fa5,。!?、;:“”‘’()《》【】——~,.!?:;'"()\[\]_&+=]{0,100}$/;
@ -185,7 +185,6 @@ const editForm = ref({
id: '' id: ''
}) })
const marketOptions = ref([]) const marketOptions = ref([])
const getActivity = async function () { const getActivity = async function () {
const rechargeActivity = { const rechargeActivity = {
activityName: searchForm.value.activityName, activityName: searchForm.value.activityName,
@ -265,7 +264,8 @@ const handleAdd = async function () {
return return
} }
} }
//
const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false });
const handleEdit = async function () { const handleEdit = async function () {
const activityName = editForm.value.activityName const activityName = editForm.value.activityName
if (!validateActivityName(activityName)) return if (!validateActivityName(activityName)) return

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

@ -128,15 +128,16 @@
<el-text style="width:4vw;" size="small">精网号</el-text> <el-text style="width:4vw;" size="small">精网号</el-text>
<el-input v-model="auditRow.jwcode" size="small" style="width:10vw;" disabled /> <el-input v-model="auditRow.jwcode" size="small" style="width:10vw;" disabled />
</div> </div>
<div class="center-item">
<el-text style="width:4vw;" size="small">所属地区</el-text>
<el-input v-model="auditRow.marketName" size="small" style="width:10vw;" disabled />
</div>
<div class="center-item"> <div class="center-item">
<el-text style="width:4vw;" size="small">产品名称</el-text> <el-text style="width:4vw;" size="small">产品名称</el-text>
<el-input v-model="auditRow.goodsName" size="small" style="width:10vw;" disabled /> <el-input v-model="auditRow.goodsName" size="small" style="width:10vw;" disabled />
</div> </div>
<div class="center-item"> <div class="center-item">
<el-text style="width:4vw;" size="small">所属地区</el-text>
<el-input v-model="auditRow.marketName" size="small" style="width:10vw;" disabled />
</div>
<div class="center-item">
<el-text style="width:4vw;" size="small">付款金额</el-text> <el-text style="width:4vw;" size="small">付款金额</el-text>
<el-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled /> <el-input v-model="auditRow.paymentAmount" size="small" style="width:10vw;" disabled />
</div> </div>

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

@ -182,6 +182,16 @@
<el-radio value="1">部分退款</el-radio> <el-radio value="1">部分退款</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="add-item"
v-show="editRow.goodsName === '金币充值' && editForm.refundModel === '1'">
<el-text style="width:4vw;">永久金币</el-text>
<el-input v-model="editForm.partRefundGold" style="width:5vw;" />&nbsp;&nbsp;
</div>
<div class="add-item"
v-show="editRow.goodsName === '金币充值' && editForm.refundModel === '1'">
<el-text style="width:4vw;">免费金币</el-text>
<el-input v-model="editForm.partRefundFree" style="width:5vw;" />&nbsp;&nbsp;
</div>
<div class="add-item"> <div class="add-item">
<el-text style="width:4vw;">退款理由</el-text> <el-text style="width:4vw;">退款理由</el-text>
<el-input v-model="editForm.refundReason" style="width:10vw;" :rows="5" maxlength="150" <el-input v-model="editForm.refundReason" style="width:10vw;" :rows="5" maxlength="150"
@ -225,7 +235,6 @@ import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menu
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue' import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
import { pa } from 'element-plus/es/locales.mjs' import { pa } from 'element-plus/es/locales.mjs'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js' import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
import RefundRecallBackground from '@/assets/images/refund-recall.png' import RefundRecallBackground from '@/assets/images/refund-recall.png'
const dateRange = ref([]) const dateRange = ref([])
@ -499,7 +508,6 @@ const channelOptions = ref([{
label: 'Ipay88-链接收款' label: 'Ipay88-链接收款'
} }
]) ])
const reset = function () { const reset = function () {
searchForm.value = { searchForm.value = {
jwcode: '', jwcode: '',
@ -511,12 +519,6 @@ const reset = function () {
dateRange.value = [] dateRange.value = []
getRefund() getRefund()
} }
const resetEdit = function () {
editForm.value = {
refundModel: '',
refundReason: ''
}
}
const showBackDialog = function (row) { const showBackDialog = function (row) {
backRow.value = row backRow.value = row
showBack.value = true showBack.value = true

Loading…
Cancel
Save