diff --git a/api/request2.js b/api/request2.js index d1791264..cbe3dcaf 100644 --- a/api/request2.js +++ b/api/request2.js @@ -96,6 +96,19 @@ export function updateUserPwd(oldPassword, newPassword) { }) } +/** + * 获取仓库代码 + * @param {*} + * + */ +export function getWarehouseCodeList(pageNo,pageSize) { + return request({ + url: baseApi + "/wms/warehouse/page?pageNo="+pageNo+"&pageSize="+pageSize, + method: "get", + data: {}, + }); +} + /** * 获取消息列表 * @param {*} diff --git a/common/directory.js b/common/directory.js index 844cf38a..934b4322 100644 --- a/common/directory.js +++ b/common/directory.js @@ -1,5 +1,6 @@ let jobStatusList = []; let itemStatusList = []; +let itemTypeList =[]; let locationTypeList = []; let uomList = []; let inventoryStatusList = []; @@ -39,6 +40,7 @@ export function getBusinessTypeDesc(type) { export function clearCacheData() { jobStatusList = []; itemStatusList = []; + itemTypeList =[]; locationTypeList = []; uomList = []; inventoryStatusList = []; @@ -143,16 +145,57 @@ export function getJobStateStyle(value) { } } -//获取库位描述 -export function getListLocationTypeDesc(lst) { +//获取库位描述(多个库位) +export function getListLocationTypeDesc(list) { let desc = ''; - lst.forEach(res => { + list.forEach(res => { desc += getLocationTypeInfo(res).label + "," }) desc = desc.slice(0, -1); return desc; } + +//获取物品状态(多个状态) +export function getListItemStateDesc(list) { + let desc = ''; + list.forEach(res => { + desc += getItemStateInfo(res).label + "," + }) + desc = desc.slice(0, -1); + return desc; +} + +//获取物品类型(多个) +export function getListItemTypeDesc(list) { + let desc = ''; + list.forEach(res => { + desc += getItemTypeInfo(res).label + "," + }) + desc = desc.slice(0, -1); + return desc; +} + +//获取物品类型 +export function getItemTypeInfo(value) { + var resultInfo = ""; + if (itemTypeList.length == 0) { + itemTypeList = getDirectoryInfo("item_type") + } + if (itemTypeList.length > 0) { + for (let item of itemTypeList) { + if (item.value == value) { + resultInfo = item + break; + } + } + } + return resultInfo +} + + + + //获取物品状态 export function getItemStateInfo(value) { var resultInfo = ""; diff --git a/common/record.js b/common/record.js index db2b1110..ae3d69eb 100644 --- a/common/record.js +++ b/common/record.js @@ -58,6 +58,8 @@ export function getBusinessType(typeCode, callback) { businessType: '', fromlocationTypeList: '', tolocationTypeList: '', + itemCodeTypeList:"", + useOnTheWay:"FALSE", fromInventoryStatuses: '', toInventoryStatuses: '', message: '' @@ -67,8 +69,10 @@ export function getBusinessType(typeCode, callback) { result.businessType = res.data.list[0]; result.fromlocationTypeList = getDirectoryItemArray(res.data.list[0].outLocationTypes) result.tolocationTypeList = getDirectoryItemArray(res.data.list[0].inLocationTypes) + result.itemCodeTypeList = getDirectoryItemArray(res.data.list[0].itemTypes) result.fromInventoryStatuses = res.data.list[0].outInventoryStatuses; result.toInventoryStatuses = res.data.list[0].inInventoryStatuses; + result.useOnTheWay =res.data.list[0].useOnTheWay callback(result) } else { result.success = false; diff --git a/mycomponents/item/itemQty.vue b/mycomponents/item/itemQty.vue index 4a6904fa..ed980091 100644 --- a/mycomponents/item/itemQty.vue +++ b/mycomponents/item/itemQty.vue @@ -6,7 +6,7 @@ - + @@ -45,7 +45,7 @@ type: Number, default: 0 }, - showItemQty: { + isShowBalanceQty: { type: Boolean, default: true }, diff --git a/mycomponents/popup/selectList.vue b/mycomponents/popup/selectList.vue index 26176bef..a7e95530 100644 --- a/mycomponents/popup/selectList.vue +++ b/mycomponents/popup/selectList.vue @@ -1,28 +1,31 @@