|
|
@ -48,10 +48,12 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> |
|
|
|
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" :isShowStatus="true" :allowEditStatus="false" |
|
|
|
:isShowBalance="jobContent.isOpenCount=='TRUE'"> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult='getScanResult'> |
|
|
|
</win-scan-pack-and-location> |
|
|
|
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true" |
|
|
|
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'"> |
|
|
|
</count-qty-edit> |
|
|
|
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select> |
|
|
|
<com-message ref="comMessage"></com-message> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -63,6 +65,9 @@ |
|
|
|
cancleTakeCountJob, |
|
|
|
countJobSubmit |
|
|
|
} from '@/api/request2.js'; |
|
|
|
import { |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
goHome, |
|
|
@ -72,7 +77,7 @@ |
|
|
|
import { |
|
|
|
getCountStageName |
|
|
|
} from '@/common/directory.js'; |
|
|
|
import { calc } from '@/common/calc' |
|
|
|
|
|
|
|
|
|
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
|
import winScanPack from '@/mycomponents/scan/winScanPack.vue' |
|
|
@ -82,6 +87,7 @@ |
|
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
|
import countQtyEdit from '@/mycomponents/qty/countQtyEdit.vue' |
|
|
|
import jobTop from '@/mycomponents/job/jobTop.vue' |
|
|
|
import balanceSelect from '@/mycomponents/balance/balanceSelect.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'receipt_detail', |
|
|
@ -93,20 +99,25 @@ |
|
|
|
comMessage, |
|
|
|
winScanPackAndLocation, |
|
|
|
countQtyEdit, |
|
|
|
jobTop |
|
|
|
jobTop, |
|
|
|
balanceSelect |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
id: '', |
|
|
|
receiptJob: {}, |
|
|
|
received: false, |
|
|
|
fromLocationCode: '', |
|
|
|
isShowPackingCode: true, |
|
|
|
scanCount: 0, |
|
|
|
jobContent: {}, //任务内容 |
|
|
|
subList: [], //接口返回的任务subList |
|
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
|
itemEditInfo: {} |
|
|
|
balance: {}, //库存余额 |
|
|
|
editInventoryStatus: false, |
|
|
|
package: {}, //包装 |
|
|
|
label: {}, //标签 |
|
|
|
currentEditItem: {}, |
|
|
|
jobStatus: "" |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
@ -115,7 +126,6 @@ |
|
|
|
//新建的任务自动接收 |
|
|
|
if (option.status == "1") { |
|
|
|
this.receive((callback => { |
|
|
|
this.received = true; |
|
|
|
this.getDetail(); |
|
|
|
})); |
|
|
|
} else { |
|
|
@ -133,7 +143,7 @@ |
|
|
|
onBackPress(e) { |
|
|
|
//已经接收但是没提交任务 |
|
|
|
if (e.from === 'backbutton') { |
|
|
|
if (this.received) { |
|
|
|
if (this.jobStatus == "2") { |
|
|
|
//取消承接任务 |
|
|
|
cancleTakeCountJob(this.id).then(res => { |
|
|
|
uni.navigateBack(); |
|
|
@ -143,7 +153,6 @@ |
|
|
|
} else { |
|
|
|
uni.navigateBack(); |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
}, |
|
|
@ -180,6 +189,7 @@ |
|
|
|
that.showMessage('未获取到详情'); |
|
|
|
} else { |
|
|
|
that.jobContent = res.data; |
|
|
|
that.jobStatus = res.data.status; |
|
|
|
that.fromLocationCode = that.jobContent.locationCode; |
|
|
|
that.subList = res.data.subList; |
|
|
|
that.detailSource = that.getDataSource(that.subList) |
|
|
@ -203,8 +213,8 @@ |
|
|
|
item.subList.push(newDetail); |
|
|
|
items.push(item) |
|
|
|
} else { |
|
|
|
console.log("数量",item.qty) |
|
|
|
item.qty = calc.add(item.qty,detail.qty) |
|
|
|
console.log("数量", item.qty) |
|
|
|
item.qty = calc.add(item.qty, detail.qty) |
|
|
|
let newDetail = this.createDetailInfo(detail); // |
|
|
|
item.subList.push(newDetail); |
|
|
|
} |
|
|
@ -250,10 +260,14 @@ |
|
|
|
|
|
|
|
calcHandleQty() { |
|
|
|
for (let item of this.detailSource) { |
|
|
|
item.handleQty = 0; |
|
|
|
item.handleQty = new Decimal(0).toNumber(); |
|
|
|
item.qty = new Decimal(0).toNumber(); |
|
|
|
for (let detail of item.subList) { |
|
|
|
if (detail != undefined && detail.scaned) { |
|
|
|
item.handleQty = calc.add(item.handleQty,detail.qty) |
|
|
|
if (detail!= undefined) { |
|
|
|
if (detail.scaned) { |
|
|
|
item.handleQty = calc.add(item.handleQty, detail.handleQty); |
|
|
|
} |
|
|
|
item.qty = calc.add(item.qty, detail.qty); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -264,11 +278,6 @@ |
|
|
|
this.calcHandleQty(); |
|
|
|
}, |
|
|
|
|
|
|
|
editConfirm() { |
|
|
|
this.calcHandleQty(); |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
}, |
|
|
|
|
|
|
|
openScanPopup() { |
|
|
|
let fromlocationCode = ''; |
|
|
|
let fromlocationList = []; |
|
|
@ -290,70 +299,149 @@ |
|
|
|
} |
|
|
|
this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent); |
|
|
|
}, |
|
|
|
|
|
|
|
closeScanPopup() { |
|
|
|
if(this.$refs.scanPopup!=undefined){ |
|
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
scanPopupGetFocus() { |
|
|
|
if(this.$refs.scanPopup!=undefined){ |
|
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
|
this.$refs.scanPopup.packGetFocus(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
scanPopupLoseFocus() { |
|
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
|
this.$refs.scanPopup.packLoseFocus(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//明盘 |
|
|
|
getScanResult(result) { |
|
|
|
try { |
|
|
|
var packingNumber = result.balance.packingNumber; |
|
|
|
var batch = result.balance.batch; |
|
|
|
var balanceQty = result.balance.qty; |
|
|
|
var itemCode = result.balance.itemCode; |
|
|
|
var inventoryStatus = result.balance.inventoryStatus; |
|
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
|
var itemEditInfo; |
|
|
|
//检查零件号是否存在 |
|
|
|
if (detail == undefined) { |
|
|
|
//零件号不存在,创建零件号数据添加到列表。设置为已经扫描 |
|
|
|
this.addNewItemCodeToList(result) |
|
|
|
if (this.jobContent.isOpenCount) { |
|
|
|
this.getOpenCountResult(result); |
|
|
|
} else { |
|
|
|
//零件号存在,查询是否在任务列表中 |
|
|
|
this.getUnOpenCountResult(result); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
itemEditInfo = detail.subList.find(item => { |
|
|
|
if (item.packingNumber == packingNumber && |
|
|
|
item.batch == batch && |
|
|
|
item.inventoryStatus == inventoryStatus) { |
|
|
|
getOpenCountResult(result) { |
|
|
|
try { |
|
|
|
let that = this; |
|
|
|
that.package = result.package; |
|
|
|
that.label = result.label; |
|
|
|
var item = this.detailSource.find(r => r.itemCode == that.package.itemCode); |
|
|
|
if (item == undefined) { |
|
|
|
that.scanByBalance(result); |
|
|
|
} else { |
|
|
|
// let subItem = item.subList.find(item => { |
|
|
|
// if (item.packingNumber == that.label.packingNumber && |
|
|
|
// item.batch == that.label.batch && item.scaned == true) { |
|
|
|
// return item; |
|
|
|
// } |
|
|
|
// }) |
|
|
|
let subItems = item.subList.filter(item => { |
|
|
|
if (item.packingNumber == that.label.packingNumber && |
|
|
|
item.batch == that.label.batch) { |
|
|
|
return item; |
|
|
|
} |
|
|
|
}) |
|
|
|
//有多条:同箱码同批次,但是状态不同 |
|
|
|
if (subItems.length > 1) { |
|
|
|
let subItem = subItems.find(r => r.scaned == false) |
|
|
|
if (subItem == undefined) { |
|
|
|
subItem = subItems[0]; |
|
|
|
that.editCountResult(item, subItem); |
|
|
|
} else { |
|
|
|
that.scanByBalance(result); |
|
|
|
} |
|
|
|
} else if (subItems.length == 1) { |
|
|
|
let subItem = subItems[0]; |
|
|
|
if (subItem.scaned) { |
|
|
|
that.editCountResult(item, subItem); |
|
|
|
// this.$refs.comMessage.showQuestionMessage("箱码【" + that.label.packingNumber + |
|
|
|
// "】已经完成盘点,是否要编辑盘点结果?", |
|
|
|
// res => { |
|
|
|
// if (res) { |
|
|
|
// this.currentEditItem = subItem; |
|
|
|
// this.$refs.countQtyEdit.openEditPopup(subItem, |
|
|
|
// item.subList); |
|
|
|
// // this.$refs.countQtyEdit.openEditPopupShowSeconds(subItem, |
|
|
|
// // item.subList); |
|
|
|
// } else { |
|
|
|
// this.scanPopupGetFocus(); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
} else { |
|
|
|
that.scanByBalance(result); |
|
|
|
} |
|
|
|
} else if (subItems.length == 0) { |
|
|
|
that.scanByBalance(result); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
this.showErrorMessage(e.message) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
if (itemEditInfo == undefined) { |
|
|
|
//不在任务列表中,提示是否添加到列表 |
|
|
|
this.addExistItemCodeToList(detail, result); |
|
|
|
|
|
|
|
//编辑盘点结果 |
|
|
|
editCountResult(item, subItem) { |
|
|
|
let that = this; |
|
|
|
this.$refs.comMessage.showQuestionMessage("箱码【" + that.label.packingNumber + |
|
|
|
"】已经完成盘点,是否要编辑盘点结果?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
this.currentEditItem = subItem; |
|
|
|
this.$refs.countQtyEdit.openEditPopup(subItem, |
|
|
|
item.subList); |
|
|
|
// this.$refs.countQtyEdit.openEditPopupShowSeconds(subItem, |
|
|
|
// item.subList); |
|
|
|
} else { |
|
|
|
//在列表中,更新已扫描状态, |
|
|
|
if (itemEditInfo.scaned) { |
|
|
|
this.$refs.comMessage.showSelectMessageModal("箱码【" + packingNumber + |
|
|
|
"】已经完成盘点,是否要编辑数量", |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getUnOpenCountResult(result) { |
|
|
|
try { |
|
|
|
let that = this; |
|
|
|
that.package = result.package; |
|
|
|
that.label = result.label; |
|
|
|
var item = this.detailSource.find(r => r.itemCode == that.package.itemCode); |
|
|
|
if (item == undefined) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("没有物料【" + that.package.itemCode + |
|
|
|
"】的盘点明细,是否继续盘点?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
this.$refs.countQtyEdit.openEditPopup(itemEditInfo, |
|
|
|
detail.subList); |
|
|
|
that.scanByLabel(result); |
|
|
|
} else { |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
let subItem = item.subList.find(item => { |
|
|
|
if (item.packingNumber == that.label.packingNumber && |
|
|
|
item.batch == that.label.batch && item.scaned == true) { |
|
|
|
return item; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (subItem != undefined) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("箱码【" + that.label.packingNumber + |
|
|
|
"】已经完成盘点,是否要编辑盘点结果?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
this.currentEditItem = subItem; |
|
|
|
this.$refs.countQtyEdit.openEditPopup(subItem, |
|
|
|
item.subList); |
|
|
|
} else { |
|
|
|
itemEditInfo.scaned = true; |
|
|
|
itemEditInfo.handleQty = balanceQty; |
|
|
|
itemEditInfo.balanceQty = balanceQty; |
|
|
|
itemEditInfo.stdPackQty = result.package.stdPackQty; |
|
|
|
itemEditInfo.stdPackUnit = result.package.stdPackUnit; |
|
|
|
this.$refs.countQtyEdit.openEditPopupShowSeconds(itemEditInfo, detail |
|
|
|
.subList); |
|
|
|
this.updateData() |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
that.scanByLabel(result); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
@ -361,78 +449,197 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//明盘,按库存盘点 |
|
|
|
scanByBalance(result) { |
|
|
|
let that = this; |
|
|
|
if (result.balance.length == 0) { |
|
|
|
that.scanPopupLoseFocus() |
|
|
|
that.$refs.comMessage.showQuestionMessage("该包装在来源库位[" + that.fromLocationCode + |
|
|
|
"],未查找到库存,是否继续盘点?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
that.editInventoryStatus = true; |
|
|
|
let item = that.package; |
|
|
|
item.packingNumber = that.label.packingNumber; |
|
|
|
item.qty = 0 |
|
|
|
item.handleQty = Number(that.label.qty); |
|
|
|
item.balanceQty = 0; |
|
|
|
item.inventoryStatus = "OK"; |
|
|
|
that.balance = item; |
|
|
|
that.$refs.countQtyEdit.openEditPopupShowSeconds(item, |
|
|
|
null); |
|
|
|
} else { |
|
|
|
//继续扫描 |
|
|
|
that.scanPopupGetFocus(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if (result.balance.length == 1) { |
|
|
|
this.countByBalance(result.balance[0]); |
|
|
|
} else { |
|
|
|
//有多条库存记录 |
|
|
|
this.$refs.balanceSelect.openPopup(result.balance); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//盲盘,按标签盘点 |
|
|
|
scanByLabel(result) { |
|
|
|
let that = this; |
|
|
|
that.scanPopupLoseFocus() |
|
|
|
let item = that.package; |
|
|
|
item.packingNumber = that.label.packingNumber; |
|
|
|
item.qty = 0 |
|
|
|
item.handleQty = Number(that.label.qty); |
|
|
|
item.balanceQty = 0; |
|
|
|
item.inventoryStatus = "OK"; |
|
|
|
that.balance = item; |
|
|
|
that.$refs.countQtyEdit.openEditPopupShowSeconds(item, |
|
|
|
null); |
|
|
|
}, |
|
|
|
|
|
|
|
selectBalanceItem(balance) { |
|
|
|
this.countByBalance(balance); |
|
|
|
}, |
|
|
|
|
|
|
|
countByBalance(balance) { |
|
|
|
this.balance = balance; |
|
|
|
// this.balance.qty = 0 |
|
|
|
this.balance.handleQty = Number(this.label.qty); |
|
|
|
this.balance.balanceQty = this.balance.qty; |
|
|
|
this.balance.stdPackQty = this.package.stdPackQty; |
|
|
|
this.balance.stdPackUnit = this.package.stdPackUnit; |
|
|
|
this.$refs.countQtyEdit.openEditPopupShowSeconds(this.balance, |
|
|
|
null); |
|
|
|
}, |
|
|
|
|
|
|
|
editConfirm(qty, inventoryStatus, mode) { |
|
|
|
let that = this; |
|
|
|
//编辑 |
|
|
|
if (mode == 'edit') { |
|
|
|
this.currentEditItem.handleQty = qty; |
|
|
|
this.currentEditItem.inventoryStatus = inventoryStatus; |
|
|
|
} else { |
|
|
|
//新增盘点 |
|
|
|
//检查物料号是否存在 |
|
|
|
var detail = that.detailSource.find(r => r.itemCode == that.label.itemCode); |
|
|
|
if (detail == undefined) { |
|
|
|
//物料号不存在,创建物料号数据添加到列表。设置为已经扫描 |
|
|
|
that.addNewItemCodeToList(qty, inventoryStatus) |
|
|
|
} else { |
|
|
|
var itemEditInfo = detail.subList.find(item => { |
|
|
|
if (item.packingNumber == that.label.packingNumber && |
|
|
|
item.batch == that.label.batch && |
|
|
|
item.inventoryStatus == inventoryStatus) { |
|
|
|
return item; |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if (itemEditInfo == undefined) { |
|
|
|
//不在任务列表中,提示是否添加到列表 |
|
|
|
that.addExistItemCodeToList(detail, qty, inventoryStatus); |
|
|
|
} else { //已经扫描是否编辑 |
|
|
|
itemEditInfo.scaned = true; |
|
|
|
itemEditInfo.handleQty = qty; |
|
|
|
itemEditInfo.inventoryStatus = inventoryStatus; |
|
|
|
itemEditInfo.balanceQty = that.balance.qty; |
|
|
|
itemEditInfo.stdPackQty = that.package.stdPackQty; |
|
|
|
itemEditInfo.stdPackUnit = that.package.stdPackUnit; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
setTimeout(r => { |
|
|
|
this.calcHandleQty(); |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
}, 100) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
openEditConfirm() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
unOpenEditConfirm() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
editClose() { |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
}, |
|
|
|
|
|
|
|
addNewItemCodeToList(result) { |
|
|
|
this.$refs.comMessage.showSelectMessageModal("物料[" + result.balance.itemCode + "]不在列表中,是否添加到列表?", |
|
|
|
addNewItemCodeToList(qty, inventoryStatus) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("物料[" + this.package.itemCode + "]不在列表中,是否添加到列表?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
var item = this.createAddItemInfo(result.balance, result.package); |
|
|
|
let newDetail = this.createAddDetailInfo(result.balance, result.package); // |
|
|
|
var item = this.createAddItemInfo(this.balance, this.package); |
|
|
|
let newDetail = this.createAddDetailInfo(qty, inventoryStatus); // |
|
|
|
item.subList.push(newDetail); |
|
|
|
this.detailSource.push(item) |
|
|
|
this.showMessage('添加成功'); |
|
|
|
this.updateData() |
|
|
|
this.scanPopupGetFocus(); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addExistItemCodeToList(detail, result) { |
|
|
|
this.$refs.comMessage.showSelectMessageModal("箱码[" + result.balance.packingNumber + |
|
|
|
"]不在列表中,是否添加到列表?", |
|
|
|
addExistItemCodeToList(detail, qty, inventoryStatus) { |
|
|
|
let that = this; |
|
|
|
that.scanPopupLoseFocus(); |
|
|
|
this.$refs.comMessage.showQuestionMessage("盘点结果不在明细列表中,是否添加到列表?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
detail.qty += Number(detail.qty) |
|
|
|
let newDetail = this.createAddDetailInfo(result.balance, result.package); // |
|
|
|
// detail.qty = calc.add(qty, qty) |
|
|
|
let newDetail = that.createAddDetailInfo(qty, inventoryStatus); // |
|
|
|
detail.subList.push(newDetail); |
|
|
|
this.updateData() |
|
|
|
|
|
|
|
this.showMessage('添加成功'); |
|
|
|
that.updateData() |
|
|
|
} |
|
|
|
that.scanPopupGetFocus(); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
createAddItemInfo(balance, pack) { |
|
|
|
createAddItemInfo() { |
|
|
|
let item = { |
|
|
|
itemCode: balance.itemCode, |
|
|
|
itemName: pack.itemName, |
|
|
|
stdPackQty: pack.stdPackQty, |
|
|
|
stdPackUnit: pack.stdPackUnit, |
|
|
|
qty: Number(balance.qty), |
|
|
|
itemCode: this.package.itemCode, |
|
|
|
itemName: this.package.itemName, |
|
|
|
stdPackQty: this.package.stdPackQty, |
|
|
|
stdPackUnit: this.package.stdPackUnit, |
|
|
|
// qty: Number(qty), |
|
|
|
qty: 0, |
|
|
|
handleQty: 0, |
|
|
|
uom: pack.uom, |
|
|
|
uom: this.package.uom, |
|
|
|
subList: [], |
|
|
|
|
|
|
|
} |
|
|
|
return item; |
|
|
|
}, |
|
|
|
|
|
|
|
createAddDetailInfo(balance, pack) { |
|
|
|
//创建盘盈的明细 |
|
|
|
createAddDetailInfo(qty, inventoryStatus) { |
|
|
|
var detail = { |
|
|
|
id: "0", |
|
|
|
id: "0", //新增的明细 |
|
|
|
scaned: true, |
|
|
|
countDetailNumber: "", |
|
|
|
ownerCode: balance.ownerCode, |
|
|
|
packingNumber: balance.packingNumber, |
|
|
|
containerNumber: pack.containerNumber, |
|
|
|
batch: balance.batch, |
|
|
|
inventoryStatus: balance.inventoryStatus, |
|
|
|
itemCode: pack.itemCode, |
|
|
|
itemName: pack.itemName, |
|
|
|
itemDesc1: pack.itemDesc1, |
|
|
|
itemDesc2: pack.itemDesc2, |
|
|
|
ownerCode: this.balance.ownerCode, |
|
|
|
packingNumber: this.package.number, |
|
|
|
containerNumber: this.balance.containerNumber, |
|
|
|
batch: this.package.batch, |
|
|
|
inventoryStatus: inventoryStatus, |
|
|
|
itemCode: this.package.itemCode, |
|
|
|
itemName: this.package.itemName, |
|
|
|
itemDesc1: this.package.itemDesc1, |
|
|
|
itemDesc2: this.package.itemDesc2, |
|
|
|
stdPackQty: this.package.stdPackQty, |
|
|
|
stdPackUnit: this.package.stdPackUnit, |
|
|
|
projectCode: "", |
|
|
|
qty: 0, |
|
|
|
handleQty: balance.qty, |
|
|
|
uom: balance.uom, |
|
|
|
handleQty: qty, |
|
|
|
uom: this.package.uom, |
|
|
|
number: this.jobContent.number, |
|
|
|
remark: "", |
|
|
|
countQty: balance.qty, |
|
|
|
balanceQty: balance.qty, |
|
|
|
fromLocationCode: balance.locationCode, |
|
|
|
stdPackQty: pack.stdPackQty, |
|
|
|
stdPackUnit: pack.stdPackUnit, |
|
|
|
creator:this.$store.state.user.id |
|
|
|
countQty: qty, |
|
|
|
balanceQty: this.balance.qty, |
|
|
|
fromLocationCode: this.balance.locationCode, |
|
|
|
creator: this.$store.state.user.id |
|
|
|
} |
|
|
|
|
|
|
|
return detail; |
|
|
|
}, |
|
|
|
|
|
|
@ -470,7 +677,6 @@ |
|
|
|
return totalCount; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
commit() { |
|
|
|
this.scanCount = this.getScanCount(); |
|
|
|
|
|
|
@ -578,6 +784,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
editItem(item) { |
|
|
|
this.currentEditItem = item; |
|
|
|
var detail = this.detailSource.find(r => r.itemCode == item.itemCode); |
|
|
|
this.$refs.countQtyEdit.openEditPopup(item, |
|
|
|
detail.subList); |
|
|
|