From 403c41efd6d3e6f947136203aff2e0fe224c3637 Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Thu, 8 Aug 2024 21:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E4=BF=A1=E6=81=AF=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=96=B0=E5=A2=9E=E6=8C=89=E9=92=AE=E3=80=81=E7=89=A9?= =?UTF-8?q?=E6=96=99=E4=BB=A3=E7=A0=81=E5=92=8C=E7=89=A9=E6=96=99=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/inventoryManage/package/index.vue | 4 +++- .../inventoryManage/package/package.data.ts | 23 +++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/views/wms/inventoryManage/package/index.vue b/src/views/wms/inventoryManage/package/index.vue index df0e9e8e9..2ed0e267b 100644 --- a/src/views/wms/inventoryManage/package/index.vue +++ b/src/views/wms/inventoryManage/package/index.vue @@ -91,6 +91,8 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row nextTick(() => { const setV = {} setV[formField] = val[0][searchField] + setV['itemName'] = val[0]['name'] + basicFormRef.setValues(setV) basicFormRef.setValues(setV) }) } @@ -103,7 +105,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - // defaultButtons.defaultAddBtn({hasPermi:'wms:package:create'}), // 新增 + defaultButtons.defaultAddBtn({hasPermi:'wms:package:create'}), // 新增 // defaultButtons.defaultImportBtn({hasPermi:'wms:package:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'wms:package:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 diff --git a/src/views/wms/inventoryManage/package/package.data.ts b/src/views/wms/inventoryManage/package/package.data.ts index ee72aae78..cd0625bf5 100644 --- a/src/views/wms/inventoryManage/package/package.data.ts +++ b/src/views/wms/inventoryManage/package/package.data.ts @@ -1,5 +1,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' +import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; +import * as ItembasicApi from "@/api/wms/itembasic"; // 表单校验 export const PackageRules = reactive({ @@ -31,10 +33,27 @@ export const Package = useCrudSchemas(reactive([ label: '物料代码', field: 'itemCode', sort: 'custom', - isSearch: true, table: { - width: 150, + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '物料基础信息', // 查询弹窗标题 + searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } }, + isSearch: true }, { label: '物料名称',