From d652cf2dca471fed1af2db1809d90d21666ca737 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期三, 26 六月 2024 16:38:59 +0800
Subject: [PATCH] 反馈页面内容修改

---
 src/pages/workplace/workplaceList.vue |   62 +++++++++++++++++++++++++------
 1 files changed, 50 insertions(+), 12 deletions(-)

diff --git a/src/pages/workplace/workplaceList.vue b/src/pages/workplace/workplaceList.vue
index 146b992..9b510db 100644
--- a/src/pages/workplace/workplaceList.vue
+++ b/src/pages/workplace/workplaceList.vue
@@ -5,8 +5,10 @@
 import { getUserList } from "@/pages/permission/apis";
 import { bomFeedbackListPage } from "@/pages/workplace/apis";
 import { ExportFile } from "@/assets/exportFile";
-
 import FeedbackDetails from "@/pages/resourceManage/components/feedbackDetails.vue";
+
+import {getList} from "@/pages/resourceManage/ecr/apis";
+
 export default {
   name: "workplaceList",
   components: {
@@ -14,7 +16,7 @@
     FeedbackDetails,
   },
   data() {
-    let startTime = moment().add(-30, "day").format("YYYY-MM-DD");
+    let startTime = moment().add(-20, "year").format("YYYY-MM-DD");
     let endTime = moment().format("YYYY-MM-DD");
     const columns = [
     {
@@ -151,6 +153,8 @@
           value: 124,
         },
       ],
+	    changeDescVisible: false,
+	    changeDesc: ""
     };
   },
   watch: {
@@ -175,7 +179,6 @@
               bar -
               parseInt(paddingBottom) -
               parseInt(paddingTop);
-            console.log(h, "h", wraper, header, bar);
             this.y = h;
           }
         });
@@ -195,6 +198,31 @@
       this.currFk = obj;
       this.detailsVisible = true;
     },
+	  searchEcrDetails(obj) {
+			let params = {
+				createTime: "1982-01-01 00:00:00",
+			  createTime1: moment().format("YYYY-MM-DD")+" 23:59:59",
+			  pageSize: 10,
+			  pageCurr: 1,
+			  number: obj.ecrNumber,
+			  subCode: obj.parentCode,
+			};
+
+			getList(params).then(res => {
+				let { code, data, data2 } = res.data;
+				let list = [];
+				let total = 0;
+				if (code && data) {
+					list = data2.list;
+				}
+				if(list.length !== 0) {
+					this.changeDesc = list[0].changeDescription;
+					this.changeDescVisible = true;
+				}else {
+					alert("鏈尮閰嶅埌鍙樻洿璁板綍锛岃鏌ョ湅鏂欏彿鍜屽彉鏇村崟娴佹按鍙枫��")
+				}
+			});
+	  },
     resize() {
       setTimeout(() => {
         this.update = Math.random();
@@ -384,15 +412,15 @@
                       </a-select>
                     </div>
                   </div>
-                  <div class="filter-item">
-                    <span class="filter-label">鍒涘缓鏃堕棿锛�</span>
-                    <div class="filter-content">
-                      <a-range-picker
-                        v-model="createTimeRange"
-                        @change="searchData"
-                      />
-                    </div>
-                  </div>
+<!--                  <div class="filter-item">-->
+<!--                    <span class="filter-label">鍒涘缓鏃堕棿锛�</span>-->
+<!--                    <div class="filter-content">-->
+<!--                      <a-range-picker-->
+<!--                        v-model="createTimeRange"-->
+<!--                        @change="searchData"-->
+<!--                      />-->
+<!--                    </div>-->
+<!--                  </div>-->
                   <div class="filter-item">
                     <span class="filter-label">闂鍙嶉鐘舵�侊細</span>
                     <div class="filter-content">
@@ -428,6 +456,7 @@
             </template>
             <template slot="action" slot-scope="{ record }">
               <a href="#" @click="showDetails(record)">璇︽儏</a>
+	            <a v-if="record.parentCode&&record.ecrNumber" style="margin-left: 8px" href="#" @click="searchEcrDetails(record)">鍙樻洿鍘熷洜</a>
             </template>
           </advance-table>
         </a-card>
@@ -447,6 +476,15 @@
         <a-button class="btn" @click="detailsCancel">鍏抽棴</a-button>
       </div>
     </a-modal>
+
+	  <!-- 鍙樻洿鍘熷洜 -->
+	  <a-modal :visible="changeDescVisible" :width="760" title="鍙樻洿鍘熷洜" :destroyOnClose="true" :maskClosable="false"
+	           @cancel="changeDescVisible = false">
+		  <div class="footer" slot="footer">
+			  <a-button @click="changeDescVisible = false" type="primary">鍏抽棴</a-button>
+		  </div>
+		  <div class="change-desc-content">{{ this.changeDesc }}</div>
+	  </a-modal>
   </div>
 </template>
 

--
Gitblit v1.9.1