|
|
@ -126,7 +126,7 @@ |
|
|
<el-input v-model="reportData.orderNo" disabled style="width: 130px"></el-input> |
|
|
<el-input v-model="reportData.orderNo" disabled style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'报工数量:'"> |
|
|
<el-form-item :label="'报工数量:'"> |
|
|
<el-input v-model="reportData.reportQty" disabled style="width: 130px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="reportData.reportQty" type="number" style="width: 130px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
@ -154,6 +154,7 @@ |
|
|
reportBy:this.$store.state.user.name, |
|
|
reportBy:this.$store.state.user.name, |
|
|
site:this.$store.state.user.site, |
|
|
site:this.$store.state.user.site, |
|
|
}, |
|
|
}, |
|
|
|
|
|
needQty:0, |
|
|
height:200, |
|
|
height:200, |
|
|
tableData:[], |
|
|
tableData:[], |
|
|
date1:'', |
|
|
date1:'', |
|
|
@ -188,10 +189,17 @@ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
this.reportData.orderNo=row.orderNo; |
|
|
this.reportData.orderNo=row.orderNo; |
|
|
this.reportData.reportQty=row.orderQty-row.qtyfinished; |
|
|
|
|
|
|
|
|
this.needQty=row.orderQty-row.qtyfinished; |
|
|
|
|
|
this.reportData.reportQty=0; |
|
|
this.reportModalFlag=true; |
|
|
this.reportModalFlag=true; |
|
|
}, |
|
|
}, |
|
|
reportSave(){ |
|
|
reportSave(){ |
|
|
|
|
|
if(this.reportData.reportQty<this.needQty){ |
|
|
|
|
|
this.$alert('报工数量小于计划数量无法报工!', '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
dailyPlanReportSave(this.reportData).then(({data}) => { |
|
|
dailyPlanReportSave(this.reportData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.search() |
|
|
this.search() |
|
|
|