schedulerApi.js 859 Bytes
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
import Vue from 'vue'
import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"

//生产计划主表
const addHeader = (params)=>postAction("/scheduler/schedulerHeader/add",params);
const editHeader = (params)=>putAction("/scheduler/schedulerHeader/edit",params);

//生产计划明细
const addDetail = (params) => postAction("/scheduler/schedulerDetail/add", params);
const editDetail = (params) => putAction("/scheduler/schedulerDetail/edit", params);

//生产交易表
const addTransaction = (params) => postAction("/scheduler/schedulerTransaction/add", params);
const editTransaction = (params) => putAction("/scheduler/schedulerTransaction/edit", params);

export {
  addHeader,
  editHeader,
  addDetail,
  editDetail,
  addTransaction,
  editTransaction
}