From bd6229ebd9cb543a22944ecb1142fad92b675dce Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 13 十月 2025 14:26:25 +0800
Subject: [PATCH] bug 修复

---
 admin/src/components/business/OperaIdentityDetailWindow.vue |  117 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 72 insertions(+), 45 deletions(-)

diff --git a/admin/src/components/business/OperaIdentityDetailWindow.vue b/admin/src/components/business/OperaIdentityDetailWindow.vue
index 5ef39a2..c50b5a9 100644
--- a/admin/src/components/business/OperaIdentityDetailWindow.vue
+++ b/admin/src/components/business/OperaIdentityDetailWindow.vue
@@ -7,12 +7,12 @@
     :confirm-working="isWorking"
     @close="close"
     @confirm="confirm">
-    <div style="width: 100%; position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
+    <div style="width: calc(100% - 32px); position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
       <div style="display: flex;background: #e4ecfe;padding: 20px">
         <div style="width: 60px;">
           <div class="home_title" v-if="info">
-            <el-image v-if="info.imgurlFull" style="width: 50px; height: 50px;border-radius: 50%;margin-right: 10px" :src="info.imgurlFull"
-                      :preview-src-list="[info.imgurlFull]">
+            <el-image v-if="info.fullCoverImage" style="width: 50px; height: 50px;border-radius: 50%;margin-right: 10px" :src="info.fullCoverImage"
+                      :preview-src-list="[info.fullCoverImage]">
             </el-image>
             <el-image v-else style="width: 50px; height: 50px;border-radius: 50%;margin-right: 10px" src="avatar/man.png" >
             </el-image>
@@ -21,8 +21,7 @@
         <div style="width: calc(100% - 60px);">
           <div class="home_title" v-if="info">
             <div class="left">
-              <span class="m10">鏄电О锛歿{info.nickName }}</span>
-              <span class="mr10 bluebtn" :title="'濮撳悕锛�'+(info.name||'鏈缃鍚�')"  >({{(info.name||'鏈缃鍚�') }})</span>
+              <span class="m10">鏄电О锛歿{info.nickName }}  <span class="ml10 bluebtn" :title="'濮撳悕锛�'+(info.name||'鏈缃鍚�')"  >({{(info.name||'鏈缃鍚�') }})</span></span>
               <el-tag type="primary" class="mr10 tag1">鍙戝崟鏂�</el-tag>
               <el-tag type="success" class="mr10 tag1" v-if="info.workerIdentity == 2 || info.driverIdentity == 2 || info.chefIdentity == 2">鎺ュ崟鏂�</el-tag>
             </div>
@@ -30,7 +29,7 @@
           <div class="remark" v-if="info">
             <el-button  class="bluebtn" icon="el-icon-phone" title="鎵嬫満鍙�"> {{info.telephone||'鏈缃�' }}</el-button>
             <el-button  class="yellowbtn" icon="el-icon-star-on"  title="骞冲潎璇勫垎"> {{info.score||'0' }}鍒�</el-button>
-            <el-button  class="redbtn" icon="el-icon-coin"  title="璐﹀彿浣欓(鍏冿級"> {{(info.amount||0).toFixed(2)}}鍏�</el-button>
+            <el-button  class="redbtn" icon="el-icon-coin"  title="璐﹀彿浣欓(鍏冿級"> {{((info.amount||0)/100).toFixed(2)}}鍏�</el-button>
           </div>
         </div>
       </div>
@@ -41,7 +40,7 @@
               <span class="m10" v-if="item.type ==0">鐢ㄥ伐璁よ瘉</span>
               <span class="m10" v-if="item.type ==1">璐ц繍璁よ瘉</span>
               <span class="m10" v-if="item.type ==2">渚涢璁よ瘉</span>
-              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">璁よ瘉涓�</el-tag>
+              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">鐢宠涓�</el-tag>
               <el-tag type="success" class="ml10 tag2" v-if="item.auditStatus == 2">璁よ瘉閫氳繃</el-tag>
               <el-tag type="danger" class="ml10 tag2" v-if="item.auditStatus == 3">璁よ瘉澶辫触</el-tag>
           </div>
@@ -50,6 +49,7 @@
               <span class="label"> 璁よ瘉绫诲瀷锛�</span> <span class="txt">{{item.authType == 0? '涓汉':'浼佷笟' }}</span>
               <span class="label"> 鑱旂郴浜猴細</span> <span class="txt">{{item.linkName || '' }}</span>
               <span class="label"> 鑱旂郴鏂瑰紡锛�</span> <span class="txt">{{item.telephone || '' }}</span>
+              <span class="label"> 鐢宠鏃堕棿锛�</span> <span class="txt">{{item.createTime || '' }}</span>
             </div>
             <template v-if="item.authType ==1">
               <div class="line">
@@ -59,7 +59,12 @@
               <div class="line"> <span class="label">璁よ瘉璧勬枡锛�</span> <span v-if="!item.imgList || item.imgList.length==0" class="txt">鏃�</span> </div>
             </template>
             <template v-else>
-              <div class="line">  <span class="label">韬唤淇℃伅锛�</span> <span v-if="!item.imgList || item.imgList.length==0" class="txt">鏃�</span> </div>
+              <div class="line">
+                <span class="label">鎺ュ崟浣嶇疆锛�</span><span class="txt">{{item.location || '' }}</span>
+              </div>
+              <div class="line">
+                <span class="label">韬唤淇℃伅锛�</span> <span v-if="!item.imgList || item.imgList.length==0" class="txt">鏃�</span>
+              </div>
             </template>
               <div class="line" v-if="item.imgList && item.imgList.length>0">
                 <div v-for="info in item.imgList" style="display: inline-block">
@@ -74,6 +79,15 @@
           </div>
           </div>
         </div>
+      <div class="line bottom"  v-if="tableData2&& tableData2.length>0 && tableData2[0].auditStatus == 1 && containPermissions(['business:identityinfo:audit'])"   >
+        <el-form :model="form" ref="formCheck" :rules="rules">
+          <el-form-item label="璁よ瘉瀹℃牳璇存槑" style="font-size: 14px" prop="auditRemark">
+            <el-input  type="textarea" rows="5" v-model="form.auditRemark" placeholder="璇疯緭鍏ヨ璇佸鏍稿娉�" v-trim/>
+          </el-form-item>
+        </el-form>
+        <el-button @click="checkDo(2)" :loading="dealing" type="primary" class="status-red">鍚屾剰</el-button>
+        <el-button  @click="checkDo(3)" :loading="dealing" type="danger" >鎷掔粷</el-button>
+      </div>
     </div>
   </GlobalWindow>
 </template>
@@ -82,7 +96,7 @@
 import GlobalWindow from '@/components/common/GlobalWindow'
 import BaseOpera from '@/components/base/BaseOpera'
 import { getById } from '@/api/business/member'
-import { fetchList as renzhengList} from '@/api/business/identityInfo'
+import { fetchList as renzhengList, audit } from '@/api/business/identityInfo'
 export default {
   components: {
     GlobalWindow
@@ -90,55 +104,31 @@
   extends: BaseOpera,
   data () {
     return {
+      dealing: false,
+      form: {
+        id: null,
+        auditRemark: null
+      },
+      rules: { auditRemark: [{ required: true, message: '璇疯緭鍏ヨ璇佸鏍稿娉�' }] },
       id: '',
       memberId: '',
       visible: false,
       activeTabs: 0,
       type: 0,
       info: {},
-      pageSize: 10,
-      page: 1,
-      total: 0,
-      tableData: {},
-      tableData1: {},
-      tableData2:[],
-      page0: 1,
-      page1: 1,
-      loading: false,
-      export0: false,
-      searchForm: {
-        type: 0,
-        startTime: null,
-        endTime: null,
-        optType: null,
-        acceptMemberId: -1,
-        releaseMemberId: -1,
-        transactionNo: null
-      }
+      tableData2: [],
+      loading: false
     }
   },
   methods: {
     open (title, row) {
       this.title = title
       this.visible = true
-      this.activeTabs = 0
-      this.type = 0
-      this.page0 = 1
-      this.pageSize = 10
-      this.tableData = {}
-      this.tableData1 = {}
       this.tableData2 = []
       this.id = row.id
+      this.form.id = this.id
+      this.form.auditRemark =null
       this.memberId = row.memberId
-      this.searchForm = {
-        type: 0,
-        startTime: null,
-        endTime: null,
-        optType: null,
-        acceptMemberId: -1,
-        releaseMemberId: -1,
-        transactionNo: null
-      }
       this.getData()
     },
     getData () {
@@ -152,12 +142,40 @@
     close () {
 
     },
+    checkDo (status) {
+      console.log(this.$refs.formCheck.length)
+      this.$refs.formCheck.validate((valid) => {
+        if (!valid) {
+          return
+        }
+        this.$dialog.actionConfirm('鎮ㄧ‘璁ゃ��' + (status === 3 ? '鎷掔粷' : '鍚屾剰') + '銆戣鐢宠鍚楋紵', '鎿嶄綔纭')
+          .then(() => {
+            this.dealing = true
+            audit({
+              id: this.id,
+              auditStatus: status,
+              auditRemark: this.form.auditRemark
+            })
+              .then(res => {
+                this.$tip.apiSuccess('鎿嶄綔鎴愬姛')
+                this.getData()
+                this.$emit('success')
+              })
+              .catch(e => {
+                this.$tip.apiFailed(e)
+              })
+              .finally(() => {
+                this.dealing = false
+              })
+          })
+      })
+    },
     getRenzhengList () {
       this.loading = true
       renzhengList({
         page: 1,
         capacity: 1000000,
-        model:{
+        model: {
           memberId: this.memberId || -1,
           id: this.id || -1
         }
@@ -176,8 +194,17 @@
 
 <style lang="scss" scoped>
 @import '@/assets/style/variables.scss';
+.bottom{
+  text-align: center;
+  display: block;
+  height: auto;
+  background-color: #e4ecfe;
+  width: calc(100% - 32px);
+  z-index: 999;
+  padding: 16px;
+}
 .renzheng{
-  margin: 0px 0px 50px 20px;
+  margin: 0px 0px 30px 20px;
   width: calc(100% - 60px);
   .detail{
     font-size: 14px;

--
Gitblit v1.9.3