Browse Source

修改上架任务

hella_online_20240829
niexiting 6 months ago
parent
commit
42a45d5abf
  1. 11
      src/mycomponents/scan/winScanPackAndLocation.vue
  2. 31
      src/pages/putaway/job/putawayDetail.vue

11
src/mycomponents/scan/winScanPackAndLocation.vue

@ -120,7 +120,7 @@
inventoryStatus: [],
managementPrecision: '',
fromInventoryStatuses: "",
isCheck:false
isCheck: false
}
},
created() {
@ -180,9 +180,9 @@
return;
}
if(this.fromLocationList.length>0){
if(!this.isInLocationList(this.fromLocationCode)){
this.showErrorMessage("扫描库位【"+this.fromLocationCode+'】不在任务来源库位中', callback => {
if (this.fromLocationList.length > 0) {
if (!this.isInLocationList(this.fromLocationCode)) {
this.showErrorMessage("扫描库位【" + this.fromLocationCode + '】不在任务来源库位中', callback => {
this.locationGetFocus();
})
return;
@ -243,7 +243,7 @@
// }
},
checkPackage(result){
checkPackage(result) {
if (result.label != null) {
this.scanResult = result;
// uni.showLoading({
@ -342,6 +342,7 @@
fromLocationCode: this.fromLocationCode,
}
this.packGetFocus();
this.$emit("getResult", data);
this.$emit("getCountScanResult", data);
},

31
src/pages/putaway/job/putawayDetail.vue

@ -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;

Loading…
Cancel
Save