Browse Source

WMS bug:HL-5158:隔离转合格,物料隔离,库存移动相关申请,任务,记录全改为用businessType来筛选。查询,高级查询,导出

hella_online_20240819
gaojs 3 months ago
parent
commit
47b0363b4a
  1. 62
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  2. 82
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue
  3. 102
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  4. 104
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  5. 102
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

62
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -142,67 +142,70 @@ const importFileName = ref()
*/
if ( routeName.value == 'OktoholdJobMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'HOLD',
// fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD"
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold'
importFileName.value = '合格转隔离任务'
} else if ( routeName.value == 'NoktoholdJobMain') {
tableObject.params = {
fromInventoryStatus: 'NOK',
toInventoryStatus:'HOLD',
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD',
businessType :'NokToHold'
}
fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "HOLD"
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离任务'
} else if ( routeName.value == 'HoldtookJobMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK',
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格任务'
} else if ( routeName.value == 'HoldtoscrapJobMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP',
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废任务'
} else if ( routeName.value == 'OktoscrapJobMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP',
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap'
importFileName.value = '合格转报废任务'
} else if ( routeName.value == 'ScraptoholdJobMain') {
tableObject.params = {
fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD',
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
}
fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD"
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离任务'
} else {
console.log(146 , fromInventoryStatus.value)
fromInventoryStatus.value = null
tableObject.params = {
businessType :'Move'
}
// fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动任务'
}
@ -332,6 +335,15 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

82
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -103,61 +103,68 @@ const { tableObject, tableMethods } = useTable({
*/
if ( routeName.value == 'OktoholdRecordMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus: 'HOLD',
// fromInventoryStatus: 'OK',
// toInventoryStatus: 'HOLD',
businessType:'OkToHold'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD"
importFileName.value = '合格转隔离记录'
} else if ( routeName.value == 'NoktoholdRecordMain') {
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold'
importFileName.value = '合格转隔离记录'
} else if ( routeName.value == 'NoktoholdRecordMain') {
tableObject.params = {
fromInventoryStatus: 'NOK',
toInventoryStatus:'HOLD',
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD',
businessType:'NoktoHold'
}
fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "HOLD"
importFileName.value = '不合格转隔离记录'
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NoktoHold'
importFileName.value = '不合格转隔离记录'
}else if ( routeName.value == 'HoldtookRecordMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK',
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType:'HoldtoOk'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
importFileName.value = '隔离转合格记录'
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldtoOk'
importFileName.value = '隔离转合格记录'
} else if ( routeName.value == 'HoldtoscrapRecordMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP',
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldtoScrap'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
importFileName.value = '隔离转报废记录'
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldtoScrap'
importFileName.value = '隔离转报废记录'
} else if ( routeName.value == 'OktoscrapRecordMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP',
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType:'OktoScrap'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
importFileName.value = '合格转报废记录'
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'OktoScrap'
importFileName.value = '合格转报废记录'
} else if ( routeName.value == 'ScraptoholdRecordMain') {
tableObject.params = {
fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD',
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType:'ScraptoHold'
}
fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD"
importFileName.value = '报废转隔离记录'
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScraptoHold'
importFileName.value = '报废转隔离记录'
} else {
console.log(146, fromInventoryStatus.value)
fromInventoryStatus.value = null
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动记录'
@ -281,6 +288,15 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

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

@ -115,73 +115,78 @@ const { tableObject, tableMethods } = useTable({
/**
* OktoholdRequestMain 合格转隔离
*/
if ( routeName.value == 'OktoholdRequestMain') {
if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = {
toInventoryStatus:'HOLD'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
}
toInventoryStatus.value = "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') {
else if ( routeName.value == 'NoktoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD',
businessType :'NokToHold'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'OK'
// 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'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
}
else if ( routeName.value == 'ScraptoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
}
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}
console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) {
@ -789,6 +794,15 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

104
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -116,73 +116,80 @@ const { tableObject, tableMethods } = useTable({
/**
* OktoholdRequestMain 合格转隔离
*/
if ( routeName.value == 'OktoholdRequestMain') {
if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = {
toInventoryStatus:'HOLD'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
}
toInventoryStatus.value = "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') {
else if ( routeName.value == 'NoktoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD',
businessType :'NokToHold'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'OK'
// 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'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
}
else if ( routeName.value == 'ScraptoholdRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
}
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}
console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) {
@ -803,6 +810,15 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

102
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -116,73 +116,78 @@ const { tableObject, tableMethods } = useTable({
/**
* OktoholdRequestMain 合格转隔离
*/
if ( routeName.value == 'OktoholdRequestMain') {
if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = {
toInventoryStatus:'HOLD'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
}
toInventoryStatus.value = "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') {
else if ( routeName.value == 'NoktoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK'
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD',
businessType :'NokToHold'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK"
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
}
fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
}
fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP"
// fromInventoryStatus.value = 'OK'
// 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'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
}
else if ( routeName.value == 'ScraptoholdRequestMain') {
tableObject.params = {
fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP'
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
}
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}
console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) {
@ -803,6 +808,15 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

Loading…
Cancel
Save