|
|
|
@ -86,8 +86,8 @@ |
|
|
|
align="center" |
|
|
|
label="状态"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div :style="{fontWeight:'bold', color: scope.row.state =='待检验' ? 'red' : scope.row.state =='待审核' ? '#ffa500e0' : scope.row.state =='已完成' ? '#3ac252' : ''}"> |
|
|
|
{{ scope.row.state }} |
|
|
|
<div :style="{fontWeight:'bold', color: scope.row.state === '待检验' ? 'red' : scope.row.state === '待审核' ? '#ffa500e0' : scope.row.state === '已完成' ? '#3ac252' : ''}"> |
|
|
|
{{scope.row.state}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -150,11 +150,11 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList()"> |
|
|
|
<el-form-item :label="'不合格项目数量'"> |
|
|
|
<el-input v-if="detailData.submitFlag == 'Y'" v-model="detailData.unqualifiedQty" disabled type="number" style="width: 80px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled type="number" style="width: 80px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag != 'Y'" v-model="detailData.unqualifiedQty" type="number" style="width: 80px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'处置措施'"> |
|
|
|
<el-select v-if="detailData.submitFlag == 'Y'" v-model="detailData.disposalMeasures" disabled style="width: 100px"> |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.disposalMeasures" disabled style="width: 100px"> |
|
|
|
<el-option label="请选择" value=""></el-option> |
|
|
|
<el-option label="特采" value="特采"></el-option> |
|
|
|
<el-option label="拒收" value="拒收"></el-option> |
|
|
|
@ -166,11 +166,11 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'处置说明'"> |
|
|
|
<el-input v-if="detailData.submitFlag == 'Y'" v-model="detailData.disposalRemark" disabled style="width: 200px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.disposalRemark" disabled style="width: 200px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag != 'Y'" v-model="detailData.disposalRemark" style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'检验结论'"> |
|
|
|
<el-select v-if="detailData.submitFlag == 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择"> |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择"> |
|
|
|
<el-option label="合格" value="合格"></el-option> |
|
|
|
<el-option label="不合格" value="不合格"></el-option> |
|
|
|
</el-select> |
|
|
|
@ -180,7 +180,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="检验员"> |
|
|
|
<el-select v-if="detailData.submitFlag == 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px"> |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in options" |
|
|
|
:key = "i.inspectorNo" |
|
|
|
@ -198,7 +198,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'质检备注'"> |
|
|
|
<el-input v-if="detailData.submitFlag == 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 200px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 200px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag != 'Y'" v-model="detailData.inspectionRemark" style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
@ -246,7 +246,7 @@ |
|
|
|
min-width="80" |
|
|
|
label="不合格数量"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-if="detailData.submitFlag == 'Y'" v-model="scope.row.unqualifiedQuantity" disabled type="number" style="height: 11px;padding: 0px " allow-create>;width:98%"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="scope.row.unqualifiedQuantity" disabled type="number" style="height: 11px;padding: 0px " allow-create>;width:98%"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag != 'Y'" v-model="scope.row.unqualifiedQuantity" type="number" style="height: 11px;padding: 0px " allow-create>;width:98%"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -257,7 +257,7 @@ |
|
|
|
min-width="75" |
|
|
|
label="项目检验结论"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-if="detailData.submitFlag == 'Y'" v-model="scope.row.itemResult" disabled style="height: 11px;padding: 0px" > |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="scope.row.itemResult" disabled style="height: 11px;padding: 0px" > |
|
|
|
<el-option label="合格" value="Y" style="color: green"></el-option> |
|
|
|
<el-option label="不合格" value="N" style="color: red"></el-option> |
|
|
|
</el-select> |
|
|
|
@ -291,13 +291,13 @@ |
|
|
|
<el-table-column label="序号" align="center" prop="xh" width="50"></el-table-column> |
|
|
|
<el-table-column prop="subDetailValue" header-align="center" align="center" :required="true" label="抽样位置" width="150"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit=='Y'" v-model="tableData[row.xh-1].samplingLocation" readonly placeholder="请输入抽样位置"></el-input> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit==='Y'" v-model="tableData[row.xh-1].samplingLocation" readonly placeholder="请输入抽样位置"></el-input> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit!='Y'" v-model="tableData[row.xh-1].samplingLocation" placeholder="请输入抽样位置"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="subDetailValue" header-align="center" align="center" :required="true" label="实测值" width="200"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit=='Y'" v-model="tableData[row.xh-1].subDetailValue" readonly placeholder="请输入实测值"></el-input> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit==='Y'" v-model="tableData[row.xh-1].subDetailValue" readonly placeholder="请输入实测值"></el-input> |
|
|
|
<el-input v-if="tableData[row.xh-1].isSubmit!='Y'" v-model="tableData[row.xh-1].subDetailValue" placeholder="请输入实测值"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -941,7 +941,7 @@ |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
deleteObjectFile(row).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getFileContentData(row); |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
@ -988,7 +988,7 @@ |
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
qcFAIInspectionSearch(this.searchData).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
if (data.code === 0) { |
|
|
|
this.dataList = data.page.list |
|
|
|
this.pageIndex = data.page.currPage |
|
|
|
this.pageSize = data.page.pageSize |
|
|
|
@ -1014,7 +1014,7 @@ |
|
|
|
}, |
|
|
|
// 删除检验记录 |
|
|
|
deleteModal () { |
|
|
|
if(this.FAISelections.length == 0){ |
|
|
|
if(this.FAISelections.length === 0){ |
|
|
|
this.$alert('请勾选要删除的检验单!', '提示', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
@ -1030,7 +1030,7 @@ |
|
|
|
submitList: this.FAISelections |
|
|
|
} |
|
|
|
faiRecordDelete(tempData).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.FAISelections = [] |
|
|
|
this.$message({ |
|
|
|
@ -1050,13 +1050,13 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
Transfer(){ |
|
|
|
if (this.detailData.inspectionResult == '' || this.detailData.inspectionResult == null) { |
|
|
|
if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) { |
|
|
|
this.$alert('请选择检验结论!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
if (this.detailData.inspectorNo == '' || this.detailData.inspectorNo == null) { |
|
|
|
if (this.detailData.inspectorNo === '' || this.detailData.inspectorNo == null) { |
|
|
|
this.$alert('请选择检验员!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
@ -1069,16 +1069,16 @@ |
|
|
|
// return false |
|
|
|
// } |
|
|
|
for (let i = 0; i < this.detailList.length; i++) { |
|
|
|
if(this.detailList[i].itemResult == '' || this.detailList[i].itemResult == null){ |
|
|
|
if(this.detailList[i].itemResult === '' || this.detailList[i].itemResult == null){ |
|
|
|
// this.$alert(this.detailList[i].itemDesc+'是否合格未确认!', '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// return false |
|
|
|
this.detailList[i].itemResult = 'Y' |
|
|
|
} |
|
|
|
if(this.detailList[i].valueTypeDb == 'N') { |
|
|
|
if(this.detailList[i].valueTypeDb === 'N') { |
|
|
|
checkFAISubDetailValue(this.detailList[i]).then(({data}) => { |
|
|
|
if (data.flag == 2 && this.detailList[i].itemResult == 'Y') { |
|
|
|
if (data.flag == 2 && this.detailList[i].itemResult === 'Y') { |
|
|
|
this.$confirm(this.detailList[i].itemDesc + ' 中实测值不在合格范围!是否保存为合格?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
|