diff --git a/src/api/wms/inspectJobMain/index.ts b/src/api/wms/inspectJobMain/index.ts index 03bf0b791..1b3a9ee82 100644 --- a/src/api/wms/inspectJobMain/index.ts +++ b/src/api/wms/inspectJobMain/index.ts @@ -82,7 +82,12 @@ export const deleteInspectJobMain = async (id: number) => { // 导出检验任务主 Excel export const exportInspectJobMain = async (params) => { - return await request.download({ url: `/wms/inspect-job-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/inspect-job-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/inspect-job-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/api/wms/inspectRecordMain/index.ts b/src/api/wms/inspectRecordMain/index.ts index 2e1d233db..381950a0c 100644 --- a/src/api/wms/inspectRecordMain/index.ts +++ b/src/api/wms/inspectRecordMain/index.ts @@ -73,10 +73,15 @@ export const deleteInspectRecordMain = async (id: number) => { // 导出检验记录主 Excel export const exportInspectRecordMain = async (params) => { - return await request.download({ url: `/wms/inspect-record-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/inspect-record-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/inspect-record-main/export-excel`, params}) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/inspect-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/inspectRequestMain/index.ts b/src/api/wms/inspectRequestMain/index.ts index d9b833a56..699ee6ccf 100644 --- a/src/api/wms/inspectRequestMain/index.ts +++ b/src/api/wms/inspectRequestMain/index.ts @@ -67,7 +67,12 @@ export const deleteInspectRequestMain = async (id: number) => { // 导出检验申请主 Excel export const exportInspectRequestMain = async (params) => { - return await request.download({ url: `/wms/inspect-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/inspect-request-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/inspect-request-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/api/wms/purchasereturnJobMain/index.ts b/src/api/wms/purchasereturnJobMain/index.ts index ec925e9b4..0c093ba40 100644 --- a/src/api/wms/purchasereturnJobMain/index.ts +++ b/src/api/wms/purchasereturnJobMain/index.ts @@ -81,7 +81,12 @@ export const deletePurchasereturnJobMain = async (id: number) => { // 导出采购退货任务主 Excel export const exportPurchasereturnJobMain = async (params) => { - return await request.download({ url: `/wms/purchasereturn-job-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereturn-job-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/purchasereturn-job-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/purchasereturnRecordMain/index.ts b/src/api/wms/purchasereturnRecordMain/index.ts index 47b793bc2..5cd951cf8 100644 --- a/src/api/wms/purchasereturnRecordMain/index.ts +++ b/src/api/wms/purchasereturnRecordMain/index.ts @@ -67,10 +67,15 @@ export const deletePurchasereturnRecordMain = async (id: number) => { // 导出采购退货记录主 Excel export const exportPurchasereturnRecordMain = async (params) => { - return await request.download({ url: `/wms/purchasereturn-record-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereturn-record-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/purchasereturn-record-main/export-excel`, params}) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/purchasereturn-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/purchasereturnRequestMain/index.ts b/src/api/wms/purchasereturnRequestMain/index.ts index bcdfbd6c5..a521cf627 100644 --- a/src/api/wms/purchasereturnRequestMain/index.ts +++ b/src/api/wms/purchasereturnRequestMain/index.ts @@ -65,7 +65,12 @@ export const deletePurchasereturnRequestMain = async (id: number) => { // 导出采购退货申请主 Excel export const exportPurchasereturnRequestMain = async (params) => { - return await request.download({ url: `/wms/purchasereturn-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/purchasereturn-request-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/purchasereturn-request-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/api/wms/putawayJobMain/index.ts b/src/api/wms/putawayJobMain/index.ts index 6437b8608..adc2cadfc 100644 --- a/src/api/wms/putawayJobMain/index.ts +++ b/src/api/wms/putawayJobMain/index.ts @@ -74,7 +74,12 @@ export const deletePutawayJobMain = async (id: number) => { // 导出上架任务主 Excel export const exportPutawayJobMain = async (params) => { - return await request.download({ url: `/wms/putaway-job-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/putaway-job-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/putaway-job-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/api/wms/putawayRecordMain/index.ts b/src/api/wms/putawayRecordMain/index.ts index 6f5924db9..c8b1cda50 100644 --- a/src/api/wms/putawayRecordMain/index.ts +++ b/src/api/wms/putawayRecordMain/index.ts @@ -60,10 +60,15 @@ export const deletePutawayRecordMain = async (id: number) => { // 导出上架记录主 Excel export const exportPutawayRecordMain = async (params) => { - return await request.download({ url: `/wms/putaway-record-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/putaway-record-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/putaway-record-main/export-excel`, params}) + } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/putaway-record-main/get-import-template' }) -} \ No newline at end of file +} diff --git a/src/api/wms/putawayRequestMain/index.ts b/src/api/wms/putawayRequestMain/index.ts index e8f454d58..af4ba1618 100644 --- a/src/api/wms/putawayRequestMain/index.ts +++ b/src/api/wms/putawayRequestMain/index.ts @@ -58,7 +58,12 @@ export const deletePutawayRequestMain = async (id: number) => { // 导出上架申请主 Excel export const exportPutawayRequestMain = async (params) => { - return await request.download({ url: `/wms/putaway-request-main/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/putaway-request-main/export-excel-senior`, data }) + } else { + return await request.download({url: `/wms/putaway-request-main/export-excel`, params}) + } } // 下载用户导入模板 diff --git a/src/utils/dict.ts b/src/utils/dict.ts index dabd5d41c..90fe2587d 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -272,4 +272,5 @@ export enum DICT_TYPE { LABEL_STATUS = 'label_status', // 标签状态 BIND_TYPE = 'bind_type', // 器具绑定类型 CONTAINER_STATUS = 'container_status', // 容器状态 + PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型 } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index f2b27ff8a..f34181dc2 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -11,6 +11,9 @@ import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/item import * as CustomerdockApi from '@/api/wms/customerdock' import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data' +import * as CustomerApi from '@/api/wms/customer' +import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' + import * as CarrierApi from '@/api/wms/carrier' import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data' @@ -110,8 +113,20 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ }, isSearch: true, form: { + // labelMessage: '信息提示说明!!!', componentProps: { - disabled: true + disabled: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择客户代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '客户信息', // 查询弹窗标题 + searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类 + searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index 06d3fb374..94a1651a0 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -100,7 +100,7 @@ const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns) const isShowButton = ref(true) //定义 展示子表数据时是否显示新增/修改/删除按钮 -const trueFalse = ref() +const trueFalse = ref(true) // 字段设置 更新主列表字段 const updataTableColumns = (val) => { @@ -124,7 +124,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => // 获取子表数据 getBomDisassemble DeliverPlanDetailApi.selectDetailByMasterID(val[0]['id']) .then(res => { - console.log(120,res) res.forEach(item => { item.qty = item.planQty }) @@ -374,19 +373,26 @@ const handleDeleteTable = (item, index) => { } //为true表示子表数据中存在数量为0的数据 -const flag = ref() +const flag = ref(false) // 主子数据 提交 const submitForm = async (formType, data) => { + if(tableData.value.length <= 0){ + message.warning(`子表明细不能为空!`) + flag.value = true + formRef.value.formLoading = false + return; + } data.subList = tableData.value // 拼接子表数据参数 data.subList.forEach(obj => { if(obj.qty == 0){ - message.error(`数量不能为0!`) + message.warning(`数量不能为0!`) flag.value = true + formRef.value.formLoading = false return; } }) - if(flag){ + if(flag.value){ return } try { diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue index e97dd0f17..cd63ef754 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectJobMain/index.vue @@ -218,7 +218,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await InspectJobMainApi.exportInspectJobMain(setSearchParams) + const data = await InspectJobMainApi.exportInspectJobMain(tableObject.params) download.excel(data, '检验任务主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue index 00e0f89e9..994c5b48b 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/index.vue @@ -147,7 +147,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await InspectRecordMainApi.exportInspectRecordMain(setSearchParams) + const data = await InspectRecordMainApi.exportInspectRecordMain(tableObject.params) download.excel(data, '检验记录主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue index 663ae49b9..6d1a4fa54 100644 --- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue @@ -284,7 +284,7 @@ await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await InspectRequestMainApi.exportInspectRequestMain(setSearchParams) + const data = await InspectRequestMainApi.exportInspectRequestMain(tableObject.params) download.excel(data, '检验申请主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index 2f93489e8..f89d2532e 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -218,7 +218,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(setSearchParams) + const data = await PurchasereturnJobMainApi.exportPurchasereturnJobMain(tableObject.params) download.excel(data, '采购退货任务主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue index e4fca8ac9..b60204664 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(setSearchParams) + const data = await PurchasereturnRecordMainApi.exportPurchasereturnRecordMain(tableObject.params) download.excel(data, '采购退货记录主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 9b17eaccd..8bf4695ca 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -445,7 +445,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain(setSearchParams) + const data = await PurchasereturnRequestMainApi.exportPurchasereturnRequestMain(tableObject.params) download.excel(data, '采购退货申请主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue index 9d473aab7..26dd684e7 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayJobMain/index.vue @@ -218,7 +218,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PutawayJobMainApi.exportPutawayJobMain(setSearchParams) + const data = await PutawayJobMainApi.exportPutawayJobMain(tableObject.params) download.excel(data, '上架任务主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue index 8bed0a9c2..64d90b6df 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/index.vue @@ -141,7 +141,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PutawayRecordMainApi.exportPutawayRecordMain(setSearchParams) + const data = await PutawayRecordMainApi.exportPutawayRecordMain(tableObject.params) download.excel(data, '上架记录主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue index 175407576..5b5ccaf90 100644 --- a/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue @@ -314,7 +314,7 @@ const handleExport = async () => { await message.exportConfirm() // 发起导出 exportLoading.value = true - const data = await PutawayRequestMainApi.exportPutawayRequestMain(setSearchParams) + const data = await PutawayRequestMainApi.exportPutawayRequestMain(tableObject.params) download.excel(data, '上架申请主.xlsx') } catch { } finally { diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts index eeee47d31..cab60751d 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts @@ -254,10 +254,17 @@ export const DemandforecastingDetail = useCrudSchemas(reactive([ { label: '预测时间类型', field: 'predictTimeType', + dictType: DICT_TYPE.PREDICT_TIME_TYPE, sort: 'custom', + dictClass: 'string', + isSearch: true, + isTable: true, table: { width: 150 }, + tableForm: { + type: 'Select' + } }, { label: '预测日期',