From 35738d1b2c095b2eca0211efdc4fa59507189e6f Mon Sep 17 00:00:00 2001
From: zhy <luhan1008611>
Date: 星期一, 30 十月 2023 09:33:34 +0800
Subject: [PATCH] feat: 基础信息

---
 admin-web/src/views/foundation/store/index.vue |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/admin-web/src/views/foundation/store/index.vue b/admin-web/src/views/foundation/store/index.vue
index 3f7a463..9df6b08 100644
--- a/admin-web/src/views/foundation/store/index.vue
+++ b/admin-web/src/views/foundation/store/index.vue
@@ -44,14 +44,14 @@
       items: [
         {
           type: 'text',
-          dataIndex: 'name',
+          dataIndex: 'warehouseName',
           label: '浠撳簱鍚嶇О',
           placeholder: '璇疯緭鍏�',
           defaultValue: ''
         },
         {
           type: 'select',
-          dataIndex: 'status',
+          dataIndex: 'states',
           label: '鐘舵��',
           placeholder: '璇烽�夋嫨',
           defaultValue: '1',
@@ -104,7 +104,7 @@
       table: {
         showIndex: true, // 鏄惁鏄剧ず搴忓彿
         expand: false, // 鏄惁鏄剧ず璇︽儏鏁版嵁
-        url: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/select/list', // 璇锋眰鍦板潃
+        url: SettingIplatform.apiBaseURL + '/pc/base/warehouse/list', // 璇锋眰鍦板潃
         // 宸ュ叿鏉�
         tools: {
           columnsCtrl: {// 鍒楁帶鍒舵寜閽�
@@ -125,19 +125,19 @@
         },
         // 鍒椾俊鎭�
         columns: [
-          {title: '鍚嶇О浠撳簱', field: 'name', align: 'left',},
-          {title: '缂栧彿', field: 'code', align: 'center'},
-          {title: '绫诲瀷', field: 'lv', align: 'center', },
-          {title: '鍦板潃', field: 'lv', align: 'center', },
-          {title: '鎵�灞炴満鏋�', field: 'summary', align: 'left',},
+          {title: '鍚嶇О浠撳簱', field: 'warehouseName', align: 'left',},
+          {title: '缂栧彿', field: 'warehouseCode', align: 'center'},
+          {title: '绫诲瀷', field: 'classificationName', align: 'center', },
+          {title: '鍦板潃', field: 'adress', align: 'center', },
+          // {title: '鎵�灞炴満鏋�', field: 'summary', align: 'left',},
           {
-            field: 'belongProvince',
+            field: 'states',
             title: '鐘舵��',
             align: 'center',
             width: 100,
             switch: row => {
               const result = {}
-              if (row.status == 1) {
+              if (row.states == 1) {
                 Object.assign(result, {
                   value: true, // 寮�
                   label: '鏄�', // 寮�鐨勬弿杩�
@@ -175,12 +175,12 @@
                 this.del(row);
               },
             },
-            {
-              title: '浠撳簱鍛�',
-              events: (row) => {
-                this.showAudit(row);
-              },
-            }
+            // {
+            //   title: '浠撳簱鍛�',
+            //   events: (row) => {
+            //     this.showAudit(row);
+            //   },
+            // }
           ],
         },
         paging: {
@@ -227,13 +227,13 @@
     },
     updState(row) {
       let vm = this
-      let text = row.status == 0 ? "鍚敤" : "绂佺敤";
-      vm.$modal.confirm('纭瑕�' + text + '"' + row.name + '"鍚楋紵').then(function () {
+      let text = row.states == 0 ? "鍚敤" : "绂佺敤";
+      vm.$modal.confirm('纭瑕�' + text + '"' + row.warehouseName + '"鍚楋紵').then(function () {
         let params = Object.assign({}, row)
-        params.status = row.status == 1 ? 0 : 1
-        finsystenant.edit(params).then(res => {
+        params.states = row.states == 1 ? 0 : 1
+        finsystenant.editstore(params).then(res => {
           if (res) {
-            row.status = row.status === 1 ? 0 : 1
+            row.states = row.states === 1 ? 0 : 1
             vm.$modal.msgSuccess(text + "鎴愬姛");
             vm.search()
           }
@@ -242,9 +242,9 @@
     },
     del(row) {
       this.$modal
-        .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.name + '"鐨勬満鏋勫悧锛�')
+        .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.warehouseName + '"鐨勬満鏋勫悧锛�')
         .then(function () {
-          finsystenant.del({id: row.id}).then((res) => {
+          finsystenant.delstore({id: row.id}).then((res) => {
           });
         })
         .then((res) => {

--
Gitblit v1.9.1