| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import {
- postJ,
- post,
- get
- } from "@/utils/request";
- import Vue from "vue";
- //工序计算列表
- export async function saveParam(params) {
- const data = await postJ(
- Vue.prototype.apiUrl + `/mes/computeparam/save`, params, true,
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
- // 根据工单工序取计算参数
- export async function getComputeParam(workOrderId, taskId) {
- const data = await get(
- Vue.prototype.apiUrl + `/mes/computeparam/getComputeParam/${workOrderId}/${taskId}`
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
- // pda常规质检-批量报工型取样
- export async function sample(params) {
- const data = await postJ(
- Vue.prototype.apiUrl + `/pda/mes/workorder/sample`, params, true,
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
|