diff --git a/src/views/modules/production/dailyPlanReport.vue b/src/views/modules/production/dailyPlanReport.vue index dc63f59..3c092b5 100644 --- a/src/views/modules/production/dailyPlanReport.vue +++ b/src/views/modules/production/dailyPlanReport.vue @@ -101,6 +101,13 @@ min-width="50" label="已完工数"> + + + + - + @@ -144,10 +158,10 @@ - + - + @@ -166,6 +180,7 @@ dailyPlanReportSave, dailyPlanReportsSave } from "@/api/production.js" + import decimalUtil from '../../../utils/decimalUtil' export default { name: 'dailyPlanReport', data () { @@ -177,7 +192,9 @@ reportQty:'', reportBy:this.$store.state.user.name, site:this.$store.state.user.site, + orderRef1: '', }, + orderRef1:'', needQty:0, height:200, tableData:[], @@ -220,17 +237,18 @@ return false } this.reportData.orderNo=row.orderNo; - this.needQty=row.orderQty-row.qtyfinished; + this.needQty=decimalUtil.sub(row.orderQty,row.qtyfinished); this.reportData.reportQty=0; + this.reportData.orderRef1=row.orderRef1; this.reportModalFlag=true; }, reportSave(){ - if(this.reportData.reportQty { if (data && data.code === 0) { this.search(); @@ -274,6 +292,7 @@ } this.qtyIn=''; this.qtyAverage='0'; + this.orderRef1=orderRef; this.reportsModalFlag=true; }, changeAverage(){ @@ -283,14 +302,14 @@ } }, reportsSave(){ - for (let i = 0; i this.qtyAverage){ - this.$alert('存在计划数量大于平均报工数量的订单!','错误',{ - confirmButtonText: '确定' - }) - return false; - } - } + // for (let i = 0; i this.qtyAverage){ + // this.$alert('存在计划数量大于平均报工数量的订单!','错误',{ + // confirmButtonText: '确定' + // }) + // return false; + // } + // } let inList=[]; for (let i = 0; i + +