Browse Source

修改采购收货实际赋值

hella_online_20240803
lijuncheng 3 weeks 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(); item.handleQty = new Decimal(0).toNumber();
for (let detail of item.subList) { for (let detail of item.subList) {
if (detail != undefined && detail.scaned) { if (detail) {
if (detail.packList.length > 0) { if (detail.packList&&detail.packList.length > 0) {
detail.handleQty = new Decimal(0).toNumber(); detail.handleQty = new Decimal(0).toNumber();
for (let pack of detail.packList) { for (let pack of detail.packList) {
if (pack != undefined && pack.scaned) { if (pack && pack.scaned) {
detail.handleQty = calc.add(detail.handleQty, pack.handleQty); detail.handleQty = calc.add(detail.handleQty, pack.handleQty);
} }
} }

1
src/pages/check/checkFgLabel.vue

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

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

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

Loading…
Cancel
Save