|
@ -133,7 +133,7 @@ const Echo = [] |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: InventorymoveJobMainApi.getInventorymoveJobMainPage // 分页接口 |
|
|
getListApi: InventorymoveJobMainApi.getInventorymoveJobMainPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|
console.log(99 , routeName.value) |
|
|
const importFileName = ref() |
|
|
// 判断 路由名称 进行条件过滤 |
|
|
// 判断 路由名称 进行条件过滤 |
|
|
/** |
|
|
/** |
|
|
* OktoholdJobMain 合格转隔离 |
|
|
* OktoholdJobMain 合格转隔离 |
|
@ -145,6 +145,7 @@ console.log(99 , routeName.value) |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'OK' |
|
|
fromInventoryStatus.value = 'OK' |
|
|
toInventoryStatus.value = "HOLD" |
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
|
|
importFileName.value = '合格转隔离任务' |
|
|
} else if ( routeName.value == 'HoldtookJobMain') { |
|
|
} else if ( routeName.value == 'HoldtookJobMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'HOLD', |
|
|
fromInventoryStatus: 'HOLD', |
|
@ -152,6 +153,7 @@ console.log(99 , routeName.value) |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
toInventoryStatus.value = "OK" |
|
|
toInventoryStatus.value = "OK" |
|
|
|
|
|
importFileName.value = '隔离转合格任务' |
|
|
} else if ( routeName.value == 'HoldtoscrapJobMain') { |
|
|
} else if ( routeName.value == 'HoldtoscrapJobMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'HOLD', |
|
|
fromInventoryStatus: 'HOLD', |
|
@ -159,6 +161,7 @@ console.log(99 , routeName.value) |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
fromInventoryStatus.value = 'HOLD' |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
|
|
|
importFileName.value = '隔离转报废任务' |
|
|
} else if ( routeName.value == 'OktoscrapJobMain') { |
|
|
} else if ( routeName.value == 'OktoscrapJobMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'OK', |
|
|
fromInventoryStatus: 'OK', |
|
@ -166,6 +169,7 @@ console.log(99 , routeName.value) |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'OK' |
|
|
fromInventoryStatus.value = 'OK' |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
toInventoryStatus.value = "SCRAP" |
|
|
|
|
|
importFileName.value = '合格转报废任务' |
|
|
} else if ( routeName.value == 'ScraptoholdJobMain') { |
|
|
} else if ( routeName.value == 'ScraptoholdJobMain') { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|
fromInventoryStatus: 'SCRAP', |
|
|
fromInventoryStatus: 'SCRAP', |
|
@ -173,9 +177,11 @@ console.log(99 , routeName.value) |
|
|
} |
|
|
} |
|
|
fromInventoryStatus.value = 'SCRAP' |
|
|
fromInventoryStatus.value = 'SCRAP' |
|
|
toInventoryStatus.value = "HOLD" |
|
|
toInventoryStatus.value = "HOLD" |
|
|
|
|
|
importFileName.value = '报废转隔离任务' |
|
|
} else { |
|
|
} else { |
|
|
console.log(146 , fromInventoryStatus.value) |
|
|
console.log(146 , fromInventoryStatus.value) |
|
|
fromInventoryStatus.value = null |
|
|
fromInventoryStatus.value = null |
|
|
|
|
|
importFileName.value = '库存移动任务' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
// 获得表格的各种操作 |
|
@ -231,90 +237,7 @@ const butttondata = (row) => { |
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
console.log('列表-操作按钮事件-执行') |
|
|
InventorymoveJobMainApi.executeInventorymoveMain(row.id) |
|
|
let aaa = { |
|
|
|
|
|
"id": 6, |
|
|
|
|
|
"requestNumber": "REQ3720231218-0003", |
|
|
|
|
|
"useOnTheWayLocation": "TRUE", |
|
|
|
|
|
"fromWarehouseCode": "W1", |
|
|
|
|
|
"requestTime": 1702868002000, |
|
|
|
|
|
"requestDueTime": 1702867958000, |
|
|
|
|
|
"status": "1", |
|
|
|
|
|
"expiredTime": 1702867958000, |
|
|
|
|
|
"updateTime": 1702868310000, |
|
|
|
|
|
"updater": "超级管理员", |
|
|
|
|
|
"jobStageStatus": null, |
|
|
|
|
|
"priority": null, |
|
|
|
|
|
"priorityIncrement": null, |
|
|
|
|
|
"departmentCode": "研发部门", |
|
|
|
|
|
"acceptUserId": null, |
|
|
|
|
|
"acceptTime": null, |
|
|
|
|
|
"completeUserId": null, |
|
|
|
|
|
"completeTime": null, |
|
|
|
|
|
"fromLocationTypes": "SCRAP", |
|
|
|
|
|
"toLocationTypes": "SCRAP", |
|
|
|
|
|
"number": "JOB1120231218-0003", |
|
|
|
|
|
"businessType": "OkToHoldJob", |
|
|
|
|
|
"remark": "主", |
|
|
|
|
|
"createTime": 1702868310000, |
|
|
|
|
|
"creator": "超级管理员", |
|
|
|
|
|
"creatorName": null, |
|
|
|
|
|
"toWarehouseCode": "W1", |
|
|
|
|
|
"fromAreaCodes": "L-R-001", |
|
|
|
|
|
"toAreaCodes": "L-R-001", |
|
|
|
|
|
"autoComplete": "FALSE", |
|
|
|
|
|
"allowModifyLocation": "FALSE", |
|
|
|
|
|
"allowModifyQty": "TRUE", |
|
|
|
|
|
"allowBiggerQty": "TRUE", |
|
|
|
|
|
"allowSmallerQty": "TRUE", |
|
|
|
|
|
"allowModifyInventoryStatus": "TRUE", |
|
|
|
|
|
"allowContinuousScanning": "TRUE", |
|
|
|
|
|
"allowPartialComplete": "TRUE", |
|
|
|
|
|
"allowModifyBatch": "FALSE", |
|
|
|
|
|
"allowModifyPackingNumber": "FALSE", |
|
|
|
|
|
"subList": [{ |
|
|
|
|
|
"id": "1809190000225116838", |
|
|
|
|
|
"itemCode": "testCF", |
|
|
|
|
|
"itemName": "陈放测试物料", |
|
|
|
|
|
"itemDesc1": "测试用", |
|
|
|
|
|
"itemDesc2": "测试用", |
|
|
|
|
|
"projectCode": "5", |
|
|
|
|
|
"qty": 1, |
|
|
|
|
|
"uom": "EA", |
|
|
|
|
|
"number": "JOB1120231218-0003", |
|
|
|
|
|
"remark": "子", |
|
|
|
|
|
"createTime": 1702868310000, |
|
|
|
|
|
"creator": "超级管理员", |
|
|
|
|
|
"packingNumber": "testCF", |
|
|
|
|
|
"containerNumber": null, |
|
|
|
|
|
"batch": "20230808", |
|
|
|
|
|
"inventoryStatus": "OK", |
|
|
|
|
|
"poNumber": null, |
|
|
|
|
|
"poLine": null, |
|
|
|
|
|
"fromLocationCode": "Loc_testCF", |
|
|
|
|
|
"toLocationCode": "L-R-001-001-1-01", |
|
|
|
|
|
"fromOwnerCode": null, |
|
|
|
|
|
"toOwnerCode": null, |
|
|
|
|
|
recordList: [{ |
|
|
|
|
|
handleQty: 10, |
|
|
|
|
|
toPackingNumber: '12', |
|
|
|
|
|
toContainerNumber: '001', |
|
|
|
|
|
toBatch: '21', |
|
|
|
|
|
toInventoryStatus: 'OK', |
|
|
|
|
|
toLocationCode: 'H03', |
|
|
|
|
|
supplierCode: '31213', |
|
|
|
|
|
},{ |
|
|
|
|
|
handleQty: 22, |
|
|
|
|
|
toPackingNumber: 'M20230421000005', |
|
|
|
|
|
toContainerNumber: '001', |
|
|
|
|
|
toBatch: '20230808', |
|
|
|
|
|
toInventoryStatus: 'OK', |
|
|
|
|
|
toLocationCode: 'SFG', |
|
|
|
|
|
supplierCode: '31213', |
|
|
|
|
|
}] |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
InventorymoveJobMainApi.executeInventorymoveMain(aaa) |
|
|
|
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
InventorymoveJobMainApi.abandonInventorymoveMain(row.id) |
|
|
InventorymoveJobMainApi.abandonInventorymoveMain(row.id) |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
@ -339,7 +262,7 @@ const handleExport = async () => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
const data = await InventorymoveJobMainApi.exportInventorymoveJobMain(tableObject.params) |
|
|
const data = await InventorymoveJobMainApi.exportInventorymoveJobMain(tableObject.params) |
|
|
download.excel(data, '库存转移任务主.xlsx') |
|
|
download.excel(data, importFileName.value + '.xlsx') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
|