diff --git a/src/api/wms/settlementReport/index.ts b/src/api/wms/settlementReport/index.ts index 18ca2e0c1..97da85e57 100644 --- a/src/api/wms/settlementReport/index.ts +++ b/src/api/wms/settlementReport/index.ts @@ -22,6 +22,22 @@ export const getSettlementReportPage = async (params) => { } +// 查询上线结算配置列表 +export const settlementInfoReportScpPage = async (params) => { + // if (params.isSearch) { + // delete params.isSearch + // const data = {...params} + // return await request.post({ url: '/wms/onlinesettlement-info/settlementInfoReport/senior', data }) + // } else { + return await request.get({ url: `/wms/onlinesettlement-info/settlementInfoReportScpPage`, params }) + // } +} + +// 导出上线结算配置 Excel +export const exportSettlementInfoReportScpPage = async (params) => { + return await request.download({ url: `/wms/onlinesettlement-info/export-excel-scp`, params }) +} + // 查询上线结算配置列表 export const getSettlementReportBalance = async (params) => { // if (params.isSearch) { diff --git a/src/views/wms/issueManage/onlinesettlement/settlementReportScp/index.vue b/src/views/wms/issueManage/onlinesettlement/settlementReportScp/index.vue new file mode 100644 index 000000000..c6765e799 --- /dev/null +++ b/src/views/wms/issueManage/onlinesettlement/settlementReportScp/index.vue @@ -0,0 +1,298 @@ + + + diff --git a/src/views/wms/issueManage/onlinesettlement/settlementReportScp/settlementReport.data.ts b/src/views/wms/issueManage/onlinesettlement/settlementReportScp/settlementReport.data.ts new file mode 100644 index 000000000..1e105e0bd --- /dev/null +++ b/src/views/wms/issueManage/onlinesettlement/settlementReportScp/settlementReport.data.ts @@ -0,0 +1,207 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' +import * as SupplierApi from '@/api/wms/supplier' +import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' +import * as SupplieritemApi from '@/api/wms/supplieritem' +import { Supplieritem} from '@/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data' +import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' +import * as WarehouseApi from '@/api/wms/warehouse' +import * as LocationApi from '@/api/wms/location' +import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' + +// 表单校验 +export const SettlementReportRules = reactive({ +}) + +export const SettlementReport = useCrudSchemas(reactive([ + + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: false, + + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + form: { + componentProps: { + disabled: true + } + } + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + }, + { + label: '累计收货量', + field: 'totalReceiptQty', + sort: 'custom', + }, + { + label: '已结算数量', + field: 'totalSettledQty', + sort: 'custom', + }, + { + label: '未结算数量', + field: 'totalOutstandingSettleQty', + sort: 'custom', + isForm: false + }, + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) + +export const SettlementReportSelection = useCrudSchemas(reactive([ + { + label: ' ', + field: 'hahaha', + table: { + width: 180 + }, + isTable:false, + isDetail:false, + form: { + componentProps: { + type: 'slot', + } + }, + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + isSearch: true, + + }, + { + label: '供应商名称', + field: 'supplierName', + sort: 'custom', + form: { + componentProps: { + disabled: true + } + } + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isSearch: true, + }, + { + label: '物料名称', + field: 'itemName', + sort: 'custom', + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + }, + { + label: '包装号', + field: 'packingNumber', + sort: 'custom', + }, + { + label: '库位代码', + field: 'locationCode', + sort: 'custom', + }, + { + label: '库存数量', + field: 'qty', + sort: 'custom', + }, + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + } +])) +//表单校验 +export const SettlementReportSelectionRules = reactive({ + // fromWarehouseCode: [ + // { required: true, message: '请选择来源仓库', trigger: 'change' } + // ], +}) + + +export const SettlementReportSelectionForm = useCrudSchemas(reactive([ + { + label: '结算库位', + field: 'toLocationCode', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择结算库位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库位信息', // 查询弹窗标题 + searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 + searchPage: LocationApi.getLocationPageOnlineSettlement, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + },{ + key: 'supplierCode', + value: 'supplierCode', + message: '请填写供应商代码!', + isMainValue: true + },{ + key: 'itemCode', + value: 'itemCode', + message: '请填写物料代码!', + isMainValue: true + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + }], // 失去焦点校验参数 + } + } + } +])) + +export const SettlementReportSelectionFormRules = reactive({ + toLocationCode: [ + { required: true, message: '请选择结算库位', trigger: 'change' } + ], +})