|
|
|
@ -620,6 +620,7 @@ |
|
|
|
getAbnormalCodeList, |
|
|
|
getShopOrderData, |
|
|
|
} from "@/api/abnormal.js" |
|
|
|
import {Decimal} from 'decimal.js' |
|
|
|
export default { |
|
|
|
name: 'generateReport', |
|
|
|
components: { |
|
|
|
@ -884,6 +885,9 @@ |
|
|
|
} |
|
|
|
this.saveHeaderData.toolingHistDataList = this.toolHistList |
|
|
|
this.saveHeaderData.createBy = this.$store.state.user.name |
|
|
|
this.saveHeaderData.moQty = this.toolHistList.reduce((prev, cur)=>{ |
|
|
|
return new Decimal(prev).add(new Decimal(cur.finishQty)).toNumber() |
|
|
|
},0) |
|
|
|
} |
|
|
|
|
|
|
|
this.setUp.saveButton=true; |
|
|
|
|