From d68b036a3b3c67273b8effa3c9925ef3869a91ba Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 07 二月 2024 13:56:50 +0800
Subject: [PATCH] wms项目 wms系统参数设置的页面开发+路由+是否显示表头配置

---
 src/views/operate/scrap/index.vue |   39 ++++++++++++++++++++++++++++++++-------
 1 files changed, 32 insertions(+), 7 deletions(-)

diff --git a/src/views/operate/scrap/index.vue b/src/views/operate/scrap/index.vue
index daa4b7f..ae4d460 100644
--- a/src/views/operate/scrap/index.vue
+++ b/src/views/operate/scrap/index.vue
@@ -16,14 +16,25 @@
           :table-list="tableList"
           :show-checkcol="false"
           @tableRowClick="tableRowClick"
-        ></TableCommonView>
+        >
+          <template slot="tableButton">
+            <el-table-column fixed="right" label="鎿嶄綔" width="100">
+              <template slot-scope="scope">
+                <el-button @click="examineClick(scope.row)" type="text" size="small">鏌ョ湅</el-button>
+                <el-button type="text" v-if="scope.row.status != 4" size="small" @click="editClick(scope.row)"
+                  >缂栬緫</el-button
+                >
+              </template>
+            </el-table-column>
+          </template>
+        </TableCommonView>
       </div>
       <div class="btn-pager">
         <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
       </div>
     </div>
     <!-- 鏂板缓/缂栬緫 -->
-    <AddScrapDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
+    <AddScrapDialog v-if="editConfig.visible" :editCommonConfig="editConfig" />
   </div>
 </template>
 
@@ -46,7 +57,8 @@
       editConfig: {
         visible: false,
         title: "鏂板缓",
-        infomation: {}
+        infomation: {},
+        showEdit: false
       },
       keyword: ""
     }
@@ -56,10 +68,23 @@
     this.getData()
   },
   methods: {
+    // 鏌ョ湅
+    examineClick(row) {
+      this.editConfig.title = "鏌ョ湅"
+      this.editConfig.infomation = { ...row }
+      this.editConfig.visible = true
+    },
+    editClick(row) {
+      console.log(row, "缂栬緫")
+      this.editConfig.title = "缂栬緫"
+      this.editConfig.infomation = { ...row }
+      this.editConfig.visible = true
+    },
     setTable() {
       this.tableList = {
         tableInfomation: [],
-        selectBox: true,
+        selectBox: false,
+        selectIndex: true,
         showcol: this.showcol,
         allcol: [],
         tableColumn: this.setTableColumn(this.showcol)
@@ -77,7 +102,7 @@
       console.log(showcol)
       let tableColumn = [
         {
-          label: "鍗曞彿",
+          label: "鎶ュ簾鍗曞彿",
           prop: "number",
           isShowColumn: true,
           default: true
@@ -165,8 +190,8 @@
     // 琛岀偣鍑�
     tableRowClick(row) {
       console.log(row)
-      this.editConfig.visible = true
-      this.editConfig.title = "缂栬緫"
+      // this.editConfig.visible = true;
+      // this.editConfig.title = "缂栬緫";
       this.editConfig.infomation = { ...row }
     },
     // 鏂板缓

--
Gitblit v1.8.0