diff --git a/src/api/wms/accountcalendar/index.ts b/src/api/wms/accountcalendar/index.ts index 24f646855..582df5361 100644 --- a/src/api/wms/accountcalendar/index.ts +++ b/src/api/wms/accountcalendar/index.ts @@ -42,3 +42,8 @@ export const deleteAccountcalendar = async (id: number) => { export const exportAccountcalendar = async (params) => { return await request.download({ url: `/wms/accountcalendar/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/accountcalendar/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/areabasic/index.ts b/src/api/wms/areabasic/index.ts index f2182f46c..df31c9da1 100644 --- a/src/api/wms/areabasic/index.ts +++ b/src/api/wms/areabasic/index.ts @@ -42,3 +42,8 @@ export const deleteArea = async (id: number) => { export const exportArea = async (params) => { return await request.download({ url: `/wms/areabasic/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/areabasic/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/businesstype/index.ts b/src/api/wms/businesstype/index.ts index 8ebb52fa3..83174db53 100644 --- a/src/api/wms/businesstype/index.ts +++ b/src/api/wms/businesstype/index.ts @@ -52,3 +52,8 @@ export const deleteBusinesstype = async (id: number) => { export const exportBusinesstype = async (params) => { return await request.download({ url: `/wms/businesstype/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/businesstype/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/carrier/index.ts b/src/api/wms/carrier/index.ts index db868adc5..9f169dc6a 100644 --- a/src/api/wms/carrier/index.ts +++ b/src/api/wms/carrier/index.ts @@ -50,3 +50,8 @@ export const deleteCarrier = async (id: number) => { export const exportCarrier = async (params) => { return await request.download({ url: `/wms/carrier/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/carrier/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/condition/index.ts b/src/api/wms/condition/index.ts index 32d792c42..16bb79da4 100644 --- a/src/api/wms/condition/index.ts +++ b/src/api/wms/condition/index.ts @@ -38,3 +38,8 @@ export const deleteCondition = async (id: number) => { export const exportCondition = async (params) => { return await request.download({ url: `/wms/condition/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/condition/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/configuration/index.ts b/src/api/wms/configuration/index.ts index 19410fe54..ae9c25310 100644 --- a/src/api/wms/configuration/index.ts +++ b/src/api/wms/configuration/index.ts @@ -38,3 +38,8 @@ export const deleteConfiguration = async (id: number) => { export const exportConfiguration = async (params) => { return await request.download({ url: `/wms/configuration/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/configuration/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/configurationsetting/index.ts b/src/api/wms/configurationsetting/index.ts index c6e00c40f..cfc842697 100644 --- a/src/api/wms/configurationsetting/index.ts +++ b/src/api/wms/configurationsetting/index.ts @@ -40,3 +40,8 @@ export const deleteConfigurationsetting = async (id: number) => { export const exportConfigurationsetting = async (params) => { return await request.download({ url: `/wms/configurationsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/configurationsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/currencyexchange/index.ts b/src/api/wms/currencyexchange/index.ts index ac12d6b22..f56a6f71b 100644 --- a/src/api/wms/currencyexchange/index.ts +++ b/src/api/wms/currencyexchange/index.ts @@ -39,3 +39,8 @@ export const deleteCurrencyexchange = async (id: number) => { export const exportCurrencyexchange = async (params) => { return await request.download({ url: `/wms/currencyexchange/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/currencyexchange/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/customer/index.ts b/src/api/wms/customer/index.ts index ad259c4db..494b920a8 100644 --- a/src/api/wms/customer/index.ts +++ b/src/api/wms/customer/index.ts @@ -50,3 +50,8 @@ export const deleteCustomer = async (id: number) => { export const exportCustomer = async (params) => { return await request.download({ url: `/wms/customer/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/customer/get-import-template' }) +} diff --git a/src/api/wms/customerdock/index.ts b/src/api/wms/customerdock/index.ts index de30ea128..471e34ece 100644 --- a/src/api/wms/customerdock/index.ts +++ b/src/api/wms/customerdock/index.ts @@ -46,3 +46,8 @@ export const deleteCustomerdock = async (id: number) => { export const exportCustomerdock = async (params) => { return await request.download({ url: `/wms/customerdock/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/customerdock/get-import-template' }) +} diff --git a/src/api/wms/customeritem/index.ts b/src/api/wms/customeritem/index.ts index c4a31ecc1..8da7893fa 100644 --- a/src/api/wms/customeritem/index.ts +++ b/src/api/wms/customeritem/index.ts @@ -46,3 +46,8 @@ export const deleteCustomeritem = async (id: number) => { export const exportCustomeritem = async (params) => { return await request.download({ url: `/wms/customeritem/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/customeritem/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/detail/index.ts b/src/api/wms/detail/index.ts new file mode 100644 index 000000000..9bf57f699 --- /dev/null +++ b/src/api/wms/detail/index.ts @@ -0,0 +1,35 @@ +import request from '@/config/axios' + + +// 查询备注列表 +export const getRemarkPage = async (params) => { + return await request.get({ url: `/infra/remark/list`, params }) +} + +// // 查询库区详情 +// export const getArea = async (id: number) => { +// return await request.get({ url: `/wms/areabasic/get?id=` + id }) +// } + +// 新增备注 +export const createRemark= async (data) => { + return await request.post({ url: `/infra/remark/create`, data }) +} +// 查询变更记录列表 +export const getChangeRecordPage = async (params) => { + return await request.get({ url: `/infra/trends/list`, params }) +} +// // 修改库区 +// export const updateArea = async (data: AreaVO) => { +// return await request.put({ url: `/wms/areabasic/update`, data }) +// } + +// // 删除库区 +// export const deleteArea = async (id: number) => { +// return await request.delete({ url: `/wms/areabasic/delete?id=` + id }) +// } + +// // 导出库区 Excel +// export const exportArea = async (params) => { +// return await request.download({ url: `/wms/areabasic/export-excel`, params }) +// } diff --git a/src/api/wms/dock/index.ts b/src/api/wms/dock/index.ts index 307bebe94..894986ba7 100644 --- a/src/api/wms/dock/index.ts +++ b/src/api/wms/dock/index.ts @@ -46,3 +46,8 @@ export const deleteDock = async (id: number) => { export const exportDock = async (params) => { return await request.download({ url: `/wms/dock/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/dock/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/documentsetting/index.ts b/src/api/wms/documentsetting/index.ts index ee9b4ade3..b09c9e193 100644 --- a/src/api/wms/documentsetting/index.ts +++ b/src/api/wms/documentsetting/index.ts @@ -47,3 +47,8 @@ export const deleteDocumentsetting = async (id: number) => { export const exportDocumentsetting = async (params) => { return await request.download({ url: `/wms/documentsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/documentsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/jobsetting/index.ts b/src/api/wms/jobsetting/index.ts index 1ed025b18..45442c0d8 100644 --- a/src/api/wms/jobsetting/index.ts +++ b/src/api/wms/jobsetting/index.ts @@ -49,3 +49,8 @@ export const deleteJobsetting = async (id: number) => { export const exportJobsetting = async (params) => { return await request.download({ url: `/wms/jobsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/jobsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts index 75f9c9606..09dd937d4 100644 --- a/src/api/wms/location/index.ts +++ b/src/api/wms/location/index.ts @@ -53,3 +53,8 @@ export const deleteLocation = async (id: number) => { export const exportLocation = async (params) => { return await request.download({ url: `/wms/location/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/location/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/locationgroup/index.ts b/src/api/wms/locationgroup/index.ts index 0e9456607..b7e316b1a 100644 --- a/src/api/wms/locationgroup/index.ts +++ b/src/api/wms/locationgroup/index.ts @@ -41,3 +41,8 @@ export const deleteLocationgroup = async (id: number) => { export const exportLocationgroup = async (params) => { return await request.download({ url: `/wms/locationgroup/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/locationgroup/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/owner/index.ts b/src/api/wms/owner/index.ts index d2520b883..d453b6148 100644 --- a/src/api/wms/owner/index.ts +++ b/src/api/wms/owner/index.ts @@ -50,3 +50,8 @@ export const deleteOwner = async (id: number) => { export const exportOwner = async (params) => { return await request.download({ url: `/wms/owner/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/owner/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/paramsetting/index.ts b/src/api/wms/paramsetting/index.ts index 992d80e24..533b92540 100644 --- a/src/api/wms/paramsetting/index.ts +++ b/src/api/wms/paramsetting/index.ts @@ -41,3 +41,8 @@ export const deleteParamsetting = async (id: number) => { export const exportParamsetting = async (params) => { return await request.download({ url: `/wms/paramsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/paramsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/process/index.ts b/src/api/wms/process/index.ts index de95f5b4e..954a4a662 100644 --- a/src/api/wms/process/index.ts +++ b/src/api/wms/process/index.ts @@ -42,3 +42,8 @@ export const deleteProcess = async (id: number) => { export const exportProcess = async (params) => { return await request.download({ url: `/wms/process/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/process/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/productionline/index.ts b/src/api/wms/productionline/index.ts index 0d7ff8a94..fb097d48d 100644 --- a/src/api/wms/productionline/index.ts +++ b/src/api/wms/productionline/index.ts @@ -43,3 +43,8 @@ export const deleteProductionline = async (id: number) => { export const exportProductionline = async (params) => { return await request.download({ url: `/wms/productionline/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/productionline/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/project/index.ts b/src/api/wms/project/index.ts index 8652e22f7..37d754e8b 100644 --- a/src/api/wms/project/index.ts +++ b/src/api/wms/project/index.ts @@ -40,3 +40,8 @@ export const deleteProject = async (id: number) => { export const exportProject = async (params) => { return await request.download({ url: `/wms/project/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/project/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/purchaseprice/index.ts b/src/api/wms/purchaseprice/index.ts index c0ba7b4db..9583dc310 100644 --- a/src/api/wms/purchaseprice/index.ts +++ b/src/api/wms/purchaseprice/index.ts @@ -40,3 +40,8 @@ export const deletePurchaseprice = async (id: number) => { export const exportPurchaseprice = async (params) => { return await request.download({ url: `/wms/purchaseprice/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/purchaseprice/get-import-template' }) +} diff --git a/src/api/wms/recordsetting/index.ts b/src/api/wms/recordsetting/index.ts index c47b31f48..9c8e32ca2 100644 --- a/src/api/wms/recordsetting/index.ts +++ b/src/api/wms/recordsetting/index.ts @@ -39,3 +39,8 @@ export const deleteRecordsetting = async (id: number) => { export const exportRecordsetting = async (params) => { return await request.download({ url: `/wms/recordsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/recordsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/requestsetting/index.ts b/src/api/wms/requestsetting/index.ts index d246d0c76..ffc184456 100644 --- a/src/api/wms/requestsetting/index.ts +++ b/src/api/wms/requestsetting/index.ts @@ -43,3 +43,8 @@ export const deleteRequestsetting = async (id: number) => { export const exportRequestsetting = async (params) => { return await request.download({ url: `/wms/requestsetting/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/requestsetting/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/rule/index.ts b/src/api/wms/rule/index.ts index 9234a7b88..81fc49f20 100644 --- a/src/api/wms/rule/index.ts +++ b/src/api/wms/rule/index.ts @@ -39,3 +39,8 @@ export const deleteRule = async (id: number) => { export const exportRule = async (params) => { return await request.download({ url: `/wms/rule/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/rule/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/saleprice/index.ts b/src/api/wms/saleprice/index.ts index 73c00ef3f..4748b345e 100644 --- a/src/api/wms/saleprice/index.ts +++ b/src/api/wms/saleprice/index.ts @@ -40,3 +40,8 @@ export const deleteSaleprice = async (id: number) => { export const exportSaleprice = async (params) => { return await request.download({ url: `/wms/saleprice/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/saleprice/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/shift/index.ts b/src/api/wms/shift/index.ts index fe63bea59..f2557e273 100644 --- a/src/api/wms/shift/index.ts +++ b/src/api/wms/shift/index.ts @@ -42,3 +42,8 @@ export const deleteShift = async (id: number) => { export const exportShift = async (params) => { return await request.download({ url: `/wms/shift/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/shift/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/supplier/index.ts b/src/api/wms/supplier/index.ts index 73451930c..ed39172a4 100644 --- a/src/api/wms/supplier/index.ts +++ b/src/api/wms/supplier/index.ts @@ -50,3 +50,8 @@ export const deleteSupplier = async (id: number) => { export const exportSupplier = async (params) => { return await request.download({ url: `/wms/supplier/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/supplier/get-import-template' }) +} diff --git a/src/api/wms/supplieritem/index.ts b/src/api/wms/supplieritem/index.ts index a9abb5761..dbf46ecfc 100644 --- a/src/api/wms/supplieritem/index.ts +++ b/src/api/wms/supplieritem/index.ts @@ -49,3 +49,8 @@ export const deleteSupplieritem = async (id: number) => { export const exportSupplieritem = async (params) => { return await request.download({ url: `/wms/supplieritem/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/supplieritem/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/systemcalendar/index.ts b/src/api/wms/systemcalendar/index.ts index a1d483faa..89c2720ab 100644 --- a/src/api/wms/systemcalendar/index.ts +++ b/src/api/wms/systemcalendar/index.ts @@ -39,3 +39,8 @@ export const deleteSystemcalendar = async (id: number) => { export const exportSystemcalendar = async (params) => { return await request.download({ url: `/wms/systemcalendar/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/systemcalendar/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/team/index.ts b/src/api/wms/team/index.ts index 2174cb1cc..9e6c4c13b 100644 --- a/src/api/wms/team/index.ts +++ b/src/api/wms/team/index.ts @@ -40,3 +40,8 @@ export const deleteTeam = async (id: number) => { export const exportTeam = async (params) => { return await request.download({ url: `/wms/team/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/team/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/transactiontype/index.ts b/src/api/wms/transactiontype/index.ts index e9efc57d1..ac0070487 100644 --- a/src/api/wms/transactiontype/index.ts +++ b/src/api/wms/transactiontype/index.ts @@ -42,3 +42,8 @@ export const deleteTransactiontype = async (id: number) => { export const exportTransactiontype = async (params) => { return await request.download({ url: `/wms/transactiontype/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/transactiontype/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/warehouse/index.ts b/src/api/wms/warehouse/index.ts index fd61d2d0a..0b1b9c326 100644 --- a/src/api/wms/warehouse/index.ts +++ b/src/api/wms/warehouse/index.ts @@ -40,3 +40,8 @@ export const deleteWarehouse = async (id: number) => { export const exportWarehouse = async (params) => { return await request.download({ url: `/wms/warehouse/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/warehouse/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/workshop/index.ts b/src/api/wms/workshop/index.ts index ebd59ce56..0620d115f 100644 --- a/src/api/wms/workshop/index.ts +++ b/src/api/wms/workshop/index.ts @@ -40,3 +40,8 @@ export const deleteWorkshop = async (id: number) => { export const exportWorkshop = async (params) => { return await request.download({ url: `/wms/workshop/export-excel`, params }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/workshop/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/wms/workstation/index.ts b/src/api/wms/workstation/index.ts index 24f034794..e227fa763 100644 --- a/src/api/wms/workstation/index.ts +++ b/src/api/wms/workstation/index.ts @@ -49,3 +49,8 @@ export const exportWorkstation = async (params) => { export const importWorkstationTemplate = () => { return request.download({ url: '/wms/workstation/get-import-template' }) } + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/workstation/get-import-template' }) +} diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 297d6f92b..1f2ed6bea 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -84,6 +84,16 @@ + +
- + - +
@@ -18,20 +19,16 @@ - +
- +
@@ -41,7 +38,8 @@ import Annex from '@/components/Annex/src/Annex.vue' import Remarks from '@/components/Remarks/src/Remarks.vue' import ChangeRecord from '@/components/ChangeRecord/src/ChangeRecord.vue' import Tabs from '@/components/Tabs/src/Tabs.vue' -import * as ItembasicApi from '@/api/wms/itembasic' +import * as DetailApi from '@/api/wms/detail' + defineOptions({ name: 'Detail' }) @@ -64,29 +62,15 @@ const props = defineProps({ required: true, default: null }, - // // 可以导入的文件类型 - // accept: { - // type: String, - // required: false, - // default:'.xlsx,.xls' - // }, - // // 是否更新已经存在的用户数据.默认值是1 - // mode: { - // type: Number, - // required: false, - // default: 1 - // }, - // url:{ - // type: String, - // required: false, - // } }) const isShowDrawer = ref(false) -const tabsList = ref(JSON.parse(JSON.stringify(props.tabs?props.tabs:''))) +const detailLoading = ref(false) + +const tabsList = ref(JSON.parse(JSON.stringify(props.tabs ? props.tabs : ''))) -if (tabsList.value&& tabsList.value.length>0) { +if (tabsList.value && tabsList.value.length > 0) { tabsList.value.unshift({ label: '详情', prop: 'Detail' @@ -112,17 +96,11 @@ const annexData = reactive({ time: '2022年12月12日 17:16:00', }] }) -// 备注默认数据 + +// 备注数据 const remarksData = reactive({ - remarksList: [{ - name: '诸葛亮', - text: '转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。但愿人长久,千里共婵娟。', - time: '2023年5月6日 17:16:00', - }, { - name: '刘备', - text: '转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。但愿人长久,千里共婵娟。', - time: '2022年12月12日 17:16:00', - }] + remarksList: [], + data:{} }) // 变更记录默认数据 @@ -151,13 +129,10 @@ const changeRecordData = reactive({ const detailData = ref("")//详情数据 // 导入成功之后 -const importSuccess = () => { +const importSuccess = () => {} - -} /** 搜索按钮操作 */ const handleQuery = () => { - importFormRef.value.open() } @@ -176,64 +151,69 @@ const handleImport = () => { const deleteAnnexSuccess = async () => { console.log('删除成功'); } -// 备注提交成功之后 -const remarksSubmitSucss = () => { - console.log('提交成功'); -} -// 供应商物品数据 -// const supplierItems = reactive({ -// supplierItemsList: [{ -// code: '646456', -// name: '978978' -// }], -// total: 20, -// pageSize: 1, -// currentPage: 2 -// }) - +// Tabs当前选择 const current = ref(0) -const detailLoading = ref(false) -// 获取表格数据 -const { tableObject, tableMethods } = useTable({ - getListApi: ItembasicApi.getItembasicPage // 分页接口 -}) const change = (item, index) => { current.value = index } -// 获得表格的各种操作 -const { getList } = tableMethods -getList() + /** 打开弹窗 */ const titleNameRef = ref() const titleValueRef = ref() -const openDetail = async (row: any, titleName: any, titleValue: any) => { +const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { titleNameRef.value = titleName titleValueRef.value = titleValue + remarksData.data = { + tableId: row.id, + tableName: tableName, + } isShowDrawer.value = true - console.log(216, row) if (row) { detailLoading.value = true try { - // detailData.value = await ItembasicApi.getItembasic(id) detailData.value = row + console.log(detailData.value); + getRemarkList() + getChangeRecordList() + } finally { detailLoading.value = false } } } defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 + +// 获取备注列表 +const getRemarkList = async () => { + detailLoading.value = true + try { + remarksData.remarksList = await DetailApi.getRemarkPage(remarksData.data) + } finally { + detailLoading.value = false + } +} +// 备注提交成功之后 +const remarksSubmitScuess = async (remark) => { + detailLoading.value = false + getRemarkList() + getChangeRecordList() +} +// 获取变更记录 +const getChangeRecordList = async () => { + remarksData.data.tableId = '1679654720693248010' + remarksData.remarksList = await DetailApi.getChangeRecordPage(remarksData.data) +} - + diff --git a/src/components/Remarks/src/Remarks.vue b/src/components/Remarks/src/Remarks.vue index eed1779c7..0e91a2e04 100644 --- a/src/components/Remarks/src/Remarks.vue +++ b/src/components/Remarks/src/Remarks.vue @@ -5,22 +5,23 @@
备注
-
+
- + +
-
{{ item.name }}
-
{{ item.time }}
+
{{ item.nickname }}
+
{{formatDate(item.createTime)}}
-
{{ item.text }}
+
{{ item.remark }}
- - + + 确定
@@ -28,30 +29,39 @@ @@ -82,6 +92,7 @@ const handleSubmit = ()=>{ display: flex; align-items: center; justify-content: center; + overflow: hidden; } .item-center { diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue index a9fbe9488..1d41701be 100644 --- a/src/components/Search/src/Search.vue +++ b/src/components/Search/src/Search.vue @@ -7,6 +7,9 @@ import { findIndex } from '@/utils' import { cloneDeep } from 'lodash-es' import { FormSchema } from '@/types/form' +import { useCache } from '@/hooks/web/useCache' +const { wsCache } = useCache() + defineOptions({ name: 'Search' }) const { t } = useI18n() @@ -97,44 +100,49 @@ const setVisible = () => { unref(elFormRef)?.resetFields() visible.value = !unref(visible) } +const Search = ref() +onMounted(() => { + nextTick(() => { + console.log(4) + console.log(Search.value.offsetHeight) + wsCache.set('SearchoffsetHeight', Search.value.offsetHeight) + console.log(wsCache.get('SearchoffsetHeight')) + console.log(4) + }) +}) diff --git a/src/views/wms/systemcalendar/index.vue b/src/views/wms/systemcalendar/index.vue index 93640f4af..8f0b9ce67 100644 --- a/src/views/wms/systemcalendar/index.vue +++ b/src/views/wms/systemcalendar/index.vue @@ -177,7 +177,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await SystemcalendarApi.importTemplate() }) diff --git a/src/views/wms/team/index.vue b/src/views/wms/team/index.vue index 6b28dc0e7..d8d5259c7 100644 --- a/src/views/wms/team/index.vue +++ b/src/views/wms/team/index.vue @@ -177,7 +177,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await TeamApi.importTemplate() }) \ No newline at end of file diff --git a/src/views/wms/transactiontype/index.vue b/src/views/wms/transactiontype/index.vue index 6752db8a8..dd3c6d7fa 100644 --- a/src/views/wms/transactiontype/index.vue +++ b/src/views/wms/transactiontype/index.vue @@ -180,7 +180,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await TransactiontypeApi.importTemplate() }) diff --git a/src/views/wms/warehouse/index.vue b/src/views/wms/warehouse/index.vue index 5d26791a1..bf9276778 100644 --- a/src/views/wms/warehouse/index.vue +++ b/src/views/wms/warehouse/index.vue @@ -176,7 +176,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await WarehouseApi.importTemplate() }) diff --git a/src/views/wms/workshop/index.vue b/src/views/wms/workshop/index.vue index ee8999633..9b5595e03 100644 --- a/src/views/wms/workshop/index.vue +++ b/src/views/wms/workshop/index.vue @@ -176,7 +176,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await WorkshopApi.importTemplate() }) diff --git a/src/views/wms/workstation/index.vue b/src/views/wms/workstation/index.vue index 770b5ede8..6f85e512f 100644 --- a/src/views/wms/workstation/index.vue +++ b/src/views/wms/workstation/index.vue @@ -155,10 +155,6 @@ const openForm = (type: string, row?: any) => { // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef) => { - console.log(144, formField) - console.log(145, searchField) - console.log(146, val) - console.log(147, formRef) nextTick(() => { const setV = {} setV[formField] = val[0][searchField] @@ -217,7 +213,8 @@ const importSuccess = () => { } /** 初始化 **/ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await WorkstationApi.importTemplate() })