diff --git a/src/utils/cache.ts b/src/utils/cache.ts
index e16973f..9338b32 100644
--- a/src/utils/cache.ts
+++ b/src/utils/cache.ts
@@ -1,5 +1,5 @@
const cache = {
- key: 'like_admin_',
+ key: 'like_admin_broker_',
//设置缓存(expire为缓存时效)
set(key: string, value: any, expire?: string) {
key = this.getKey(key)
diff --git a/src/views/withdraw/broker_bank/edit.vue b/src/views/finance/broker_bank/edit.vue
similarity index 69%
rename from src/views/withdraw/broker_bank/edit.vue
rename to src/views/finance/broker_bank/edit.vue
index b9833ba..76c76ee 100644
--- a/src/views/withdraw/broker_bank/edit.vue
+++ b/src/views/finance/broker_bank/edit.vue
@@ -2,9 +2,9 @@
@@ -56,7 +60,7 @@ const mode = ref('add')
// 弹窗标题
const popupTitle = computed(() => {
- return mode.value == '提现审核'
+ return mode.value == 'edit' ? '提现审核' : '新增提现'
})
// 表单数据
@@ -72,15 +76,39 @@ const formData = reactive({
mobile: '',
bank_card: '',
bank_name: '',
- bank_open_name: ''
+ bank_open_name: '',
+ voucher: ''
})
// 表单验证
const formRules = reactive({
+ voucher: [
+ {
+ validator: (_rule: any, value: string, callback: (error?: Error) => void) => {
+ if (Number(formData.status) === 1 && !value) {
+ callback(new Error('请上传打款证明'))
+ return
+ }
+ callback()
+ },
+ trigger: ['change', 'blur']
+ }
+ ]
})
+const handleStatusChange = () => {
+ if (Number(formData.status) !== 1) {
+ formData.voucher = ''
+ formRef.value?.clearValidate(['voucher'])
+ return
+ }
+ nextTick(() => {
+ formRef.value?.validateField('voucher')
+ })
+}
+
// 获取详情
const setFormData = async (data: Record) => {
diff --git a/src/views/withdraw/teamaster_user_reflect/index.vue b/src/views/withdraw/teamaster_user_reflect/index.vue
index 62ff8ab..5ad2327 100644
--- a/src/views/withdraw/teamaster_user_reflect/index.vue
+++ b/src/views/withdraw/teamaster_user_reflect/index.vue
@@ -45,12 +45,22 @@
已拒绝
+
+
+
+
+ —
+
+
+
+ @click="handleEdit(row)" v-if="row.status == 0">
编辑
+ 已操作
diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue
index 42964b2..08893c6 100644
--- a/src/views/workbench/index.vue
+++ b/src/views/workbench/index.vue
@@ -184,7 +184,7 @@ const workbenchData: any = reactive({
},
yAxis: {
type: 'value',
- name: '单位(万)'
+ name: '单位(元)'
},
tooltip: {
trigger: 'axis'