|
|
@@ -2,7 +2,7 @@ import { postJ, post, get } from "@/utils/request";
|
|
|
import Vue from "vue";
|
|
|
|
|
|
|
|
|
-
|
|
|
+// 工单列表
|
|
|
export async function workorderPage(params) {
|
|
|
const data = await postJ(
|
|
|
Vue.prototype.apiUrl + `/pda/mes/workorder/page`, params, true,
|
|
|
@@ -14,3 +14,14 @@ export async function workorderPage(params) {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// 根据工单id获取工序列表
|
|
|
+
|
|
|
+export async function getTaskInstanceList(id) {
|
|
|
+ const data = await get(
|
|
|
+ Vue.prototype.apiUrl + `/pda/mes/workorder/getTaskInstanceById/${id}`,
|
|
|
+ );
|
|
|
+ if (data.code == 0) {
|
|
|
+ return data.data;
|
|
|
+ }
|
|
|
+ return Promise.reject(data.message);
|
|
|
+}
|