工单详情
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user