Commit 79a6621bb42d74c0d45afae1b8ffd4d2d654058f

Authored by gesilong
1 parent 007ebdb3

commit:审核更换接口

... ... @@ -112,7 +112,15 @@ export function assayReportSubmitAuditApi(id) {
112 112 method: 'put'
113 113 })
114 114 }
115   -
  115 +/**
  116 + * 提交
  117 + */
  118 +export function assayReportSubmitApproveApi(id) {
  119 + return request({
  120 + url: baseUrl + '/approve?id=' + id,
  121 + method: 'put'
  122 + })
  123 +}
116 124 /**
117 125 * 取消化验报告单
118 126 */
... ...
... ... @@ -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: '提交审核确认',
... ...