|
|
@ -560,7 +560,8 @@ |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<el-button @click="SOPModal()" type="primary">查看SOP</el-button> |
|
|
<el-button @click="SOPModal()" type="primary">查看SOP</el-button> |
|
|
<el-button @click="setUp.reviewFlag = false">取消</el-button> |
|
|
<el-button @click="setUp.reviewFlag = false">取消</el-button> |
|
|
<el-button type="primary" :disabled="setUp.saveButton" @click="saveReport()">确定</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="setUp.saveButton" @click="saveReport('N')">报工确定</el-button> |
|
|
|
|
|
<el-button type="primary" :disabled="setUp.saveButton" style="margin-left: 15px" @click="saveReport('Y')">完工确定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
@ -671,6 +672,7 @@ |
|
|
tvId:'', |
|
|
tvId:'', |
|
|
badCodeList:'', |
|
|
badCodeList:'', |
|
|
saveHeaderData: { |
|
|
saveHeaderData: { |
|
|
|
|
|
closedFlag: '', |
|
|
scrapQty:0, |
|
|
scrapQty:0, |
|
|
scrapRemark:'', |
|
|
scrapRemark:'', |
|
|
acceptQty:'', |
|
|
acceptQty:'', |
|
|
@ -815,7 +817,7 @@ |
|
|
this.abnormalList = data.rows; |
|
|
this.abnormalList = data.rows; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
saveReport () { |
|
|
|
|
|
|
|
|
saveReport (flag) { |
|
|
this.saveHeaderData.qtyReported=Number(this.saveHeaderData.qtyUnApprove)+Number(this.saveHeaderData.qtyApprove); |
|
|
this.saveHeaderData.qtyReported=Number(this.saveHeaderData.qtyUnApprove)+Number(this.saveHeaderData.qtyApprove); |
|
|
if (this.saveHeaderData.qtyUnApprove == null || this.saveHeaderData.qtyUnApprove < 0) { |
|
|
if (this.saveHeaderData.qtyUnApprove == null || this.saveHeaderData.qtyUnApprove < 0) { |
|
|
this.$alert('不合格数量错误!', '错误信息', { |
|
|
this.$alert('不合格数量错误!', '错误信息', { |
|
|
@ -915,6 +917,7 @@ |
|
|
},0) |
|
|
},0) |
|
|
} |
|
|
} |
|
|
this.setUp.saveButton=true; |
|
|
this.setUp.saveButton=true; |
|
|
|
|
|
this.saveHeaderData.closedFlag=flag |
|
|
saveGenerateReportForSchedule(this.saveHeaderData).then(({data}) => { |
|
|
saveGenerateReportForSchedule(this.saveHeaderData).then(({data}) => { |
|
|
this.setUp.saveButton = false |
|
|
this.setUp.saveButton = false |
|
|
if (data.code == 0) { |
|
|
if (data.code == 0) { |
|
|
|