| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { get, postJ } from "@/utils/request";
- import Vue from "vue";
- /**
- * 详情
- */
- export async function getById(id) {
- const res = await get(
- Vue.prototype.apiUrl + `/mes/applyoutsource/getById/${id}`,
- {},
- true,
- );
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
- // 指派
- export async function outsourceAssign(data) {
- const res = await postJ(
- Vue.prototype.apiUrl + `/bpm/outsource/assign`,
- data,
- true,
- );
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
- // 不通过任务,关闭流程
- export async function outsourceNotPass(data) {
- const res = await postJ(
- Vue.prototype.apiUrl + `/bpm/outsource/notPass`,
- data,
- true,
- );
- if (res.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.message));
- }
|