From 58a518f8bc23ed382f4da2a86b09024b063a620c Mon Sep 17 00:00:00 2001
From: 黎星凯 <13949086503@163.com>
Date: 星期一, 13 五月 2024 15:40:47 +0800
Subject: [PATCH] 20240511修改: 分发单优化, 分类,物品,分发单明细,采购单明细数据导入

---
 admin-web/src/views/foundation/material/index.vue |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/admin-web/src/views/foundation/material/index.vue b/admin-web/src/views/foundation/material/index.vue
index 972c790..88ba642 100644
--- a/admin-web/src/views/foundation/material/index.vue
+++ b/admin-web/src/views/foundation/material/index.vue
@@ -218,7 +218,7 @@
             {
               title: '缂栬緫',
               events: (row) => {
-                this.showAudit(row);
+                this.showAdd(row.id);
               },
             },
             {
@@ -268,7 +268,7 @@
     updState(row) {
       let vm = this
       let text = row.states == 0 ? "鍚敤" : "绂佺敤";
-      vm.$modal.confirm('纭瑕�' + text + '"' + row.goodsName + '"鍚楋紵').then(function () {
+      vm.$modal.confirm('纭瑕�' + text + '"' + row.goodsName + '"鐗╁搧鍚楋紵').then(function () {
         let params = Object.assign({}, row)
         params.states = row.states == 1 ? 0 : 1
         updStatus(params).then(res => {
@@ -282,7 +282,7 @@
     },
     del(row) {
       this.$modal
-        .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.goodsName + '"鐨勬満鏋勫悧锛�')
+        .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.goodsName + '"鐨勭墿鍝佸悧锛�')
         .then(function () {
           delGoods({id: row.id}).then((res) => {
           });
@@ -294,23 +294,19 @@
         .catch(() => {
         });
     },
-    showAdd() {
-      // if (!this.editSetting.orgId) {
-      //   this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯')
-      // } else {
-        this.editSetting.id = null;
-        this.editSetting.title = '鏂板';
-        this.editSetting.show = true;
-      // }
+    showAdd(id) {
+      this.editSetting.id = id;
+      this.editSetting.title = id?'缂栬緫':'鏂板';
+      this.editSetting.show = true;
     },
     showSpecs(row) {
-      this.specsSetting.id = row.id;
+      this.specsSetting.goodsTemplatesId = row.id;
       this.specsSetting.show = true;
     },
     // 鏌ヨtable鍒楄〃
     search(pageNum) {
       if (pageNum != undefined) {
-        this.$refs.myTable.search(pageNum)
+        this.$refs.myTable.search({pageNum})
       } else {
         this.$refs.myTable.search()
       }

--
Gitblit v1.9.1