diff --git a/src/api/request2.js b/src/api/request2.js index cc927f44..4e158d8e 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -273,14 +273,14 @@ export function getExpectoutByItemcode(params) { } /** - * 按库位查询库存汇总 + * 按库位查询库存事务 * @param {*} * */ -export function getBalanceByLocationcodeGroup(params) { +export function getTransactionByLocationcode(params) { return request({ - url: baseApi + "/wms/balance/page", - method: "get", + url: baseApi + "/wms/transaction/senior", + method: "post", data: params, }); } @@ -290,10 +290,9 @@ export function getBalanceByLocationcodeGroup(params) { * @param {*} */ export function getBalanceByLocationcode(params) { - return request({ - url: baseApi + "/wms/balance/page", - method: "get", + url: baseApi + "/wms/balance/seniorAll", + method: "post", data: params, }); } diff --git a/src/pages/query/coms/comLocationDetailCard.vue b/src/pages/query/coms/comLocationDetailCard.vue index e7e9d81a..8843d6e4 100644 --- a/src/pages/query/coms/comLocationDetailCard.vue +++ b/src/pages/query/coms/comLocationDetailCard.vue @@ -2,7 +2,6 @@ - 物料代码 @@ -18,8 +17,10 @@ - 业务类型 - {{businessTypeDesc(dataContent.businessType)}} + 业务类型 + {{dataContent.businessType}} + {{businessTypeDesc(dataContent.businessType)}} + @@ -30,7 +31,24 @@ - + + 事务类型:{{dataContent.transactionType}} + + + 库存动作:{{inventoryActionName(dataContent.inventoryAction)}} + + + 业务记录号:{{dataContent.recordNumber}} + + + 事务号:{{dataContent.number}} + + + 操作人:{{dataContent.worker}} + + + 创建时间:{{dateFormat(dataContent.createTime)}} + @@ -48,6 +66,10 @@ import { getBusinessTypeName, } from '@/common/directory.js'; + import { + dateFormat + } from '@/common/basic.js'; + export default { components: { itemQty, @@ -91,6 +113,17 @@ businessTypeDesc(type){ return getBusinessTypeName(type) }, + dateFormat(times){ + return dateFormat(times) + }, + hasChinese(str){ + var reg = /[\u4e00-\u9fa5]/g; + return reg.test(str); + }, + + inventoryActionName(value){ + return value=="IN"?"入库":"出库" + } } } diff --git a/src/pages/query/location.vue b/src/pages/query/location.vue index aea34437..e493d57e 100644 --- a/src/pages/query/location.vue +++ b/src/pages/query/location.vue @@ -1,28 +1,29 @@