Ben Lin
2024-07-16 5a4d79d9765dfca8812638b57d5f5fe21f7a06ee
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
import { genAction, Api } from '../system';
import { useUserStore } from '/@/store/modules/user';
import { defHttp } from '/@/utils/http/axios';
import { isNullOrEmpty } from '/@/utils/is';
 
/*
 * 获取完工入库单分页列表
 */
 
export const getProductinputListByPage = async (params: any) => {
  let order = ''
  if (params.order != undefined) {
    order = params.order == 'descend' ? (params.field + ' desc') : params.field
  }
  const usParams = {WorkOrder:isNullOrEmpty(params.WorkOrder)?"":params.WorkOrder}
  return getProductinputListByPageAsync(usParams);
  
  // const rParams = genActionPage('BIZ_ERP_PROD_IN', sqlcmd, params.page, params.pageSize,option);
  // return getFinishedwarehouseListByPageAsync(rParams);
};
async function getProductinputListByPageAsync(params: any) {
  const data = await defHttp.post(
    { url: Api.GetProdctResult, params },
    {
      isTransformResponse: false,
    },
  );
  const model = {
    items: data,
    total: data.Count,
  };
  return model;
}