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 |   87 +++++++++++++++++++++++++++++--------------
 1 files changed, 58 insertions(+), 29 deletions(-)

diff --git a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
index 42d82a7..6c39974 100644
--- a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
+++ b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
@@ -1,6 +1,19 @@
 <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>
+          <el-button type="primary" link @click="handleApply">澶嶅埗</el-button>
+        </el-row>
+      </template>
+    </PortraitTableWithAttachment>
     <ProForm
       :model="form"
       ref="dialogForm"
@@ -34,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"
@@ -102,24 +118,24 @@
   ProFormDatePicker,
   UploadUserFile,
 } from '@bole-core/components';
-import * as parkBountyApplyServices from '@/services/api/ParkBountyApply';
 import { usePortraitTableWithAttachment } from '@/hooks';
-import { convertApi2FormUrl, convertApi2FormUrlOnlyOne } from '@/utils';
-import { useQuery } from '@tanstack/vue-query';
+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 });
 
@@ -138,7 +154,7 @@
   parkName: string;
   parkTypeName: string;
   tradeAmount: number;
-  remianAmount: number;
+  bountyAmount: number;
   tradeTime: string;
   auditTime: string;
   payRemark: string;
@@ -157,11 +173,6 @@
   annexList: computed(() => form.value?.payFileUrl),
   columns: [
     {
-      label: '寮�鎴疯处鍙�',
-      key: 'userName',
-      formatter: () => '1511 2001 2920 0156 069',
-    },
-    {
       label: '杩涜处鍗曚綅',
       key: 'enterpriseName',
       formatter: () => '澶钩璐骇淇濋櫓鏈夐檺鍏徃鎶氬窞涓績鏀叕鍙�',
@@ -175,6 +186,11 @@
       label: '寮�鎴烽摱琛�',
       key: 'contactPhone',
       formatter: () => '涓浗宸ュ晢閾惰鑲′唤鏈夐檺鍏徃鎶氬窞璧d笢鏀',
+    },
+    {
+      label: '寮�鎴疯处鍙�',
+      key: 'userName',
+      formatter: () => '1511 2001 2920 0156 069',
     },
     // {
     //   label: '浼佷笟绫诲瀷',
@@ -190,23 +206,23 @@
     //   label: '鍥尯绫诲瀷',
     //   key: 'parkTypeName',
     // },
-    // {
-    //   label: '娑堣垂绫诲瀷',
-    //   key: 'payRemark',
-    // },
     {
-      label: '鐢宠鍑鸿处閲戦',
-      key: 'tradeAmount',
-      type: 'money',
+      label: '娑堣垂绫诲瀷',
+      key: 'payRemark',
     },
     {
-      label: '鐢宠鍑鸿处鏃堕棿',
+      label: '鍑鸿处瀹℃牳鏃ユ湡',
       key: 'tradeTime',
       type: 'date',
     },
     {
+      label: '鍑鸿处閲戦',
+      key: 'tradeAmount',
+      type: 'money',
+    },
+    {
       label: '璧勯噾浣欓',
-      key: 'remianAmount',
+      key: 'bountyAmount',
       type: 'money',
     },
   ],
@@ -233,4 +249,17 @@
     }
   });
 }
+
+function handleApply() {
+  copyTextToClipboard(
+    `寮�鎴峰悕绉帮細${'澶钩璐骇淇濋櫓鏈夐檺鍏徃鎶氬窞涓績鏀叕鍙�'}\n寮�鎴烽摱琛岋細${'涓浗宸ュ晢閾惰鑲′唤鏈夐檺鍏徃鎶氬窞璧d笢鏀'}\n寮�鎴疯处鍙凤細${'1511 2001 2920 0156 069'}`
+  );
+}
 </script>
+<style lang="scss" scoped>
+@use '@/style/common.scss' as *;
+
+.portrait-table-with-attachment-title {
+  justify-content: space-between;
+}
+</style>

--
Gitblit v1.9.1