diff --git a/src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts b/src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts new file mode 100644 index 000000000..83774c39f --- /dev/null +++ b/src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts @@ -0,0 +1,112 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import * as ItembasicApi from '@/api/wms/itembasic' +import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' +/** + * @returns {Array} 库存余额 + */ + + +export const BalanceSummarySearch = useCrudSchemas( + reactive([ + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + search: { + componentProps: { + enterSearch: true, //可输入回车 + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '物料基础信息', // 查询弹窗标题 + searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }], + verificationParams: [{ + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: 'true', + isFormModel: true + }], // 失去焦点校验参数 + } + } + },{ + label: '物料描述', + field: 'desc1', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true, + search: { + componentProps: { + disabled: true + } + } + } + ]) +) + +export const BalanceSummary = useCrudSchemas( + reactive([ + { + label: ' ', + field: 'name', + sort: 'custom', + }, + { + label: '总数', + field: 'num1', + sort: 'custom', + table: { + width: 150 + } + }, + { + label: '合格数', + field: 'num2', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '待检数', + field: 'num2', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '隔离数', + field: 'num2', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + }, + { + label: '不合格数', + field: 'num2', + sort: 'custom', + table: { + width: 150 + }, + isSearch: true + } + ]) +) diff --git a/src/views/wms/inventoryManage/balanceSummary/index.vue b/src/views/wms/inventoryManage/balanceSummary/index.vue new file mode 100644 index 000000000..a5e412529 --- /dev/null +++ b/src/views/wms/inventoryManage/balanceSummary/index.vue @@ -0,0 +1,85 @@ + + + \ No newline at end of file