From e4f9739d74323aacf09d139700f22a383910ee97 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 04 三月 2026 10:38:32 +0800
Subject: [PATCH] 合并
---
admin/src/components/business/OperaWithdrawRecordWindow.vue | 34 +++++++++++++++++++++++++++-------
1 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/admin/src/components/business/OperaWithdrawRecordWindow.vue b/admin/src/components/business/OperaWithdrawRecordWindow.vue
index 40c6fba..40e58ca 100644
--- a/admin/src/components/business/OperaWithdrawRecordWindow.vue
+++ b/admin/src/components/business/OperaWithdrawRecordWindow.vue
@@ -76,15 +76,15 @@
</div>
<div v-if="form && form.status == 0">
<p class="tip-header" >鐢宠瀹℃壒</p>
- <el-form :model="checkForm" ref="checkForm" :rules="rules" label-width="110px" label-suffix="锛�" style="margin-left: 20px;width: 500px;" inline >
+ <el-form :model="checkForm" ref="checkForm" :rules="rules" label-width="110px" label-suffix="锛�" style="margin-left: 20px;width: 500px;" >
<el-form-item label="瀹℃牳缁撴灉" prop="status">
- <el-radio-group v-model="checkForm.status">
+ <el-radio-group v-model="checkForm.status" @change="changeStatuus">
<el-radio :label="1">閫氳繃</el-radio>
<el-radio :label="2">椹冲洖</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="鎵撴鍑瘉" prop="payFileList" v-if="checkForm.status ==1">
- <div style="margin-left: 150px">
+ <div style=" ">
<UploadImage
:fileList="checkForm.payFileList"
:uploadData="{folder:'transfer'}"
@@ -99,7 +99,7 @@
<el-form-item label="鎵撴閾惰" prop="payBank" v-if="checkForm.status ==1">
<el-input v-model="checkForm.payBank" placeholder="璇疯緭鍏ユ墦娆鹃摱琛�" style="width: 350px" v-trim/>
</el-form-item>
- <el-form-item label="瀹℃牳澶囨敞" prop="auditRemark">
+ <el-form-item label="瀹℃牳澶囨敞" prop="auditRemark" >
<el-input v-model="checkForm.auditRemark" placeholder="璇疯緭鍏ュ鏍稿娉�" type="textarea" style="width: 350px; " rows="6" v-trim/>
</el-form-item>
</el-form>
@@ -134,10 +134,12 @@
payBank: '',
payFileList: null
},
+ isRemarkRequired: false,
rules: {
status: [
{ required: true, message: '璇烽�夋嫨瀹℃牳缁撴灉' }
- ]
+ ],
+ auditRemark: []
}
}
},
@@ -149,7 +151,25 @@
'field.main': 'id'
})
},
+ watch: {
+ isRemarkRequired(newVal) {
+ this.updateRules();
+ }
+ },
methods: {
+ changeStatuus(){
+ this.isRemarkRequired = this.checkForm.status ==2
+ },
+ updateRules() {
+ if (this.isRemarkRequired) {
+ this.rules.auditRemark = [
+ { required: true, message: '璇峰~鍐欏鏍稿娉�', trigger: 'blur' }
+ ]
+ } else {
+ this.rules.auditRemark = []; // 涓嶅繀濉椂锛屾竻绌鸿鍒欐暟缁�
+ }
+ this.$refs.checkForm.clearValidate(); // 娓呴櫎涔嬪墠鐨勯獙璇佺姸鎬侊紝閬垮厤鍑虹幇涓嶅繀瑕佺殑鎻愮ず
+ },
confirmDo () {
this.$refs.checkForm.validate((valid) => {
if (!valid) {
@@ -184,7 +204,7 @@
this.form = res || {}
this.logList = []
if (this.form.status == 1) {
- this.logList.push({ title: '骞冲彴瀹℃牳閫氳繃', info: this.form.auditUserName, createTime: this.form.auditTime || '', status: 1, files: this.form.payFileList || [], bank: this.form.payBank || '', auditRemark: this.form.auditRemark || '' })
+ this.logList.push({ title: '骞冲彴瀹℃牳閫氳繃', info: this.form.auditUserName, createTime: this.form.auditTime || '', status: 1, files: this.form.payFileList || [], payBank: this.form.payBank || '', auditRemark: this.form.auditRemark || '' })
} else if (this.form.status == 2) {
this.logList.push({ title: '骞冲彴瀹℃牳椹冲洖', info: this.form.auditUserName, createTime: this.form.auditTime || '', status: 2, auditRemark: this.form.auditRemark || '' })
}
@@ -294,7 +314,7 @@
}
.info-item-a span{
- font-weight: 600;
+ //font-weight: 600;
}
.info-item-a .btn{
font-size: 12px !important;
--
Gitblit v1.9.3