|
|
|
@ -62,6 +62,7 @@ |
|
|
|
<el-button type="primary" @click="getDataList()">查询</el-button> |
|
|
|
<el-button type="primary" @click="submitResult()">审核</el-button> |
|
|
|
<el-button type="primary" @click="deleteModal()">删除</el-button> |
|
|
|
<el-button type="primary" @click="overLoadModal()">任务重载</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
@ -460,7 +461,8 @@ |
|
|
|
saveIQCSubDetailed, // 新增子明细信息 |
|
|
|
saveIQCSubmitResult, // 审核 |
|
|
|
iqcRecordDelete, // 删除检验记录 |
|
|
|
disposalMeasuresSearch // 获取处置措施列表 |
|
|
|
disposalMeasuresSearch, // 获取处置措施列表 |
|
|
|
iqcRecordOverLoad, // 重载检验单 |
|
|
|
} from "@/api/qc/qc.js" |
|
|
|
import { |
|
|
|
getTableDefaultListLanguage, |
|
|
|
@ -1603,6 +1605,46 @@ |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 任务重载 |
|
|
|
overLoadModal () { |
|
|
|
if (this.IQCSelections.length === 0) { |
|
|
|
this.$message.warning('请勾选要重载的检验单!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.IQCSelections.every(val => val.state === '待检验')) { |
|
|
|
this.$confirm(`是否重载该 `+ this.IQCSelections.length +` 条检验单?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let tempData = { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
submitList: this.IQCSelections |
|
|
|
} |
|
|
|
iqcRecordOverLoad(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.IQCSelections = [] |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message.warning('检验单必须为待检验状态!') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 审核按钮 |
|
|
|
submitResult(){ |
|
|
|
let tempData1 = '' // 记录不是待审核状态的单号 |
|
|
|
|