From 92295fc4eb5cb09f37058535c48d32a88747b7d7 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 3 Sep 2024 14:57:22 +0800 Subject: [PATCH] =?UTF-8?q?HL-5809=E5=A2=9E=E5=8A=A0=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=9F=A5=E8=AF=A2=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=82=E8=80=83=E5=A4=87=E6=B3=A8=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../balanceSummary/balanceSummary.data.ts | 112 ++++++++++++++++++ .../inventoryManage/balanceSummary/index.vue | 85 +++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts create mode 100644 src/views/wms/inventoryManage/balanceSummary/index.vue 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