From a2299a6d4a6f99e9c11132138f5d3e9ec68f03ea Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 06 六月 2025 19:19:34 +0800
Subject: [PATCH] 开发更新

---
 admin/src/views/contract/components/contractDetail.vue |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/admin/src/views/contract/components/contractDetail.vue b/admin/src/views/contract/components/contractDetail.vue
index a9c43db..47292ea 100644
--- a/admin/src/views/contract/components/contractDetail.vue
+++ b/admin/src/views/contract/components/contractDetail.vue
@@ -16,7 +16,11 @@
           <el-tag type="info" v-if="info.status === 3">閫�绉熺粨绠椾腑</el-tag>
           <el-tag type="info" v-if="info.status === 4">宸查��绉�</el-tag>
         </div>
-        <el-button plain type="danger" v-if="[0, 1, 2].includes(info.status)" @click="refund">閫�绉�</el-button>
+        <div>
+          <el-button type="primary" @click="$refs.pendingBills.open('寰呭鐞嗚处鍗�', id)" v-if="info.status === 3">鏌ョ湅寰呭鐞嗚处鍗�</el-button>
+          <el-button @click="$refs.terminationAgreement.open('閫�绉熷崗璁�', id)" v-if="[3,4].includes(info.status)">鏌ョ湅閫�绉熷崗璁�</el-button>
+          <el-button plain type="danger" v-if="[0, 1, 2].includes(info.status)" @click="refund">閫�绉�</el-button>
+        </div>
       </div>
       <div class="remark" v-if="info">{{info.remark}}</div>
       <div class="remark" v-if="info && info.status === 3">{{info.btRemark}}</div>
@@ -42,7 +46,7 @@
           <div class="val">{{ info.creatorName }}</div>
         </div>
         <div class="item">
-          <div class="la">鍚堝悓绉熻祦鏁�</div>
+          <div class="la">鍚堝悓绉熻祦闈㈢Н</div>
           <div class="val">{{ info.totalArea }}銕�</div>
         </div>
         <div class="item">
@@ -77,12 +81,12 @@
           <el-table-column prop="buildingName" label="妤煎畤鍚嶇О" show-overflow-tooltip />
           <el-table-column prop="" label="妤煎眰/鎴垮彿" show-overflow-tooltip>
             <template slot-scope="{row}">
-              {{row.floorName}}/{{row.code}}
+              {{row.floorName}}/{{row.roomNum}}
             </template>
           </el-table-column>
           <el-table-column prop="area" label="闈㈢Н" show-overflow-tooltip>
             <template slot-scope="{row}">
-              {{row.area}}銕�
+              {{row.rentArea}}銕�
             </template>
           </el-table-column>
         </el-table>
@@ -193,6 +197,13 @@
         v-loading="loading"
         style="width: 100%">
         <el-table-column
+          width="150"
+          label="璐﹀崟缂栧彿">
+          <template slot-scope="{row}">
+            <el-button type="text" @click="openBill(row.id)">{{row.code}}</el-button>
+          </template>
+        </el-table-column>
+        <el-table-column
           label="璐圭敤绫诲瀷">
           <template slot-scope="{row}">
             <span v-if="row.costType === 0">绉熻祦璐�</span>
@@ -235,7 +246,7 @@
           label="璐﹀崟鏉ユ簮">
           <template slot-scope="{row}">
             <span v-if="row.type === 0">鍚堝悓璐﹀崟</span>
-            <span v-if="row.type === 1">鑷缓璐﹀崟</span>
+            <span v-else>鑷缓璐﹀崟</span>
           </template>
         </el-table-column>
         <el-table-column
@@ -319,6 +330,12 @@
     </div>
     <!--  閫�绉�  -->
     <TerminateLease ref="terminateLease" @success="getData" />
+    <!--  寰呭鐞嗚处鍗�  -->
+    <PendingBills ref="pendingBills" />
+    <!--  閫�绉熷崗璁�  -->
+    <TerminationAgreement ref="terminationAgreement" />
+    <!--  璐﹀崟璇︽儏  -->
+    <BullDetail ref="bullDetail" />
   </GlobalWindow>
 </template>
 
@@ -326,12 +343,18 @@
 import GlobalWindow from '@/components/common/GlobalWindow'
 import BaseOpera from '@/components/base/BaseOpera'
 import TerminateLease from './terminateLease'
+import PendingBills from './pendingBills'
+import TerminationAgreement from './terminationAgreement'
+import BullDetail from '../../finance/components/bullDetail'
 import { getById } from '@/api/contract'
 import { fetchList } from '@/api/bill'
 export default {
   components: {
     GlobalWindow,
-    TerminateLease
+    TerminateLease,
+    PendingBills,
+    TerminationAgreement,
+    BullDetail
   },
   extends: BaseOpera,
   data() {
@@ -345,7 +368,7 @@
       page: 1,
       total: 0,
       tableData: [],
-      
+
       loading: false
     }
   },
@@ -363,6 +386,9 @@
     xiazai (url) {
       window.open(url)
     },
+    openBill(id) {
+      this.$refs.bullDetail.open('璐﹀崟璇︽儏', id)
+    },
     returnUnit (type) {
       switch (type) {
         case 0:

--
Gitblit v1.9.3