Browse Source

修改发料和补料 2024/8/7

pull/1/head
test 4 months ago
parent
commit
438d3861b9
  1. 3
      src/pages/inventoryMove/coms/comMoveRecord.vue
  2. 59
      src/pages/issue/coms/comScanIssuePack.vue
  3. 3
      src/pages/issue/job/issueDetail.vue
  4. 1
      src/pages/repleinsh/coms/comScanReplishPack.vue

3
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -206,6 +206,9 @@ const getScanResult = (result) => {
if (item == undefined) {
const itemp = createItemInfo(balance, pack)
const newDetail = createDetailInfo(balance, pack)
if (newDetail.packingNumber == '') {
newDetail.packingNumber = pack.number;
}
// newDetail.inventoryStatus = balance.inventoryStatus;
if (businessTypeCode.value == 'Move') {
newDetail.toInventoryStatus = balance.inventoryStatus

59
src/pages/issue/coms/comScanIssuePack.vue

@ -246,65 +246,6 @@ const onScanResult = (result) => {
showErrorMessage(error)
})
}
// getBalance(result.label, packageInfoParams, (balances) => {
// packageInfo.value = packageInfoParams
// //
// const s = ''
// if (!result.package.parentNumber) {
// if (balances.list.length == 0) {
// showErrorMessage(',')
// } else {
// const newBalances = balances.list.filter((b) => b.locationCode == fromLocationCode.value)
// if (newBalances.length == 0) {
// showErrorMessage(',')
// } else if (newBalances.length == 1) {
// const balance = newBalances[0]
// afterGetBalance(result.label, balance, packageInfoParams)
// } else {
// showBalanceSelect(newBalances)
// }
// }
// } else {
// //
// if (balances.list.length == 0) {
// showErrorMessage(',')
// } else {
// //
// const subPackitems = balances.list.filter((r) => r.packingNumber == packageInfoParams.number)
// //
// const subParentPackitems = balances.list.filter((r) => r.packingNumber == packageInfoParams.parentNumber && r.locationCode == fromLocationCode.value)
//
// //
// if (subPackitems.length == 0) {
// //
//
// if (subParentPackitems.length > 0) {
// if (subParentPackitems.length == 1) {
// const balance = subParentPackitems[0]
// balance.qty = packageInfoParams.qty
// afterGetBalance(result.label, balance, packageInfo)
// } else {
// showBalanceSelect(subParentPackitems)
// }
// } else {
// showErrorMessage(`${packageInfoParams.parentNumber}${packageInfoParams.number}`)
// }
// } else {
// let locationCode = fromLocationCode.value
// if (balances.list == 1) {
// locationCode = balances.list[0].locationCode
// } else {
// const manyBlances = balances.list.filter((r) => r.locationCode != fromLocationCode.value)
// if (manyBlances.length > 0) {
// locationCode = manyBlances[0].locationCode
// }
// }
// showErrorMessage(`${packageInfoParams.number}${locationCode},`)
// }
// }
// }
// uni.hideLoading()
// })
} catch (e) {
showErrorMessage(e.stack)
uni.hideLoading()

3
src/pages/issue/job/issueDetail.vue

@ -243,7 +243,8 @@ const setParams = () => {
record.toContainerNumber = r.ContainerNumber
record.toInventoryStatus = r.inventoryStatus
record.toLocationCode = subItem.toLocationCode
// record.toLocationCode = subItem.toLocationCode
record.toLocationCode = jobContent.value.detailToLocationCode;
record.supplierCode = r.supplierCode
const single_price = r.balance.singlePrice == null ? 0 : r.balance.singlePrice

1
src/pages/repleinsh/coms/comScanReplishPack.vue

@ -467,6 +467,7 @@ const createLocationInfo = (labelParams, balanceParams, packageInfo)=> {
}
let batch = createBatchInfo(labelParams, balanceParams, packageInfo);
batch.detail = balanceParams;
batch.detail.fromLocationCode = balance.locationCode;
location.Batchs.push(batch);
return location;
}

Loading…
Cancel
Save