diff --git a/README.md b/README.md
index 4f12652d0..6795cf0cf 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@ form: {
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '生产线物料关系信息', // 查询弹窗标题
+ hiddenFilterButton:true,//是否隐藏筛选按钮
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
searchCondition: [{
diff --git a/src/api/mes/itemRequestDetail/index.ts b/src/api/mes/itemRequestDetail/index.ts
new file mode 100644
index 000000000..dd253bc78
--- /dev/null
+++ b/src/api/mes/itemRequestDetail/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface ItemRequestDetailVO {
+ deleteTime: Date
+ id: number
+ status: string
+ concurrencyStamp: number
+ remark: string
+ deleter: string
+ requestBillNo: string
+ itemBasicCode: string
+ itemCounts: number
+ itemUom: string
+ siteId: number
+}
+
+// 查询叫料申请明细列表
+export const getItemRequestDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/mes/item-request-detail/senior', data })
+ } else {
+ return await request.get({ url: `/mes/item-request-detail/page`, params })
+ }
+}
+
+// 查询叫料申请明细详情
+export const getItemRequestDetail = async (id: number) => {
+ return await request.get({ url: `/mes/item-request-detail/get?id=` + id })
+}
+
+// 新增叫料申请明细
+export const createItemRequestDetail = async (data: ItemRequestDetailVO) => {
+ return await request.post({ url: `/mes/item-request-detail/create`, data })
+}
+
+// 修改叫料申请明细
+export const updateItemRequestDetail = async (data: ItemRequestDetailVO) => {
+ return await request.put({ url: `/mes/item-request-detail/update`, data })
+}
+
+// 删除叫料申请明细
+export const deleteItemRequestDetail = async (id: number) => {
+ return await request.delete({ url: `/mes/item-request-detail/delete?id=` + id })
+}
+
+// 导出叫料申请明细 Excel
+export const exportItemRequestDetail = async (params) => {
+ return await request.download({ url: `/mes/item-request-detail/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/mes/item-request-detail/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts
index d17a72c52..7df13e502 100644
--- a/src/api/mes/workScheduling/index.ts
+++ b/src/api/mes/workScheduling/index.ts
@@ -47,4 +47,26 @@ export const exportWorkScheduling = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/mes/workScheduling/get-import-template' })
-}
\ No newline at end of file
+}
+// 完工
+export const completeHandle = async (data) => {
+ return await request.post({ url: `/mes/workScheduling/completeHandle`, data })
+}
+//报工
+export const reportWorkByProcess = async (data) => {
+ return await request.post({ url: `/mes/work-scheduling-detail/reportWorkByProcess`, data })
+}
+//检查当前节点是否可以完工
+export const getNodePosition = async (params) => {
+ return await request.get({ url: `/mes/workScheduling/getNodePosition`, params })
+}
+//获取当前工序的员工列表
+export const getCurrentWorkerList = async (params) => {
+ return await request.get({ url: `/mes/workScheduling/getCurrentWorkerList`, params })
+}
+//获取当前工单的工序列表
+export const getProcessList = async (params) => {
+ return await request.get({ url: `/mes/workScheduling/getProcessList`, params })
+}
+
+
diff --git a/src/api/qms/inspectionJob/inspectionJobMain/index.ts b/src/api/qms/inspectionJob/inspectionJobMain/index.ts
index 2b59a7401..aca7fd268 100644
--- a/src/api/qms/inspectionJob/inspectionJobMain/index.ts
+++ b/src/api/qms/inspectionJob/inspectionJobMain/index.ts
@@ -22,6 +22,11 @@ export const createInspectionJobMain = async (data) => {
return await request.post({ url: `/qms/inspection-job-main/create`, data })
}
+// 暂存检验任务
+export const stagingInspectionJobMain = async (data) => {
+ return await request.post({ url: `/qms/inspection-job-main/staging`, data })
+}
+
// 修改检验任务
export const updateInspectionJobMain = async (data) => {
return await request.put({ url: `/qms/inspection-job-main/update`, data })
@@ -46,6 +51,7 @@ export const abandonInspectionJobMain = async (id) => {
export const closeInspectionJobMain = async (id) => {
return await request.put({ url: `/qms/inspection-job-main/close?id=` + id })
}
+
// 导出检验申请 Excel
export const exportInspectionJobMain = async (params) => {
return await request.download({ url: `/qms/inspection-job-main/export-excel`, params })
diff --git a/src/api/wms/invoicingcalendar/index.ts b/src/api/wms/invoicingcalendar/index.ts
new file mode 100644
index 000000000..fe8ee7e8f
--- /dev/null
+++ b/src/api/wms/invoicingcalendar/index.ts
@@ -0,0 +1,54 @@
+import request from '@/config/axios'
+
+export interface InvoicingcalendarVO {
+ id: number
+ beginDay: string
+ endDay: string
+ descriiption: string
+ available: string
+ remark: string
+ extraProperties: string
+ concurrencyStamp: number
+ siteId: string
+}
+
+// 查询开票日历列表
+export const getInvoicingcalendarPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/invoicingcalendar/senior', data })
+ } else {
+ return await request.get({ url: `/wms/invoicingcalendar/page`, params })
+ }
+}
+
+// 查询开票日历详情
+export const getInvoicingcalendar = async (id: number) => {
+ return await request.get({ url: `/wms/invoicingcalendar/get?id=` + id })
+}
+
+// 新增开票日历
+export const createInvoicingcalendar = async (data: InvoicingcalendarVO) => {
+ return await request.post({ url: `/wms/invoicingcalendar/create`, data })
+}
+
+// 修改开票日历
+export const updateInvoicingcalendar = async (data: InvoicingcalendarVO) => {
+ return await request.put({ url: `/wms/invoicingcalendar/update`, data })
+}
+
+// 删除开票日历
+export const deleteInvoicingcalendar = async (id: number) => {
+ return await request.delete({ url: `/wms/invoicingcalendar/delete?id=` + id })
+}
+
+// 导出开票日历 Excel
+export const exportInvoicingcalendar = async (params) => {
+ return await request.download({ url: `/wms/invoicingcalendar/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/invoicingcalendar/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/productreceiptJobDetail/index.ts b/src/api/wms/productreceiptJobDetail/index.ts
index e53490096..33606d2de 100644
--- a/src/api/wms/productreceiptJobDetail/index.ts
+++ b/src/api/wms/productreceiptJobDetail/index.ts
@@ -53,6 +53,19 @@ export const getProductreceiptJobDetailPageAssemble = async (params) => {
}
}
+
+// 查询制品收货任务子列表
+export const getProductreceiptJobDetailPageScarp = async (params) => {
+ params.type = 'scrap'
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/productreceipt-job-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/productreceipt-job-detail/page`, params })
+ }
+}
+
// 查询制品收货任务子详情
export const getProductreceiptJobDetail = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-job-detail/get?id=` + id })
diff --git a/src/api/wms/productreceiptRecordDetail/index.ts b/src/api/wms/productreceiptRecordDetail/index.ts
index db76ba703..35ba579ed 100644
--- a/src/api/wms/productreceiptRecordDetail/index.ts
+++ b/src/api/wms/productreceiptRecordDetail/index.ts
@@ -58,6 +58,18 @@ export const getProductreceiptRecordDetailPageAssemble = async (params) => {
}
}
+// 查询制品收货记录子列表
+export const getProductreceiptRecordDetailPageScrap = async (params) => {
+ params.type = 'scrap'
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/productreceipt-record-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/productreceipt-record-detail/page`, params })
+ }
+}
+
// 查询制品收货记录子详情
export const getProductreceiptRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-record-detail/get?id=` + id })
diff --git a/src/api/wms/productreceiptRequestDetail/index.ts b/src/api/wms/productreceiptRequestDetail/index.ts
index 292cf3600..0b1b75cf3 100644
--- a/src/api/wms/productreceiptRequestDetail/index.ts
+++ b/src/api/wms/productreceiptRequestDetail/index.ts
@@ -54,6 +54,18 @@ export const getProductreceiptRequestDetailPageAssemble = async (params) => {
}
}
+// 查询报废收货申请子列表
+export const getProductreceiptRequestDetailPageScrap = async (params) => {
+ params.type = 'scrap'
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/productreceipt-request-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/productreceipt-request-detail/page`, params })
+ }
+}
+
// 查询制品收货申请子详情
export const getProductreceiptRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/productreceipt-request-detail/get?id=` + id })
diff --git a/src/api/wms/relegateRequest/index.ts b/src/api/wms/relegateRequest/index.ts
new file mode 100644
index 000000000..a26e8c360
--- /dev/null
+++ b/src/api/wms/relegateRequest/index.ts
@@ -0,0 +1,73 @@
+import request from '@/config/axios'
+
+export interface RelegateRequestVO {
+ id: number
+ itemCode: string
+ downItemCode: string
+ businessType: string
+ uom: string
+ qty: number
+ fromBatch: string
+ fromPackingNumber: string
+ fromLocationCode: string
+ fromAreaTypes: string
+ fromAreaCodes: string
+ fromWarehouseCode: string
+ toPackingNumber: string
+ toBatch: string
+ toLocationCode: string
+ toWarehouseCode: string
+ toAreaTypes: string
+ toAreaCodes: string
+ number: string
+ available: string
+ remark: string
+ departmentCode: string
+ siteId: number
+ extraProperties: string
+ status: string
+ concurrencyStamp: number
+ serialNumber: string
+ ruleUserId: number
+}
+
+// 查询物料降级信息列表
+export const getRelegateRequestPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/relegate-request/senior', data })
+ } else {
+ return await request.get({ url: `/wms/relegate-request/page`, params })
+ }
+}
+
+// 查询物料降级信息详情
+export const getRelegateRequest = async (id: number) => {
+ return await request.get({ url: `/wms/relegate-request/get?id=` + id })
+}
+
+// 新增物料降级信息
+export const createRelegateRequest = async (data: RelegateRequestVO) => {
+ return await request.post({ url: `/wms/relegate-request/create`, data })
+}
+
+// 修改物料降级信息
+export const updateRelegateRequest = async (data: RelegateRequestVO) => {
+ return await request.put({ url: `/wms/relegate-request/update`, data })
+}
+
+// 删除物料降级信息
+export const deleteRelegateRequest = async (id: number) => {
+ return await request.delete({ url: `/wms/relegate-request/delete?id=` + id })
+}
+
+// 导出物料降级信息 Excel
+export const exportRelegateRequest = async (params) => {
+ return await request.download({ url: `/wms/relegate-request/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/relegate-request/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/saleShipmentDetailRecord/index.ts b/src/api/wms/saleShipmentDetailRecord/index.ts
new file mode 100644
index 000000000..4f22239d0
--- /dev/null
+++ b/src/api/wms/saleShipmentDetailRecord/index.ts
@@ -0,0 +1,65 @@
+import request from '@/config/axios'
+
+export interface SaleShipmentDetailRecordVO {
+ id: number
+ soNumber: string
+ soLine: string
+ fromOwnerCode: string
+ packingNumber: string
+ batch: string
+ inventoryStatus: string
+ fromLocationCode: string
+ masterId: number
+ number: string
+ itemCode: string
+ itemName: string
+ itemDesc1: string
+ itemDesc2: string
+ projectCode: string
+ qty: number
+ uom: string
+ remark: string
+ concurrencyStamp: string
+ siteId: number
+}
+
+// 查询销售发运记录子列表
+export const getSaleShipmentDetailRecordPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/sale-shipment-detail-record/senior', data })
+ } else {
+ return await request.get({ url: `/wms/sale-shipment-detail-record/page`, params })
+ }
+}
+
+// 查询销售发运记录子详情
+export const getSaleShipmentDetailRecord = async (id: number) => {
+ return await request.get({ url: `/wms/sale-shipment-detail-record/get?id=` + id })
+}
+
+// 新增销售发运记录子
+export const createSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => {
+ return await request.post({ url: `/wms/sale-shipment-detail-record/create`, data })
+}
+
+// 修改销售发运记录子
+export const updateSaleShipmentDetailRecord = async (data: SaleShipmentDetailRecordVO) => {
+ return await request.put({ url: `/wms/sale-shipment-detail-record/update`, data })
+}
+
+// 删除销售发运记录子
+export const deleteSaleShipmentDetailRecord = async (id: number) => {
+ return await request.delete({ url: `/wms/sale-shipment-detail-record/delete?id=` + id })
+}
+
+// 导出销售发运记录子 Excel
+export const exportSaleShipmentDetailRecord = async (params) => {
+ return await request.download({ url: `/wms/sale-shipment-detail-record/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/sale-shipment-detail-record/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/saleShipmentMain/index.ts b/src/api/wms/saleShipmentMain/index.ts
index e03719231..c8768bea2 100644
--- a/src/api/wms/saleShipmentMain/index.ts
+++ b/src/api/wms/saleShipmentMain/index.ts
@@ -61,4 +61,34 @@ export const exportSaleShipmentMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/sale-shipment-main-request/get-import-template' })
+}
+
+// 关闭-销售发运申请
+export const closeSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/close?id=` + id })
+}
+
+// 重新添加-销售发运申请
+export const reAddSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/reAdd?id=` + id })
+}
+
+// 提交审批-销售发运申请
+export const submitSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/submit?id=` + id })
+}
+
+// 审批驳回-销售发运申请
+export const refusedSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/refused?id=` + id })
+}
+
+// 审批通过-销售发运申请
+export const agreeSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/agree?id=` + id })
+}
+
+// 处理-销售发运申请
+export const handleSaleShipmentMain = async (id) => {
+ return await request.put({ url: `/wms/sale-shipment-main-request/handle?id=` + id })
}
\ No newline at end of file
diff --git a/src/api/wms/saleShipmentMainRecord/index.ts b/src/api/wms/saleShipmentMainRecord/index.ts
new file mode 100644
index 000000000..60a87d971
--- /dev/null
+++ b/src/api/wms/saleShipmentMainRecord/index.ts
@@ -0,0 +1,56 @@
+import request from '@/config/axios'
+
+export interface SaleShipmentMainRecordVO {
+ id: number
+ requestNumber: string
+ customerCode: string
+ invoiceTime: Date
+ executeTime: Date
+ available: string
+ departmentCode: string
+ number: string
+ businessType: string
+ extraProperties: string
+ siteId: string
+}
+
+// 查询销售发运记录主列表
+export const getSaleShipmentMainRecordPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/sale-shipment-main-record/senior', data })
+ } else {
+ return await request.get({ url: `/wms/sale-shipment-main-record/page`, params })
+ }
+}
+
+// 查询销售发运记录主详情
+export const getSaleShipmentMainRecord = async (id: number) => {
+ return await request.get({ url: `/wms/sale-shipment-main-record/get?id=` + id })
+}
+
+// 新增销售发运记录主
+export const createSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => {
+ return await request.post({ url: `/wms/sale-shipment-main-record/create`, data })
+}
+
+// 修改销售发运记录主
+export const updateSaleShipmentMainRecord = async (data: SaleShipmentMainRecordVO) => {
+ return await request.put({ url: `/wms/sale-shipment-main-record/update`, data })
+}
+
+// 删除销售发运记录主
+export const deleteSaleShipmentMainRecord = async (id: number) => {
+ return await request.delete({ url: `/wms/sale-shipment-main-record/delete?id=` + id })
+}
+
+// 导出销售发运记录主 Excel
+export const exportSaleShipmentMainRecord = async (params) => {
+ return await request.download({ url: `/wms/sale-shipment-main-record/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/sale-shipment-main-record/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/supplierinvoiceRequestMain/index.ts b/src/api/wms/supplierinvoiceRequestMain/index.ts
index ced9da32c..89ef00539 100644
--- a/src/api/wms/supplierinvoiceRequestMain/index.ts
+++ b/src/api/wms/supplierinvoiceRequestMain/index.ts
@@ -56,6 +56,12 @@ export const deleteSupplierinvoiceRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/supplierinvoice-request-main/delete?id=` + id })
}
+// 校验控制是否可以开票逻辑
+export const checkInvoicingCalendar = async (params) => {
+ return await request.get({ url: `/wms/supplierinvoice-request-main/checkInvoicingCalendar`, params })
+}
+
+
// 打开供应商发货申请主
export const opeSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/open?id=` + id })
@@ -123,4 +129,10 @@ export const exportSupplierinvoiceRequestDetail = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplierinvoice-request-main/get-import-template' })
-}
\ No newline at end of file
+}
+
+// 根据角色编码获取用户列表
+export const queryUserInfoByRoleCode = async (params) => {
+ return await request.get({ url: `/wms/supplierinvoice-request-main/queryUserInfoByRoleCodePage`, params })
+
+}
diff --git a/src/components/Annex/src/Annex.vue b/src/components/Annex/src/Annex.vue
index ef289c6a8..7d5f0e142 100644
--- a/src/components/Annex/src/Annex.vue
+++ b/src/components/Annex/src/Annex.vue
@@ -3,7 +3,7 @@
-
@@ -16,17 +16,20 @@
{{ item.size }}KB
来自 {{ item.nickname }}
-
-
+
+
+
{{ formatDate(item.createTime) }}
+
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 3c2a924e4..cc20819b4 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -15,6 +15,7 @@
:schema="formSchema"
:is-col="true"
@opensearchTable="opensearchTable"
+ @hiddenFilterButton="hiddenSearchTableFilterButton"
@clearSearchInput="clearSearchInput"
@onChange="onChange"
@onBlur="onBlur"
@@ -433,7 +434,9 @@ const opensearchTable = (
searchDetailSchemas
)
}
-
+const hiddenSearchTableFilterButton = ()=>{
+ searchTableRef.value.hiddenFilterButton()
+}
const clearSearchInput = (field)=>{
emit('clearSearchInput',field)
}
diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue
index d3308ecf0..9ce1534df 100644
--- a/src/components/Detail/src/Detail.vue
+++ b/src/components/Detail/src/Detail.vue
@@ -103,6 +103,8 @@
({
label: '附件',
showDownload:false,
+ showPreview:false,
hiddenDelete:false
})
},
@@ -460,10 +463,14 @@ const getFileList = async () => {
}
}
// 获取其他附件列表篇
-const getAnnexFileList = async (row:id) => {
- console.log('getAnnexFileList')
+const getAnnexFileList = async (row) => {
props.annexTable?.forEach(async (item) => {
let requstData = {...remarksData.data,tableName: item?.tableName}
+ if(item?.queryParams){
+ item?.queryParams?.forEach(queryItem => {
+ requstData[queryItem.queryField] = row[queryItem.rowField]
+ });
+ }
const annexList = await FileApi.getFileList(requstData)
const annexData = annexTableData.value.find(annex=>annex.label === item.label)
if(annexData){
@@ -476,6 +483,8 @@ const getAnnexFileList = async (row:id) => {
annexList,
hasSubDetail:item.hasSubDetail||false,
subDetailTableData:item.subDetailTableData,
+ fileType:item.fileType||['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg'],
+ showPreview:item.showPreview||false, // 是否展示预览按钮
showDownload:item.showDownload||false, // 是否展示下载按钮
hiddenDelete:item.hiddenDelete || false, // 是否展示删除按钮
})
diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue
index fdfc8441c..ab9d65aa2 100644
--- a/src/components/Form/src/Form.vue
+++ b/src/components/Form/src/Form.vue
@@ -55,7 +55,7 @@ export default defineComponent({
vLoading: propTypes.bool.def(false),
labelPosition: propTypes.string.def('left'),
},
- emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onEnter'],
+ emits: ['register','opensearchTable','clearSearchInput', 'onChange', 'onBlur','onEnter','hiddenFilterButton'],
setup(props, { slots, expose, emit }) {
// element form 实例
const elFormRef = ref>()
@@ -173,8 +173,15 @@ export default defineComponent({
// 如果是 Divider 组件,需要自己占用一行
const isDivider = item.component === 'Divider'
const Com = componentMap['Divider'] as ReturnType
+ let labelName = item?.label || ''
+ if(item?.label){
+ labelName = t(`ts.${item?.label}`)
+ if(labelName === 'ts.' + item?.label){
+ labelName = item?.label
+ }
+ }
return isDivider ? (
- {item?.label}
+ {labelName}
) : isCol ? (
// 如果需要栅格,需要包裹 ElCol
{renderFormItem(item)}
@@ -218,13 +225,28 @@ export default defineComponent({
const formItemSlots: Recordable = setFormItemSlots(slots, item.field)
// 如果有 labelMessage,自动使用插槽渲染
if (item?.labelMessage) {
+ let labelName = item.label || ''
+ if(item.label){
+ labelName = t(`ts.${item.label}`)
+ if(labelName === 'ts.' + item.label){
+ labelName = item.label
+ }
+ }
+
+ let labelMessage = item.labelMessage || ''
+ if(item.labelMessage){
+ labelMessage = t(`ts.${item.labelMessage}`)
+ if(labelMessage === 'ts.' + item.labelMessage){
+ labelMessage = item.labelMessage
+ }
+ }
formItemSlots.label = () => {
return (
<>
- {item.label}
+ {labelName}
{{
- content: () => ,
+ content: () => ,
default: () => (
{
return (
<>
- {
+ {
if(event.keyCode === 13){
//回车
emit('onEnter',item.field,formModel.value[item.field],event)
@@ -278,7 +299,14 @@ export default defineComponent({
item?.componentProps?.multiple,
item?.componentProps?.isConcatDetailSchemas,
item?.componentProps?.searchDetailSchemas,
- )}}/>
+ )
+
+ //隐藏筛选按钮
+ if(item?.componentProps?.hiddenFilterButton){
+ emit('hiddenFilterButton')
+ }
+
+ }}/>
>
)
}
@@ -286,7 +314,7 @@ export default defineComponent({
formItemSlotsSearchList[item.field] = () => {
return (
<>
- {
+ {
if(event.keyCode === 13){
//回车
emit('onEnter',item.field,formModel.value[item.field],event)
@@ -316,7 +344,12 @@ export default defineComponent({
item?.componentProps?.multiple,
item?.componentProps?.isConcatDetailSchemas,
item?.componentProps?.searchDetailSchemas,
- )}}/>
+ )
+ //隐藏筛选按钮
+ if(item?.componentProps?.hiddenFilterButton){
+ emit('hiddenFilterButton')
+ }
+ }}/>
>
)
}
diff --git a/src/components/Form/src/components/useRenderSelect.tsx b/src/components/Form/src/components/useRenderSelect.tsx
index 59b72e687..4a8a18a79 100644
--- a/src/components/Form/src/components/useRenderSelect.tsx
+++ b/src/components/Form/src/components/useRenderSelect.tsx
@@ -3,6 +3,7 @@ import { ComponentOptions } from '@/types/components'
import { ElOption, ElOptionGroup } from 'element-plus'
import { getSlot } from '@/utils/tsxHelper'
import { Slots } from 'vue'
+const { t } = useI18n()
export const useRenderSelect = (slots: Slots) => {
// 渲染 select options
@@ -33,11 +34,16 @@ export const useRenderSelect = (slots: Slots) => {
const valueAlias = item?.componentProps?.optionsAlias?.valueField
const { label, value, ...other } = option
+ const zhName = labelAlias ? option[labelAlias] : label;//中文名称
+ let labelName = t(`ts.${zhName}`)
+ if(labelName === 'ts.' + zhName){
+ labelName = zhName
+ }
return (
{{
diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue
index 29ed5d067..03c91faa9 100644
--- a/src/components/ImportForm/src/ImportForm.vue
+++ b/src/components/ImportForm/src/ImportForm.vue
@@ -1,6 +1,6 @@
-