From d0aaaeda4b5e7aaed8067637baaea0e74e7993e6 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 26 十月 2023 17:13:14 +0800
Subject: [PATCH] 环境配置

---
 src/views/warehouseManage/warehouse/index.vue |   37 ++++++++++++++++++++++++++++---------
 1 files changed, 28 insertions(+), 9 deletions(-)

diff --git a/src/views/warehouseManage/warehouse/index.vue b/src/views/warehouseManage/warehouse/index.vue
index 832163d..3cacba9 100644
--- a/src/views/warehouseManage/warehouse/index.vue
+++ b/src/views/warehouseManage/warehouse/index.vue
@@ -15,8 +15,26 @@
           ref="tableListRef"
           :table-list="tableList"
           :show-checkcol="false"
-          @tableRowClick="tableRowClick"
-        ></TableCommonView>
+        >
+        <template slot="tableButton">
+            <el-table-column label="鎿嶄綔" width="120" fixed="right">
+              <template slot-scope="scope">
+                <el-button
+                  @click="tableRowClick(scope.row,'edit')"
+                  type="text"
+                  size="small"
+                  >缂栬緫</el-button
+                >
+                <el-button
+                  type="text"
+                  size="small"
+                  @click="tableRowClick(scope.row,'look')"
+                  >鏌ョ湅</el-button
+                >
+              </template>
+            </el-table-column>
+          </template>
+      </TableCommonView>
       </div>
       <div class="btn-pager">
         <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
@@ -57,7 +75,8 @@
     setTable() {
       this.tableList = {
         tableInfomation: [],
-        selectBox: true,
+        selectBox: false,
+        selectIndex: true,
         showcol: this.showcol,
         allcol: [],
         tableColumn: this.setTableColumn(this.showcol)
@@ -82,7 +101,7 @@
         },
         {
           label: "搴撳瓨浣嶇疆",
-          prop: "deviceName",
+          prop: "warehouseLocation",
           isShowColumn: true,
           default: true
         },
@@ -124,22 +143,22 @@
       this.getData()
     },
     // 琛岀偣鍑�
-    tableRowClick(row) {
-      this.editConfig.visible = true
-      this.editConfig.title = "缂栬緫"
+    tableRowClick(row,val) {
+      this.editConfig.title = val=='look'?'鏌ョ湅':"缂栬緫"
       this.editConfig.infomation = { ...row }
+      this.editConfig.visible = true
     },
     // 鏂板缓
     addBtnClick() {
-      this.editConfig.visible = true
       this.editConfig.infomation={
         address:'',
-        buyToResupply:'',
+        buyToResupply:null,
         code:'',
         name:'',
         inboundTransportation:1,
         outboundTransportation:1,
       }
+      this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
     }
   }

--
Gitblit v1.8.0