From f633483b97b38c2965ecdbffcb80e4e297175a43 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 28 七月 2025 18:54:19 +0800
Subject: [PATCH] fix: 奖励金审核

---
 src/views/Reward/components/RewardApplyTradeCheckDialog.vue |   45 +++++++++++++++++++++++++++------------------
 1 files changed, 27 insertions(+), 18 deletions(-)

diff --git a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
index 92e94dc..6c39974 100644
--- a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
+++ b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
@@ -1,6 +1,12 @@
 <template>
-  <ProDialog title="鍑鸿处瀹℃壒" v-model="visible" @close="onDialogClose" destroy-on-close draggable>
-    <PortraitTableWithAttachment v-bind="portraitTableWithAttachmentProps">
+  <ProDialog
+    :title="form.title"
+    v-model="visible"
+    @close="onDialogClose"
+    destroy-on-close
+    draggable
+  >
+    <PortraitTableWithAttachment v-bind="portraitTableWithAttachmentProps" labelWidth="100px">
       <template #title>
         <el-row class="portrait-table-with-attachment-title">
           <el-text style="color: #333333">鎵撴淇℃伅</el-text>
@@ -41,12 +47,15 @@
           <ProFormItemV2
             label="涓婁紶鍑瘉:"
             prop="payAuditFileUrl"
-            :check-rules="[
-              {
-                message: '璇蜂笂浼犲嚟璇�',
-                type: 'upload',
-              },
-            ]"
+            :required="!isApplyTrade"
+            :check-rules="
+              !isApplyTrade && [
+                {
+                  message: '璇蜂笂浼犲嚟璇�',
+                  type: 'upload',
+                },
+              ]
+            "
           >
             <ProFormUpload
               v-model:file-url="form.payAuditFileUrl"
@@ -109,24 +118,24 @@
   ProFormDatePicker,
   UploadUserFile,
 } from '@bole-core/components';
-import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
-import { copyTextToClipboard, usePortraitTableWithAttachment } from '@/hooks';
-import { convertApi2FormUrl, convertApi2FormUrlOnlyOne } from '@/utils';
-import { useQuery } from '@tanstack/vue-query';
+import { usePortraitTableWithAttachment } from '@/hooks';
+import { copyTextToClipboard } from '@/utils';
 import {
   EnumParkBountyTradeDetailAuditStatus,
   EnumParkBountyTradeDetailAuditStatusTextForAdudit,
   EnterpriseType,
-  EnterpriseTypeText,
 } from '@/constants';
 
 defineOptions({
   name: 'WithdrawalApprovalAuditDialog',
 });
 
-// type Props = {};
+type Props = {
+  //true 鍑鸿处瀹℃壒 false 璐㈠姟瀹℃壒
+  isApplyTrade?: boolean;
+};
 
-// const props = withDefaults(defineProps<Props>(), {});
+const props = withDefaults(defineProps<Props>(), {});
 
 const visible = defineModel({ type: Boolean });
 
@@ -145,7 +154,7 @@
   parkName: string;
   parkTypeName: string;
   tradeAmount: number;
-  remianAmount: number;
+  bountyAmount: number;
   tradeTime: string;
   auditTime: string;
   payRemark: string;
@@ -213,7 +222,7 @@
     },
     {
       label: '璧勯噾浣欓',
-      key: 'remianAmount',
+      key: 'bountyAmount',
       type: 'money',
     },
   ],
@@ -243,7 +252,7 @@
 
 function handleApply() {
   copyTextToClipboard(
-    `寮�鎴峰悕绉帮細${form.value?.societyCreditCode}\n寮�鎴烽摱琛岋細${form.value?.contactPhone}\n寮�鎴疯处鍙凤細${form.value?.userName}`
+    `寮�鎴峰悕绉帮細${'澶钩璐骇淇濋櫓鏈夐檺鍏徃鎶氬窞涓績鏀叕鍙�'}\n寮�鎴烽摱琛岋細${'涓浗宸ュ晢閾惰鑲′唤鏈夐檺鍏徃鎶氬窞璧d笢鏀'}\n寮�鎴疯处鍙凤細${'1511 2001 2920 0156 069'}`
   );
 }
 </script>

--
Gitblit v1.9.1