diff --git a/src/api/qc/qc.js b/src/api/qc/qc.js
index 70a74f3..e45b3ba 100644
--- a/src/api/qc/qc.js
+++ b/src/api/qc/qc.js
@@ -155,6 +155,7 @@ export const iqcRecordDelete = data => createAPI(`/pms/qc/iqcRecordDelete`,'post
export const disposalMeasuresSearch = data => createAPI(`/pms/qc/disposalMeasuresSearch`,'post',data)
export const searchItemFileUrl = data => createAPI(`/pms/qc/searchItemFileUrl`,'post',data)
export const imageDelete = data => createAPI(`/pms/qc/imageDelete`,'post',data)
+export const iqcRecordOverLoad = data => createAPI(`/pms/qc/iqcRecordOverLoad`,'post',data)
diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue
index 8fab0d1..ba7935f 100644
--- a/src/views/modules/qc/IQCResultEntry.vue
+++ b/src/views/modules/qc/IQCResultEntry.vue
@@ -62,6 +62,7 @@
查询
审核
删除
+ 任务重载
{
})
},
+ // 任务重载
+ 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 = '' // 记录不是待审核状态的单号