Browse Source

修改待检数量

wms3.0_pda
lijuncheng 10 months ago
parent
commit
a1b1a56d88
  1. 2
      common/detail.js
  2. 2
      pages/count/record/countRecord.vue
  3. 4
      pages/inspect/job/inspectFullDetail.vue

2
common/detail.js

@ -1,6 +1,8 @@
import { import {
calc calc
} from '@/common/calc' } from '@/common/calc'
import { Decimal } from 'decimal.js';//引入
export function getDataSource(subList) { export function getDataSource(subList) {
let items = []; let items = [];
subList.forEach(detail => { subList.forEach(detail => {

2
pages/count/record/countRecord.vue

@ -159,7 +159,7 @@
item.handleQty = new Decimal(0).toNumber(); item.handleQty = new Decimal(0).toNumber();
item.qty = new Decimal(0).toNumber(); item.qty = new Decimal(0).toNumber();
for (let detail of item.subList) { for (let detail of item.subList) {
ifdetail=undefined){ if(detail!=undefined){
if(detail.scaned){ if(detail.scaned){
item.handleQty = calc.add(item.handleQty,detail.handleQty); item.handleQty = calc.add(item.handleQty,detail.handleQty);
} }

4
pages/inspect/job/inspectFullDetail.vue

@ -464,7 +464,8 @@
detail.failedQty = detail.failedQty; detail.failedQty = detail.failedQty;
detail.crackQty = detail.crackQty; detail.crackQty = detail.crackQty;
detail.notPassedQty = detail.failedQty; detail.notPassedQty = detail.failedQty;
detail.goodQty = detail.handleQty - detail.failedQty - detail.crackQty; var tempQty = calc.sub(detail.handleQt,detail.failedQty)
detail.goodQty = calc.sub(tempQty,detail.crackQty) ;
detail.inspectUser = this.$store.state.user.id detail.inspectUser = this.$store.state.user.id
//== //==
@ -519,7 +520,6 @@
height: 100%; height: 100%;
background-color: #fff; background-color: #fff;
} }
.page-wraper { .page-wraper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

Loading…
Cancel
Save