|
|
@ -24,6 +24,7 @@ let locationAreaTypeList = []; |
|
|
|
let businessList = []; |
|
|
|
let countScopeTypeList = []; |
|
|
|
let priorityList = [] |
|
|
|
let shiftList = [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -68,6 +69,7 @@ export function clearCacheData() { |
|
|
|
businessList = [] |
|
|
|
countScopeTypeList = [] |
|
|
|
priorityList = [] |
|
|
|
shiftList = [] |
|
|
|
} |
|
|
|
|
|
|
|
//获取字典信息
|
|
|
@ -75,6 +77,7 @@ export function getDirectoryInfo(type) { |
|
|
|
|
|
|
|
var result = []; |
|
|
|
var list = uni.getStorageSync("dictionary") |
|
|
|
console.log(455,uni.getStorageSync("dictionary")) |
|
|
|
if (list != undefined && list.length > 0) { |
|
|
|
for (let item of list) { |
|
|
|
if (item.type == type) { |
|
|
@ -691,3 +694,20 @@ export function getDeliverMethod(value) { |
|
|
|
} |
|
|
|
return resultInfo |
|
|
|
} |
|
|
|
//获取班次
|
|
|
|
export function getShiftName(value) { |
|
|
|
var resultInfo = ""; |
|
|
|
if (shiftList.length == 0) { |
|
|
|
shiftList = getDirectoryInfo("shift") |
|
|
|
} |
|
|
|
console.log(333,shiftList) |
|
|
|
if (shiftList.length > 0) { |
|
|
|
for (let item of shiftList) { |
|
|
|
if (item.value == value) { |
|
|
|
resultInfo = item.label |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return resultInfo |
|
|
|
} |