|
...
|
...
|
@@ -54,6 +54,7 @@ import { COMPONENT_LABELS, getComponentKeys } from './component-config.js' |
|
54
|
54
|
import {
|
|
55
|
55
|
assayReportDetailApi,
|
|
56
|
56
|
assayReportSubmitAuditApi,
|
|
|
57
|
+ assayReportSubmitApproveApi,
|
|
57
|
58
|
assayReportCancelApi,
|
|
58
|
59
|
assayReportInvalidApi
|
|
59
|
60
|
} from '@/api/procure-manage/assayReport.js'
|
|
...
|
...
|
@@ -214,7 +215,7 @@ export default { |
|
214
|
215
|
if (!btn || btn.disabled || !btn.visible) return
|
|
215
|
216
|
const e = btn.event || ''
|
|
216
|
217
|
if (e === 'edit') return this.onEdit()
|
|
217
|
|
- if (e === 'submit') return this.onSubmitAudit()
|
|
|
218
|
+ if (e === 'submit') return this.onSubmitApprove()
|
|
218
|
219
|
if (e === 'quality') return this.onQuality()
|
|
219
|
220
|
if (e === 'submitAudit') return this.onSubmitAudit()
|
|
220
|
221
|
if (e === 'audit') return this.onAudit()
|
|
...
|
...
|
@@ -291,6 +292,16 @@ export default { |
|
291
|
292
|
run: id => assayReportInvalidApi(id)
|
|
292
|
293
|
})
|
|
293
|
294
|
},
|
|
|
295
|
+ onSubmitApprove() {
|
|
|
296
|
+ this.runWithConfirm({
|
|
|
297
|
+ title: '提交确认',
|
|
|
298
|
+ content: '确认提交吗?',
|
|
|
299
|
+ loading: '提交中',
|
|
|
300
|
+ successText: '提交成功',
|
|
|
301
|
+ failText: '提交失败',
|
|
|
302
|
+ run: id => assayReportSubmitApproveApi(id)
|
|
|
303
|
+ })
|
|
|
304
|
+ },
|
|
294
|
305
|
onSubmitAudit() {
|
|
295
|
306
|
this.runWithConfirm({
|
|
296
|
307
|
title: '提交审核确认',
|
...
|
...
|
|