Browse Source

配置开关

hella_vue3
lijuncheng 7 months ago
parent
commit
ddb00b8e8c
  1. 13
      src/api/request2.js
  2. 11
      src/pages/index/index.vue

13
src/api/request2.js

@ -176,19 +176,10 @@ export function getMessageUnreadCount() {
/** /**
* 获取单据开关配置 * 获取单据开关配置
*/ */
export function getSwitchByCode(code) { export function getSwitchByCode(params) {
var params ={
filters:[{
column:"code",
action:"==",
value:code
}],
pageNo:1,
pageSize:10,
}
return request({ return request({
url: baseApi + "/wms/switch/senior", url: baseApi + "/wms/switch/getSwitchList",
method: "post", method: "post",
data: params data: params
}); });

11
src/pages/index/index.vue

@ -362,10 +362,13 @@
console.log("包装规格获取失败", res) console.log("包装规格获取失败", res)
}) })
// getSwitchByCode(code).then(res=>{ var params =
// uni.setStorageSync("switch", res.data) "IssueToLocationCodeValidate,PurchasePutawayToLocationCodeValidate,SemiPutawayLocationCodeValidate,FgPutawayLocationCodeValidate"
// }).catch(error=>{
// }) getSwitchByCode(params).then(res=>{
uni.setStorageSync("switch", res.data)
}).catch(error=>{
})
}, },
openCheck(url) { openCheck(url) {

Loading…
Cancel
Save