工单详情

This commit is contained in:
2025-11-12 18:14:12 +08:00
parent b940d7a6cc
commit 1a6071194a
8 changed files with 159 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
// pages/workBenchTodoList/index.js
import request from "../../utils/request"
import { getWorkOrderList } from "../../service/workBench"
import { alertInfo, loadingFunc } from "../../utils/index";
import { getWorkOrderList, doNoticeFlow } from "../../service/workBench"
import { alertInfo, alertSuccess, loadingFunc } from "../../utils/index";
import { noticeFlowType } from "../../utils/data"
const { OK } = request
Page({
@@ -40,9 +40,19 @@ onMenuSelect(e) {
this.jumpToDetail(id);
break;
case "ok":
this.handleDoNotice(id);
break;
}
},
async handleDoNotice(id) {
const { code, message } = await doNoticeFlow(id)
if (code !== OK) {
alertInfo(message)
return
}
alertSuccess("确认成功")
this.init();
},
jumpToDetail(id) {
// wx.navigateTo({