|
|
@ -38,8 +38,11 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<winScanPackAndLocationNoBalance ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> |
|
|
|
</winScanPackAndLocationNoBalance> |
|
|
|
<!-- <winScanPackAndLocationNoBalance ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> |
|
|
|
</winScanPackAndLocationNoBalance> --> |
|
|
|
|
|
|
|
<winScanPackAndLocation ref="scanPopup" @getResult='getScanResult' :noShowBalanceMessage="true"> |
|
|
|
</winScanPackAndLocation> |
|
|
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
</view> |
|
|
@ -80,7 +83,7 @@ |
|
|
|
} from '@/common/detail.js'; |
|
|
|
|
|
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
|
import winScanPackAndLocationNoBalance from "@/mycomponents/scan/winScanPackAndLocationNoBalance.vue" |
|
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
|
import comJobDetailCard from "@/mycomponents/detail/comJobDetailCard.vue" |
|
|
|
import locationCompare from '@/mycomponents/location/locationCompare.vue' |
|
|
|
import jobTop from '@/mycomponents/job/jobTop.vue' |
|
|
@ -89,7 +92,7 @@ |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
winScanButton, |
|
|
|
winScanPackAndLocationNoBalance, |
|
|
|
winScanPackAndLocation, |
|
|
|
locationCompare, |
|
|
|
comJobDetailCard, |
|
|
|
jobTop |
|
|
@ -108,7 +111,7 @@ |
|
|
|
jobStatus: "", |
|
|
|
jobToLocationCode: "", |
|
|
|
isCheckLocation: false, |
|
|
|
scanedPackingNumber : '' |
|
|
|
scanedPackingNumber: '' |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
@ -190,8 +193,9 @@ |
|
|
|
|
|
|
|
that.detailSource.forEach(r => { |
|
|
|
r.subList.forEach(s => { |
|
|
|
if(this.scanedPackingNumber&&this.scanedPackingNumber==s.packingNumber) s.scaned = true |
|
|
|
s.inventoryStatus = s.inspectResult;//更新检验结果状态 |
|
|
|
if (this.scanedPackingNumber && this.scanedPackingNumber == s |
|
|
|
.packingNumber) s.scaned = true |
|
|
|
s.inventoryStatus = s.inspectResult; //更新检验结果状态 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
@ -282,6 +286,7 @@ |
|
|
|
var qty = result.label.qty; |
|
|
|
var itemCode = result.label.itemCode; |
|
|
|
var locationCode = result.fromLocationCode; |
|
|
|
|
|
|
|
// var inventoryStatus = "OK"; |
|
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
|
|
|
|
@ -320,6 +325,13 @@ |
|
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
|
} else { |
|
|
|
isExit.scaned = true |
|
|
|
let qty = 0; |
|
|
|
if (result.balance != null) { |
|
|
|
qty = Number(result.balance.qty); |
|
|
|
} else { |
|
|
|
qty = Number(result.label.qty); |
|
|
|
} |
|
|
|
|
|
|
|
isExit.handleQty = Number(result.label.qty); |
|
|
|
isExit.toLocationCode = this.toLocationCode; |
|
|
|
} |
|
|
@ -475,6 +487,11 @@ |
|
|
|
detail.produceDate = getCurrDateTime(); |
|
|
|
detail.expireDate = getCurrDateTime(); |
|
|
|
|
|
|
|
|
|
|
|
let packList = detail.packList.filter(p => p.scaned == true); |
|
|
|
detail.packList = packList; |
|
|
|
|
|
|
|
|
|
|
|
// detail.singlePrice = detail.balance.singlePrice; |
|
|
|
// detail.amount = detail.balance.singlePrice * detail.handleQty; |
|
|
|
|
|
|
|