Browse Source

修改装配报工打印标签查询条件

hella_online_20240829
chenfang 4 months ago
parent
commit
91cca0da54
  1. 6
      src/api/wms/package/index.ts
  2. 58
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  3. 9
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

6
src/api/wms/package/index.ts

@ -112,6 +112,12 @@ export const getLabelDetailPage = async (params) => {
return await request.get({ url: `/wms/package/getLabelDetailPage`,params})
}
// 打印标签获取包装列表(装配报工专用)
export const getProductreceiptLabelDetailPage = async (params) => {
return await request.get({ url: `/wms/package/getProductreceiptLabelDetailPage`,params})
}
// 根据库存余额获取包装信息进行打印标签
export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})

58
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -116,23 +116,23 @@ const { tableObject, tableMethods } = useTable({
*/
if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold'
importFileName.value = '合格转隔离申请'
}else if ( routeName.value == 'NoktoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'NOK',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
} else if ( routeName.value == 'HoldtookRequestMain') {
importFileName.value = '物料转隔离申请'
}
// else if ( routeName.value == 'NoktoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'NokToHold'
// importFileName.value = ''
// }
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
@ -159,16 +159,18 @@ const { tableObject, tableMethods } = useTable({
toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap'
importFileName.value = '合格转报废申请'
} else if ( routeName.value == 'ScraptoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD'
}
fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else if( routeName.value == 'InventorymoveRequestMain'){
// else if ( routeName.value == 'ScraptoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'ScrapToHold'
// importFileName.value = ''
// }
else if( routeName.value == 'InventorymoveRequestMain'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
@ -639,7 +641,7 @@ const handleExport = async () => {
exportLoading.value = true
if(routeName.value == 'OktoholdRequestMain'){
const data = await InventorymoveRequestMainApi.exportOkToHoldRequestMain(tableObject.params)
download.excel(data, '合格转隔离申请主.xlsx')
download.excel(data, '物料转隔离申请主.xlsx')
}else if ( routeName.value == 'HoldtookRequestMain') {
const data = await InventorymoveRequestMainApi.exportHoldToOkRequestMain(tableObject.params)
download.excel(data, '隔离转合格申请主.xlsx')
@ -649,10 +651,12 @@ const handleExport = async () => {
}else if ( routeName.value == 'OktoscrapRequestMain') {
const data = await InventorymoveRequestMainApi.exportOkToScrapRequestMain(tableObject.params)
download.excel(data, '合格转报废申请主.xlsx')
}else if ( routeName.value == 'ScraptoholdRequestMain') {
const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params)
download.excel(data, '报废转隔离申请主.xlsx')
}else{
}
// else if ( routeName.value == 'ScraptoholdRequestMain') {
// const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params)
// download.excel(data, '.xlsx')
// }
else{
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(tableObject.params)
download.excel(data, '库存转移申请主.xlsx')
}

9
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -277,11 +277,12 @@ const handleCreatePutawayRequest = async (number:string) => {
const searchTableRef = ref()
const labelType = ref('') //
const labelPrint = async (row) => {
console.log(7777,row);
tableObject.loading = true
//
let resType = await PackageApi.getPackagePage({
requestNumber: row.requestNumber==null?row.number:row.requestNumber
requestNumber: row.requestNumber==null?row.number:row.requestNumber,
number: row.packingNumber==null?row.number:row.packingNumber
})
if(resType.list.length > 0) {
if (resType.list[0].productionLineCode != null) {
@ -290,10 +291,10 @@ const labelPrint = async (row) => {
labelType.value = 'cg'
}
}
const defaultParams = {'moduleName':'productreceipt_assemble','recordNumber':row.requestNumber==null?row.number:row.requestNumber}
const defaultParams = {'moduleName':'productreceipt_assemble','recordNumber':row.requestNumber==null?row.number:row.requestNumber,'number':row.number==null?row.number:row.packingNumber }
const {tableObject:tableObjectPrint ,tableMethods} = useTable({
defaultParams,
getListApi: PackageApi.getLabelDetailPage //
getListApi: PackageApi.getProductreceiptLabelDetailPage //
})
//

Loading…
Cancel
Save