From 3c6bdb6f439ff7af04765259fd6a91b6d201d095 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 19 六月 2025 17:12:25 +0800
Subject: [PATCH] 工单,数据中心用户查看数据的权限,合同考核每日,以及导出每日和按月

---
 src/views/system/contract/contract-result/index.vue |   51 ++++++++++++++++++++++++---------------------------
 1 files changed, 24 insertions(+), 27 deletions(-)

diff --git a/src/views/system/contract/contract-result/index.vue b/src/views/system/contract/contract-result/index.vue
index 20c0f51..f4984b2 100644
--- a/src/views/system/contract/contract-result/index.vue
+++ b/src/views/system/contract/contract-result/index.vue
@@ -6,7 +6,6 @@
       size="small"
       :inline="true"
       v-show="showSearch"
-      label-width="100px"
     >
       <el-form-item label="鑰冩牳瀵硅薄" prop="unitId">
         <el-select
@@ -44,17 +43,18 @@
           range-separator="-"
           start-placeholder="寮�濮嬫棩鏈�"
           end-placeholder="缁撴潫鏃ユ湡"
+          @change="handleQuery"
         ></el-date-picker>
       </el-form-item>
       <el-form-item>
         <el-button
           type="primary"
           icon="el-icon-search"
-          size="mini"
+          size="small"
           @click="handleQuery"
           >鎼滅储</el-button
         >
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+        <el-button icon="el-icon-refresh" size="small" @click="resetQuery"
           >閲嶇疆</el-button
         >
       </el-form-item>
@@ -71,7 +71,7 @@
       <!--          v-hasPermi="['system:checkResult:add']"-->
       <!--        >鏂板</el-button>-->
       <!--      </el-col>-->
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button
           type="danger"
           plain
@@ -82,8 +82,8 @@
           @click="handleDelete"
           >鍒犻櫎</el-button
         >
-      </el-col>
-      <el-col :span="1.5">
+      </el-col> -->
+      <!-- <el-col :span="1.5">
         <el-button
           type="warning"
           plain
@@ -93,14 +93,14 @@
           @click="handleExport"
           >瀵煎嚭</el-button
         >
-      </el-col>
-      <right-toolbar
+      </el-col> -->
+      <!-- <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
-      ></right-toolbar>
+      ></right-toolbar> -->
     </el-row>
 
-    <el-row v-loading="loading">
+    <el-row v-if="checkResultList && checkResultList.length > 0" v-loading="loading">
       <el-col
         :xl="8"
         :lg="8"
@@ -112,7 +112,7 @@
       >
         <el-card class="box-card">
           <div slot="header" class="clearfix">
-            <span>{{ item.contractName }}</span>
+            <span>{{ item.unitName + item.whichYear +'骞�'+item.whichMonth+'鏈堣�冩牳鎶ュ憡' }}</span>
             <el-button
               style="float: right; padding: 3px 6px"
               type="text"
@@ -135,22 +135,23 @@
               style="float: right"
               @click="handlePublish(item)"
               v-show="item.publish != 1"
-              v-hasPermi="['result:contract:publish']"
+              v-hasPermi="['contract:result:publish']"
               >纭鍙戝竷</el-button
             >
             <el-button
               size="small"
               round
               style="float: right"
-              disabled
+              @click="handlePublish(item)"
               v-show="item.publish == 1"
-              v-hasPermi="['result:contract:publish']"
+              v-hasPermi="['contract:result:publish']"
               >宸插彂甯�</el-button
             >
           </div>
         </el-card>
       </el-col>
     </el-row>
+    <el-empty v-else description="鏆傛棤鏁版嵁"></el-empty>
 
     <pagination
       v-show="total > 0"
@@ -172,8 +173,8 @@
         placeholder="璇蜂负璇ュ崟浣嶆墦鍒�"
       />
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitManualScore">纭� 瀹�</el-button>
         <el-button @click="cancelManualScore">鍙� 娑�</el-button>
+        <el-button type="primary" @click="submitManualScore">纭� 瀹�</el-button>
       </div>
     </el-dialog>
 
@@ -214,14 +215,7 @@
           width="300"
         >
         </el-table-column>
-        <el-table-column
-          label="鎵e噺鏂瑰紡"
-          align="center"
-          prop="deductCategory"
-          width="180px"
-        >
-        </el-table-column>
-        <el-table-column prop="num" label="鎸囨爣"> </el-table-column>
+        <el-table-column prop="num" label="娆℃暟"> </el-table-column>
         <el-table-column prop="score" label="鎵e垎"> </el-table-column>
       </el-table>
     </el-dialog>
@@ -231,8 +225,8 @@
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
         <el-button @click="cancel">鍙� 娑�</el-button>
+        <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
       </div>
     </el-dialog>
   </div>
@@ -297,8 +291,8 @@
     };
   },
   created() {
-    this.getList();
     this.getUnitSelect();
+    this.getList();
   },
   methods: {
     getUnitSelect() {
@@ -313,6 +307,9 @@
       if (null != this.daterangeCheckTime && "" != this.daterangeCheckTime) {
         this.queryParams["createStartTime"] = this.daterangeCheckTime[0];
         this.queryParams["createEndTime"] = this.daterangeCheckTime[1];
+      }else {
+        this.queryParams["createStartTime"] = null;
+        this.queryParams["createEndTime"] = null;
       }
       console.log("this.queryParams", this.queryParams);
       listCheckResult(this.queryParams).then((response) => {
@@ -365,7 +362,7 @@
       this.manualScoreOpen = true;
     },
     handleDetail(row) {
-      resultRecord(row.id).then((res) => {
+      resultRecord(row.id, row.contractId).then((res) => {
         this.tableData = res.rows;
       });
       this.detail = row;
@@ -376,7 +373,7 @@
       let text = row.publish == 1 ? "鍙栨秷鍙戝竷" : "鍙戝竷";
       const ids = row.id || this.ids;
       this.$modal
-        .confirm("鏄惁纭" + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
+        .confirm("鏄惁纭" + text + row.unitName + row.whichYear +'骞�'+row.whichMonth+'鏈堣�冩牳鎶ュ憡?')
         .then(function () {
           return publishCheckResult(ids);
         })

--
Gitblit v1.8.0