外层修试通过接口

This commit is contained in:
jjLv 2024-11-25 16:50:32 +08:00
parent ffcff6ab25
commit fdb9cd241b
2 changed files with 16 additions and 12 deletions

View File

@ -73,7 +73,7 @@ export function sendList(data) {
}) })
} }
//维修合格 //内层维修合格
export function auditPass(data) { export function auditPass(data) {
return request({ return request({
url: '/material/repair/batchQualified', url: '/material/repair/batchQualified',
@ -83,6 +83,16 @@ export function auditPass(data) {
}) })
} }
//外层修试审核通过
export function outerAudit(data) {
return request({
url: '/material/repair_audit_details/outerAudit',
method: 'put',
data: data,
})
}
//获取维修任务单信息 //获取维修任务单信息
export function getRepairDocumentInfo(taskId) { export function getRepairDocumentInfo(taskId) {
return request({ return request({

View File

@ -227,16 +227,10 @@
<script> <script>
import { import {
getListTestExamineApply, getListTestExamineApply,
// getPurchaseCheckInfo,
// getAcceptanceForm,
// purchaseCheckInfoRemove,
// queryStatusDataApi,
// getApplyInfo,
// applyRemove,
// applySend,
// applySendAll,
} from "@/api/repair/testExamine"; } from "@/api/repair/testExamine";
import {
outerAudit,
} from "@/api/repair/repair";
export default { export default {
name: "Home", name: "Home",
dicts: ["repair_task_status"], dicts: ["repair_task_status"],
@ -373,7 +367,7 @@ export default {
}); });
return; return;
} else { } else {
auditPass(this.passTemp).then((response) => { outerAudit(this.passTemp).then((response) => {
if (response.code == 200) { if (response.code == 200) {
this.$modal.msgSuccess("通过成功"); this.$modal.msgSuccess("通过成功");
} }
@ -390,7 +384,7 @@ export default {
}); });
return; return;
} else { } else {
auditPass(this.failTemp).then((response) => { outerAudit(this.failTemp).then((response) => {
if (response.code == 200) { if (response.code == 200) {
this.$modal.msgSuccess("驳回成功"); this.$modal.msgSuccess("驳回成功");
} }