Browse Source

Merge branch 'intex' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into intex

intex_online20241111
wangyufei 2 weeks ago
parent
commit
3a39ff0521
  1. 16
      src/common/record.js
  2. 2
      src/mycomponents/package/packageCard.vue
  3. 2
      src/mycomponents/scan/winComScan.vue
  4. 5
      src/pages/issue/record/directIssueByBatch.vue
  5. 6
      src/pages/purchaseReceipt/job/receiptDetail.vue

16
src/common/record.js

@ -48,7 +48,23 @@ export function createDetailInfo(balance, pack) {
return detail;
}
export function createDetailInfoForLabel(balance, pack,label) {
balance.scaned = true;
// data.toInventoryStatus = this.toInventoryStatus == "" ? data.inventoryStatus : this.toInventoryStatus;
// data.inventoryStatus = data.inventoryStatus;
let detail = deepCopyData(balance);
detail.balanceQty = new Decimal(detail.qty).toNumber()
detail.qty = new Decimal(detail.qty).toNumber();
detail.packQty = pack.packQty ? new Decimal(pack.packQty).toNumber() : 0
detail.packUnit = pack.packUnit
console.log(988,label.qty)
detail.handleQty = new Decimal(label.qty).toNumber();
detail.package = pack;
detail.productionlineCode = pack.productionLineCode; // 制品回收记录需要加的
detail.toInventoryStatus = balance.inventoryStatus; // 制品回收记录需要加的
return detail;
}
export function createDetailByPackInfo(pack) {

2
src/mycomponents/package/packageCard.vue

@ -6,7 +6,7 @@
<view style="word-break: break-all;">
<!-- <container v-if="isShowContainer&&dataContent.containerNumber!=null" :container="dataContent.containerNumber">
</container> -->
<pack v-if="isShowPack && dataContent.packingNumber" :packingCode="dataContent.packingNumber"></pack>
<pack :packingCode="dataContent.packingNumber"></pack>
<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch>
<location v-if="isShowFromLocation" title="来源库位" :locationCode="dataContent.fromLocationCode">
</location>

2
src/mycomponents/scan/winComScan.vue

@ -155,11 +155,9 @@
// title: '...',
// mask: true
// })
console.log(222)
let that = this;
// if(index==-1){
// that.sc
console.log(that.scanMsg.includes('\n'))
if (that.scanMsg.includes('\n')) {
// that.scanMsg = 'HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q50';
setTimeout(() => {

5
src/pages/issue/record/directIssueByBatch.vue

@ -81,6 +81,7 @@
createItemInfo,
createDetailInfo,
calcHandleQty,
createDetailInfoForLabel
} from '@/common/record.js';
import {
@ -251,7 +252,7 @@
})
if (item == undefined) {
var itemp = createItemInfo(balance, pack);
let newDetail = createDetailInfo(balance, pack); //
let newDetail = createDetailInfoForLabel(balance, pack,label);
itemp.subList.push(newDetail);
this.detailSource.push(itemp)
} else {
@ -263,7 +264,7 @@
}
})
if (detail == undefined) {
let newDetail = createDetailInfo(balance, pack);
let newDetail = createDetailInfoForLabel(balance, pack,label);
item.subList.push(newDetail);
} else {
detail.handleQty =calc.add(detail.handleQty, result.label.qty)

6
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -469,6 +469,7 @@
}
}
} else if (result.label.labelType == "PurchaseLabel") {
debugger
var packingNumber = result.package.number;
var parentpackingNumber = result.package.parentNumber;
var batch = result.label.batch;
@ -494,7 +495,7 @@
} else {
let isScan = false
if(packingNumber){
isScan = this.packingNumberList.some(item=>item == packingNumber)
isScan = this.packList.some(item=>item == packingNumber)
}else{
isScan = false
}
@ -504,7 +505,8 @@
pack.handleQty = calc.add(pack.handleQty,result.label.qty)
} else {
this.packingNumberList.push(packingNumber)
this.packList.push(packingNumber)
pack.packList.push(packingNumber)
pack.scaned = true
pack.scanDate = new Date();
pack.handleQty = Number(result.label.qty);

Loading…
Cancel
Save