diff --git a/src/api/wms/business/inputBlur.ts b/src/api/wms/business/inputBlur.ts
index 2ae9504a0..3a107026d 100644
--- a/src/api/wms/business/inputBlur.ts
+++ b/src/api/wms/business/inputBlur.ts
@@ -475,7 +475,6 @@ export const FormBlur = async (field, val, routeName, formRef, detailData, formS
// 根据下方输入框失去焦点校验信息
export const getListByBottonInput = async (headerItem, val, row, routeName, formRef, detailData, tableData, callback) => {
const tableFormSchemaObj = headerItem?.tableForm
- console.log(333, tableFormSchemaObj)
if (tableFormSchemaObj.verificationPage && tableFormSchemaObj.verificationParams) {
if (!val) return;
const params = ref({})
diff --git a/src/api/wms/customerStatementDetail/index.ts b/src/api/wms/customerStatementDetail/index.ts
index 57e541428..2d2d8121b 100644
--- a/src/api/wms/customerStatementDetail/index.ts
+++ b/src/api/wms/customerStatementDetail/index.ts
@@ -55,6 +55,17 @@ export const getCustomerStatementReconciliationPage = async (params) => {
return await request.get({ url: `/wms/customer-statement-detail/page`, params })
}
}
+// 查询模具分摊明细列表
+export const getCustomerToolApportStatementPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = { ...params }
+ return await request.post({ url: '/wms/customer-tool-apport-statement-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/customer-tool-apport-statement-detail/page`, params })
+ }
+}
+
// 查询客户对账单子信息表(WMS)详情
export const getCustomerStatementDetail = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-detail/get?id=` + id })
@@ -98,4 +109,10 @@ export const exportCustomerStatementCompareDetail = async (params) => {
}else{
return await request.download({ url: `/wms/customer-statement-detail/export-excel-compare`, params })
}
-}
\ No newline at end of file
+}
+
+
+// 客户模具分摊对账单修改调整金额
+export const updateAdjustmentAmount = async (id: number, masterId: number, amount: number) => {
+ return await request.get({ url: `/wms/customer-statement-main/updateAdjustmentAmount?id=` + id + '&masterId=' + masterId + '&amount=' + amount })
+}
diff --git a/src/api/wms/customerStatementMain/index.ts b/src/api/wms/customerStatementMain/index.ts
index 9c8cb0396..5a1a62daa 100644
--- a/src/api/wms/customerStatementMain/index.ts
+++ b/src/api/wms/customerStatementMain/index.ts
@@ -108,11 +108,6 @@ export const getCustomerList = async () => {
}
-// 客户模具分摊对账单修改调整金额
-export const updateAdjustmentAmount = async (id:number,masterId:number,amount:number) => {
- return await request.get({ url: `/wms/customer-statement-main/updateAdjustmentAmount?id=` + id+'&masterId='+masterId+'&amount='+amount})
-}
-
// 导出客户对账单Excel
export const exportCustomerStatementMain = async (params) => {
if (params.isSearch) {
@@ -133,3 +128,4 @@ export const exportCustomerStatementShareMain = async (params) => {
}
}
+
diff --git a/src/api/wms/package/index.ts b/src/api/wms/package/index.ts
index 8854a8b3d..a50be5b1b 100644
--- a/src/api/wms/package/index.ts
+++ b/src/api/wms/package/index.ts
@@ -126,12 +126,20 @@ export const getLabelDetailPageByRecordId = async (params) => {
export const getProductreceiptLabelDetailPage = async (params) => {
return await request.get({ url: `/wms/package/getProductreceiptLabelDetailPage`,params})
}
-
// 根据库存余额获取包装信息进行打印标签
export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})
}
+// 根据库存余额获取包装信息进行打印标签(英泰)
+export const getBalanceToPackageByIntex = async (itemCode: String,batch: String) => {
+ const data = {
+ itemCode: itemCode,
+ batch: batch
+ }
+ return await request.put({ url: `/wms/package/getBalanceToPackageByIntex`, data: data})
+}
+
// 根据库存余额获取包装信息进行打印标签--批量打印
export const getBalanceToPackageSelection = async (data: any) => {
return await request.post({ url: `/wms/balance/batchPrintLabel` ,data})
diff --git a/src/api/wms/productreceiptJobMain/index.ts b/src/api/wms/productreceiptJobMain/index.ts
index 3464939cc..437d43478 100644
--- a/src/api/wms/productreceiptJobMain/index.ts
+++ b/src/api/wms/productreceiptJobMain/index.ts
@@ -101,6 +101,22 @@ export const deleteProductreceiptJobMain = async (id: number) => {
// 导出制品收货任务主 Excel
export const exportProductreceiptJobMain = async (params) => {
+ params.type = 'scrap'
+ if (params.isSearch) {
+ const cmd = {
+ 'column':'type',
+ 'action':'==',
+ 'value':'scrap'
+ }
+ params.filters.push(cmd)
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/productreceipt-job-main/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/productreceipt-job-main/export-excel`, params })
+ }
+}
+
+export const exportProductreceiptJobMainPredict = async (params) => {
params.type = 'predict'
if (params.isSearch) {
const cmd = {
diff --git a/src/api/wms/productreceiptRequestMain/index.ts b/src/api/wms/productreceiptRequestMain/index.ts
index 58529a98f..6c28f7978 100644
--- a/src/api/wms/productreceiptRequestMain/index.ts
+++ b/src/api/wms/productreceiptRequestMain/index.ts
@@ -93,6 +93,16 @@ export const exportProductreceiptRequestMain = async (params) => {
}
}
+export const exportProductreceiptRequestMainPredict = async (params) => {
+ params.type = 'predict'
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/productreceipt-request-main/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/productreceipt-request-main/export-excel`, params })
+ }
+}
+
// 导出制品收货申请主 Excel
export const exportProductreceiptRequestMainAssemble = async (params) => {
params.type = 'assemble'
@@ -143,4 +153,4 @@ export const handle = (id) => {
// 创建标签
export const productCreateLabel = async (data: ProductreceiptRequestMainVO) => {
return await request.post({ url: `/wms/productreceipt-request-main/productCreateLabel`, data })
-}
\ No newline at end of file
+}
diff --git a/src/api/wms/purchaseBarterRecordDetail/index.ts b/src/api/wms/purchaseBarterRecordDetail/index.ts
index 91bd582f9..478a529ed 100644
--- a/src/api/wms/purchaseBarterRecordDetail/index.ts
+++ b/src/api/wms/purchaseBarterRecordDetail/index.ts
@@ -22,6 +22,11 @@ export const getPurchaseBarterRecordDetailPage = async (params) => {
}
}
-export async function exportPurchaseBarterRecord(params: any) {
-
+export async function exportPurchaseBarterRecord(params) {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({url: `/wms/purchase-barter-record-detail/export-excel-senior`, data})
+ } else {
+ return await request.download({ url: `/wms/purchase-barter-record-detail/export-excel`, params })
+ }
}
diff --git a/src/api/wms/purchaseBarterRequestMain/index.ts b/src/api/wms/purchaseBarterRequestMain/index.ts
index e8fc8e4f4..48454ef15 100644
--- a/src/api/wms/purchaseBarterRequestMain/index.ts
+++ b/src/api/wms/purchaseBarterRequestMain/index.ts
@@ -47,7 +47,12 @@ export const deletePurchaseBarterRequestMain = async (id: number) => {
// 导出采购换货申请主 Excel
export const exportPurchaseBarterRequestMain = async (params) => {
- return await request.download({ url: `/wms/purchase-barter-request-main/export-excel`, params })
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({url: `/wms/purchase-barter-request-main/export-excel-senior`, data})
+ } else {
+ return await request.download({ url: `/wms/purchase-barter-request-main/export-excel`, params })
+ }
}
// 下载用户导入模板
diff --git a/src/api/wms/purchaseClaimRequestDetail/index.ts b/src/api/wms/purchaseClaimRequestDetail/index.ts
new file mode 100644
index 000000000..f6e95f74d
--- /dev/null
+++ b/src/api/wms/purchaseClaimRequestDetail/index.ts
@@ -0,0 +1,41 @@
+import request from '@/config/axios'
+// 获得采购索赔子分页
+export const getPurchaseClaimRequestDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/purchase-claim-request-detai/senior', data })
+ } else {
+ return await request.get({ url: `/wms/purchase-claim-request-detai/page`, params })
+ }
+}
+
+// 创建采购索赔子
+export const createPurchaseClaimRequestDetail = async (data) => {
+ return await request.post({ url: `/wms/purchase-claim-request-detail/create`, data })
+}
+
+// 修改采购索赔子
+export const updatePurchaseClaimRequestDetail = async (data) => {
+ return await request.put({ url: `/wms/purchase-claim-request-detail/update`, data })
+}
+// 删除采购索赔子
+export const deletePurchaseClaimRequestDetail = async (id) => {
+ return await request.delete({ url: `/wms/purchase-claim-request-detail/delete?id=` + id })
+}
+
+// 获得采购索赔子
+export const getPurchaseClaimRequestDetail = async (id) => {
+ return await request.get({ url: `/wms/purchase-claim-request-detail/get?id=` + id })
+}
+
+
+// 导出采购索赔子 Excel
+export const exportPurchaseClaimRequestDetailExcel = async (params) => {
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({url: `/wms/purchase-claim-request-detail/export-excel-senior`, data})
+ } else {
+ return await request.download({ url: `/wms/purchase-claim-request-detail/export-excel`, params })
+ }
+}
diff --git a/src/api/wms/purchaseClaimRequestMain/index.ts b/src/api/wms/purchaseClaimRequestMain/index.ts
new file mode 100644
index 000000000..4e8df1b59
--- /dev/null
+++ b/src/api/wms/purchaseClaimRequestMain/index.ts
@@ -0,0 +1,55 @@
+import request from '@/config/axios'
+
+export interface PurchaseClaimRequestMainVO {
+ id: number
+ number: string
+ supplierCode: string
+ claimTime: Date
+ status: string
+ supplierinvoiceNumber: string
+ remark: string
+ available: string
+ siteId: string
+ concurrencyStamp: string
+}
+
+// 查询采购索赔主列表
+export const getPurchaseClaimRequestMainPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/purchaseClaim-request-main/senior', data })
+ } else {
+ return await request.get({ url: `/wms/purchaseClaim-request-main/page`, params })
+ }
+}
+
+// 查询采购索赔主详情
+export const getPurchaseClaimRequestMain = async (id: number) => {
+ return await request.get({ url: `/wms/purchaseClaim-request-main/get?id=` + id })
+}
+
+// 新增采购索赔主
+export const createPurchaseClaimRequestMain = async (data: PurchaseClaimRequestMainVO) => {
+ return await request.post({ url: `/wms/purchaseClaim-request-main/create`, data })
+}
+
+// 修改采购索赔主
+export const updatePurchaseClaimRequestMain = async (data: PurchaseClaimRequestMainVO) => {
+ return await request.put({ url: `/wms/purchaseClaim-request-main/update`, data })
+}
+
+// 删除采购索赔主
+export const deletePurchaseClaimRequestMain = async (id: number) => {
+ return await request.delete({ url: `/wms/purchaseClaim-request-main/delete?id=` + id })
+}
+
+// 导出采购索赔主 Excel
+export const exportPurchaseClaimRequestMain = async (params) => {
+ return await request.download({ url: `/wms/purchaseClaim-request-main/export-excel`, params })
+}
+
+// 下载用户导入模板
+export const importTemplate = () => {
+ return request.download({ url: '/wms/purchaseClaim-request-main/get-import-template' })
+}
\ No newline at end of file
diff --git a/src/api/wms/purchaseclaimRecordDetail/index.ts b/src/api/wms/purchaseclaimRecordDetail/index.ts
deleted file mode 100644
index 89f1f5351..000000000
--- a/src/api/wms/purchaseclaimRecordDetail/index.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import request from '@/config/axios'
-
-export interface PurchaseclaimRecordDetailVO {
- batch: string
- altBatch: string
- poNumber: string
- poLine: string
- reason: string
- singlePrice: number
- amount: number
- number: string
- itemCode: string
- remark: string
- createTime: Date
- creator: string
- itemName: string
- itemDesc1: string
- itemDesc2: string
- projectCode: string
- qty: number
- uom: string
- code: string
- interfaceType: string
- jobDetailId: string
-}
-
-// 查询采购索赔记录子列表
-export const getPurchaseclaimRecordDetailPage = async (params) => {
- if (params.isSearch) {
- delete params.isSearch
- const data = {...params}
- return await request.post({ url: '/wms/purchaseclaim-record-detail/senior', data })
- } else {
- return await request.get({ url: `/wms/purchaseclaim-record-detail/page`, params })
- }
-}
-
-// 查询采购索赔记录子详情
-export const getPurchaseclaimRecordDetail = async (id: number) => {
- return await request.get({ url: `/wms/purchaseclaim-record-detail/get?id=` + id })
-}
-
-// 新增采购索赔记录子
-export const createPurchaseclaimRecordDetail = async (data: PurchaseclaimRecordDetailVO) => {
- return await request.post({ url: `/wms/purchaseclaim-record-detail/create`, data })
-}
-
-// 修改采购索赔记录子
-export const updatePurchaseclaimRecordDetail = async (data: PurchaseclaimRecordDetailVO) => {
- return await request.put({ url: `/wms/purchaseclaim-record-detail/update`, data })
-}
-
-// 删除采购索赔记录子
-export const deletePurchaseclaimRecordDetail = async (id: number) => {
- return await request.delete({ url: `/wms/purchaseclaim-record-detail/delete?id=` + id })
-}
-
-// 导出采购索赔记录子 Excel
-export const exportPurchaseclaimRecordDetail = async (params) => {
- return await request.download({ url: `/wms/purchaseclaim-record-detail/export-excel`, params })
-}
-
-// 下载用户导入模板
-export const importTemplate = () => {
- return request.download({ url: '/wms/purchaseclaim-record-detail/get-import-template' })
-}
\ No newline at end of file
diff --git a/src/api/wms/purchaseclaimRecordMain/index.ts b/src/api/wms/purchaseclaimRecordMain/index.ts
deleted file mode 100644
index a4baa7d68..000000000
--- a/src/api/wms/purchaseclaimRecordMain/index.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import request from '@/config/axios'
-
-export interface PurchaseclaimRecordMainVO {
- requestNumber: string
- asnNumber: string
- ppNumber: string
- supplierCode: string
- outTransactionType: string
- inTransactionType: string
- executeTime: Date
- activeDate: Date
- requestTime: Date
- dueTime: Date
- departmentCode: string
- interfaceType: string
- number: string
- businessType: string
- remark: string
- createTime: Date
- creator: string
- code: string
- available: string
-}
-
-// 查询采购索赔记录主列表
-export const getPurchaseclaimRecordMainPage = async (params) => {
- if (params.isSearch) {
- delete params.isSearch
- const data = {...params}
- return await request.post({ url: '/wms/purchaseclaim-record-main/senior', data })
- } else {
- return await request.get({ url: `/wms/purchaseclaim-record-main/page`, params })
- }
-}
-
-// 查询采购索赔记录主详情
-export const getPurchaseclaimRecordMain = async (id: number) => {
- return await request.get({ url: `/wms/purchaseclaim-record-main/get?id=` + id })
-}
-
-// 新增采购索赔记录主
-export const createPurchaseclaimRecordMain = async (data: PurchaseclaimRecordMainVO) => {
- return await request.post({ url: `/wms/purchaseclaim-record-main/create`, data })
-}
-
-// 修改采购索赔记录主
-export const updatePurchaseclaimRecordMain = async (data: PurchaseclaimRecordMainVO) => {
- return await request.put({ url: `/wms/purchaseclaim-record-main/update`, data })
-}
-
-// 删除采购索赔记录主
-export const deletePurchaseclaimRecordMain = async (id: number) => {
- return await request.delete({ url: `/wms/purchaseclaim-record-main/delete?id=` + id })
-}
-
-// 导出采购索赔记录主 Excel
-export const exportPurchaseclaimRecordMain = async (params) => {
- return await request.download({ url: `/wms/purchaseclaim-record-main/export-excel`, params })
-}
-
-// 下载用户导入模板
-export const importTemplate = () => {
- return request.download({ url: '/wms/purchaseclaim-record-main/get-import-template' })
-}
\ No newline at end of file
diff --git a/src/api/wms/purchaseclaimRequestDetail/index.ts b/src/api/wms/purchaseclaimRequestDetail/index.ts
deleted file mode 100644
index fed254b7d..000000000
--- a/src/api/wms/purchaseclaimRequestDetail/index.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import request from '@/config/axios'
-
-export interface PurchaseclaimRequestDetailVO {
- altBatch: string
- amount: Number
- batch: Number
- id: string
- itemCode: string
- itemDesc1: string
- itemDesc2: string
- itemName: string
- number: string
- poLine: string
- poNumber: string
- projectCode: string
- qty: Number
- reason: string
- remark: string
- singlePrice: Number
- uom: string
-}
-
-// 查询采购索赔申请子列表
-export const getPurchaseclaimRequestDetailPage = async (params) => {
- // return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, params })
- if (params.isSearch) {
- delete params.isSearch
- const data = {...params}
- return request.post({ url: '/wms/purchaseclaim-request-detail/senior', data })
- } else {
- return await request.get({ url: `/wms/purchaseclaim-request-detail/page`, params })
- }
-}
-
-// 查询采购索赔申请子详情
-export const getPurchaseclaimRequesDetail = async (id: number) => {
- return await request.get({ url: `/wms/purchaseclaim-request-detail/get?id=` + id })
-}
-
-// 新增采购索赔申请子
-export const createPurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => {
- return await request.post({ url: `/wms/purchaseclaim-request-detail/create`, data })
-}
-
-// 修改采购索赔申请子
-export const updatePurchaseclaimRequestDetail = async (data: PurchaseclaimRequestDetailVO) => {
- return await request.put({ url: `/wms/purchaseclaim-request-detail/update`, data })
-}
-
-// 删除采购索赔申请子
-export const deletePurchaseclaimRequestDetail = async (id: number) => {
- return await request.delete({ url: `/wms/purchaseclaim-request-detail/delete?id=` + id })
-}
diff --git a/src/api/wms/purchaseclaimRequestMain/index.ts b/src/api/wms/purchaseclaimRequestMain/index.ts
deleted file mode 100644
index b17dfb970..000000000
--- a/src/api/wms/purchaseclaimRequestMain/index.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import request from '@/config/axios'
-
-export interface PurchaseclaimRequestMainVO {
- asnNumber: string
- ppNumber: string
- supplierCode: string
- number: string
- businessType: string
- remark: string
- createTime: Date
- creator: string
- requestTime: Date
- dueTime: Date
- departmentCode: string
- status: string
- updateTime: Date
- updater: string
- autoCommit: string
- autoAgree: string
- autoExecute: string
- directCreateRecord: string
-}
-
-// 查询采购索赔申请主列表
-export const getPurchaseclaimRequestMainPage = async (params) => {
- if (params.isSearch) {
- delete params.isSearch
- const data = {...params}
- return request.post({ url: '/wms/purchaseclaim-request-main/senior', data })
- } else {
- return await request.get({ url: `/wms/purchaseclaim-request-main/page`, params })
- }
-}
-// 查询采购索赔申请主详情
-export const getPurchaseclaimRequestMain = async (id: number) => {
- return await request.get({ url: `/wms/purchaseclaim-request-main/get?id=` + id })
-}
-
-// 新增采购索赔申请主
-export const createPurchaseclaimRequestMain = async (data: PurchaseclaimRequestMainVO) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/create`, data })
-}
-
-// 修改采购索赔申请主
-export const updatePurchaseclaimRequestMain = async (data: PurchaseclaimRequestMainVO) => {
- return await request.put({ url: `/wms/purchaseclaim-request-main/update`, data })
-}
-
-// 删除采购索赔申请主
-export const deletePurchaseclaimRequestMain = async (id: number) => {
- return await request.delete({ url: `/wms/purchaseclaim-request-main/delete?id=` + id })
-}
-
-// 打开供应商发货申请主
-export const opePurchaseclaimRequestMain = async (id: number) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/open?id=` + id })
-}
-// 关闭供应商发货申请主
-export const cloPurchaseclaimRequestMain = async (id: number) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/close?id=` + id })
-}
-// 提交审批供应商发货申请主
-export const subPurchaseclaimRequestMain = async (id: number) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/sub?id=` + id })
-}
-// 审批通过供应商发货申请主
-export const appPurchaseclaimRequestMain = async (id: number) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/app?id=` + id })
-}
-// 驳回供应商发货申请主
-export const rejPurchaseclaimRequestMain = async (id: number) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/rej?id=` + id })
-}
-// 处理
-export const genRecordsPurchaseclaimRequestMain = async (id) => {
- return await request.post({ url: `/wms/purchaseclaim-request-main/genRecords?id=` + id })
-}
-// 导出采购索赔申请主 Excel
-export const exportPurchaseclaimRequestMain = async (params) => {
- if (params.isSearch) {
- delete params.isSearch
- const data = { ...params }
- return await request.downloadPost({ url: `/wms/purchaseclaim-request-main/export-excel-senior`, data })
- } else {
- return await request.download({ url: `/wms/purchaseclaim-request-main/export-excel`, params })
- }
-}
-
-// 下载用户导入模板
-export const importTemplate = () => {
- return request.download({ url: '/wms/purchaseclaim-request-main/get-import-template' })
-}
diff --git a/src/api/wms/switch/index.ts b/src/api/wms/switch/index.ts
index fa520e9e3..b9fdb8370 100644
--- a/src/api/wms/switch/index.ts
+++ b/src/api/wms/switch/index.ts
@@ -52,5 +52,10 @@ export const exportSwitch = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
- return request.download({ url: '/wms/switch/get-import-template' })
+ return request.download({ url: '/wms/switch/get-import-template'})
+}
+
+// 获取开关详情
+export const getSwitchByCode = async (code) => {
+ return await request.get({ url: '/wms/switch/getByCode?code=' + code })
}
\ No newline at end of file
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 3d0c9f2e5..909333405 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -164,6 +164,7 @@