Commit 79a6621bb42d74c0d45afae1b8ffd4d2d654058f

Authored by gesilong
1 parent 007ebdb3

commit:审核更换接口

@@ -112,7 +112,15 @@ export function assayReportSubmitAuditApi(id) { @@ -112,7 +112,15 @@ export function assayReportSubmitAuditApi(id) {
112 method: 'put' 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,6 +54,7 @@ import { COMPONENT_LABELS, getComponentKeys } from './component-config.js'
54 import { 54 import {
55 assayReportDetailApi, 55 assayReportDetailApi,
56 assayReportSubmitAuditApi, 56 assayReportSubmitAuditApi,
  57 + assayReportSubmitApproveApi,
57 assayReportCancelApi, 58 assayReportCancelApi,
58 assayReportInvalidApi 59 assayReportInvalidApi
59 } from '@/api/procure-manage/assayReport.js' 60 } from '@/api/procure-manage/assayReport.js'
@@ -214,7 +215,7 @@ export default { @@ -214,7 +215,7 @@ export default {
214 if (!btn || btn.disabled || !btn.visible) return 215 if (!btn || btn.disabled || !btn.visible) return
215 const e = btn.event || '' 216 const e = btn.event || ''
216 if (e === 'edit') return this.onEdit() 217 if (e === 'edit') return this.onEdit()
217 - if (e === 'submit') return this.onSubmitAudit() 218 + if (e === 'submit') return this.onSubmitApprove()
218 if (e === 'quality') return this.onQuality() 219 if (e === 'quality') return this.onQuality()
219 if (e === 'submitAudit') return this.onSubmitAudit() 220 if (e === 'submitAudit') return this.onSubmitAudit()
220 if (e === 'audit') return this.onAudit() 221 if (e === 'audit') return this.onAudit()
@@ -291,6 +292,16 @@ export default { @@ -291,6 +292,16 @@ export default {
291 run: id => assayReportInvalidApi(id) 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 onSubmitAudit() { 305 onSubmitAudit() {
295 this.runWithConfirm({ 306 this.runWithConfirm({
296 title: '提交审核确认', 307 title: '提交审核确认',