From ddb00b8e8c80fe0a38f6a39c93ee2ab5473f724a Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 18 Apr 2024 10:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 13 ++----------- src/pages/index/index.vue | 11 +++++++---- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/api/request2.js b/src/api/request2.js index 2f746482..66c3a331 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -176,19 +176,10 @@ export function getMessageUnreadCount() { /** * 获取单据开关配置 */ -export function getSwitchByCode(code) { - var params ={ - filters:[{ - column:"code", - action:"==", - value:code - }], - pageNo:1, - pageSize:10, - } +export function getSwitchByCode(params) { return request({ - url: baseApi + "/wms/switch/senior", + url: baseApi + "/wms/switch/getSwitchList", method: "post", data: params }); diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 3a300cb2..65a9284e 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -362,10 +362,13 @@ console.log("包装规格获取失败", res) }) - // getSwitchByCode(code).then(res=>{ - // uni.setStorageSync("switch", res.data) - // }).catch(error=>{ - // }) + var params = + "IssueToLocationCodeValidate,PurchasePutawayToLocationCodeValidate,SemiPutawayLocationCodeValidate,FgPutawayLocationCodeValidate" + + getSwitchByCode(params).then(res=>{ + uni.setStorageSync("switch", res.data) + }).catch(error=>{ + }) }, openCheck(url) {