@@ -233,7 +235,7 @@
@change="ifGroup">
-
+
@@ -242,7 +244,7 @@
-
+
-
+
@@ -392,7 +394,7 @@ import { hasMenuPermission } from '@/utils/menuTreePermission.js'
import _ from 'lodash'
// 导入客服相关规则和静态数据
import { addFormRule } from './utils/recriveFormRules.js'
-import { productList, MarketNameForId, CurrencyForId, marketList, statusList } from './utils/staticData.js'
+import { productList, MarketNameForId, CurrencyForId, marketList, statusList, numUnitList } from './utils/staticData.js'
// ===================== 基础状态管理(仅保留客服相关) =====================
const adminStore = useAdminStore();
@@ -504,7 +506,6 @@ const addFormData = ref({ name: '', market: '', permanentGold: 0, freeGold: 0, g
const addFormRef = ref(null) // 表单引用
const addOrEdit = ref(0) // 1=新增,2=编辑
const isGold = ref(false) // 是否为金币充值产品
-const productUnit = ref('个') // 产品单位
const productSelectRef = ref(null) // 产品选择器引用
const uploadRef = ref(null) // 上传组件引用
@@ -515,9 +516,14 @@ const ifGold = () => {
addFormData.value.goodNum = 0
} else {
isGold.value = false
- // 特殊产品单位为“年”
- const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", "静态信息费", "博股会员"]
- productUnit.value = selectItems.includes(addFormData.value.goodsName) ? '年' : '个'
+ const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", 'HC信息费']
+ if (selectItems.includes(addFormData.value.goodsName)) {
+ addFormData.value.numUnit = ''
+ } else if (addFormData.value.goodsName == '静态信息费') {
+ addFormData.value.numUnit = '年'
+ }else{
+ addFormData.value.numUnit = '个'
+ }
}
}
@@ -740,8 +746,6 @@ const ifRefundGold = () => {
refundFormData.value.goodNum = 0
} else {
isRefundGold.value = false
- const selectItems = ["AI机构追踪", "AI机构出击", "AI机构资金", "AI机活跃度", "超级机构透视", "超级机构伏击", "超级机构猎杀", "超级机构脉搏", "超级机构罗盘", "静态信息费", "博股会员"]
- productUnit.value = selectItems.includes(refundFormData.value.goodsName) ? '年' : '个'
}
}
diff --git a/src/views/moneyManage/receiveDetail/utils/recriveFormRules.js b/src/views/moneyManage/receiveDetail/utils/recriveFormRules.js
index 12589fc..7f1bb2d 100644
--- a/src/views/moneyManage/receiveDetail/utils/recriveFormRules.js
+++ b/src/views/moneyManage/receiveDetail/utils/recriveFormRules.js
@@ -9,7 +9,7 @@ export const addFormRule = {
{ required: true, message: '请输入客户姓名', trigger: 'blur' }
],
// 所属地区:必填
- marketName: [
+ market: [
{ required: true, message: '请选择所属地区', trigger: 'blur' }
],
// 活动名称:必填 + 长度小于30
@@ -80,14 +80,6 @@ export const addFormRule = {
// 付款时间:必填
payTime: [
{ required: true, message: '请选择付款时间', trigger: 'change' }
- ],
- // 转账凭证:必填
- voucher: [
- { required: true, message: '请上传转账凭证', trigger: 'change' }
- ],
- // 备注:必填
- remark: [
- { required: true, message: '请输入备注', trigger: 'blur' }
]
};
diff --git a/src/views/moneyManage/receiveDetail/utils/staticData.js b/src/views/moneyManage/receiveDetail/utils/staticData.js
index 12acd6a..35dce6c 100644
--- a/src/views/moneyManage/receiveDetail/utils/staticData.js
+++ b/src/views/moneyManage/receiveDetail/utils/staticData.js
@@ -256,4 +256,6 @@ export const statusList = [
name: '已驳回',
value: 2
},
-]
\ No newline at end of file
+]
+
+export const numUnitList = ['个', '年', '月']
\ No newline at end of file