Browse Source

修改采购收货实际赋值

hella_online_20240803
lijuncheng 3 months ago
parent
commit
2d857b943d
  1. 6
      src/common/detail.js
  2. 1
      src/pages/check/checkFgLabel.vue
  3. 6
      src/pages/purchaseReceipt/job/receiptDetail.vue

6
src/common/detail.js

@ -143,11 +143,11 @@ export function calcTreeHandleQty(detailSource) {
item.handleQty = new Decimal(0).toNumber();
for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
if (detail.packList.length > 0) {
if (detail) {
if (detail.packList&&detail.packList.length > 0) {
detail.handleQty = new Decimal(0).toNumber();
for (let pack of detail.packList) {
if (pack != undefined && pack.scaned) {
if (pack && pack.scaned) {
detail.handleQty = calc.add(detail.handleQty, pack.handleQty);
}
}

1
src/pages/check/checkFgLabel.vue

@ -69,7 +69,6 @@
getBusinessType,
createItemInfo,
createDetailInfo,
calcTreeHandleQty
} from '@/common/record.js';
import {

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

@ -619,9 +619,9 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (!detail.scaned) {
detail.handleQty = 0
}
// if (!detail.scaned) {
// detail.handleQty = 0
// }
detail.packList.forEach(pack => {
if (!pack.scaned) {
pack.handleQty = 0

Loading…
Cancel
Save