You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
zhang_li afd292db91 生成标签默认显示箱规格,分页问题 2 months ago
build/vite 去掉检验 5 months ago
public 修改属性 3 months ago
src 生成标签默认显示箱规格,分页问题 2 months ago
types 更换vue3 1 year ago
.editorconfig 修改文件 11 months ago
.env BUG修复 4 months ago
.env.development 租户 3 months ago
.env.prod 登录环境 3 months ago
.env.test 登录环境 3 months ago
.env.test-scp 登录环境 3 months ago
.env.wyf 打包后后端地址修改 3 months ago
.eslintignore 更换vue3 1 year ago
.eslintrc-auto-import.json 更换vue3 1 year ago
.eslintrc.js 增加节假日api 6 months ago
.gitignore 忽略文件设置 4 months ago
.prettierignore 更换vue3 1 year ago
.stylelintignore 更换vue3 1 year ago
Dockerfile 修改nginx版本 7 months ago
Dockerfile_prod 统一文件名 5 months ago
Dockerfile_scp scp 配置文件 5 months ago
LICENSE 更换vue3 1 year ago
README.md 盘点模块--主子表合并--拆分 3 months ago
index.html 打包后后端地址修改 3 months ago
nginx.conf 增加海拉六个环境 5 months ago
nginx_prod.conf 兼容海拉端口 4 months ago
nginx_scp.conf scp 配置文件 5 months ago
package.json QMS 问题 3 months ago
postcss.config.js 更换vue3 1 year ago
prettier.config.js 更换vue3 1 year ago
stylelint.config.js 更换vue3 1 year ago
tsconfig.json 处理vue文件中引入ts找不到模块问题 12 months ago
uno.config.ts 更换vue3 1 year ago
vite.config.ts 更换vue3 1 year ago

README.md

dev发布2024-06-01-002

xxxx.data.ts 文件配置说明 form表单查询弹窗配置 form: { labelMessage: '信息提示说明!!!', componentProps: { value:'undefined',//默认值,设置为'undefined'-->实际是undefined(解决SelectV2不显示占位符placeholder) enterSearch: true, //可输入回车 对应绑定事件:@onEnter="onEnter" isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchField: 'itemCode', // 查询弹窗赋值字段 searchTitle: '生产线物料关系信息', // 查询弹窗标题 hiddenFilterButton:true,//是否隐藏筛选按钮 dialogWidth:'100px',//搜索出来弹窗的宽度 isConcatDetailSchemas:true, // 是否主子表合并 searchDetailSchemas: PurchasereceiptRecordDetail.allSchemas, // 查询弹窗所需子表类 searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法 searchCondition: [{ key:'productionLineCode', // 查询列表中字段 value:'prodLine', // 指主表某字段 message: '请选择生产线信息!', // 当前置条件为空时 弹出信息提示 isMainValue: true // 表示查询条件是主表的字段的值 }, { key: 'customerCode', // 查询列表中字段 value: 'customerCode', // 指查询具体值 action: '==', // 查询拼接条件 isSearch: true, // 使用自定义拼接条件 isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 isFormModel:true, // filters中添加筛选的数据--取于formModel required:true, // 前置添加必有,和isFormModel结合使用 message: '请选择客户代码!', // 前置添加没填的提示语 }, { key: 'itemCode', value: 'itemCode', message: '请选择订单行', isTableRowValue: true, //查询当前searchTable表中行数据的值 isMainValue:false }, { key:'available', // 查询列表中字段 value:'TRUE', // 指查询具体值 isMainValue: false // 表示查询条件不是主表的字段的值 } ] } } tableForm明细列表查询弹窗配置 tableForm:{ hidden:false,//控制列是否展示 isInpuFocusShow: true, // 开启查询弹窗 【与form表单中唯一不同属性】 searchListPlaceholder: '请选择从仓库代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 searchTitle: '仓库基础信息', // 查询弹窗标题 searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 searchCondition: [{ key: 'available', // 查询列表中字段 value: 'TRUE', // 指查询具体值 isMainValue: false // 表示查询条件不是主表的字段的值 }, { key: 'available', // 查询列表中字段 value: 'TRUE', // 指查询具体值 action: '==', // 查询拼接条件 isSearch: true, // 使用自定义拼接条件 isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 }] },

主子表合并需要修改的代码 1、影响Table表头 const tableColumns = ref([…”PurchaseMain”.allSchemas.tableColumns,…”PurchaseDetail”.allSchemas.tableMainColumns])

PurchaseMain:主表 PurchaseDetail:子表

2、影响搜索头部 在TableHead标签内部添加属性: <TableHead ...... :detailAllSchemas="PurchaseDetail.allSchemas" />

3、影响操作按钮 3.1 修改<Table 标签中赋值 原有: #action="{ row }” :Butttondata=“butttondata(row)" 改为: #action="{ row,$index }” :Butttondata="butttondata(row,$index)"

3.2 在按钮回调中添加$index,固定的写死: const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 if(findIndex>-1&&findIndex<$index){ return [] } …下面是原有的按钮逻辑,不变 }

4、更换子表的请求接口 const { tableObject, tableMethods } = useTable({ getListApi: “PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage”// 分页接口 })

5、搜索工作栏 <Search :schema="[...CountPlanMain.allSchemas.searchSchema,...CountPlanDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" />

6、ts文件配置: hiddenInMain:true, //子表中数据不展示在主表 sortTableDefault:1000, // 主页面中Table表中展示的排序位置:默认值999 ,最小值1,值越大越靠后,值越小越靠前 sortSearchDefault:1000,// 搜素框中展示的排序位置,用法同sortTableDefault