李胜楠
1 year ago
120 changed files with 21692 additions and 0 deletions
@ -0,0 +1,49 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface BackflushRequestDetailbVO { |
|||
processCode: string |
|||
bomVersion: string |
|||
itemCode: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
creator: string |
|||
} |
|||
|
|||
// 查询制品收货申请子列表
|
|||
export const getBackflushRequestDetailbPage = async (params) => { |
|||
return await request.get({ url: `/wms/backflush-request-detailb/page`, params }) |
|||
} |
|||
|
|||
// 查询制品收货申请子详情
|
|||
export const getBackflushRequestDetailb = async (id: number) => { |
|||
return await request.get({ url: `/wms/backflush-request-detailb/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品收货申请子
|
|||
export const createBackflushRequestDetailb = async (data: BackflushRequestDetailbVO) => { |
|||
return await request.post({ url: `/wms/backflush-request-detailb/create`, data }) |
|||
} |
|||
|
|||
// 修改制品收货申请子
|
|||
export const updateBackflushRequestDetailb = async (data: BackflushRequestDetailbVO) => { |
|||
return await request.put({ url: `/wms/backflush-request-detailb/update`, data }) |
|||
} |
|||
|
|||
// 删除制品收货申请子
|
|||
export const deleteBackflushRequestDetailb = async (id: number) => { |
|||
return await request.delete({ url: `/wms/backflush-request-detailb/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品收货申请子 Excel
|
|||
export const exportBackflushRequestDetailb = async (params) => { |
|||
return await request.download({ url: `/wms/backflush-request-detailb/export-excel`, params }) |
|||
} |
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ConsumereRequestDetailbVO { |
|||
inventoryStatus: string |
|||
packingNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询制品返修申请子列表
|
|||
export const getConsumereRequestDetailbPage = async (params) => { |
|||
return await request.get({ url: `/wms/consumere-request-detailb/page`, params }) |
|||
} |
|||
|
|||
// 查询制品返修申请子详情
|
|||
export const getConsumereRequestDetailb = async (id: number) => { |
|||
return await request.get({ url: `/wms/consumere-request-detailb/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品返修申请子
|
|||
export const createConsumereRequestDetailb = async (data: ConsumereRequestDetailbVO) => { |
|||
return await request.post({ url: `/wms/consumere-request-detailb/create`, data }) |
|||
} |
|||
|
|||
// 修改制品返修申请子
|
|||
export const updateConsumereRequestDetailb = async (data: ConsumereRequestDetailbVO) => { |
|||
return await request.put({ url: `/wms/consumere-request-detailb/update`, data }) |
|||
} |
|||
|
|||
// 删除制品返修申请子
|
|||
export const deleteConsumereRequestDetailb = async (id: number) => { |
|||
return await request.delete({ url: `/wms/consumere-request-detailb/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品返修申请子 Excel
|
|||
export const exportConsumereRequestDetailb = async (params) => { |
|||
return await request.download({ url: `/wms/consumere-request-detailb/export-excel`, params }) |
|||
} |
@ -0,0 +1,46 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountPlanDetailVO { |
|||
type: string |
|||
value: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询盘点计划子列表
|
|||
export const getCountPlanDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/count-plan-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点计划子详情
|
|||
export const getCountPlanDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/count-plan-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点计划子
|
|||
export const createCountPlanDetail = async (data: CountPlanDetailVO) => { |
|||
return await request.post({ url: `/wms/count-plan-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点计划子
|
|||
export const updateCountPlanDetail = async (data: CountPlanDetailVO) => { |
|||
return await request.put({ url: `/wms/count-plan-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点计划子
|
|||
export const deleteCountPlanDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/count-plan-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点计划子 Excel
|
|||
export const exportCountPlanDetail = async (params) => { |
|||
return await request.download({ url: `/wms/count-plan-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,58 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountPlanMainVO { |
|||
type: string |
|||
crontab: string |
|||
dimension: string |
|||
limitedValue: number |
|||
ignoreListOfItem: string |
|||
ignoreListOfLocation: string |
|||
scopeList: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
isSnapshot: string |
|||
isFreeze: string |
|||
isCountEmptyLocation: string |
|||
isCountZeroInventory: string |
|||
isCountNegativeInventory: string |
|||
isOpenCount: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询盘点计划主列表
|
|||
export const getCountPlanMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/count-plan-main/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点计划主详情
|
|||
export const getCountPlanMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/count-plan-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点计划主
|
|||
export const createCountPlanMain = async (data: CountPlanMainVO) => { |
|||
return await request.post({ url: `/wms/count-plan-main/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点计划主
|
|||
export const updateCountPlanMain = async (data: CountPlanMainVO) => { |
|||
return await request.put({ url: `/wms/count-plan-main/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点计划主
|
|||
export const deleteCountPlanMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/count-plan-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点计划主 Excel
|
|||
export const exportCountPlanMain = async (params) => { |
|||
return await request.download({ url: `/wms/count-plan-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountRequestDetailVO { |
|||
countDetailNumber: string |
|||
ownerCode: string |
|||
batch: string |
|||
locationCode: string |
|||
inventoryStatus: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
fromPackingNumber: string |
|||
toPackingNumber: string |
|||
fromContainerNumber: string |
|||
toContainerNumber: string |
|||
} |
|||
|
|||
// 查询盘点申请子列表
|
|||
export const getCountRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/count-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点申请子详情
|
|||
export const getCountRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/count-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点申请子
|
|||
export const createCountRequestDetail = async (data: CountRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/count-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点申请子
|
|||
export const updateCountRequestDetail = async (data: CountRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/count-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点申请子
|
|||
export const deleteCountRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/count-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点申请子 Excel
|
|||
export const exportCountRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/count-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,53 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountRequestMainVO { |
|||
requestNumber: string |
|||
planNumber: string |
|||
stage: string |
|||
warehouseCode: 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 getCountRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/count-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点申请主详情
|
|||
export const getCountRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/count-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点申请主
|
|||
export const createCountRequestMain = async (data: CountRequestMainVO) => { |
|||
return await request.post({ url: `/wms/count-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点申请主
|
|||
export const updateCountRequestMain = async (data: CountRequestMainVO) => { |
|||
return await request.put({ url: `/wms/count-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点申请主
|
|||
export const deleteCountRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/count-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点申请主 Excel
|
|||
export const exportCountRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/count-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountadjustRequestDetailVO { |
|||
countDetailNumber: string |
|||
ownerlCode: string |
|||
packinglNumber: string |
|||
containerlNumber: string |
|||
batch: string |
|||
locationlCode: string |
|||
inventorylStatus: string |
|||
inventorylQty: number |
|||
countlQty: number |
|||
adjustlQty: number |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemlName: string |
|||
itemlDesc1: string |
|||
itemlDesc2: string |
|||
projectlCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemlCode: string |
|||
} |
|||
|
|||
// 查询盘点调整申请子列表
|
|||
export const getCountadjustRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/countadjust-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点调整申请子详情
|
|||
export const getCountadjustRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/countadjust-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点调整申请子
|
|||
export const createCountadjustRequestDetail = async (data: CountadjustRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/countadjust-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点调整申请子
|
|||
export const updateCountadjustRequestDetail = async (data: CountadjustRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/countadjust-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点调整申请子
|
|||
export const deleteCountadjustRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/countadjust-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点调整申请子 Excel
|
|||
export const exportCountadjustRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/countadjust-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CountadjustRequestMainVO { |
|||
requestNumber: string |
|||
countRecordNumber: string |
|||
warehouseCode: 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 getCountadjustRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/countadjust-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询盘点调整申请主详情
|
|||
export const getCountadjustRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/countadjust-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增盘点调整申请主
|
|||
export const createCountadjustRequestMain = async (data: CountadjustRequestMainVO) => { |
|||
return await request.post({ url: `/wms/countadjust-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改盘点调整申请主
|
|||
export const updateCountadjustRequestMain = async (data: CountadjustRequestMainVO) => { |
|||
return await request.put({ url: `/wms/countadjust-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除盘点调整申请主
|
|||
export const deleteCountadjustRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/countadjust-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出盘点调整申请主 Excel
|
|||
export const exportCountadjustRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomerreceiptRequestDetailVO { |
|||
soNumber: string |
|||
soLine: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
fromLocationCode: string |
|||
toLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询客户收货申请子列表
|
|||
export const getCustomerreceiptRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/customerreceipt-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询客户收货申请子详情
|
|||
export const getCustomerreceiptRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/customerreceipt-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户收货申请子
|
|||
export const createCustomerreceiptRequestDetail = async (data: CustomerreceiptRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/customerreceipt-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改客户收货申请子
|
|||
export const updateCustomerreceiptRequestDetail = async (data: CustomerreceiptRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/customerreceipt-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除客户收货申请子
|
|||
export const deleteCustomerreceiptRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customerreceipt-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户收货申请子 Excel
|
|||
export const exportCustomerreceiptRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/customerreceipt-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,62 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomerreceiptRequestMainVO { |
|||
deliverRequestNumber: string |
|||
deliverPlanNumber: string |
|||
customerCode: string |
|||
customerDockCode: string |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationTypes: string |
|||
toLocationTypes: string |
|||
fromAreaCodes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询客户收货申请主列表
|
|||
export const getCustomerreceiptRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/customerreceipt-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询客户收货申请主详情
|
|||
export const getCustomerreceiptRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/customerreceipt-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户收货申请主
|
|||
export const createCustomerreceiptRequestMain = async (data: CustomerreceiptRequestMainVO) => { |
|||
return await request.post({ url: `/wms/customerreceipt-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改客户收货申请主
|
|||
export const updateCustomerreceiptRequestMain = async (data: CustomerreceiptRequestMainVO) => { |
|||
return await request.put({ url: `/wms/customerreceipt-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除客户收货申请主
|
|||
export const deleteCustomerreceiptRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customerreceipt-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户收货申请主 Excel
|
|||
export const exportCustomerreceiptRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/customerreceipt-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomerreturnRequestDetailVO { |
|||
soNumber: string |
|||
soLine: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
fromOwnerCode: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询客户退货申请子列表
|
|||
export const getCustomerreturnRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/customerreturn-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询客户退货申请子详情
|
|||
export const getCustomerreturnRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/customerreturn-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户退货申请子
|
|||
export const createCustomerreturnRequestDetail = async (data: CustomerreturnRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/customerreturn-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改客户退货申请子
|
|||
export const updateCustomerreturnRequestDetail = async (data: CustomerreturnRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/customerreturn-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除客户退货申请子
|
|||
export const deleteCustomerreturnRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customerreturn-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户退货申请子 Excel
|
|||
export const exportCustomerreturnRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/customerreturn-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,64 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomerreturnRequestMainVO { |
|||
requestNumber: string |
|||
deliverRecordNumber: string |
|||
deliverPlanNumber: string |
|||
customerCode: string |
|||
customerDockCode: string |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
toDockCode: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询客户退货申请主列表
|
|||
export const getCustomerreturnRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/customerreturn-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询客户退货申请主详情
|
|||
export const getCustomerreturnRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/customerreturn-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户退货申请主
|
|||
export const createCustomerreturnRequestMain = async (data: CustomerreturnRequestMainVO) => { |
|||
return await request.post({ url: `/wms/customerreturn-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改客户退货申请主
|
|||
export const updateCustomerreturnRequestMain = async (data: CustomerreturnRequestMainVO) => { |
|||
return await request.put({ url: `/wms/customerreturn-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除客户退货申请主
|
|||
export const deleteCustomerreturnRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customerreturn-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户退货申请主 Excel
|
|||
export const exportCustomerreturnRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/customerreturn-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomersettleRequestDetailVO { |
|||
soNumber: string |
|||
soLine: string |
|||
fromOwnerCode: string |
|||
packingNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询客户结算申请子列表
|
|||
export const getCustomersettleRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/customersettle-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询客户结算申请子详情
|
|||
export const getCustomersettleRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/customersettle-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户结算申请子
|
|||
export const createCustomersettleRequestDetail = async (data: CustomersettleRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/customersettle-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改客户结算申请子
|
|||
export const updateCustomersettleRequestDetail = async (data: CustomersettleRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/customersettle-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除客户结算申请子
|
|||
export const deleteCustomersettleRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customersettle-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户结算申请子 Excel
|
|||
export const exportCustomersettleRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/customersettle-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,55 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface CustomersettleRequestMainVO { |
|||
deliverRecordNumber: string |
|||
deliverPlanNumber: string |
|||
customerCode: string |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: 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 getCustomersettleRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/customersettle-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询客户结算申请主详情
|
|||
export const getCustomersettleRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/customersettle-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增客户结算申请主
|
|||
export const createCustomersettleRequestMain = async (data: CustomersettleRequestMainVO) => { |
|||
return await request.post({ url: `/wms/customersettle-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改客户结算申请主
|
|||
export const updateCustomersettleRequestMain = async (data: CustomersettleRequestMainVO) => { |
|||
return await request.put({ url: `/wms/customersettle-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除客户结算申请主
|
|||
export const deleteCustomersettleRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/customersettle-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出客户结算申请主 Excel
|
|||
export const exportCustomersettleRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/customersettle-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,48 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DeliverPlanDetailVO { |
|||
soNumber: string |
|||
soLine: string |
|||
customerDockCode: string |
|||
project: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询发货计划子列表
|
|||
export const getDeliverPlanDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/deliver-plan-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询发货计划子详情
|
|||
export const getDeliverPlanDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/deliver-plan-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发货计划子
|
|||
export const createDeliverPlanDetail = async (data: DeliverPlanDetailVO) => { |
|||
return await request.post({ url: `/wms/deliver-plan-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改发货计划子
|
|||
export const updateDeliverPlanDetail = async (data: DeliverPlanDetailVO) => { |
|||
return await request.put({ url: `/wms/deliver-plan-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除发货计划子
|
|||
export const deleteDeliverPlanDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/deliver-plan-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发货计划子 Excel
|
|||
export const exportDeliverPlanDetail = async (params) => { |
|||
return await request.download({ url: `/wms/deliver-plan-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,47 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DeliverPlanMainVO { |
|||
customerCode: string |
|||
planDate: Date |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询发货计划主列表
|
|||
export const getDeliverPlanMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/deliver-plan-main/page`, params }) |
|||
} |
|||
|
|||
// 查询发货计划主详情
|
|||
export const getDeliverPlanMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/deliver-plan-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发货计划主
|
|||
export const createDeliverPlanMain = async (data: DeliverPlanMainVO) => { |
|||
return await request.post({ url: `/wms/deliver-plan-main/create`, data }) |
|||
} |
|||
|
|||
// 修改发货计划主
|
|||
export const updateDeliverPlanMain = async (data: DeliverPlanMainVO) => { |
|||
return await request.put({ url: `/wms/deliver-plan-main/update`, data }) |
|||
} |
|||
|
|||
// 删除发货计划主
|
|||
export const deleteDeliverPlanMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/deliver-plan-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发货计划主 Excel
|
|||
export const exportDeliverPlanMain = async (params) => { |
|||
return await request.download({ url: `/wms/deliver-plan-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DeliverRequestDetailVO { |
|||
soNumber: string |
|||
soLine: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
toOwnerCode: string |
|||
toLocationCode: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
fromOwnerCode: string |
|||
} |
|||
|
|||
// 查询发货申请子列表
|
|||
export const getDeliverRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/deliver-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询发货申请子详情
|
|||
export const getDeliverRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/deliver-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发货申请子
|
|||
export const createDeliverRequestDetail = async (data: DeliverRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/deliver-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改发货申请子
|
|||
export const updateDeliverRequestDetail = async (data: DeliverRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/deliver-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除发货申请子
|
|||
export const deleteDeliverRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/deliver-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发货申请子 Excel
|
|||
export const exportDeliverRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/deliver-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,63 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DeliverRequestMainVO { |
|||
deliverPlanNumber: string |
|||
customerDeliverNumber: string |
|||
customerCode: string |
|||
customerDockCode: string |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
fromDockCode: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询发货申请主列表
|
|||
export const getDeliverRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/deliver-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询发货申请主详情
|
|||
export const getDeliverRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/deliver-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发货申请主
|
|||
export const createDeliverRequestMain = async (data: DeliverRequestMainVO) => { |
|||
return await request.post({ url: `/wms/deliver-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改发货申请主
|
|||
export const updateDeliverRequestMain = async (data: DeliverRequestMainVO) => { |
|||
return await request.put({ url: `/wms/deliver-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除发货申请主
|
|||
export const deleteDeliverRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/deliver-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发货申请主 Excel
|
|||
export const exportDeliverRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/deliver-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,46 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DemandforecastingDetailVO { |
|||
predictTimeType: string |
|||
predictTime: Date |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询要货预测子列表
|
|||
export const getDemandforecastingDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/demandforecasting-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询要货预测子详情
|
|||
export const getDemandforecastingDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/demandforecasting-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增要货预测子
|
|||
export const createDemandforecastingDetail = async (data: DemandforecastingDetailVO) => { |
|||
return await request.post({ url: `/wms/demandforecasting-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改要货预测子
|
|||
export const updateDemandforecastingDetail = async (data: DemandforecastingDetailVO) => { |
|||
return await request.put({ url: `/wms/demandforecasting-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除要货预测子
|
|||
export const deleteDemandforecastingDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/demandforecasting-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出要货预测子 Excel
|
|||
export const exportDemandforecastingDetail = async (params) => { |
|||
return await request.download({ url: `/wms/demandforecasting-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,48 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DemandforecastingMainVO { |
|||
supplierCode: string |
|||
version: string |
|||
publishTime: Date |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询要货预测主列表
|
|||
export const getDemandforecastingMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/demandforecasting-main/page`, params }) |
|||
} |
|||
|
|||
// 查询要货预测主详情
|
|||
export const getDemandforecastingMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/demandforecasting-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增要货预测主
|
|||
export const createDemandforecastingMain = async (data: DemandforecastingMainVO) => { |
|||
return await request.post({ url: `/wms/demandforecasting-main/create`, data }) |
|||
} |
|||
|
|||
// 修改要货预测主
|
|||
export const updateDemandforecastingMain = async (data: DemandforecastingMainVO) => { |
|||
return await request.put({ url: `/wms/demandforecasting-main/update`, data }) |
|||
} |
|||
|
|||
// 删除要货预测主
|
|||
export const deleteDemandforecastingMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/demandforecasting-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出要货预测主 Excel
|
|||
export const exportDemandforecastingMain = async (params) => { |
|||
return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface DismantleRequestDetailbVO { |
|||
processCode: string |
|||
bomVersion: string |
|||
itemCode: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
creator: string |
|||
siteId: string |
|||
} |
|||
|
|||
// 查询制品拆解申请子列表
|
|||
export const getDismantleRequestDetailbPage = async (params) => { |
|||
return await request.get({ url: `/wms/dismantle-request-detailb/page`, params }) |
|||
} |
|||
|
|||
// 查询制品拆解申请子详情
|
|||
export const getDismantleRequestDetailb = async (id: number) => { |
|||
return await request.get({ url: `/wms/dismantle-request-detailb/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品拆解申请子
|
|||
export const createDismantleRequestDetailb = async (data: DismantleRequestDetailbVO) => { |
|||
return await request.post({ url: `/wms/dismantle-request-detailb/create`, data }) |
|||
} |
|||
|
|||
// 修改制品拆解申请子
|
|||
export const updateDismantleRequestDetailb = async (data: DismantleRequestDetailbVO) => { |
|||
return await request.put({ url: `/wms/dismantle-request-detailb/update`, data }) |
|||
} |
|||
|
|||
// 删除制品拆解申请子
|
|||
export const deleteDismantleRequestDetailb = async (id: number) => { |
|||
return await request.delete({ url: `/wms/dismantle-request-detailb/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品拆解申请子 Excel
|
|||
export const exportDismantleRequestDetailb = async (params) => { |
|||
return await request.download({ url: `/wms/dismantle-request-detailb/export-excel`, params }) |
|||
} |
@ -0,0 +1,47 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InspectRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
inventoryStatus: string |
|||
fromLocationCode: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
} |
|||
|
|||
// 查询检验申请子列表
|
|||
export const getInspectRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/inspect-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询检验申请子详情
|
|||
export const getInspectRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/inspect-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增检验申请子
|
|||
export const createInspectRequestDetail = async (data: InspectRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/inspect-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改检验申请子
|
|||
export const updateInspectRequestDetail = async (data: InspectRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/inspect-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除检验申请子
|
|||
export const deleteInspectRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inspect-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出检验申请子 Excel
|
|||
export const exportInspectRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/inspect-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,65 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InspectRequestMainVO { |
|||
purchaseReceiptRecordNumber: string |
|||
supplierCode: string |
|||
number: string |
|||
businessType: string |
|||
fromWarehouseCode: string |
|||
fromAreaCodes: string |
|||
fromLocationTypes: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
poNumber: string |
|||
poLine: string |
|||
batch: string |
|||
itemCode: string |
|||
inspectType: string |
|||
nextAction: string |
|||
sampleMethod: string |
|||
uom: string |
|||
receiveQty: number |
|||
sampleQty: number |
|||
ownerCode: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询检验申请主列表
|
|||
export const getInspectRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/inspect-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询检验申请主详情
|
|||
export const getInspectRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/inspect-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增检验申请主
|
|||
export const createInspectRequestMain = async (data: InspectRequestMainVO) => { |
|||
return await request.post({ url: `/wms/inspect-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改检验申请主
|
|||
export const updateInspectRequestMain = async (data: InspectRequestMainVO) => { |
|||
return await request.put({ url: `/wms/inspect-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除检验申请主
|
|||
export const deleteInspectRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inspect-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出检验申请主 Excel
|
|||
export const exportInspectRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/inspect-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,70 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventorychangeRequestDetailVO { |
|||
locationGroupCode: string |
|||
locationCode: string |
|||
areaCode: string |
|||
fromQty: number |
|||
fromOwnerCode: string |
|||
fromPackingNumber: string |
|||
fromContainerNumber: string |
|||
fromBatch: string |
|||
fromAltbatch: string |
|||
fromArriveDate: Date |
|||
fromProduceDate: Date |
|||
fromExpireDate: Date |
|||
frominventoryStatus: string |
|||
toQty: number |
|||
toOwnerCode: string |
|||
toPackingNumber: string |
|||
toContainerNumber: string |
|||
toBatch: string |
|||
toAltBatch: string |
|||
toArrivdAte: Date |
|||
toProduceDate: Date |
|||
toExpireDate: Date |
|||
toInventoryStatus: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
} |
|||
|
|||
// 查询库存修改申请子列表
|
|||
export const getInventorychangeRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventorychange-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询库存修改申请子详情
|
|||
export const getInventorychangeRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventorychange-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存修改申请子
|
|||
export const createInventorychangeRequestDetail = async (data: InventorychangeRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/inventorychange-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改库存修改申请子
|
|||
export const updateInventorychangeRequestDetail = async (data: InventorychangeRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/inventorychange-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除库存修改申请子
|
|||
export const deleteInventorychangeRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventorychange-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存修改申请子 Excel
|
|||
export const exportInventorychangeRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/inventorychange-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventorychangeRequestMainVO { |
|||
warehouseCode: 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 getInventorychangeRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventorychange-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询库存修改申请主详情
|
|||
export const getInventorychangeRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventorychange-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存修改申请主
|
|||
export const createInventorychangeRequestMain = async (data: InventorychangeRequestMainVO) => { |
|||
return await request.post({ url: `/wms/inventorychange-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改库存修改申请主
|
|||
export const updateInventorychangeRequestMain = async (data: InventorychangeRequestMainVO) => { |
|||
return await request.put({ url: `/wms/inventorychange-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除库存修改申请主
|
|||
export const deleteInventorychangeRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventorychange-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存修改申请主 Excel
|
|||
export const exportInventorychangeRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/inventorychange-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,61 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventoryinitRequestDetailVO { |
|||
ownerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
altBatch: string |
|||
arriveDate: Date |
|||
produceDate: Date |
|||
expireDate: Date |
|||
inventoryStatus: string |
|||
locationCode: string |
|||
locationGroupCode: string |
|||
areaCode: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
qty: number |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
} |
|||
|
|||
// 查询库存初始化申请子列表
|
|||
export const getInventoryinitRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventoryinit-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询库存初始化申请子详情
|
|||
export const getInventoryinitRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventoryinit-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存初始化申请子
|
|||
export const createInventoryinitRequestDetail = async (data: InventoryinitRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/inventoryinit-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改库存初始化申请子
|
|||
export const updateInventoryinitRequestDetail = async (data: InventoryinitRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/inventoryinit-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除库存初始化申请子
|
|||
export const deleteInventoryinitRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventoryinit-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存初始化申请子 Excel
|
|||
export const exportInventoryinitRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/inventoryinit-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,50 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventoryinitRequestMainVO { |
|||
warehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
creationTime: 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 getInventoryinitRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventoryinit-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询库存初始化申请主详情
|
|||
export const getInventoryinitRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventoryinit-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存初始化申请主
|
|||
export const createInventoryinitRequestMain = async (data: InventoryinitRequestMainVO) => { |
|||
return await request.post({ url: `/wms/inventoryinit-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改库存初始化申请主
|
|||
export const updateInventoryinitRequestMain = async (data: InventoryinitRequestMainVO) => { |
|||
return await request.put({ url: `/wms/inventoryinit-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除库存初始化申请主
|
|||
export const deleteInventoryinitRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventoryinit-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存初始化申请主 Excel
|
|||
export const exportInventoryinitRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/inventoryinit-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,59 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventorymoveRequestDetailVO { |
|||
fromOwnerCode: string |
|||
fromPackingNumber: string |
|||
fromContainerNumber: string |
|||
fromBatch: string |
|||
fromLocationCode: string |
|||
fromInventoryStatus: string |
|||
toOwnerCode: string |
|||
toPackingNumber: string |
|||
toContainerNumber: string |
|||
toBatch: string |
|||
toLocationCode: string |
|||
toInventoryStatus: string |
|||
number: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
itemCode: string |
|||
} |
|||
|
|||
// 查询库存转移申请子列表
|
|||
export const getInventorymoveRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventorymove-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询库存转移申请子详情
|
|||
export const getInventorymoveRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventorymove-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存转移申请子
|
|||
export const createInventorymoveRequestDetail = async (data: InventorymoveRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/inventorymove-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改库存转移申请子
|
|||
export const updateInventorymoveRequestDetail = async (data: InventorymoveRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/inventorymove-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除库存转移申请子
|
|||
export const deleteInventorymoveRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventorymove-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存转移申请子 Excel
|
|||
export const exportInventorymoveRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/inventorymove-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface InventorymoveRequestMainVO { |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromWarehouseOde: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
useOnTheWayLocation: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询库存转移申请主列表
|
|||
export const getInventorymoveRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/inventorymove-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询库存转移申请主详情
|
|||
export const getInventorymoveRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/inventorymove-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增库存转移申请主
|
|||
export const createInventorymoveRequestMain = async (data: InventorymoveRequestMainVO) => { |
|||
return await request.post({ url: `/wms/inventorymove-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改库存转移申请主
|
|||
export const updateInventorymoveRequestMain = async (data: InventorymoveRequestMainVO) => { |
|||
return await request.put({ url: `/wms/inventorymove-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除库存转移申请主
|
|||
export const deleteInventorymoveRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/inventorymove-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出库存转移申请主 Excel
|
|||
export const exportInventorymoveRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/inventorymove-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface IssueRequestDetailVO { |
|||
productionLineCode: string |
|||
workStationCode: string |
|||
inventoryStatus: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
toLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询发料申请子列表
|
|||
export const getIssueRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/issue-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询发料申请子详情
|
|||
export const getIssueRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/issue-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发料申请子
|
|||
export const createIssueRequestDetail = async (data: IssueRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/issue-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改发料申请子
|
|||
export const updateIssueRequestDetail = async (data: IssueRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/issue-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除发料申请子
|
|||
export const deleteIssueRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/issue-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发料申请子 Excel
|
|||
export const exportIssueRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/issue-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface IssueRequestMainVO { |
|||
workshopCode: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
fromLocationTypes: string |
|||
toLocationTypes: string |
|||
fromAreaCodes: string |
|||
toAreaCodes: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
useOnTheWayLocation: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询发料申请主列表
|
|||
export const getIssueRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/issue-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询发料申请主详情
|
|||
export const getIssueRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/issue-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增发料申请主
|
|||
export const createIssueRequestMain = async (data: IssueRequestMainVO) => { |
|||
return await request.post({ url: `/wms/issue-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改发料申请主
|
|||
export const updateIssueRequestMain = async (data: IssueRequestMainVO) => { |
|||
return await request.put({ url: `/wms/issue-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除发料申请主
|
|||
export const deleteIssueRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/issue-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出发料申请主 Excel
|
|||
export const exportIssueRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/issue-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface OfflinesettlementRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
locationCode: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
} |
|||
|
|||
// 查询下线结算申请子列表
|
|||
export const getOfflinesettlementRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/offlinesettlement-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询下线结算申请子详情
|
|||
export const getOfflinesettlementRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/offlinesettlement-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增下线结算申请子
|
|||
export const createOfflinesettlementRequestDetail = async (data: OfflinesettlementRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/offlinesettlement-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改下线结算申请子
|
|||
export const updateOfflinesettlementRequestDetail = async (data: OfflinesettlementRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/offlinesettlement-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除下线结算申请子
|
|||
export const deleteOfflinesettlementRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/offlinesettlement-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出下线结算申请子 Excel
|
|||
export const exportOfflinesettlementRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/offlinesettlement-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface OfflinesettlementRequestMainVO { |
|||
productReceiptRecordNumber: string |
|||
warehouseCode: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询下线结算申请主列表
|
|||
export const getOfflinesettlementRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/offlinesettlement-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询下线结算申请主详情
|
|||
export const getOfflinesettlementRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/offlinesettlement-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增下线结算申请主
|
|||
export const createOfflinesettlementRequestMain = async (data: OfflinesettlementRequestMainVO) => { |
|||
return await request.post({ url: `/wms/offlinesettlement-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改下线结算申请主
|
|||
export const updateOfflinesettlementRequestMain = async (data: OfflinesettlementRequestMainVO) => { |
|||
return await request.put({ url: `/wms/offlinesettlement-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除下线结算申请主
|
|||
export const deleteOfflinesettlementRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/offlinesettlement-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出下线结算申请主 Excel
|
|||
export const exportOfflinesettlementRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/offlinesettlement-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface OnlinesettlementRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
locationCode: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
} |
|||
|
|||
// 查询上线结算申请子列表
|
|||
export const getOnlinesettlementRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/onlinesettlement-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询上线结算申请子详情
|
|||
export const getOnlinesettlementRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/onlinesettlement-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增上线结算申请子
|
|||
export const createOnlinesettlementRequestDetail = async (data: OnlinesettlementRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/onlinesettlement-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改上线结算申请子
|
|||
export const updateOnlinesettlementRequestDetail = async (data: OnlinesettlementRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/onlinesettlement-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除上线结算申请子
|
|||
export const deleteOnlinesettlementRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/onlinesettlement-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出上线结算申请子 Excel
|
|||
export const exportOnlinesettlementRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/onlinesettlement-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface OnlinesettlementRequestMainVO { |
|||
issueRecordNumber: string |
|||
warehouseCode: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询上线结算申请主列表
|
|||
export const getOnlinesettlementRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/onlinesettlement-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询上线结算申请主详情
|
|||
export const getOnlinesettlementRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/onlinesettlement-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增上线结算申请主
|
|||
export const createOnlinesettlementRequestMain = async (data: OnlinesettlementRequestMainVO) => { |
|||
return await request.post({ url: `/wms/onlinesettlement-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改上线结算申请主
|
|||
export const updateOnlinesettlementRequestMain = async (data: OnlinesettlementRequestMainVO) => { |
|||
return await request.put({ url: `/wms/onlinesettlement-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除上线结算申请主
|
|||
export const deleteOnlinesettlementRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/onlinesettlement-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出上线结算申请主 Excel
|
|||
export const exportOnlinesettlementRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/onlinesettlement-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PickRequestDetailVO { |
|||
inventoryStatus: string |
|||
toLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询拣料申请子列表
|
|||
export const getPickRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/pick-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询拣料申请子详情
|
|||
export const getPickRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/pick-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增拣料申请子
|
|||
export const createPickRequestDetail = async (data: PickRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/pick-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改拣料申请子
|
|||
export const updatePickRequestDetail = async (data: PickRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/pick-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除拣料申请子
|
|||
export const deletePickRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/pick-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出拣料申请子 Excel
|
|||
export const exportPickRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/pick-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,55 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PickRequestMainVO { |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreas: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询拣料申请主列表
|
|||
export const getPickRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/pick-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询拣料申请主详情
|
|||
export const getPickRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/pick-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增拣料申请主
|
|||
export const createPickRequestMain = async (data: PickRequestMainVO) => { |
|||
return await request.post({ url: `/wms/pick-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改拣料申请主
|
|||
export const updatePickRequestMain = async (data: PickRequestMainVO) => { |
|||
return await request.put({ url: `/wms/pick-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除拣料申请主
|
|||
export const deletePickRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/pick-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出拣料申请主 Excel
|
|||
export const exportPickRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/pick-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,47 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PreparetoissueDetailVO { |
|||
toLocationCode: string |
|||
workStation: string |
|||
dueTime: Date |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询备料计划子列表
|
|||
export const getPreparetoissueDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/preparetoissue-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询备料计划子详情
|
|||
export const getPreparetoissueDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/preparetoissue-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增备料计划子
|
|||
export const createPreparetoissueDetail = async (data: PreparetoissueDetailVO) => { |
|||
return await request.post({ url: `/wms/preparetoissue-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改备料计划子
|
|||
export const updatePreparetoissueDetail = async (data: PreparetoissueDetailVO) => { |
|||
return await request.put({ url: `/wms/preparetoissue-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除备料计划子
|
|||
export const deletePreparetoissueDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/preparetoissue-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出备料计划子 Excel
|
|||
export const exportPreparetoissueDetail = async (params) => { |
|||
return await request.download({ url: `/wms/preparetoissue-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PreparetoissueMainVO { |
|||
productionPlanNumber: string |
|||
workshop: string |
|||
prodLine: string |
|||
shift: string |
|||
team: string |
|||
planDate: Date |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询备料计划主列表
|
|||
export const getPreparetoissueMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/preparetoissue-main/page`, params }) |
|||
} |
|||
|
|||
// 查询备料计划主详情
|
|||
export const getPreparetoissueMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/preparetoissue-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增备料计划主
|
|||
export const createPreparetoissueMain = async (data: PreparetoissueMainVO) => { |
|||
return await request.post({ url: `/wms/preparetoissue-main/create`, data }) |
|||
} |
|||
|
|||
// 修改备料计划主
|
|||
export const updatePreparetoissueMain = async (data: PreparetoissueMainVO) => { |
|||
return await request.put({ url: `/wms/preparetoissue-main/update`, data }) |
|||
} |
|||
|
|||
// 删除备料计划主
|
|||
export const deletePreparetoissueMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/preparetoissue-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出备料计划主 Excel
|
|||
export const exportPreparetoissueMain = async (params) => { |
|||
return await request.download({ url: `/wms/preparetoissue-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,60 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductdismantleRequestDetailaVO { |
|||
productionLineCode: string |
|||
workStationCode: string |
|||
processCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
produceDate: Date |
|||
expireDate: Date |
|||
inventoryStatus: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectOde: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationCode: string |
|||
fromOwnerCode: string |
|||
} |
|||
|
|||
// 查询制品拆解申请子列表
|
|||
export const getProductdismantleRequestDetailaPage = async (params) => { |
|||
return await request.get({ url: `/wms/productdismantle-request-detaila/page`, params }) |
|||
} |
|||
|
|||
// 查询制品拆解申请子详情
|
|||
export const getProductdismantleRequestDetaila = async (id: number) => { |
|||
return await request.get({ url: `/wms/productdismantle-request-detaila/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品拆解申请子
|
|||
export const createProductdismantleRequestDetaila = async (data: ProductdismantleRequestDetailaVO) => { |
|||
return await request.post({ url: `/wms/productdismantle-request-detaila/create`, data }) |
|||
} |
|||
|
|||
// 修改制品拆解申请子
|
|||
export const updateProductdismantleRequestDetaila = async (data: ProductdismantleRequestDetailaVO) => { |
|||
return await request.put({ url: `/wms/productdismantle-request-detaila/update`, data }) |
|||
} |
|||
|
|||
// 删除制品拆解申请子
|
|||
export const deleteProductdismantleRequestDetaila = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productdismantle-request-detaila/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品拆解申请子 Excel
|
|||
export const exportProductdismantleRequestDetaila = async (params) => { |
|||
return await request.download({ url: `/wms/productdismantle-request-detaila/export-excel`, params }) |
|||
} |
@ -0,0 +1,55 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductdismantleRequestMainVO { |
|||
workshopCode: string |
|||
team: string |
|||
shift: string |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: 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 getProductdismantleRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productdismantle-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询制品拆解申请主详情
|
|||
export const getProductdismantleRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productdismantle-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品拆解申请主
|
|||
export const createProductdismantleRequestMain = async (data: ProductdismantleRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productdismantle-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改制品拆解申请主
|
|||
export const updateProductdismantleRequestMain = async (data: ProductdismantleRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productdismantle-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除制品拆解申请主
|
|||
export const deleteProductdismantleRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productdismantle-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品拆解申请主 Excel
|
|||
export const exportProductdismantleRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productdismantle-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,49 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductionDetailVO { |
|||
woNumber: string |
|||
woLine: string |
|||
bomVersion: string |
|||
goodQty: number |
|||
notGoodQty: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询生产计划子列表
|
|||
export const getProductionDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/production-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询生产计划子详情
|
|||
export const getProductionDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/production-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产计划子
|
|||
export const createProductionDetail = async (data: ProductionDetailVO) => { |
|||
return await request.post({ url: `/wms/production-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改生产计划子
|
|||
export const updateProductionDetail = async (data: ProductionDetailVO) => { |
|||
return await request.put({ url: `/wms/production-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除生产计划子
|
|||
export const deleteProductionDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/production-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产计划子 Excel
|
|||
export const exportProductionDetail = async (params) => { |
|||
return await request.download({ url: `/wms/production-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductionMainVO { |
|||
displayOrder: number |
|||
workshop: string |
|||
productionLine: string |
|||
shift: string |
|||
team: string |
|||
planDate: Date |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询生产计划主列表
|
|||
export const getProductionMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/production-main/page`, params }) |
|||
} |
|||
|
|||
// 查询生产计划主详情
|
|||
export const getProductionMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/production-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产计划主
|
|||
export const createProductionMain = async (data: ProductionMainVO) => { |
|||
return await request.post({ url: `/wms/production-main/create`, data }) |
|||
} |
|||
|
|||
// 修改生产计划主
|
|||
export const updateProductionMain = async (data: ProductionMainVO) => { |
|||
return await request.put({ url: `/wms/production-main/update`, data }) |
|||
} |
|||
|
|||
// 删除生产计划主
|
|||
export const deleteProductionMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/production-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产计划主 Excel
|
|||
export const exportProductionMain = async (params) => { |
|||
return await request.download({ url: `/wms/production-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductionreturnRequestDetailVO { |
|||
productionLineCode: string |
|||
workStationCode: string |
|||
inventoryStatus: string |
|||
fromOwnerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询生产退料申请子列表
|
|||
export const getProductionreturnRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/productionreturn-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询生产退料申请子详情
|
|||
export const getProductionreturnRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/productionreturn-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产退料申请子
|
|||
export const createProductionreturnRequestDetail = async (data: ProductionreturnRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/productionreturn-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改生产退料申请子
|
|||
export const updateProductionreturnRequestDetail = async (data: ProductionreturnRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/productionreturn-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除生产退料申请子
|
|||
export const deleteProductionreturnRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productionreturn-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产退料申请子 Excel
|
|||
export const exportProductionreturnRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/productionreturn-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductionreturnRequestMainVO { |
|||
workshopCode: string |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询生产退料申请主列表
|
|||
export const getProductionreturnRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productionreturn-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询生产退料申请主详情
|
|||
export const getProductionreturnRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productionreturn-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产退料申请主
|
|||
export const createProductionreturnRequestMain = async (data: ProductionreturnRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productionreturn-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改生产退料申请主
|
|||
export const updateProductionreturnRequestMain = async (data: ProductionreturnRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productionreturn-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除生产退料申请主
|
|||
export const deleteProductionreturnRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productionreturn-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产退料申请主 Excel
|
|||
export const exportProductionreturnRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productionreturn-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductputawayRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
poNumber: string |
|||
poLine: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询制品上架申请子列表
|
|||
export const getProductputawayRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/productputaway-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询制品上架申请子详情
|
|||
export const getProductputawayRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/productputaway-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品上架申请子
|
|||
export const createProductputawayRequestDetail = async (data: ProductputawayRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/productputaway-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改制品上架申请子
|
|||
export const updateProductputawayRequestDetail = async (data: ProductputawayRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/productputaway-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除制品上架申请子
|
|||
export const deleteProductputawayRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productputaway-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品上架申请子 Excel
|
|||
export const exportProductputawayRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/productputaway-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductputawayRequestMainVO { |
|||
id: number |
|||
supplierCode: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
fromLocationTypes: string |
|||
toLocationTypes: string |
|||
fromAreaCodes: string |
|||
toAreaCodes: 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 getProductputawayRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productputaway-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询制品上架申请主详情
|
|||
export const getProductputawayRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productputaway-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品上架申请主
|
|||
export const createProductputawayRequestMain = async (data: ProductputawayRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productputaway-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改制品上架申请主
|
|||
export const updateProductputawayRequestMain = async (data: ProductputawayRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productputaway-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除制品上架申请主
|
|||
export const deleteProductputawayRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productputaway-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品上架申请主 Excel
|
|||
export const exportProductputawayRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productputaway-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,61 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductreceiptRequestDetailVO { |
|||
productionLineCode: string |
|||
workStationCode: string |
|||
processCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
produceDate: Date |
|||
expireDate: Date |
|||
inventoryStatus: string |
|||
woNumber: string |
|||
woLine: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询制品收货申请子列表
|
|||
export const getProductreceiptRequestDetailPage = async (params) => { |
|||
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 }) |
|||
} |
|||
|
|||
// 新增制品收货申请子
|
|||
export const createProductreceiptRequestDetail = async (data: ProductreceiptRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/productreceipt-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改制品收货申请子
|
|||
export const updateProductreceiptRequestDetail = async (data: ProductreceiptRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/productreceipt-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除制品收货申请子
|
|||
export const deleteProductreceiptRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productreceipt-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品收货申请子 Excel
|
|||
export const exportProductreceiptRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/productreceipt-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductreceiptRequestMainVO { |
|||
productionPlanNumber: string |
|||
workshopCode: string |
|||
team: string |
|||
shift: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: 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 getProductreceiptRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productreceipt-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询制品收货申请主详情
|
|||
export const getProductreceiptRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productreceipt-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品收货申请主
|
|||
export const createProductreceiptRequestMain = async (data: ProductreceiptRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productreceipt-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改制品收货申请主
|
|||
export const updateProductreceiptRequestMain = async (data: ProductreceiptRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productreceipt-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除制品收货申请主
|
|||
export const deleteProductreceiptRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productreceipt-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品收货申请主 Excel
|
|||
export const exportProductreceiptRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productreceipt-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductrepairRequestDetailaVO { |
|||
fromOwnerCode: string |
|||
productionlineCode: string |
|||
workStationCode: string |
|||
processCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
inventoryStatus: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询制品返修申请子列表
|
|||
export const getProductrepairRequestDetailaPage = async (params) => { |
|||
return await request.get({ url: `/wms/productrepair-request-detaila/page`, params }) |
|||
} |
|||
|
|||
// 查询制品返修申请子详情
|
|||
export const getProductrepairRequestDetaila = async (id: number) => { |
|||
return await request.get({ url: `/wms/productrepair-request-detaila/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品返修申请子
|
|||
export const createProductrepairRequestDetaila = async (data: ProductrepairRequestDetailaVO) => { |
|||
return await request.post({ url: `/wms/productrepair-request-detaila/create`, data }) |
|||
} |
|||
|
|||
// 修改制品返修申请子
|
|||
export const updateProductrepairRequestDetaila = async (data: ProductrepairRequestDetailaVO) => { |
|||
return await request.put({ url: `/wms/productrepair-request-detaila/update`, data }) |
|||
} |
|||
|
|||
// 删除制品返修申请子
|
|||
export const deleteProductrepairRequestDetaila = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productrepair-request-detaila/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品返修申请子 Excel
|
|||
export const exportProductrepairRequestDetaila = async (params) => { |
|||
return await request.download({ url: `/wms/productrepair-request-detaila/export-excel`, params }) |
|||
} |
@ -0,0 +1,55 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductrepairRequestMainVO { |
|||
workshopCode: string |
|||
team: string |
|||
shift: string |
|||
fromWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询制品返修申请主列表
|
|||
export const getProductrepairRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productrepair-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询制品返修申请主详情
|
|||
export const getProductrepairRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productrepair-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品返修申请主
|
|||
export const createProductrepairRequestMain = async (data: ProductrepairRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productrepair-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改制品返修申请主
|
|||
export const updateProductrepairRequestMain = async (data: ProductrepairRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productrepair-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除制品返修申请主
|
|||
export const deleteProductrepairRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productrepair-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品返修申请主 Excel
|
|||
export const exportProductrepairRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productrepair-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductscrapRequestDetailVO { |
|||
fromOwnerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
inventoryStatus: string |
|||
reason: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询制品报废申请子列表
|
|||
export const getProductscrapRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/productscrap-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询制品报废申请子详情
|
|||
export const getProductscrapRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/productscrap-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品报废申请子
|
|||
export const createProductscrapRequestDetail = async (data: ProductscrapRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/productscrap-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改制品报废申请子
|
|||
export const updateProductscrapRequestDetail = async (data: ProductscrapRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/productscrap-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除制品报废申请子
|
|||
export const deleteProductscrapRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productscrap-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品报废申请子 Excel
|
|||
export const exportProductscrapRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/productscrap-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ProductscrapRequestMainVO { |
|||
fromWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询制品报废申请主列表
|
|||
export const getProductscrapRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/productscrap-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询制品报废申请主详情
|
|||
export const getProductscrapRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/productscrap-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增制品报废申请主
|
|||
export const createProductscrapRequestMain = async (data: ProductscrapRequestMainVO) => { |
|||
return await request.post({ url: `/wms/productscrap-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改制品报废申请主
|
|||
export const updateProductscrapRequestMain = async (data: ProductscrapRequestMainVO) => { |
|||
return await request.put({ url: `/wms/productscrap-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除制品报废申请主
|
|||
export const deleteProductscrapRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/productscrap-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出制品报废申请主 Excel
|
|||
export const exportProductscrapRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/productscrap-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,61 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchaseDetailVO { |
|||
lineNumber: string |
|||
erpLocationCode: string |
|||
projectCode: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
supplierQty: number |
|||
supplierUom: string |
|||
convertRate: number |
|||
shippedQty: number |
|||
receivedQty: number |
|||
returnedQty: number |
|||
putawayQty: number |
|||
overReceivingPercent: number |
|||
singlePrice: number |
|||
amount: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
orderQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
concurrencyStamp: string |
|||
status: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询采购订单子列表
|
|||
export const getPurchaseDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchase-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询采购订单子详情
|
|||
export const getPurchaseDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchase-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购订单子
|
|||
export const createPurchaseDetail = async (data: PurchaseDetailVO) => { |
|||
return await request.post({ url: `/wms/purchase-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改采购订单子
|
|||
export const updatePurchaseDetail = async (data: PurchaseDetailVO) => { |
|||
return await request.put({ url: `/wms/purchase-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除采购订单子
|
|||
export const deletePurchaseDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchase-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购订单子 Excel
|
|||
export const exportPurchaseDetail = async (params) => { |
|||
return await request.download({ url: `/wms/purchase-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchaseMainVO { |
|||
supplierCode: string |
|||
number: string |
|||
type: string |
|||
status: string |
|||
orderDate: Date |
|||
dueDate: Date |
|||
version: string |
|||
taxRate: number |
|||
contactName: string |
|||
contactPhone: string |
|||
contactEmail: string |
|||
isConsignment: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
updateTime: Date |
|||
updater: string |
|||
currentStage: number |
|||
available: string |
|||
} |
|||
|
|||
// 查询采购订单主列表
|
|||
export const getPurchaseMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchase-main/page`, params }) |
|||
} |
|||
|
|||
// 查询采购订单主详情
|
|||
export const getPurchaseMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchase-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购订单主
|
|||
export const createPurchaseMain = async (data: PurchaseMainVO) => { |
|||
return await request.post({ url: `/wms/purchase-main/create`, data }) |
|||
} |
|||
|
|||
// 修改采购订单主
|
|||
export const updatePurchaseMain = async (data: PurchaseMainVO) => { |
|||
return await request.put({ url: `/wms/purchase-main/update`, data }) |
|||
} |
|||
|
|||
// 删除采购订单主
|
|||
export const deletePurchaseMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchase-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购订单主 Excel
|
|||
export const exportPurchaseMain = async (params) => { |
|||
return await request.download({ url: `/wms/purchase-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,47 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasePlanDetailVO { |
|||
poNumber: string |
|||
poLine: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
shippedQty: number |
|||
planQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询要货计划子列表
|
|||
export const getPurchasePlanDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchase-plan-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询要货计划子详情
|
|||
export const getPurchasePlanDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchase-plan-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增要货计划子
|
|||
export const createPurchasePlanDetail = async (data: PurchasePlanDetailVO) => { |
|||
return await request.post({ url: `/wms/purchase-plan-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改要货计划子
|
|||
export const updatePurchasePlanDetail = async (data: PurchasePlanDetailVO) => { |
|||
return await request.put({ url: `/wms/purchase-plan-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除要货计划子
|
|||
export const deletePurchasePlanDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchase-plan-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出要货计划子 Excel
|
|||
export const exportPurchasePlanDetail = async (params) => { |
|||
return await request.download({ url: `/wms/purchase-plan-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,49 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasePlanMainVO { |
|||
supplierCode: string |
|||
timeWindow: string |
|||
warehouseCode: string |
|||
dockCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
beginTime: Date |
|||
endTime: Date |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询要货计划主列表
|
|||
export const getPurchasePlanMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchase-plan-main/page`, params }) |
|||
} |
|||
|
|||
// 查询要货计划主详情
|
|||
export const getPurchasePlanMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchase-plan-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增要货计划主
|
|||
export const createPurchasePlanMain = async (data: PurchasePlanMainVO) => { |
|||
return await request.post({ url: `/wms/purchase-plan-main/create`, data }) |
|||
} |
|||
|
|||
// 修改要货计划主
|
|||
export const updatePurchasePlanMain = async (data: PurchasePlanMainVO) => { |
|||
return await request.put({ url: `/wms/purchase-plan-main/update`, data }) |
|||
} |
|||
|
|||
// 删除要货计划主
|
|||
export const deletePurchasePlanMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchase-plan-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出要货计划主 Excel
|
|||
export const exportPurchasePlanMain = async (params) => { |
|||
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,65 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasereceiptRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
altBatch: string |
|||
arriveDate: Date |
|||
produceDate: Date |
|||
expireDate: Date |
|||
inventoryStatus: string |
|||
fromLocationCode: string |
|||
poNumber: string |
|||
poLine: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
supplierPackQty: number |
|||
supplierPackUnit: string |
|||
convertRate: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
createTime: Date |
|||
creator: string |
|||
} |
|||
|
|||
// 查询采购收货申请子列表
|
|||
export const getPurchasereceiptRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchasereceipt-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询采购收货申请子详情
|
|||
export const getPurchasereceiptRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchasereceipt-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购收货申请子
|
|||
export const createPurchasereceiptRequestDetail = async (data: PurchasereceiptRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/purchasereceipt-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改采购收货申请子
|
|||
export const updatePurchasereceiptRequestDetail = async (data: PurchasereceiptRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/purchasereceipt-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除采购收货申请子
|
|||
export const deletePurchasereceiptRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchasereceipt-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购收货申请子 Excel
|
|||
export const exportPurchasereceiptRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,62 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasereceiptRequestMainVO { |
|||
asnNumber: string |
|||
ppNumber: string |
|||
supplierCode: string |
|||
carrierCode: string |
|||
transferMode: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
fromLocationTypes: string |
|||
toLocationTypes: string |
|||
fromAreaCodes: string |
|||
toAreaCodes: string |
|||
toDockCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
updateTime: Date |
|||
updater: string |
|||
status: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
vehiclePlateNumber: string |
|||
} |
|||
|
|||
// 查询采购收货申请主列表
|
|||
export const getPurchasereceiptRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchasereceipt-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询采购收货申请主详情
|
|||
export const getPurchasereceiptRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchasereceipt-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购收货申请主
|
|||
export const createPurchasereceiptRequestMain = async (data: PurchasereceiptRequestMainVO) => { |
|||
return await request.post({ url: `/wms/purchasereceipt-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改采购收货申请主
|
|||
export const updatePurchasereceiptRequestMain = async (data: PurchasereceiptRequestMainVO) => { |
|||
return await request.put({ url: `/wms/purchasereceipt-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除采购收货申请主
|
|||
export const deletePurchasereceiptRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchasereceipt-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购收货申请主 Excel
|
|||
export const exportPurchasereceiptRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,58 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasereturnRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
altBatch: string |
|||
toLocationCode: string |
|||
inventoryStatus: string |
|||
poNumber: string |
|||
poLine: string |
|||
reason: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询采购退货申请子列表
|
|||
export const getPurchasereturnRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchasereturn-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询采购退货申请子详情
|
|||
export const getPurchasereturnRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchasereturn-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购退货申请子
|
|||
export const createPurchasereturnRequestDetail = async (data: PurchasereturnRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/purchasereturn-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改采购退货申请子
|
|||
export const updatePurchasereturnRequestDetail = async (data: PurchasereturnRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/purchasereturn-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除采购退货申请子
|
|||
export const deletePurchasereturnRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchasereturn-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购退货申请子 Excel
|
|||
export const exportPurchasereturnRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/purchasereturn-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,63 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PurchasereturnRequestMainVO { |
|||
purchaseReceiptRecordNumber: string |
|||
asnNumber: string |
|||
ppNumber: string |
|||
supplierCode: string |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
fromDockCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询采购退货申请主列表
|
|||
export const getPurchasereturnRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/purchasereturn-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询采购退货申请主详情
|
|||
export const getPurchasereturnRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/purchasereturn-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增采购退货申请主
|
|||
export const createPurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => { |
|||
return await request.post({ url: `/wms/purchasereturn-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改采购退货申请主
|
|||
export const updatePurchasereturnRequestMain = async (data: PurchasereturnRequestMainVO) => { |
|||
return await request.put({ url: `/wms/purchasereturn-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除采购退货申请主
|
|||
export const deletePurchasereturnRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/purchasereturn-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出采购退货申请主 Excel
|
|||
export const exportPurchasereturnRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/purchasereturn-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PutawayRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
poNumber: string |
|||
poLine: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询上架申请子列表
|
|||
export const getPutawayRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/putaway-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询上架申请子详情
|
|||
export const getPutawayRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/putaway-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增上架申请子
|
|||
export const createPutawayRequestDetail = async (data: PutawayRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/putaway-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改上架申请子
|
|||
export const updatePutawayRequestDetail = async (data: PutawayRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/putaway-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除上架申请子
|
|||
export const deletePutawayRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/putaway-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出上架申请子 Excel
|
|||
export const exportPutawayRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/putaway-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,64 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface PutawayRequestMainVO { |
|||
supplierCode: string |
|||
fromWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
autoCommit: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询上架申请主列表
|
|||
export const getPutawayRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/putaway-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询上架申请主详情
|
|||
export const getPutawayRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/putaway-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增上架申请主
|
|||
export const createPutawayRequestMain = async (data: PutawayRequestMainVO) => { |
|||
return await request.post({ url: `/wms/putaway-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改上架申请主
|
|||
export const updatePutawayRequestMain = async (data: PutawayRequestMainVO) => { |
|||
return await request.put({ url: `/wms/putaway-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除上架申请主
|
|||
export const deletePutawayRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/putaway-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出上架申请主 Excel
|
|||
export const exportPutawayRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/putaway-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,51 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface RepleinshRequestDetailVO { |
|||
inventoryStatus: string |
|||
toLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询补料申请子列表
|
|||
export const getRepleinshRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/repleinsh-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询补料申请子详情
|
|||
export const getRepleinshRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/repleinsh-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增补料申请子
|
|||
export const createRepleinshRequestDetail = async (data: RepleinshRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/repleinsh-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改补料申请子
|
|||
export const updateRepleinshRequestDetail = async (data: RepleinshRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/repleinsh-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除补料申请子
|
|||
export const deleteRepleinshRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/repleinsh-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出补料申请子 Excel
|
|||
export const exportRepleinshRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/repleinsh-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,55 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface RepleinshRequestMainVO { |
|||
fomWarehouseCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询补料申请主列表
|
|||
export const getRepleinshRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/repleinsh-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询补料申请主详情
|
|||
export const getRepleinshRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/repleinsh-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增补料申请主
|
|||
export const createRepleinshRequestMain = async (data: RepleinshRequestMainVO) => { |
|||
return await request.post({ url: `/wms/repleinsh-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改补料申请主
|
|||
export const updateRepleinshRequestMain = async (data: RepleinshRequestMainVO) => { |
|||
return await request.put({ url: `/wms/repleinsh-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除补料申请主
|
|||
export const deleteRepleinshRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/repleinsh-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出补料申请主 Excel
|
|||
export const exportRepleinshRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/repleinsh-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,56 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface SaleDetailVO { |
|||
lineNumber: string |
|||
projectCode: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
customerPackQty: number |
|||
customerPackUnit: string |
|||
convertRate: number |
|||
shippedQty: number |
|||
receivedQty: number |
|||
returnedQty: number |
|||
singlePrice: number |
|||
amount: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
orderQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询销售订单子列表
|
|||
export const getSaleDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/sale-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询销售订单子详情
|
|||
export const getSaleDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/sale-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增销售订单子
|
|||
export const createSaleDetail = async (data: SaleDetailVO) => { |
|||
return await request.post({ url: `/wms/sale-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改销售订单子
|
|||
export const updateSaleDetail = async (data: SaleDetailVO) => { |
|||
return await request.put({ url: `/wms/sale-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除销售订单子
|
|||
export const deleteSaleDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/sale-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出销售订单子 Excel
|
|||
export const exportSaleDetail = async (params) => { |
|||
return await request.download({ url: `/wms/sale-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface SaleMainVO { |
|||
customerCode: string |
|||
type: string |
|||
orderDate: Date |
|||
dueDate: Date |
|||
version: string |
|||
taxRate: number |
|||
contactName: string |
|||
contactPhone: string |
|||
contactEmail: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
updateTime: Date |
|||
updater: string |
|||
currentStage: number |
|||
available: string |
|||
} |
|||
|
|||
// 查询销售订单主列表
|
|||
export const getSaleMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/sale-main/page`, params }) |
|||
} |
|||
|
|||
// 查询销售订单主详情
|
|||
export const getSaleMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/sale-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增销售订单主
|
|||
export const createSaleMain = async (data: SaleMainVO) => { |
|||
return await request.post({ url: `/wms/sale-main/create`, data }) |
|||
} |
|||
|
|||
// 修改销售订单主
|
|||
export const updateSaleMain = async (data: SaleMainVO) => { |
|||
return await request.put({ url: `/wms/sale-main/update`, data }) |
|||
} |
|||
|
|||
// 删除销售订单主
|
|||
export const deleteSaleMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/sale-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出销售订单主 Excel
|
|||
export const exportSaleMain = async (params) => { |
|||
return await request.download({ url: `/wms/sale-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ScrapRequestDetailVO { |
|||
fromOwnerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
inventoryStatus: string |
|||
reason: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询报废出库申请子列表
|
|||
export const getScrapRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/scrap-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询报废出库申请子详情
|
|||
export const getScrapRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/scrap-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增报废出库申请子
|
|||
export const createScrapRequestDetail = async (data: ScrapRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/scrap-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改报废出库申请子
|
|||
export const updateScrapRequestDetail = async (data: ScrapRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/scrap-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除报废出库申请子
|
|||
export const deleteScrapRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/scrap-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出报废出库申请子 Excel
|
|||
export const exportScrapRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/scrap-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface ScrapRequestMainVO { |
|||
fromWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询报废出库申请主列表
|
|||
export const getScrapRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/scrap-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询报废出库申请主详情
|
|||
export const getScrapRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/scrap-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增报废出库申请主
|
|||
export const createScrapRequestMain = async (data: ScrapRequestMainVO) => { |
|||
return await request.post({ url: `/wms/scrap-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改报废出库申请主
|
|||
export const updateScrapRequestMain = async (data: ScrapRequestMainVO) => { |
|||
return await request.put({ url: `/wms/scrap-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除报废出库申请主
|
|||
export const deleteScrapRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/scrap-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出报废出库申请主 Excel
|
|||
export const exportScrapRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/scrap-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,63 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface SupplierdeliverRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
altBatch: string |
|||
arriveDate: Date |
|||
produceDate: Date |
|||
expireDate: Date |
|||
poNumber: string |
|||
poLine: string |
|||
stdPackQty: number |
|||
stdPackUnit: string |
|||
supplierPackQty: number |
|||
supplierPackUnit: string |
|||
convertRate: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询供应商发货申请子列表
|
|||
export const getSupplierdeliverRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/supplierdeliver-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询供应商发货申请子详情
|
|||
export const getSupplierdeliverRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/supplierdeliver-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增供应商发货申请子
|
|||
export const createSupplierdeliverRequestDetail = async (data: SupplierdeliverRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/supplierdeliver-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改供应商发货申请子
|
|||
export const updateSupplierdeliverRequestDetail = async (data: SupplierdeliverRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/supplierdeliver-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除供应商发货申请子
|
|||
export const deleteSupplierdeliverRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/supplierdeliver-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出供应商发货申请子 Excel
|
|||
export const exportSupplierdeliverRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/supplierdeliver-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,63 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface SupplierdeliverRequestMainVO { |
|||
ppNumber: string |
|||
asnNumber: string |
|||
supplierCode: string |
|||
contactName: string |
|||
contactPhone: string |
|||
contactEmail: string |
|||
fromWarehouseCode: string |
|||
toWarehouseCode: string |
|||
toDockCode: string |
|||
timeWindow: string |
|||
planArriveTime: Date |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: 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 getSupplierdeliverRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/supplierdeliver-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询供应商发货申请主详情
|
|||
export const getSupplierdeliverRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/supplierdeliver-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增供应商发货申请主
|
|||
export const createSupplierdeliverRequestMain = async (data: SupplierdeliverRequestMainVO) => { |
|||
return await request.post({ url: `/wms/supplierdeliver-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改供应商发货申请主
|
|||
export const updateSupplierdeliverRequestMain = async (data: SupplierdeliverRequestMainVO) => { |
|||
return await request.put({ url: `/wms/supplierdeliver-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除供应商发货申请主
|
|||
export const deleteSupplierdeliverRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/supplierdeliver-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出供应商发货申请主 Excel
|
|||
export const exportSupplierdeliverRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/supplierdeliver-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface TransferissueRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
toOwnerCode: string |
|||
toLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromOwnerCode: string |
|||
} |
|||
|
|||
// 查询调拨出库申请子列表
|
|||
export const getTransferissueRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/transferissue-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询调拨出库申请子详情
|
|||
export const getTransferissueRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/transferissue-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增调拨出库申请子
|
|||
export const createTransferissueRequestDetail = async (data: TransferissueRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/transferissue-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改调拨出库申请子
|
|||
export const updateTransferissueRequestDetail = async (data: TransferissueRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/transferissue-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除调拨出库申请子
|
|||
export const deleteTransferissueRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/transferissue-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出调拨出库申请子 Excel
|
|||
export const exportTransferissueRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/transferissue-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,59 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface TransferissueRequestMainVO { |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromWarehouseCode: string |
|||
fromDockCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询调拨出库申请主列表
|
|||
export const getTransferissueRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/transferissue-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询调拨出库申请主详情
|
|||
export const getTransferissueRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/transferissue-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增调拨出库申请主
|
|||
export const createTransferissueRequestMain = async (data: TransferissueRequestMainVO) => { |
|||
return await request.post({ url: `/wms/transferissue-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改调拨出库申请主
|
|||
export const updateTransferissueRequestMain = async (data: TransferissueRequestMainVO) => { |
|||
return await request.put({ url: `/wms/transferissue-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除调拨出库申请主
|
|||
export const deleteTransferissueRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/transferissue-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出调拨出库申请主 Excel
|
|||
export const exportTransferissueRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/transferissue-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface TransferreceiptRequestDetailVO { |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
inventoryStatus: string |
|||
fromOwnerCode: string |
|||
fromLocationCode: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
toOwnerCode: string |
|||
} |
|||
|
|||
// 查询调拨入库申请子列表
|
|||
export const getTransferreceiptRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/transferreceipt-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询调拨入库申请子详情
|
|||
export const getTransferreceiptRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/transferreceipt-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增调拨入库申请子
|
|||
export const createTransferreceiptRequestDetail = async (data: TransferreceiptRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/transferreceipt-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改调拨入库申请子
|
|||
export const updateTransferreceiptRequestDetail = async (data: TransferreceiptRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/transferreceipt-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除调拨入库申请子
|
|||
export const deleteTransferreceiptRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/transferreceipt-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出调拨入库申请子 Excel
|
|||
export const exportTransferreceiptRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/transferreceipt-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,59 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface TransferreceiptRequestMainVO { |
|||
carrierCode: string |
|||
transferMode: string |
|||
vehiclePlateNumber: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
fromWarehouseCode: string |
|||
toDockCode: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
toWarehouseCode: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询调拨入库申请主列表
|
|||
export const getTransferreceiptRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/transferreceipt-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询调拨入库申请主详情
|
|||
export const getTransferreceiptRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/transferreceipt-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增调拨入库申请主
|
|||
export const createTransferreceiptRequestMain = async (data: TransferreceiptRequestMainVO) => { |
|||
return await request.post({ url: `/wms/transferreceipt-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改调拨入库申请主
|
|||
export const updateTransferreceiptRequestMain = async (data: TransferreceiptRequestMainVO) => { |
|||
return await request.put({ url: `/wms/transferreceipt-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除调拨入库申请主
|
|||
export const deleteTransferreceiptRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/transferreceipt-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出调拨入库申请主 Excel
|
|||
export const exportTransferreceiptRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/transferreceipt-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface UnplannedissueRequestDetailVO { |
|||
fromOwnerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
fromLocationCode: string |
|||
inventoryStatus: string |
|||
reason: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询计划外出库申请子列表
|
|||
export const getUnplannedissueRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/unplannedissue-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询计划外出库申请子详情
|
|||
export const getUnplannedissueRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/unplannedissue-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增计划外出库申请子
|
|||
export const createUnplannedissueRequestDetail = async (data: UnplannedissueRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/unplannedissue-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改计划外出库申请子
|
|||
export const updateUnplannedissueRequestDetail = async (data: UnplannedissueRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/unplannedissue-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除计划外出库申请子
|
|||
export const deleteUnplannedissueRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/unplannedissue-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出计划外出库申请子 Excel
|
|||
export const exportUnplannedissueRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/unplannedissue-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,53 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface UnplannedissueRequestMainVO { |
|||
fromWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
concurrencyStamp: string |
|||
fromLocationTypes: string |
|||
fromAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询计划外出库申请主列表
|
|||
export const getUnplannedissueRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/unplannedissue-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询计划外出库申请主详情
|
|||
export const getUnplannedissueRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/unplannedissue-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增计划外出库申请主
|
|||
export const createUnplannedissueRequestMain = async (data: UnplannedissueRequestMainVO) => { |
|||
return await request.post({ url: `/wms/unplannedissue-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改计划外出库申请主
|
|||
export const updateUnplannedissueRequestMain = async (data: UnplannedissueRequestMainVO) => { |
|||
return await request.put({ url: `/wms/unplannedissue-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除计划外出库申请主
|
|||
export const deleteUnplannedissueRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/unplannedissue-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出计划外出库申请主 Excel
|
|||
export const exportUnplannedissueRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/unplannedissue-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,58 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface UnplannedreceiptRequestDetailVO { |
|||
toOwnerCode: string |
|||
packingNumber: string |
|||
containerNumber: string |
|||
batch: string |
|||
altBatch: string |
|||
arriveDate: Date |
|||
produceDate: Date |
|||
expireDate: Date |
|||
toLocationCode: string |
|||
inventoryStatus: string |
|||
reason: string |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
creationTime: Date |
|||
creator: string |
|||
itemName: string |
|||
itemDesc1: string |
|||
itemDesc2: string |
|||
projectCode: string |
|||
qty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
} |
|||
|
|||
// 查询计划外入库申请子列表
|
|||
export const getUnplannedreceiptRequestDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/unplannedreceipt-request-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询计划外入库申请子详情
|
|||
export const getUnplannedreceiptRequestDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/unplannedreceipt-request-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增计划外入库申请子
|
|||
export const createUnplannedreceiptRequestDetail = async (data: UnplannedreceiptRequestDetailVO) => { |
|||
return await request.post({ url: `/wms/unplannedreceipt-request-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改计划外入库申请子
|
|||
export const updateUnplannedreceiptRequestDetail = async (data: UnplannedreceiptRequestDetailVO) => { |
|||
return await request.put({ url: `/wms/unplannedreceipt-request-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除计划外入库申请子
|
|||
export const deleteUnplannedreceiptRequestDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/unplannedreceipt-request-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出计划外入库申请子 Excel
|
|||
export const exportUnplannedreceiptRequestDetail = async (params) => { |
|||
return await request.download({ url: `/wms/unplannedreceipt-request-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface UnplannedreceiptRequestMainVO { |
|||
toWarehouseCode: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
requestTime: Date |
|||
dueTime: Date |
|||
departmentCode: string |
|||
status: string |
|||
updateTime: Date |
|||
updater: string |
|||
toLocationTypes: string |
|||
toAreaCodes: string |
|||
autoCommit: string |
|||
autoAgree: string |
|||
autoExecute: string |
|||
directCreateRecord: string |
|||
} |
|||
|
|||
// 查询计划外入库申请主列表
|
|||
export const getUnplannedreceiptRequestMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/unplannedreceipt-request-main/page`, params }) |
|||
} |
|||
|
|||
// 查询计划外入库申请主详情
|
|||
export const getUnplannedreceiptRequestMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/unplannedreceipt-request-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增计划外入库申请主
|
|||
export const createUnplannedreceiptRequestMain = async (data: UnplannedreceiptRequestMainVO) => { |
|||
return await request.post({ url: `/wms/unplannedreceipt-request-main/create`, data }) |
|||
} |
|||
|
|||
// 修改计划外入库申请主
|
|||
export const updateUnplannedreceiptRequestMain = async (data: UnplannedreceiptRequestMainVO) => { |
|||
return await request.put({ url: `/wms/unplannedreceipt-request-main/update`, data }) |
|||
} |
|||
|
|||
// 删除计划外入库申请主
|
|||
export const deleteUnplannedreceiptRequestMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/unplannedreceipt-request-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出计划外入库申请主 Excel
|
|||
export const exportUnplannedreceiptRequestMain = async (params) => { |
|||
return await request.download({ url: `/wms/unplannedreceipt-request-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,47 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface WorkDetailVO { |
|||
lineNumber: string |
|||
projectCode: string |
|||
finishedQty: number |
|||
number: string |
|||
itemCode: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
orderQty: number |
|||
uom: string |
|||
updateTime: Date |
|||
updater: string |
|||
available: string |
|||
} |
|||
|
|||
// 查询生产订单子列表
|
|||
export const getWorkDetailPage = async (params) => { |
|||
return await request.get({ url: `/wms/work-detail/page`, params }) |
|||
} |
|||
|
|||
// 查询生产订单子详情
|
|||
export const getWorkDetail = async (id: number) => { |
|||
return await request.get({ url: `/wms/work-detail/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产订单子
|
|||
export const createWorkDetail = async (data: WorkDetailVO) => { |
|||
return await request.post({ url: `/wms/work-detail/create`, data }) |
|||
} |
|||
|
|||
// 修改生产订单子
|
|||
export const updateWorkDetail = async (data: WorkDetailVO) => { |
|||
return await request.put({ url: `/wms/work-detail/update`, data }) |
|||
} |
|||
|
|||
// 删除生产订单子
|
|||
export const deleteWorkDetail = async (id: number) => { |
|||
return await request.delete({ url: `/wms/work-detail/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产订单子 Excel
|
|||
export const exportWorkDetail = async (params) => { |
|||
return await request.download({ url: `/wms/work-detail/export-excel`, params }) |
|||
} |
@ -0,0 +1,48 @@ |
|||
import request from '@/config/axios' |
|||
|
|||
export interface WorkMainVO { |
|||
customerCode: string |
|||
type: string |
|||
orderDate: Date |
|||
dueDate: Date |
|||
version: string |
|||
number: string |
|||
businessType: string |
|||
remark: string |
|||
createTime: Date |
|||
creator: string |
|||
updateTime: Date |
|||
updater: string |
|||
currentStage: number |
|||
available: string |
|||
} |
|||
|
|||
// 查询生产订单主列表
|
|||
export const getWorkMainPage = async (params) => { |
|||
return await request.get({ url: `/wms/work-main/page`, params }) |
|||
} |
|||
|
|||
// 查询生产订单主详情
|
|||
export const getWorkMain = async (id: number) => { |
|||
return await request.get({ url: `/wms/work-main/get?id=` + id }) |
|||
} |
|||
|
|||
// 新增生产订单主
|
|||
export const createWorkMain = async (data: WorkMainVO) => { |
|||
return await request.post({ url: `/wms/work-main/create`, data }) |
|||
} |
|||
|
|||
// 修改生产订单主
|
|||
export const updateWorkMain = async (data: WorkMainVO) => { |
|||
return await request.put({ url: `/wms/work-main/update`, data }) |
|||
} |
|||
|
|||
// 删除生产订单主
|
|||
export const deleteWorkMain = async (id: number) => { |
|||
return await request.delete({ url: `/wms/work-main/delete?id=` + id }) |
|||
} |
|||
|
|||
// 导出生产订单主 Excel
|
|||
export const exportWorkMain = async (params) => { |
|||
return await request.download({ url: `/wms/work-main/export-excel`, params }) |
|||
} |
@ -0,0 +1,539 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="发货记录单号" prop="deliverRequestNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverRequestNumber" |
|||
placeholder="请输入发货记录单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="发货计划单号" prop="deliverPlanNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverPlanNumber" |
|||
placeholder="请输入发货计划单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户代码" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入客户代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户月台代码" prop="customerDockCode"> |
|||
<el-input |
|||
v-model="queryParams.customerDockCode" |
|||
placeholder="请输入客户月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="承运商" prop="carrierCode"> |
|||
<el-input |
|||
v-model="queryParams.carrierCode" |
|||
placeholder="请输入承运商" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="运输方式" prop="transferMode"> |
|||
<el-select |
|||
v-model="queryParams.transferMode" |
|||
placeholder="请选择运输方式" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.TRANSFER_MODE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" prop="vehiclePlateNumber"> |
|||
<el-select |
|||
v-model="queryParams.vehiclePlateNumber" |
|||
placeholder="请选择车牌号" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.VEHICLE_PLATE_NUMBER)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:customerreceipt-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:customerreceipt-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="发货记录单号" align="center" prop="deliverRequestNumber" width="150px" /> |
|||
<el-table-column label="发货计划单号" align="center" prop="deliverPlanNumber" width="150px" /> |
|||
<el-table-column label="客户代码" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column label="客户月台代码" align="center" prop="customerDockCode" width="150px" /> |
|||
<el-table-column label="承运商" align="center" prop="carrierCode" width="150px" /> |
|||
<el-table-column label="运输方式" align="center" prop="transferMode" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.TRANSFER_MODE" :value="scope.row.transferMode" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center" prop="vehiclePlateNumber" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.VEHICLE_PLATE_NUMBER" :value="scope.row.vehiclePlateNumber" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:customerreceipt-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:customerreceipt-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CustomerreceiptRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CustomerreceiptRequestMainApi from '@/api/wms/customerreceiptRequestMain' |
|||
import CustomerreceiptRequestMainForm from './CustomerreceiptRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CustomerreceiptRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
deliverRequestNumber: null, |
|||
deliverPlanNumber: null, |
|||
customerCode: null, |
|||
customerDockCode: null, |
|||
carrierCode: null, |
|||
transferMode: null, |
|||
vehiclePlateNumber: null, |
|||
fromWarehouseCode: null, |
|||
toWarehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromLocationTypes: null, |
|||
toLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CustomerreceiptRequestMainApi.getCustomerreceiptRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CustomerreceiptRequestMainApi.deleteCustomerreceiptRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CustomerreceiptRequestMainApi.exportCustomerreceiptRequestMain(queryParams) |
|||
download.excel(data, '客户收货申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,562 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="申请单号" prop="requestNumber"> |
|||
<el-input |
|||
v-model="queryParams.requestNumber" |
|||
placeholder="请输入申请单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="发货记录单号" prop="deliverRecordNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverRecordNumber" |
|||
placeholder="请输入发货记录单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="发货计划单号" prop="deliverPlanNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverPlanNumber" |
|||
placeholder="请输入发货计划单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户代码" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入客户代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户月台代码" prop="customerDockCode"> |
|||
<el-input |
|||
v-model="queryParams.customerDockCode" |
|||
placeholder="请输入客户月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="承运商" prop="carrierCode"> |
|||
<el-input |
|||
v-model="queryParams.carrierCode" |
|||
placeholder="请输入承运商" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="运输方式" prop="transferMode"> |
|||
<el-select |
|||
v-model="queryParams.transferMode" |
|||
placeholder="请选择运输方式" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.TRANSFER_MODE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" prop="vehiclePlateNumber"> |
|||
<el-select |
|||
v-model="queryParams.vehiclePlateNumber" |
|||
placeholder="请选择车牌号" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.VEHICLE_PLATE_NUMBER)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-select |
|||
v-model="queryParams.businessType" |
|||
placeholder="请选择业务类型" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option label="请选择字典生成" value="" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到月台代码" prop="toDockCode"> |
|||
<el-input |
|||
v-model="queryParams.toDockCode" |
|||
placeholder="请输入到月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:customerreturn-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:customerreturn-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="申请单号" align="center" prop="requestNumber" width="150px" /> |
|||
<el-table-column label="发货记录单号" align="center" prop="deliverRecordNumber" width="150px" /> |
|||
<el-table-column label="发货计划单号" align="center" prop="deliverPlanNumber" width="150px" /> |
|||
<el-table-column label="客户代码" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column label="客户月台代码" align="center" prop="customerDockCode" width="150px" /> |
|||
<el-table-column label="承运商" align="center" prop="carrierCode" width="150px" /> |
|||
<el-table-column label="运输方式" align="center" prop="transferMode" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.TRANSFER_MODE" :value="scope.row.transferMode" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center" prop="vehiclePlateNumber" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.VEHICLE_PLATE_NUMBER" :value="scope.row.vehiclePlateNumber" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="到月台代码" align="center" prop="toDockCode" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:customerreturn-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:customerreturn-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CustomerreturnRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain' |
|||
import CustomerreturnRequestMainForm from './CustomerreturnRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CustomerreturnRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
requestNumber: null, |
|||
deliverRecordNumber: null, |
|||
deliverPlanNumber: null, |
|||
customerCode: null, |
|||
customerDockCode: null, |
|||
carrierCode: null, |
|||
transferMode: null, |
|||
vehiclePlateNumber: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromWarehouseCode: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toWarehouseCode: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
toDockCode: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CustomerreturnRequestMainApi.getCustomerreturnRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CustomerreturnRequestMainApi.deleteCustomerreturnRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CustomerreturnRequestMainApi.exportCustomerreturnRequestMain(queryParams) |
|||
download.excel(data, '客户退货申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,432 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="发货记录单号" prop="deliverRecordNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverRecordNumber" |
|||
placeholder="请输入发货记录单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="发货计划单号" prop="deliverPlanNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverPlanNumber" |
|||
placeholder="请输入发货计划单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户代码" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入客户代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:customersettle-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:customersettle-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="发货记录单号" align="center" prop="deliverRecordNumber" width="150px" /> |
|||
<el-table-column label="发货计划单号" align="center" prop="deliverPlanNumber" width="150px" /> |
|||
<el-table-column label="客户代码" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:customersettle-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:customersettle-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CustomersettleRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CustomersettleRequestMainApi from '@/api/wms/customersettleRequestMain' |
|||
import CustomersettleRequestMainForm from './CustomersettleRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CustomersettleRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
deliverRecordNumber: null, |
|||
deliverPlanNumber: null, |
|||
customerCode: null, |
|||
fromWarehouseCode: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CustomersettleRequestMainApi.getCustomersettleRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CustomersettleRequestMainApi.deleteCustomersettleRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CustomersettleRequestMainApi.exportCustomersettleRequestMain(queryParams) |
|||
download.excel(data, '客户结算申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,550 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="发货计划单号" prop="deliverPlanNumber"> |
|||
<el-input |
|||
v-model="queryParams.deliverPlanNumber" |
|||
placeholder="请输入发货计划单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户发货单号" prop="customerDeliverNumber"> |
|||
<el-input |
|||
v-model="queryParams.customerDeliverNumber" |
|||
placeholder="请输入客户发货单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户代码" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入客户代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="客户月台代码" prop="customerDockCode"> |
|||
<el-input |
|||
v-model="queryParams.customerDockCode" |
|||
placeholder="请输入客户月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="承运商" prop="carrierCode"> |
|||
<el-input |
|||
v-model="queryParams.carrierCode" |
|||
placeholder="请输入承运商" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="运输方式" prop="transferMode"> |
|||
<el-select |
|||
v-model="queryParams.transferMode" |
|||
placeholder="请选择运输方式" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.TRANSFER_MODE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" prop="vehiclePlateNumber"> |
|||
<el-select |
|||
v-model="queryParams.vehiclePlateNumber" |
|||
placeholder="请选择车牌号" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.VEHICLE_PLATE_NUMBER)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从月台代码" prop="fromDockCode"> |
|||
<el-input |
|||
v-model="queryParams.fromDockCode" |
|||
placeholder="请输入从月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:deliver-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:deliver-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="发货计划单号" align="center" prop="deliverPlanNumber" width="150px" /> |
|||
<el-table-column label="客户发货单号" align="center" prop="customerDeliverNumber" width="150px" /> |
|||
<el-table-column label="客户代码" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column label="客户月台代码" align="center" prop="customerDockCode" width="150px" /> |
|||
<el-table-column label="承运商" align="center" prop="carrierCode" width="150px" /> |
|||
<el-table-column label="运输方式" align="center" prop="transferMode" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.TRANSFER_MODE" :value="scope.row.transferMode" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center" prop="vehiclePlateNumber" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.VEHICLE_PLATE_NUMBER" :value="scope.row.vehiclePlateNumber" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="从月台代码" align="center" prop="fromDockCode" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:deliver-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:deliver-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<DeliverRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' |
|||
import DeliverRequestMainForm from './DeliverRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'DeliverRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
deliverPlanNumber: null, |
|||
customerDeliverNumber: null, |
|||
customerCode: null, |
|||
customerDockCode: null, |
|||
carrierCode: null, |
|||
transferMode: null, |
|||
vehiclePlateNumber: null, |
|||
fromWarehouseCode: null, |
|||
toWarehouseCode: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
fromDockCode: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await DeliverRequestMainApi.getDeliverRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await DeliverRequestMainApi.deleteDeliverRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await DeliverRequestMainApi.exportDeliverRequestMain(queryParams) |
|||
download.excel(data, '发货申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,342 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="客户" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入客户" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="计划日期" prop="planDate"> |
|||
<el-date-picker |
|||
v-model="queryParams.planDate" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="开始时间" prop="beginTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.beginTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="结束时间" prop="endTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.endTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.PLAN_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="是否可用" prop="available"> |
|||
<el-input |
|||
v-model="queryParams.available" |
|||
placeholder="请输入是否可用" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:deliver-plan-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:deliver-plan-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="客户" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column |
|||
label="计划日期" |
|||
align="center" |
|||
prop="planDate" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="开始时间" |
|||
align="center" |
|||
prop="beginTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="结束时间" |
|||
align="center" |
|||
prop="endTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.PLAN_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="是否可用" align="center" prop="available" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:deliver-plan-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:deliver-plan-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<DeliverPlanMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' |
|||
import DeliverPlanMainForm from './DeliverPlanMainForm.vue' |
|||
|
|||
defineOptions({ name: 'DeliverPlanMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
customerCode: null, |
|||
planDate: [], |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
beginTime: [], |
|||
endTime: [], |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
available: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await DeliverPlanMainApi.getDeliverPlanMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await DeliverPlanMainApi.deleteDeliverPlanMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await DeliverPlanMainApi.exportDeliverPlanMain(queryParams) |
|||
download.excel(data, '发货计划主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,389 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="供应商代码" prop="customerCode"> |
|||
<el-input |
|||
v-model="queryParams.customerCode" |
|||
placeholder="请输入供应商代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="订单类型" prop="type"> |
|||
<el-select v-model="queryParams.type" placeholder="请选择订单类型" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.SALE_ORDER_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="订单日期" prop="orderDate"> |
|||
<el-date-picker |
|||
v-model="queryParams.orderDate" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止日期" prop="dueDate"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueDate" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="版本" prop="version"> |
|||
<el-input |
|||
v-model="queryParams.version" |
|||
placeholder="请输入版本" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="税率" prop="taxRate"> |
|||
<el-input |
|||
v-model="queryParams.taxRate" |
|||
placeholder="请输入税率" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="联系人姓名" prop="contactName"> |
|||
<el-input |
|||
v-model="queryParams.contactName" |
|||
placeholder="请输入联系人姓名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="联系人电话" prop="contactPhone"> |
|||
<el-input |
|||
v-model="queryParams.contactPhone" |
|||
placeholder="请输入联系人电话" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="联系人电子邮件" prop="contactEmail"> |
|||
<el-input |
|||
v-model="queryParams.contactEmail" |
|||
placeholder="请输入联系人电子邮件" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="当前阶段" prop="currentStage"> |
|||
<el-input |
|||
v-model="queryParams.currentStage" |
|||
placeholder="请输入当前阶段" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="是否可用" prop="available"> |
|||
<el-input |
|||
v-model="queryParams.available" |
|||
placeholder="请输入是否可用" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:sale-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:sale-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="供应商代码" align="center" prop="customerCode" width="150px" /> |
|||
<el-table-column label="订单类型" align="center" prop="type" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.SALE_ORDER_TYPE" :value="scope.row.type" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="订单日期" |
|||
align="center" |
|||
prop="orderDate" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止日期" |
|||
align="center" |
|||
prop="dueDate" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="版本" align="center" prop="version" width="150px" /> |
|||
<el-table-column label="税率" align="center" prop="taxRate" width="150px" /> |
|||
<el-table-column label="联系人姓名" align="center" prop="contactName" width="150px" /> |
|||
<el-table-column label="联系人电话" align="center" prop="contactPhone" width="150px" /> |
|||
<el-table-column label="联系人电子邮件" align="center" prop="contactEmail" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="当前阶段" align="center" prop="currentStage" width="150px" /> |
|||
<el-table-column label="是否可用" align="center" prop="available" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:sale-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:sale-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<SaleMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as SaleMainApi from '@/api/wms/saleMain' |
|||
import SaleMainForm from './SaleMainForm.vue' |
|||
|
|||
defineOptions({ name: 'SaleMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
customerCode: null, |
|||
type: null, |
|||
orderDate: [], |
|||
dueDate: [], |
|||
version: null, |
|||
taxRate: null, |
|||
contactName: null, |
|||
contactPhone: null, |
|||
contactEmail: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
currentStage: null, |
|||
available: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await SaleMainApi.getSaleMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await SaleMainApi.deleteSaleMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await SaleMainApi.exportSaleMain(queryParams) |
|||
download.excel(data, '销售订单主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,470 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="盘点类型" prop="type"> |
|||
<el-select v-model="queryParams.type" placeholder="请选择盘点类型" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.COUNT_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="执行周期" prop="crontab"> |
|||
<el-input |
|||
v-model="queryParams.crontab" |
|||
placeholder="请输入执行周期" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="维度" prop="dimension"> |
|||
<el-select |
|||
v-model="queryParams.dimension" |
|||
placeholder="请选择维度" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.COUNT_DIMENSION)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="限值" prop="limitedValue"> |
|||
<el-input |
|||
v-model="queryParams.limitedValue" |
|||
placeholder="请输入限值" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="物品忽略名单" prop="ignoreListOfItem"> |
|||
<el-input |
|||
v-model="queryParams.ignoreListOfItem" |
|||
placeholder="请输入物品忽略名单" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="库位忽略名单" prop="ignoreListOfLocation"> |
|||
<el-input |
|||
v-model="queryParams.ignoreListOfLocation" |
|||
placeholder="请输入库位忽略名单" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="盘点范围列表" prop="scopeList"> |
|||
<el-input |
|||
v-model="queryParams.scopeList" |
|||
placeholder="请输入盘点范围列表" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="开始时间" prop="beginTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.beginTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="结束时间" prop="endTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.endTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.PLAN_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="快照盘点" prop="isSnapshot"> |
|||
<el-input |
|||
v-model="queryParams.isSnapshot" |
|||
placeholder="请输入快照盘点" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="冻结盘点" prop="isFreeze"> |
|||
<el-input |
|||
v-model="queryParams.isFreeze" |
|||
placeholder="请输入冻结盘点" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="盘点空库位" prop="isCountEmptyLocation"> |
|||
<el-input |
|||
v-model="queryParams.isCountEmptyLocation" |
|||
placeholder="请输入盘点空库位" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="盘点零库存" prop="isCountZeroInventory"> |
|||
<el-input |
|||
v-model="queryParams.isCountZeroInventory" |
|||
placeholder="请输入盘点零库存" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="盘点负库存" prop="isCountNegativeInventory"> |
|||
<el-input |
|||
v-model="queryParams.isCountNegativeInventory" |
|||
placeholder="请输入盘点负库存" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="明盘" prop="isOpenCount"> |
|||
<el-input |
|||
v-model="queryParams.isOpenCount" |
|||
placeholder="请输入明盘" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="是否可用" prop="available"> |
|||
<el-input |
|||
v-model="queryParams.available" |
|||
placeholder="请输入是否可用" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:count-plan-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:count-plan-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="盘点类型" align="center" prop="type" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.COUNT_TYPE" :value="scope.row.type" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="执行周期" align="center" prop="crontab" width="150px" /> |
|||
<el-table-column label="维度" align="center" prop="dimension" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.COUNT_DIMENSION" :value="scope.row.dimension" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="限值" align="center" prop="limitedValue" width="150px" /> |
|||
<el-table-column label="物品忽略名单" align="center" prop="ignoreListOfItem" width="150px" /> |
|||
<el-table-column label="库位忽略名单" align="center" prop="ignoreListOfLocation" width="150px" /> |
|||
<el-table-column label="盘点范围列表" align="center" prop="scopeList" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="开始时间" |
|||
align="center" |
|||
prop="beginTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="结束时间" |
|||
align="center" |
|||
prop="endTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.PLAN_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="快照盘点" align="center" prop="isSnapshot" width="150px" /> |
|||
<el-table-column label="冻结盘点" align="center" prop="isFreeze" width="150px" /> |
|||
<el-table-column label="盘点空库位" align="center" prop="isCountEmptyLocation" width="150px" /> |
|||
<el-table-column label="盘点零库存" align="center" prop="isCountZeroInventory" width="150px" /> |
|||
<el-table-column label="盘点负库存" align="center" prop="isCountNegativeInventory" width="150px" /> |
|||
<el-table-column label="明盘" align="center" prop="isOpenCount" width="150px" /> |
|||
<el-table-column label="是否可用" align="center" prop="available" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:count-plan-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:count-plan-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CountPlanMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CountPlanMainApi from '@/api/wms/countPlanMain' |
|||
import CountPlanMainForm from './CountPlanMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CountPlanMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
type: null, |
|||
crontab: null, |
|||
dimension: null, |
|||
limitedValue: null, |
|||
ignoreListOfItem: null, |
|||
ignoreListOfLocation: null, |
|||
scopeList: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
beginTime: [], |
|||
endTime: [], |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
isSnapshot: null, |
|||
isFreeze: null, |
|||
isCountEmptyLocation: null, |
|||
isCountZeroInventory: null, |
|||
isCountNegativeInventory: null, |
|||
isOpenCount: null, |
|||
available: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CountPlanMainApi.getCountPlanMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CountPlanMainApi.deleteCountPlanMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CountPlanMainApi.exportCountPlanMain(queryParams) |
|||
download.excel(data, '盘点计划主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,405 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="申请单号" prop="requestNumber"> |
|||
<el-input |
|||
v-model="queryParams.requestNumber" |
|||
placeholder="请输入申请单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="计划单号" prop="planNumber"> |
|||
<el-input |
|||
v-model="queryParams.planNumber" |
|||
placeholder="请输入计划单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="阶段" prop="stage"> |
|||
<el-select v-model="queryParams.stage" placeholder="请选择阶段" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.COUNT_STAGE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="仓库代码" prop="warehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.warehouseCode" |
|||
placeholder="请输入仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:count-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:count-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="申请单号" align="center" prop="requestNumber" width="150px" /> |
|||
<el-table-column label="计划单号" align="center" prop="planNumber" width="150px" /> |
|||
<el-table-column label="阶段" align="center" prop="stage" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.COUNT_STAGE" :value="scope.row.stage" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="仓库代码" align="center" prop="warehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:count-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:count-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CountRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CountRequestMainApi from '@/api/wms/countRequestMain' |
|||
import CountRequestMainForm from './CountRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CountRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
requestNumber: null, |
|||
planNumber: null, |
|||
stage: null, |
|||
warehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CountRequestMainApi.getCountRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CountRequestMainApi.deleteCountRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CountRequestMainApi.exportCountRequestMain(queryParams) |
|||
download.excel(data, '盘点申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,389 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="申请单号" prop="requestNumber"> |
|||
<el-input |
|||
v-model="queryParams.requestNumber" |
|||
placeholder="请输入申请单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="盘点记录单号" prop="countRecordNumber"> |
|||
<el-input |
|||
v-model="queryParams.countRecordNumber" |
|||
placeholder="请输入盘点记录单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="仓库代码" prop="warehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.warehouseCode" |
|||
placeholder="请输入仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:countadjust-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:countadjust-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="申请单号" align="center" prop="requestNumber" width="150px" /> |
|||
<el-table-column label="盘点记录单号" align="center" prop="countRecordNumber" width="150px" /> |
|||
<el-table-column label="仓库代码" align="center" prop="warehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:countadjust-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:countadjust-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<CountadjustRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as CountadjustRequestMainApi from '@/api/wms/countadjustRequestMain' |
|||
import CountadjustRequestMainForm from './CountadjustRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'CountadjustRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
requestNumber: null, |
|||
countRecordNumber: null, |
|||
warehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await CountadjustRequestMainApi.getCountadjustRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await CountadjustRequestMainApi.deleteCountadjustRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await CountadjustRequestMainApi.exportCountadjustRequestMain(queryParams) |
|||
download.excel(data, '盘点调整申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,367 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="仓库代码" prop="warehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.warehouseCode" |
|||
placeholder="请输入仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:inventorychange-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:inventorychange-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="仓库代码" align="center" prop="warehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:inventorychange-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:inventorychange-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<InventorychangeRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as InventorychangeRequestMainApi from '@/api/wms/inventorychangeRequestMain' |
|||
import InventorychangeRequestMainForm from './InventorychangeRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'InventorychangeRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
warehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await InventorychangeRequestMainApi.getInventorychangeRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await InventorychangeRequestMainApi.deleteInventorychangeRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await InventorychangeRequestMainApi.exportInventorychangeRequestMain(queryParams) |
|||
download.excel(data, '库存修改申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,367 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="仓库代码" prop="warehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.warehouseCode" |
|||
placeholder="请输入仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="creationTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.creationTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:inventoryinit-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:inventoryinit-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="仓库代码" align="center" prop="warehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="creationTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:inventoryinit-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:inventoryinit-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<InventoryinitRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as InventoryinitRequestMainApi from '@/api/wms/inventoryinitRequestMain' |
|||
import InventoryinitRequestMainForm from './InventoryinitRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'InventoryinitRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
warehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
creationTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await InventoryinitRequestMainApi.getInventoryinitRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await InventoryinitRequestMainApi.deleteInventoryinitRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await InventoryinitRequestMainApi.exportInventoryinitRequestMain(queryParams) |
|||
download.excel(data, '库存初始化申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,453 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseOde"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseOde" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="使用在途库" prop="useOnTheWayLocation"> |
|||
<el-input |
|||
v-model="queryParams.useOnTheWayLocation" |
|||
placeholder="请输入使用在途库" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:inventorymove-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:inventorymove-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseOde" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="使用在途库" align="center" prop="useOnTheWayLocation" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:inventorymove-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:inventorymove-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<InventorymoveRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as InventorymoveRequestMainApi from '@/api/wms/inventorymoveRequestMain' |
|||
import InventorymoveRequestMainForm from './InventorymoveRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'InventorymoveRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromWarehouseOde: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toWarehouseCode: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
useOnTheWayLocation: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await InventorymoveRequestMainApi.getInventorymoveRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await InventorymoveRequestMainApi.deleteInventorymoveRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(queryParams) |
|||
download.excel(data, '库存转移申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,399 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:scrap-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:scrap-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:scrap-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:scrap-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<ScrapRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as ScrapRequestMainApi from '@/api/wms/scrapRequestMain' |
|||
import ScrapRequestMainForm from './ScrapRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'ScrapRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
fromWarehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await ScrapRequestMainApi.getScrapRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await ScrapRequestMainApi.deleteScrapRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await ScrapRequestMainApi.exportScrapRequestMain(queryParams) |
|||
download.excel(data, '报废出库申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,506 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="承运商" prop="carrierCode"> |
|||
<el-input |
|||
v-model="queryParams.carrierCode" |
|||
placeholder="请输入承运商" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="运输方式" prop="transferMode"> |
|||
<el-select |
|||
v-model="queryParams.transferMode" |
|||
placeholder="请选择运输方式" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.TRANSFER_MODE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" prop="vehiclePlateNumber"> |
|||
<el-select |
|||
v-model="queryParams.vehiclePlateNumber" |
|||
placeholder="请选择车牌号" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.VEHICLE_PLATE_NUMBER)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从月台代码" prop="fromDockCode"> |
|||
<el-input |
|||
v-model="queryParams.fromDockCode" |
|||
placeholder="请输入从月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:transferissue-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:transferissue-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="承运商" align="center" prop="carrierCode" width="150px" /> |
|||
<el-table-column label="运输方式" align="center" prop="transferMode" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.TRANSFER_MODE" :value="scope.row.transferMode" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center" prop="vehiclePlateNumber" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.VEHICLE_PLATE_NUMBER" :value="scope.row.vehiclePlateNumber" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="从月台代码" align="center" prop="fromDockCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:transferissue-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:transferissue-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<TransferissueRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as TransferissueRequestMainApi from '@/api/wms/transferissueRequestMain' |
|||
import TransferissueRequestMainForm from './TransferissueRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'TransferissueRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
carrierCode: null, |
|||
transferMode: null, |
|||
vehiclePlateNumber: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromWarehouseCode: null, |
|||
fromDockCode: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toWarehouseCode: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await TransferissueRequestMainApi.getTransferissueRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await TransferissueRequestMainApi.deleteTransferissueRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await TransferissueRequestMainApi.exportTransferissueRequestMain(queryParams) |
|||
download.excel(data, '调拨出库申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,506 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="承运商" prop="carrierCode"> |
|||
<el-input |
|||
v-model="queryParams.carrierCode" |
|||
placeholder="请输入承运商" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="运输方式" prop="transferMode"> |
|||
<el-select |
|||
v-model="queryParams.transferMode" |
|||
placeholder="请选择运输方式" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.TRANSFER_MODE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" prop="vehiclePlateNumber"> |
|||
<el-select |
|||
v-model="queryParams.vehiclePlateNumber" |
|||
placeholder="请选择车牌号" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.VEHICLE_PLATE_NUMBER)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到月台代码" prop="toDockCode"> |
|||
<el-input |
|||
v-model="queryParams.toDockCode" |
|||
placeholder="请输入到月台代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:transferreceipt-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:transferreceipt-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="承运商" align="center" prop="carrierCode" width="150px" /> |
|||
<el-table-column label="运输方式" align="center" prop="transferMode" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.TRANSFER_MODE" :value="scope.row.transferMode" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center" prop="vehiclePlateNumber" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.VEHICLE_PLATE_NUMBER" :value="scope.row.vehiclePlateNumber" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="到月台代码" align="center" prop="toDockCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:transferreceipt-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:transferreceipt-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<TransferreceiptRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as TransferreceiptRequestMainApi from '@/api/wms/transferreceiptRequestMain' |
|||
import TransferreceiptRequestMainForm from './TransferreceiptRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'TransferreceiptRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
carrierCode: null, |
|||
transferMode: null, |
|||
vehiclePlateNumber: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
fromWarehouseCode: null, |
|||
toDockCode: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toWarehouseCode: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await TransferreceiptRequestMainApi.getTransferreceiptRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await TransferreceiptRequestMainApi.deleteTransferreceiptRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await TransferreceiptRequestMainApi.exportTransferreceiptRequestMain(queryParams) |
|||
download.excel(data, '调拨入库申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,410 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="并发乐观锁" prop="concurrencyStamp"> |
|||
<el-input |
|||
v-model="queryParams.concurrencyStamp" |
|||
placeholder="请输入并发乐观锁" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:unplannedissue-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:unplannedissue-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="并发乐观锁" align="center" prop="concurrencyStamp" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:unplannedissue-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:unplannedissue-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<UnplannedissueRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as UnplannedissueRequestMainApi from '@/api/wms/unplannedissueRequestMain' |
|||
import UnplannedissueRequestMainForm from './UnplannedissueRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'UnplannedissueRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
fromWarehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
concurrencyStamp: null, |
|||
fromLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await UnplannedissueRequestMainApi.getUnplannedissueRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await UnplannedissueRequestMainApi.deleteUnplannedissueRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await UnplannedissueRequestMainApi.exportUnplannedissueRequestMain(queryParams) |
|||
download.excel(data, '计划外出库申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,399 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:unplannedreceipt-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:unplannedreceipt-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库区代码" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:unplannedreceipt-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:unplannedreceipt-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<UnplannedreceiptRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as UnplannedreceiptRequestMainApi from '@/api/wms/unplannedreceiptRequestMain' |
|||
import UnplannedreceiptRequestMainForm from './UnplannedreceiptRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'UnplannedreceiptRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
toWarehouseCode: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
toLocationTypes: null, |
|||
toAreaCodes: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await UnplannedreceiptRequestMainApi.getUnplannedreceiptRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await UnplannedreceiptRequestMainApi.deleteUnplannedreceiptRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await UnplannedreceiptRequestMainApi.exportUnplannedreceiptRequestMain(queryParams) |
|||
download.excel(data, '计划外入库申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,464 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="车间代码" prop="workshopCode"> |
|||
<el-input |
|||
v-model="queryParams.workshopCode" |
|||
placeholder="请输入车间代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从仓库代码" prop="fromWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.fromWarehouseCode" |
|||
placeholder="请输入从仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到仓库代码" prop="toWarehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.toWarehouseCode" |
|||
placeholder="请输入到仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="从库位类型范围" prop="fromLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.fromLocationTypes" |
|||
placeholder="请选择从库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="到库位类型范围" prop="toLocationTypes"> |
|||
<el-select |
|||
v-model="queryParams.toLocationTypes" |
|||
placeholder="请选择到库位类型范围" |
|||
clearable |
|||
class="!w-240px" |
|||
> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.LOCATION_TYPE)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="从库区代码范围" prop="fromAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.fromAreaCodes" |
|||
placeholder="请输入从库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="到库区代码范围" prop="toAreaCodes"> |
|||
<el-input |
|||
v-model="queryParams.toAreaCodes" |
|||
placeholder="请输入到库区代码范围" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="使用在途库" prop="useOnTheWayLocation"> |
|||
<el-input |
|||
v-model="queryParams.useOnTheWayLocation" |
|||
placeholder="请输入使用在途库" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:issue-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:issue-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="车间代码" align="center" prop="workshopCode" width="150px" /> |
|||
<el-table-column label="从仓库代码" align="center" prop="fromWarehouseCode" width="150px" /> |
|||
<el-table-column label="到仓库代码" align="center" prop="toWarehouseCode" width="150px" /> |
|||
<el-table-column label="从库位类型范围" align="center" prop="fromLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.fromLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="到库位类型范围" align="center" prop="toLocationTypes" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.LOCATION_TYPE" :value="scope.row.toLocationTypes" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="从库区代码范围" align="center" prop="fromAreaCodes" width="150px" /> |
|||
<el-table-column label="到库区代码范围" align="center" prop="toAreaCodes" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="使用在途库" align="center" prop="useOnTheWayLocation" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:issue-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:issue-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<IssueRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as IssueRequestMainApi from '@/api/wms/issueRequestMain' |
|||
import IssueRequestMainForm from './IssueRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'IssueRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
workshopCode: null, |
|||
fromWarehouseCode: null, |
|||
toWarehouseCode: null, |
|||
fromLocationTypes: null, |
|||
toLocationTypes: null, |
|||
fromAreaCodes: null, |
|||
toAreaCodes: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
useOnTheWayLocation: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await IssueRequestMainApi.getIssueRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await IssueRequestMainApi.deleteIssueRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await IssueRequestMainApi.exportIssueRequestMain(queryParams) |
|||
download.excel(data, '发料申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
@ -0,0 +1,378 @@ |
|||
<template> |
|||
<ContentWrap> |
|||
<!-- 搜索工作栏 --> |
|||
<el-form |
|||
class="-mb-15px" |
|||
:model="queryParams" |
|||
ref="queryFormRef" |
|||
:inline="true" |
|||
label-width="68px" |
|||
> |
|||
<el-form-item label="发料记录单号" prop="issueRecordNumber"> |
|||
<el-input |
|||
v-model="queryParams.issueRecordNumber" |
|||
placeholder="请输入发料记录单号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="仓库代码" prop="warehouseCode"> |
|||
<el-input |
|||
v-model="queryParams.warehouseCode" |
|||
placeholder="请输入仓库代码" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="申请时间" prop="requestTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.requestTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="截止时间" prop="dueTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.dueTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="部门" prop="departmentCode"> |
|||
<el-input |
|||
v-model="queryParams.departmentCode" |
|||
placeholder="请输入部门" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable class="!w-240px"> |
|||
<el-option |
|||
v-for="dict in getStrDictOptions(DICT_TYPE.REQUEST_STATUS)" |
|||
:key="dict.value" |
|||
:label="dict.label" |
|||
:value="dict.value" |
|||
/> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新时间" prop="updateTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.updateTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="最后更新者用户名" prop="updater"> |
|||
<el-input |
|||
v-model="queryParams.updater" |
|||
placeholder="请输入最后更新者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="单据号" prop="number"> |
|||
<el-input |
|||
v-model="queryParams.number" |
|||
placeholder="请输入单据号" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型" prop="businessType"> |
|||
<el-input |
|||
v-model="queryParams.businessType" |
|||
placeholder="请输入业务类型" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input |
|||
v-model="queryParams.remark" |
|||
placeholder="请输入备注" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建时间" prop="createTime"> |
|||
<el-date-picker |
|||
v-model="queryParams.createTime" |
|||
value-format="YYYY-MM-DD HH:mm:ss" |
|||
type="daterange" |
|||
start-placeholder="开始日期" |
|||
end-placeholder="结束日期" |
|||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="创建者用户名" prop="creator"> |
|||
<el-input |
|||
v-model="queryParams.creator" |
|||
placeholder="请输入创建者用户名" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动提交" prop="autoCommit"> |
|||
<el-input |
|||
v-model="queryParams.autoCommit" |
|||
placeholder="请输入自动提交" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动通过" prop="autoAgree"> |
|||
<el-input |
|||
v-model="queryParams.autoAgree" |
|||
placeholder="请输入自动通过" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="自动执行" prop="autoExecute"> |
|||
<el-input |
|||
v-model="queryParams.autoExecute" |
|||
placeholder="请输入自动执行" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item label="直接生成记录" prop="directCreateRecord"> |
|||
<el-input |
|||
v-model="queryParams.directCreateRecord" |
|||
placeholder="请输入直接生成记录" |
|||
clearable |
|||
@keyup.enter="handleQuery" |
|||
class="!w-240px" |
|||
/> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="info" plain @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
|||
<el-button type="info" plain @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|||
<el-button |
|||
type="primary" |
|||
@click="openForm('create')" |
|||
v-hasPermi="['wms:onlinesettlement-request-main:create']" |
|||
> |
|||
<Icon icon="ep:plus" class="mr-5px" /> 新增 |
|||
</el-button> |
|||
<el-button |
|||
type="success" |
|||
@click="handleExport" |
|||
:loading="exportLoading" |
|||
v-hasPermi="['wms:onlinesettlement-request-main:export']" |
|||
> |
|||
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|||
</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
</ContentWrap> |
|||
|
|||
<!-- 列表 --> |
|||
<ContentWrap> |
|||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"> |
|||
<el-table-column label="发料记录单号" align="center" prop="issueRecordNumber" width="150px" /> |
|||
<el-table-column label="仓库代码" align="center" prop="warehouseCode" width="150px" /> |
|||
<el-table-column |
|||
label="申请时间" |
|||
align="center" |
|||
prop="requestTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column |
|||
label="截止时间" |
|||
align="center" |
|||
prop="dueTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="部门" align="center" prop="departmentCode" width="150px" /> |
|||
<el-table-column label="状态" align="center" prop="status" width="150px"> |
|||
<template #default="scope"> |
|||
<dict-tag :type="DICT_TYPE.REQUEST_STATUS" :value="scope.row.status" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column |
|||
label="最后更新时间" |
|||
align="center" |
|||
prop="updateTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="最后更新者用户名" align="center" prop="updater" width="150px" /> |
|||
<el-table-column label="单据号" align="center" prop="number" width="150px" /> |
|||
<el-table-column label="业务类型" align="center" prop="businessType" width="150px" /> |
|||
<el-table-column label="备注" align="center" prop="remark" width="150px" /> |
|||
<el-table-column |
|||
label="创建时间" |
|||
align="center" |
|||
prop="createTime" |
|||
:formatter="dateFormatter" |
|||
width="150px" |
|||
/> |
|||
<el-table-column label="创建者用户名" align="center" prop="creator" width="150px" /> |
|||
<el-table-column label="自动提交" align="center" prop="autoCommit" width="150px" /> |
|||
<el-table-column label="自动通过" align="center" prop="autoAgree" width="150px" /> |
|||
<el-table-column label="自动执行" align="center" prop="autoExecute" width="150px" /> |
|||
<el-table-column label="直接生成记录" align="center" prop="directCreateRecord" width="150px" /> |
|||
<el-table-column label="操作" align="center" width="150px" fixed="right"> |
|||
<template #default="scope"> |
|||
<el-button |
|||
link |
|||
type="primary" |
|||
@click="openForm('update', scope.row.id)" |
|||
v-hasPermi="['wms:onlinesettlement-request-main:update']" |
|||
> |
|||
编辑 |
|||
</el-button> |
|||
<el-button |
|||
link |
|||
type="danger" |
|||
@click="handleDelete(scope.row.id)" |
|||
v-hasPermi="['wms:onlinesettlement-request-main:delete']" |
|||
> |
|||
删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<!-- 分页 --> |
|||
<Pagination |
|||
:total="total" |
|||
v-model:page="queryParams.pageNo" |
|||
v-model:limit="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
</ContentWrap> |
|||
|
|||
<!-- 表单弹窗:添加/修改 --> |
|||
<OnlinesettlementRequestMainForm ref="formRef" @success="getList" /> |
|||
</template> |
|||
|
|||
<script setup lang="ts"> |
|||
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|||
import { dateFormatter } from '@/utils/formatTime' |
|||
import download from '@/utils/download' |
|||
import * as OnlinesettlementRequestMainApi from '@/api/wms/onlinesettlementRequestMain' |
|||
import OnlinesettlementRequestMainForm from './OnlinesettlementRequestMainForm.vue' |
|||
|
|||
defineOptions({ name: 'OnlinesettlementRequestMain' }) |
|||
|
|||
const message = useMessage() // 消息弹窗 |
|||
const { t } = useI18n() // 国际化 |
|||
|
|||
const loading = ref(true) // 列表的加载中 |
|||
const total = ref(0) // 列表的总页数 |
|||
const list = ref([]) // 列表的数据 |
|||
const queryParams = reactive({ |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
issueRecordNumber: null, |
|||
warehouseCode: null, |
|||
requestTime: [], |
|||
dueTime: [], |
|||
departmentCode: null, |
|||
status: null, |
|||
updateTime: [], |
|||
updater: null, |
|||
number: null, |
|||
businessType: null, |
|||
remark: null, |
|||
createTime: [], |
|||
creator: null, |
|||
autoCommit: null, |
|||
autoAgree: null, |
|||
autoExecute: null, |
|||
directCreateRecord: null |
|||
}) |
|||
const queryFormRef = ref() // 搜索的表单 |
|||
const exportLoading = ref(false) // 导出的加载中 |
|||
|
|||
/** 查询列表 */ |
|||
const getList = async () => { |
|||
loading.value = true |
|||
try { |
|||
const data = await OnlinesettlementRequestMainApi.getOnlinesettlementRequestMainPage(queryParams) |
|||
list.value = data.list |
|||
total.value = data.total |
|||
} finally { |
|||
loading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 搜索按钮操作 */ |
|||
const handleQuery = () => { |
|||
queryParams.pageNo = 1 |
|||
getList() |
|||
} |
|||
|
|||
/** 重置按钮操作 */ |
|||
const resetQuery = () => { |
|||
queryFormRef.value.resetFields() |
|||
handleQuery() |
|||
} |
|||
|
|||
/** 添加/修改操作 */ |
|||
const formRef = ref() |
|||
const openForm = (type: string, id?: number) => { |
|||
formRef.value.open(type, id) |
|||
} |
|||
|
|||
/** 删除按钮操作 */ |
|||
const handleDelete = async (id: number) => { |
|||
try { |
|||
// 删除的二次确认 |
|||
await message.delConfirm() |
|||
// 发起删除 |
|||
await OnlinesettlementRequestMainApi.deleteOnlinesettlementRequestMain(id) |
|||
message.success(t('common.delSuccess')) |
|||
// 刷新列表 |
|||
await getList() |
|||
} catch {} |
|||
} |
|||
|
|||
/** 导出按钮操作 */ |
|||
const handleExport = async () => { |
|||
try { |
|||
// 导出的二次确认 |
|||
await message.exportConfirm() |
|||
// 发起导出 |
|||
exportLoading.value = true |
|||
const data = await OnlinesettlementRequestMainApi.exportOnlinesettlementRequestMain(queryParams) |
|||
download.excel(data, '上线结算申请主.xls') |
|||
} catch { |
|||
} finally { |
|||
exportLoading.value = false |
|||
} |
|||
} |
|||
|
|||
/** 初始化 **/ |
|||
onMounted(() => { |
|||
getList() |
|||
}) |
|||
</script> |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue