|
|
@ -529,7 +529,8 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="Transfer">保存</el-button> |
|
|
|
|
|
|
|
|
<el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button> |
|
|
|
|
|
<el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="primary" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button> |
|
|
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> |
|
|
<el-button type="primary" @click="detailInformationFlag=false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
@ -863,6 +864,7 @@ |
|
|
favorite: false, |
|
|
favorite: false, |
|
|
// 导出 start |
|
|
// 导出 start |
|
|
exportData: [], |
|
|
exportData: [], |
|
|
|
|
|
transferLoadFlag: false, |
|
|
exportName: "FQAS检验录入" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
exportName: "FQAS检验录入" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
exportHeader: ["FQAS检验录入"], |
|
|
exportHeader: ["FQAS检验录入"], |
|
|
exportFooter: [], |
|
|
exportFooter: [], |
|
|
@ -2479,7 +2481,8 @@ |
|
|
this.dataListSelections = val |
|
|
this.dataListSelections = val |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async Transfer () { |
|
|
|
|
|
|
|
|
async Transfer (type) { |
|
|
|
|
|
if (type === '2') { |
|
|
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) { |
|
|
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) { |
|
|
this.$message.warning('请选择检验结论!') |
|
|
this.$message.warning('请选择检验结论!') |
|
|
return |
|
|
return |
|
|
@ -2495,21 +2498,16 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.$confirm(`确认保存检验数据?`, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
if (this.detailData.inspectionResult !== '不合格') { |
|
|
if (this.detailData.inspectionResult !== '不合格') { |
|
|
this.detailData.disposalMeasures = '' |
|
|
this.detailData.disposalMeasures = '' |
|
|
this.detailData.disposalRemark = '' |
|
|
this.detailData.disposalRemark = '' |
|
|
} |
|
|
} |
|
|
this.saveDetailInformation() |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
this.saveDetailInformation(type) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 新增明细信息 |
|
|
// 新增明细信息 |
|
|
saveDetailInformation () { |
|
|
|
|
|
|
|
|
saveDetailInformation (type) { |
|
|
this.saveInformationData.site = this.detailData.site |
|
|
this.saveInformationData.site = this.detailData.site |
|
|
this.saveInformationData.buNo = this.detailData.buNo |
|
|
this.saveInformationData.buNo = this.detailData.buNo |
|
|
this.saveInformationData.inspectionNo = this.detailData.inspectionNo |
|
|
this.saveInformationData.inspectionNo = this.detailData.inspectionNo |
|
|
@ -2528,7 +2526,8 @@ |
|
|
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) |
|
|
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) |
|
|
this.saveInformationData.passQty = this.detailData.passQty == null ? 0 : this.detailData.passQty |
|
|
this.saveInformationData.passQty = this.detailData.passQty == null ? 0 : this.detailData.passQty |
|
|
this.saveInformationData.notPassQty = this.detailData.notPassQty == null ? 0 : this.detailData.notPassQty |
|
|
this.saveInformationData.notPassQty = this.detailData.notPassQty == null ? 0 : this.detailData.notPassQty |
|
|
// this.saveInformationData.subDetailList = this.acquisitionList |
|
|
|
|
|
|
|
|
this.saveInformationData.type = type |
|
|
|
|
|
this.transferLoadFlag = true |
|
|
saveFQASDetailedRecord(this.saveInformationData).then(({data}) => { |
|
|
saveFQASDetailedRecord(this.saveInformationData).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.searchData.inspectionNo = '' |
|
|
this.searchData.inspectionNo = '' |
|
|
@ -2545,6 +2544,8 @@ |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).finally(()=>{ |
|
|
|
|
|
this.transferLoadFlag = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|