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) {
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
});

11
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) {

Loading…
Cancel
Save