From 3931e2728f618d0090f129b2665bc1285c4440c3 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 17:27:32 +0800
Subject: [PATCH] update

---
 src/views/master/frock/tray-deposit/index.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/views/master/frock/tray-deposit/index.vue b/src/views/master/frock/tray-deposit/index.vue
index 8c2bd2f..32f84e7 100644
--- a/src/views/master/frock/tray-deposit/index.vue
+++ b/src/views/master/frock/tray-deposit/index.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-05-07 22:46:30
  * @LastEditors: Sneed
- * @LastEditTime: 2024-05-12 17:50:26
+ * @LastEditTime: 2024-06-16 16:20:01
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/master/frock/tray-deposit/index.vue
 -->
 <template>
@@ -14,8 +14,8 @@
                 <el-main>
                     <el-container>
                         <el-aside width="200px" v-loading="showGrouploading">
-                            <el-tree default-expand-all ref="group" node-key="id" :data="treeData" :props="props"
-                                @node-click="nodeClick">
+                            <el-tree :expand-on-click-node="false" default-expand-all ref="group" node-key="id"
+                                :data="treeData" :props="props" @node-click="nodeClick">
                                 <template #default="{ node, data }">
                                     <span class="custom-tree-node">
                                         <span :class="data.isArea ? 'treedisabled' : ''">{{
@@ -75,10 +75,11 @@
             </el-containter>
         </el-card>
         <el-dialog v-model="dialogVisible" title="娣诲姞" width="500">
-            <el-tree show-checkbox default-expand-all ref="group1" node-key="id" :data="todoList" :props="{
-                label: 'name',
-                disabled: 'isGroup'
-            }">
+            <el-tree :expand-on-click-node="false" show-checkbox default-expand-all ref="group1" node-key="id"
+                :data="todoList" :props="{
+                    label: 'name',
+                    disabled: 'isGroup'
+                }">
                 <template #default="{ node, data }">
                     <span class="custom-tree-node">
                         <span>{{
@@ -118,8 +119,8 @@
                 label: 'name',
                 disabled: 'isArea'
             },
-            exportUrl: '/api/blade-cps/tray-storage/excel/template',
-            uploadUrl: '/api/blade-cps/tray-storage/excel/import',
+            exportUrl: '/api/smis/tray-storage/excel/template',
+            uploadUrl: '/api/smis/tray-storage/excel/import',
             treeData: [],
             selectNode: {},
             apiObj: {
@@ -127,7 +128,7 @@
                     let params = {
                         warehouseStationId: this.selectNode.id
                     }
-                    return await this.$HTTP.get(`/api/blade-cps/tray-storage/list`, {}, { params }).then(res => {
+                    return await this.$HTTP.get(`/api/smis/tray-storage/list`, {}, { params }).then(res => {
                         return {
                             data: {
                                 records: res.data,
@@ -152,10 +153,10 @@
     },
     methods: {
         init() {
-            this.$HTTP.get(`/api/blade-cps/tray-storage/tree`).then(res => {
+            this.$HTTP.get(`/api/smis/tray-storage/tree`).then(res => {
                 this.treeData = res.data
             })
-            this.$HTTP.get(`/api/blade-cps/material-type/list`).then(res => {
+            this.$HTTP.get(`/api/smis/material-type/list`).then(res => {
                 this.options.typeId = res.data.map(item => ({
                     label: item.name,
                     value: item.id
@@ -173,12 +174,12 @@
             this.queryInfo(node.id)
         },
         queryInfo(id) {
-            this.$HTTP.get(`/api/blade-cps/warehouse-station/get/${id}`).then(res => {
+            this.$HTTP.get(`/api/smis/warehouse-station/get/${id}`).then(res => {
                 this.selectNode = res.data
             })
         },
         table_add() {
-            this.$HTTP.post(`/api/blade-cps/tray/un-used-tray-tree`, { groupCategory: 1, groupType: 'group_tray' }).then(res => {
+            this.$HTTP.post(`/api/smis/tray/un-used-tray-tree`, { groupCategory: 1, groupType: 'group_tray' }).then(res => {
                 if (res.data?.length > 0) {
                     this.todoList = res.data
                     this.dialogVisible = true
@@ -190,14 +191,14 @@
         add() {
             let ids = this.$refs.group1.getCheckedNodes()
             console.log(ids)
-            this.$HTTP.post(`/api/blade-cps/tray-storage`, { warehouseStationId: this.selectNode.id, trayIds: ids.map(v => v.id) }).then(res => {
+            this.$HTTP.post(`/api/smis/tray-storage`, { warehouseStationId: this.selectNode.id, trayIds: ids.map(v => v.id) }).then(res => {
                 this.$message.success("鎿嶄綔鎴愬姛")
                 this.dialogVisible = false
                 this.$refs.table.reload()
             })
         },
         table_del(ids) {
-            this.$HTTP.delete(`/api/blade-cps/tray-storage`, { ids: ids.map(v => ({ id: v.id, othersId: v.trayId })) }).then(res => {
+            this.$HTTP.delete(`/api/smis/tray-storage`, { ids: ids.map(v => ({ id: v.id, othersId: v.trayId })) }).then(res => {
                 this.$message.success("鎿嶄綔鎴愬姛")
                 this.$refs.table.reload()
             })

--
Gitblit v1.9.3