diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 16eae4a35..14e24389f 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -885,7 +885,6 @@ export default { 打开:'Open', 保存:'Save', 下一步:'Next', - 下一步:'Next', 请选择筛选对象:'Please select filter', 请输入内容:'Please inputr content', 附件:'Attachment', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index d5bec6b15..ddc8193f9 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -885,7 +885,6 @@ export default { 打开:'打开', 保存:'保存', 下一步:'下一步', - 下一步:'下一步', 请选择筛选对象:'请选择筛选对象', 请输入内容:'请输入内容', 附件:'附件', diff --git a/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts b/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts index 8572f2373..80332842f 100644 --- a/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts +++ b/src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts @@ -3,6 +3,316 @@ import { dateFormatter } from '@/utils/formatTime' import { fa } from 'element-plus/es/locale' import * as PackageunitApi from '@/api/wms/packageunit' import { Select } from '@element-plus/icons-vue/dist/types' +export const Packageunit1 = useCrudSchemas(reactive([ + { + label: '包装代码', + field: 'code', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '包装名称', + field: 'name', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '包装类型', + field: 'type', + dictType: DICT_TYPE.PACK_UNIT_TYPE, + dictClass: 'string', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + }, + { + label: '长', + field: 'length', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '宽', + field: 'width', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '高', + field: 'height', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '重量', + field: 'weight', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '单位', + field: 'unit', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: false, + table: { + width: 150 + }, + }, + { + label: '是否可用', + field: 'available', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + table: { + width: 150 + }, + }, + { + label: '包装描述', + field: 'desc', + sort: 'custom', + isSearch: false, + table: { + width: 150 + }, + }, + { + label: '是否重复使用', + field: 'reuse', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: false, + form: { + component: 'Switch', + value: 'TRUE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + table: { + width: 150 + }, + }, + { + label: '是否管理包装库存', + field: 'manageBalance', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isSearch: false, + form: { + component: 'Switch', + value: 'FALSE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + }, + table: { + width: 180 + }, + }, + { + label: '生效时间', + field: 'activeTime', + sort: 'custom', + table: { + width: 180 + }, + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '失效时间', + field: 'expireTime', + sort: 'custom', + table: { + width: 180 + }, + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + table: { + width: 180 + }, + formatter: dateFormatter, + isForm: false, + }, + { + label: '创建者', + field: 'creator', + isForm: false, + isTable: true + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + isDetail: true, + isForm: false, + isTable: false, + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + style: {width:'100%'}, + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + } + }, + { + label: '最后更新者', + field: 'updater', + isDetail: true, + isForm: false, + isTable: false, + table: { + width: 150 + } + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '删除时间', + field: 'deletionTime', + sort: 'custom', + isForm: false, + isTable: false, + isDetail: false, + table: { + width: 180 + }, + formatter: dateFormatter, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '删除者', + field: 'deleterId', + sort: 'custom', + isDetail: false, + isForm: false, + isTable: false, + table: { + width: 150 + }, + }, + { + label: '扩展属性', + field: 'extraProperties', + sort: 'custom', + isForm: false, + isDetail: false, + isTable: false, + table: { + width: 150 + }, + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isForm: false, + isDetail: false, + isTable: false, + table: { + width: 150 + }, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '地点', + field: 'siteId', + sort: 'custom', + isForm: false, + isDetail: false, + isTable: false, + table: { + width: 150 + }, + }, + { + label: '操作', + field: 'action', + isForm: false, + isDetail: false, + table: { + width: 150, + fixed: 'right' + } + } +])) export const Packageunit = useCrudSchemas(reactive([ { @@ -13,15 +323,31 @@ export const Packageunit = useCrudSchemas(reactive([ table: { width: 150 }, + },{ + label: '父包装代码', + field: 'parentCode', + sort: 'custom', + isTable:false, + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择到库位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '包装规格信息', // 查询弹窗标题 + searchAllSchemas: Packageunit1.allSchemas, // 查询弹窗所需类 + searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 + searchCondition:[{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + } }, - // { - // label: '父包装代码', - // field: 'parentCode', - // sort: 'custom', - // table: { - // width: 150 - // }, - // }, { label: '包装名称', field: 'name', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index 1086fa936..fc80a2a7c 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -64,7 +64,7 @@ - +