diff --git a/src/api/request2.js b/src/api/request2.js index 9d884dcc..f22a9e65 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -145,12 +145,12 @@ export function getBusinesstypeByCode(code) { return http.get("/wms/businesstype/page",{params}) } /** - * 按物料代码查询库存明细 + * 按物品查询库存 * @param {*} itemCode * */ export function getBalanceByItemCode(params) { - return http.get("/wms/balance/page",{params}) + return http.post("/wms/balance/seniorAll",params) } /** * 按物品查询预计入 @@ -159,7 +159,7 @@ export function getBalanceByItemCode(params) { */ export function getExpectinByItemcode(params) { - return http.get("/wms/expectin/page",{params}) + return http.post("/wms/expectin/senior",params) } /** * 按物品查询预计出 @@ -168,7 +168,7 @@ export function getExpectinByItemcode(params) { */ export function getExpectoutByItemcode(params) { - return http.get("/wms/expectout/page",{params}) + return http.post("/wms/expectout/senior",params) } /** * 按库位查询库存汇总 @@ -2614,4 +2614,12 @@ export function getJimuPutawayJobDetail(data) { */ export function getBalanceByParams(data) { return http.post("/wms/balance/getBalanceListByPackage",data) +} +/** + * 获取业务类型 + * @param {*} + */ + +export function getBusinessType() { + return http.get("/wms/businesstype/page?pageSize=1000&pageNo=1) } \ No newline at end of file diff --git a/src/common/basic.js b/src/common/basic.js index c9a0a7af..fc2935cf 100644 --- a/src/common/basic.js +++ b/src/common/basic.js @@ -18,6 +18,7 @@ let unplannedIissueReason = []; let scrapReasonList = []; let inspectFailedReasonList = []; let switchList=[] +let businessList=[] @@ -355,6 +356,21 @@ export function getSwitchInfoByCode(code) { return isCheck; } +//获取业务类型名称 +export function getBusinessTypeName(code) { + var resultInfo = null + if (businessList.length == 0) { + businessList = uni.getStorageSync("businessType") + } + + for (let item of businessList) { + if (item.code == code) { + resultInfo = item + break; + } + } + return resultInfo.name; +} diff --git a/src/common/directory.js b/src/common/directory.js index fb6436e3..c7d963e6 100644 --- a/src/common/directory.js +++ b/src/common/directory.js @@ -20,6 +20,7 @@ let sampleMethodList = []; let transferModeList = []; let countStageList = []; let locationAreaTypeList = []; +let businessList=[] @@ -59,7 +60,8 @@ export function clearCacheData() { sampleMethodList = []; transferModeList = []; countStageList = []; - locationAreaTypeList=[] + locationAreaTypeList=[]; + businessList=[] } //获取字典信息 @@ -225,6 +227,21 @@ export function getItemStateInfo(value) { return resultInfo } +//获取业务类型名称 +export function getBusinessTypeName(code) { + var resultInfo = null + if (businessList.length == 0) { + businessList = uni.getStorageSync("businessType") + } + + for (let item of businessList) { + if (item.code == code) { + resultInfo = item + break; + } + } + return resultInfo.name; +} //获取库区类型 export function getLocationAreaTypeInfo(value) { var resultInfo = ""; @@ -334,7 +351,13 @@ export function getRequestStateInfo(value) { } return resultInfo } - +//获取库存状态集合 +export function getInventoryStatusList() { + if (inventoryStatusList.length == 0) { + inventoryStatusList = getDirectoryInfo("inventory_status") + } + return inventoryStatusList +} //获取库存状态 export function getInventoryStatusInfo(value) { diff --git a/src/mycomponents/balance/bussinessType.vue b/src/mycomponents/balance/bussinessType.vue index df859cb8..c2ce6828 100644 --- a/src/mycomponents/balance/bussinessType.vue +++ b/src/mycomponents/balance/bussinessType.vue @@ -1,12 +1,12 @@ diff --git a/src/mycomponents/item/itemFilter.vue b/src/mycomponents/item/itemFilter.vue new file mode 100644 index 00000000..e508acff --- /dev/null +++ b/src/mycomponents/item/itemFilter.vue @@ -0,0 +1,119 @@ + + + + diff --git a/src/mycomponents/scan/winCheckFgLabel.vue b/src/mycomponents/scan/winCheckFgLabel.vue index 1d3cfcf6..de227a24 100644 --- a/src/mycomponents/scan/winCheckFgLabel.vue +++ b/src/mycomponents/scan/winCheckFgLabel.vue @@ -13,13 +13,13 @@ - + {{ itemCode }} - + diff --git a/src/mycomponents/scan/winScanAsnNumber.vue b/src/mycomponents/scan/winScanAsnNumber.vue index 61227dde..7e0a08c1 100644 --- a/src/mycomponents/scan/winScanAsnNumber.vue +++ b/src/mycomponents/scan/winScanAsnNumber.vue @@ -1,83 +1,75 @@ - + diff --git a/src/mycomponents/scan/winScanContainer.vue b/src/mycomponents/scan/winScanContainer.vue index 14249a41..fdbbfe53 100644 --- a/src/mycomponents/scan/winScanContainer.vue +++ b/src/mycomponents/scan/winScanContainer.vue @@ -9,7 +9,7 @@ - + diff --git a/src/mycomponents/scan/winScanItem.vue b/src/mycomponents/scan/winScanItem.vue index 8ea3b037..c6cd98a4 100644 --- a/src/mycomponents/scan/winScanItem.vue +++ b/src/mycomponents/scan/winScanItem.vue @@ -10,7 +10,8 @@ - + diff --git a/src/mycomponents/scan/winScanJobNumber.vue b/src/mycomponents/scan/winScanJobNumber.vue index f6dbc861..8d485aab 100644 --- a/src/mycomponents/scan/winScanJobNumber.vue +++ b/src/mycomponents/scan/winScanJobNumber.vue @@ -1,85 +1,77 @@ - \ No newline at end of file + diff --git a/src/pages.json b/src/pages.json index 3ca4cebf..2576dc91 100644 --- a/src/pages.json +++ b/src/pages.json @@ -63,11 +63,28 @@ { "path": "pages/query/item", "style": { - "enablePullDownRefresh": false, // 是否配置下拉刷新的功能 + "enablePullDownRefresh": true, // 是否配置下拉刷新的功能 "navigationBarTitleText": "按物料查询库存", "titleNView": { - "autoBackButton": "true", - "buttons": [{}] + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] } } }, @@ -2094,7 +2111,7 @@ "navigationBarTitleText": "标签成品标签", "enablePullDownRefresh": false } - },{ + }, { "path": "pages/material/materialDowngrade", "style": { "navigationBarTitleText": "物料降级", diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 9db02e1d..4e8433d5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -57,7 +57,7 @@ diff --git a/src/pages/query/coms/comLocationDetailCard.vue b/src/pages/query/coms/comLocationDetailCard.vue index b140347b..da3c23e0 100644 --- a/src/pages/query/coms/comLocationDetailCard.vue +++ b/src/pages/query/coms/comLocationDetailCard.vue @@ -16,7 +16,7 @@ 业务类型 - {{ dataContent.businessType }} + {{ businessTypeDesc(dataContent.businessType) }} @@ -35,6 +35,7 @@ import pack from '@/mycomponents/balance/pack.vue' import batch from '@/mycomponents/balance/batch.vue' import qty from '@/mycomponents/qty/qty.vue' import status from '@/mycomponents/status/status.vue' +import { getBusinessTypeName } from '@/common/directory.js' const props = defineProps({ dataContent: { @@ -58,6 +59,9 @@ const props = defineProps({ default: true } }) +const businessTypeDesc = (type) => { + return getBusinessTypeName(type) +} diff --git a/src/pages/query/item.vue b/src/pages/query/item.vue index a1e816ea..ffe9405f 100644 --- a/src/pages/query/item.vue +++ b/src/pages/query/item.vue @@ -1,270 +1,422 @@ + page { + height: 100%; + } + .top{ + width: 100%; + position: fixed; + /* #ifdef APP */ + top: 0rpx; + /* #endif */ + + /* #ifdef H5 */ + top: 80rpx; + /* #endif */ + + right: 0; + \ No newline at end of file