Ben Lin
2024-10-13 234b6cf8944ef95c415c4898f19b8fb4d12e898f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
/*
 * @Description: 维护规则
 * @Author: Ben Lin
 * @version: 
 * @Date: 2024-09-11 00:14:59
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-09-11 19:32:35
 */
import { BizBasItemRuleInput, BizBasPkgRuleInput } from "../model/mesModel";
import { genAction } from "../system";
import { mesApi } from "./mesApi";
import { defHttp } from "/@/utils/http/axios";
 
/**
 * @description: 保存包装规则
 * @param {BizBasPkgRuleInput} params
 * @return {*}
 */
export const SaveBasPkgRule = async (params: BizBasPkgRuleInput) => {
  const data = await defHttp.post(
    { url: mesApi.SaveBasPkgRule, params: genAction('', params) },
    {
      errorMessageMode: 'none',
      isTransformResponse: false,
    },
  );
  return data;
};
 
/**
 * @description: 保存物料条码规则
 * @param {BizBasItemRuleInput} params
 * @return {*}
 */
export const SaveBasItemRule = async (params: BizBasItemRuleInput) => {
  const data = await defHttp.post(
    { url: mesApi.SaveBasItemRule, params: genAction('', params) },
    {
      errorMessageMode: 'none',
      isTransformResponse: false,
    },
  );
  return data;
};