Browse Source

好多bug

lihuilin/feature-20251104102812-现金二期
lihuilin 1 week ago
parent
commit
b1eb81de6d
  1. 11
      src/views/activityManage/activity.vue
  2. 19
      src/views/moneyManage/executor/executor.vue
  3. 10
      src/views/moneyManage/refundDetail/refundCharge.vue
  4. 10
      src/views/moneyManage/refundDetail/refundFinance.vue
  5. 24
      src/views/moneyManage/refundDetail/refundHeader.vue
  6. 16
      src/views/moneyManage/refundDetail/refundService.vue

11
src/views/activityManage/activity.vue

@ -85,8 +85,7 @@
<el-dialog v-model="showAdd" width="20vw" draggable align-center style="background-color: rgb(243,250,254);"> <el-dialog v-model="showAdd" width="20vw" draggable align-center style="background-color: rgb(243,250,254);">
<div class="add-item"> <div class="add-item">
<el-text size="large">活动名称</el-text> <el-text size="large">活动名称</el-text>
<el-input v-model="addForm.activityName" style="width: 12vw" placeholder="请输入活动名称" maxlength="100"
clearable />
<el-input v-model="addForm.activityName" style="width: 12vw" placeholder="请输入活动名称" maxlength="200" clearable />
</div> </div>
<div class="add-item"> <div class="add-item">
<el-text size="large">业绩归属</el-text> <el-text size="large">业绩归属</el-text>
@ -119,8 +118,7 @@
<el-dialog v-model="showEdit" width="20vw" draggable align-center style="background-color: rgb(243,250,254);"> <el-dialog v-model="showEdit" width="20vw" draggable align-center style="background-color: rgb(243,250,254);">
<div class="edit-item"> <div class="edit-item">
<el-text size="large">活动名称</el-text> <el-text size="large">活动名称</el-text>
<el-input v-model="editForm.activityName" style="width: 12vw" placeholder="请输入活动名称" maxlength="100"
clearable />
<el-input v-model="editForm.activityName" style="width: 12vw" placeholder="请输入活动名称" maxlength="200" clearable />
</div> </div>
<div class="edit-item"> <div class="edit-item">
@ -166,8 +164,8 @@ const { adminData, menuTree } = storeToRefs(adminStore)
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue' import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
import _ 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}$/;
//const activityNameReg = /^[-a-zA-Z0-9\u4e00-\u9fa5~,.!?:;'"()[]_-&+=]{0,200}$/;
const tableData = ref([]) const tableData = ref([])
const pagination = ref({ const pagination = ref({
pageNum: 1, pageNum: 1,
@ -299,6 +297,7 @@ const handleEdit = async function () {
ElMessage.error('请选择结束时间') ElMessage.error('请选择结束时间')
return return
} }
if(editForm.value.businessBelong === '客户归属地'){ if(editForm.value.businessBelong === '客户归属地'){
editForm.value.area = [] editForm.value.area = []
} }

19
src/views/moneyManage/executor/executor.vue

@ -123,6 +123,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="pagination.pageNum" v-model:page-size="pagination.pageSize" <el-pagination v-model:current-page="pagination.pageNum" v-model:page-size="pagination.pageSize"
@size-change="handlePageSizeChange" @current-change="handleCurrentChange"
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>
@ -166,7 +167,7 @@
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">付款时间</el-text> <el-text style="width:4vw;">付款时间</el-text>
<el-date-picker v-model="editRow.payTime" type="datetime" style="width:10vw;" disabled />
<el-input v-model="editRow.payTime" style="width:10vw;" disabled />
</div> </div>
<div class="dialog-item"> <div class="dialog-item">
<el-text style="width:4vw;">提交人</el-text> <el-text style="width:4vw;">提交人</el-text>
@ -342,7 +343,7 @@ const submitRefund = async function () {
hideEditDialog() hideEditDialog()
getRefund() getRefund()
} else { } else {
ElMessage.error(result.data.msg || '提交失败')
ElMessage.error(result.msg || '提交失败')
} }
} catch (error) { } catch (error) {
ElMessage.error(error.message || '提交失败') ElMessage.error(error.message || '提交失败')
@ -379,6 +380,12 @@ const getMarket = async function () {
} }
const showEditDialog = (row) => { const showEditDialog = (row) => {
editRow.value = row editRow.value = row
editForm.value.refundCurrency = ''
editForm.value.refundAmount = ''
editForm.value.channels = []
editForm.value.refundTime = ''
editForm.value.refundRemark = ''
editForm.value.imageUrl = ''
showEdit.value = true showEdit.value = true
} }
const hideEditDialog = () => { const hideEditDialog = () => {
@ -548,6 +555,14 @@ const reset = function () {
dateRange.value = [] dateRange.value = []
getRefund() getRefund()
} }
const handlePageSizeChange = function (val) {
pagination.value.pageSize = val
getRefund()
}
const handleCurrentChange = function (val) {
pagination.value.pageNum = val
getRefund()
}
onMounted(() => { onMounted(() => {
console.log('???????????????????', adminData.value) console.log('???????????????????', adminData.value)
getRefund() getRefund()

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

@ -15,7 +15,7 @@
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" <el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;"
placeholder="请选择产品名称" clearable /> placeholder="请选择产品名称" clearable />
</div> </div>
<div class="item1">
<div class="item1" v-if="adminData.markets === '总部'">
<el-text size="large" style="width:4vw;">所属地区</el-text> <el-text size="large" style="width:4vw;">所属地区</el-text>
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区" <el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区"
clearable @change="handleMarketChange" /> clearable @change="handleMarketChange" />
@ -745,6 +745,14 @@ const disabledDate = (time) => {
const limitDate = new Date(2025, 0, 1); const limitDate = new Date(2025, 0, 1);
return time.getTime() < limitDate.getTime(); return time.getTime() < limitDate.getTime();
} }
const handlePageSizeChange = function (val) {
pagination.value.pageSize = val
getRefund()
}
const handleCurrentChange = function (val) {
pagination.value.pageNum = val
getRefund()
}
onMounted(() => { onMounted(() => {
getRefund() getRefund()
getMarket() getMarket()

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

@ -14,7 +14,7 @@
<el-text size="large" style="width:4vw;">产品名称</el-text> <el-text size="large" style="width:4vw;">产品名称</el-text>
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" clearable /> <el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" clearable />
</div> </div>
<div class="item1">
<div class="item1" v-if="adminData.markets === '总部'">
<el-text size="large" style="width:4vw;">所属地区</el-text> <el-text size="large" style="width:4vw;">所属地区</el-text>
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区" <el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区"
clearable @change="handleMarketChange" /> clearable @change="handleMarketChange" />
@ -809,6 +809,14 @@ const disabledDate = (time) => {
const limitDate = new Date(2025, 0, 1); const limitDate = new Date(2025, 0, 1);
return time.getTime() < limitDate.getTime(); return time.getTime() < limitDate.getTime();
} }
const handlePageSizeChange = function (val) {
pagination.value.pageSize = val
getRefund()
}
const handleCurrentChange = function (val) {
pagination.value.pageNum = val
getRefund()
}
onMounted(() => { onMounted(() => {
console.log('???????????????????', adminData.value) console.log('???????????????????', adminData.value)
getRefund() getRefund()

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

@ -15,7 +15,7 @@
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" <el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;"
placeholder="请选择产品名称" clearable /> placeholder="请选择产品名称" clearable />
</div> </div>
<div class="item1">
<div class="item1" v-if="adminData.markets === '总部'">
<el-text size="large" style="width:4vw;">所属地区</el-text> <el-text size="large" style="width:4vw;">所属地区</el-text>
<el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区" <el-cascader style="width: 9vw;" v-model="searchForm.markets" :options="market" placeholder="请选择所属地区"
clearable @change="handleMarketChange" /> clearable @change="handleMarketChange" />
@ -234,7 +234,7 @@
<div class="steps"> <div class="steps">
<div class="steps-content"> <div class="steps-content">
<el-steps :active="currentStep" align-center> <el-steps :active="currentStep" align-center>
<el-step>
<el-step v-if="false">
<template #title> <template #title>
<div> <div>
提交人<br>{{ submitter || '未知提交人' }} 提交人<br>{{ submitter || '未知提交人' }}
@ -352,6 +352,18 @@ import { permissionMapping, findMenuById, hasMenuPermission } from "@/utils/menu
import moment from 'moment' import moment from 'moment'
import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js' import { productList } from '@/views/moneyManage/receiveDetail/utils/staticData.js'
const startsWith1 = (mainStr, prefix) => {
//
if (prefix === '') {
return true;
}
//
if (mainStr.length < prefix.length) {
return false;
}
//
return mainStr.substring(0, prefix.length) === prefix;
}
const currentStep = ref(0)// const currentStep = ref(0)//
const searchForm = ref({ const searchForm = ref({
jwcode: '', jwcode: '',
@ -798,6 +810,14 @@ const disabledDate = (time) => {
const limitDate = new Date(2025, 0, 1); const limitDate = new Date(2025, 0, 1);
return time.getTime() < limitDate.getTime(); return time.getTime() < limitDate.getTime();
} }
const handlePageSizeChange = function (val) {
pagination.value.pageSize = val
getRefund()
}
const handleCurrentChange = function (val) {
pagination.value.pageNum = val
getRefund()
}
onMounted(() => { onMounted(() => {
console.log('???????????????????', adminData.value) console.log('???????????????????', adminData.value)
getRefund() getRefund()

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

@ -14,7 +14,7 @@
<el-text size="large" style="width:4vw;">产品名称</el-text> <el-text size="large" style="width:4vw;">产品名称</el-text>
<el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" clearable /> <el-cascader v-model="searchForm.goodsName" :options="productList" style="width: 10vw;" clearable />
</div> </div>
<div class="item1">
<div class="item1" v-if="adminData.markets === '总部'">
<el-text size="large" style="width:4vw;">所属地区</el-text> <el-text size="large" style="width:4vw;">所属地区</el-text>
<el-cascader style="width: 9vw;" v-model="searchForm.market" :options="market" placeholder="请选择所属地区" <el-cascader style="width: 9vw;" v-model="searchForm.market" :options="market" placeholder="请选择所属地区"
clearable @change="handleMarketChange" /> clearable @change="handleMarketChange" />
@ -199,7 +199,7 @@
</div> </div>
<div>ps:请在退款理由表明用户的退款需求</div> <div>ps:请在退款理由表明用户的退款需求</div>
<div style="display:flex;justify-content: center;margin-top: 5vh;"> <div style="display:flex;justify-content: center;margin-top: 5vh;">
<el-button type="default" @click="resetEdit">重置</el-button>
<el-button type="default" @click="cancelEdit">取消</el-button>
<el-button type="primary" @click="submitEdit">提交</el-button> <el-button type="primary" @click="submitEdit">提交</el-button>
</div> </div>
</div> </div>
@ -434,9 +434,15 @@ const previewImage = (imageUrl) => {
document.body.removeChild(viewer); document.body.removeChild(viewer);
}); });
}; };
const cancelEdit = function () {
editForm.value = {
refundModel: '',
refundReason: '',
partRefundGold: '',
partRefundFree: ''
}
showEdit.value = false
}
const currencies = ref([ const currencies = ref([
{ {
value: '新币', value: '新币',

Loading…
Cancel
Save