From a6db55aa2d995e0f9f3fb843561440d27acf09cd Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 27 Mar 2025 14:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=8A=E6=9E=B6=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/storage/upShelf.js | 29 ++++++++++--------- .../src/views/storage/upShelf/upShelfAdd.vue | 15 ++-------- 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/yxt-as-ui/src/api/storage/upShelf.js b/yxt-as-ui/src/api/storage/upShelf.js index e13a9ad43d..9fe14fb4b2 100644 --- a/yxt-as-ui/src/api/storage/upShelf.js +++ b/yxt-as-ui/src/api/storage/upShelf.js @@ -1,37 +1,39 @@ import request from '@/utils/request' export default { - // 查询分页列表 listPage: function(params) { return request({ url: '/wms/apiadmin/WmsShelfBill/listPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { 'Content-Type': 'application/json' } }) }, - - // 初始化 + // 详情回显 init: function(data) { return request({ - url: '/wms/apiadmin/WmsShelfBill/details?sid='+data, + url: '/wms/apiadmin/WmsShelfBill/details?sid=' + data, method: 'get' - }); + }) + }, + // 初始化 + getInit: function(data) { + return request({ + url: '/wms/apiadmin/WmsShelfBill/getInit', + method: 'get', + params: data + }) }, - - // 新增、保存 save: function(data) { return request({ url: '/wms/apiadmin/WmsShelfBill/saveOrUpdate', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } - }); + headers: { 'Content-Type': 'application/json' } + }) }, - - deleteBySids: function(data) { return request({ url: '/wms/apiadmin/WmsShelfBill/delBySids', @@ -39,6 +41,5 @@ export default { data: data, headers: { 'Content-Type': 'application/json' } }) - }, - + } } diff --git a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue index 0302030622..992cfbff71 100644 --- a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue +++ b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue @@ -9,9 +9,6 @@