|
@ -184,45 +184,46 @@ const butttondata = (row) => { |
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
|
|
|
|
|
|
let aaa = { |
|
|
let aaa = { |
|
|
"id": "1809200001805505470", |
|
|
"id": "1809200001805505476", |
|
|
"requestNumber": "REQ1820231124-0007", |
|
|
"requestNumber": "REQ1820231205-0005", |
|
|
"deliverRecordNumber": "D001", |
|
|
"deliverRecordNumber": "JOB2420231205-0002", |
|
|
"deliverPlanNumber": "F001", |
|
|
"deliverPlanNumber": "DP20231205-0002", |
|
|
"customerCode": "K001", |
|
|
"customerCode": "CF", |
|
|
"customerDockCode": "CD001", |
|
|
"customerDockCode": "CFCKYT", |
|
|
"receiptDock": null, |
|
|
"receiptDock": null, |
|
|
"carrierCode": "", |
|
|
"carrierCode": "cys-001", |
|
|
"transferMode": "", |
|
|
"transferMode": "AIR", |
|
|
"vehiclePlateNumber": "", |
|
|
"vehiclePlateNumber": "车牌号", |
|
|
"fromWarehouseCode": null, |
|
|
"fromWarehouseCode": null, |
|
|
"toWarehouseCode": null, |
|
|
"toWarehouseCode": null, |
|
|
"requestTime": null, |
|
|
"requestTime": 1701756307000, |
|
|
"requestDueTime": null, |
|
|
"requestDueTime": 1704470400000, |
|
|
"status": "2", |
|
|
"status": "2", |
|
|
"expiredTime": null, |
|
|
"expiredTime": null, |
|
|
"updateTime": 1700788390000, |
|
|
"updateTime": 1701764165000, |
|
|
"updater": "1", |
|
|
"updater": "1", |
|
|
"jobStageStatus": null, |
|
|
"jobStageStatus": null, |
|
|
"priority": null, |
|
|
"priority": null, |
|
|
"priorityIncrement": null, |
|
|
"priorityIncrement": null, |
|
|
"departmentCode": "研发部门", |
|
|
"departmentCode": "研发部门", |
|
|
"acceptUserId": null, |
|
|
"acceptUserId": "1", |
|
|
"acceptTime": null, |
|
|
"acceptTime": 1701764178000, |
|
|
"completeUserId": null, |
|
|
"completeUserId": null, |
|
|
"completeTime": null, |
|
|
"completeTime": null, |
|
|
"fromLocationTypes": "INSP", |
|
|
"fromLocationTypes": "INSP,HOLD", |
|
|
"toLocationTypes": "HOLD", |
|
|
"toLocationTypes": "HOLD,INSP", |
|
|
"number": "JOB2520231124-0007", |
|
|
"number": "JOB2520231205-0014", |
|
|
"businessType": "CustomerRejectJob", |
|
|
"businessType": "CustomerRejectJob", |
|
|
"remark": "", |
|
|
"remark": "主表备注", |
|
|
"createTime": 1700788390000, |
|
|
"createTime": 1701764165000, |
|
|
"creator": "1", |
|
|
"creator": "1", |
|
|
"fromAreaCodes": "采购在途库", |
|
|
"fromAreaCodes": "采购在途库", |
|
|
"toAreaCodes": "采购在途库", |
|
|
"toAreaCodes": "采购在途库", |
|
|
"toDockCode": null, |
|
|
"toDockCode": null, |
|
|
"autoComplete": "FALSE", |
|
|
"autoComplete": "FALSE", |
|
|
"allowModifyLocation": "TRUE", |
|
|
"allowModifyLocation": "FALSE", |
|
|
"allowModifyQty": "TRUE", |
|
|
"allowModifyQty": "TRUE", |
|
|
"allowBiggerQty": "TRUE", |
|
|
"allowBiggerQty": "TRUE", |
|
|
"allowSmallerQty": "TRUE", |
|
|
"allowSmallerQty": "TRUE", |
|
@ -231,43 +232,58 @@ const buttonTableClick = async (val, row) => { |
|
|
"allowPartialComplete": "TRUE", |
|
|
"allowPartialComplete": "TRUE", |
|
|
"allowModifyBatch": "FALSE", |
|
|
"allowModifyBatch": "FALSE", |
|
|
"allowModifyPackingNumber": "FALSE", |
|
|
"allowModifyPackingNumber": "FALSE", |
|
|
|
|
|
"subList": [{ |
|
|
"subList": [{"id": "1809200000441442033", |
|
|
"id": "1809200000441442040", |
|
|
"soNumber": "222", |
|
|
"soNumber": null, |
|
|
"soLine": "22", |
|
|
"soLine": null, |
|
|
"packingNumber": "P20230427000026", |
|
|
"packingNumber": "testCF", |
|
|
"batch": "20231120001", |
|
|
"batch": "20230808", |
|
|
"inventoryStatus": "OK", |
|
|
"inventoryStatus": "OK", |
|
|
"ownerCode": null, |
|
|
"ownerCode": null, |
|
|
"containerNumber": "", |
|
|
"containerNumber": null, |
|
|
"fromLocationCode": "INSPECT", |
|
|
"fromLocationCode": "Loc_testCF", |
|
|
"toLocationCode": "CF1111", |
|
|
"toLocationCode": "INSPECT", |
|
|
"itemCode": "CE115F11161AG", |
|
|
"itemCode": "testCF", |
|
|
"itemName": null, |
|
|
"itemName": null, |
|
|
"itemDesc1": null, |
|
|
"itemDesc1": null, |
|
|
"itemDesc2": null, |
|
|
"itemDesc2": null, |
|
|
"projectCode": null, |
|
|
"projectCode": null, |
|
|
"qty": 5, |
|
|
"qty": 22, |
|
|
"uom": null, |
|
|
"uom": "EA", |
|
|
"number": null, |
|
|
"number": "REQ1820231206-0001", |
|
|
"remark": "", |
|
|
"remark": "子表备注", |
|
|
"createtime": null, |
|
|
"createtime": null, |
|
|
"creator": "1", |
|
|
"creator": "1" |
|
|
handleQty: 10, |
|
|
|
|
|
toPackingNumber: '12', |
|
|
|
|
|
toContainerNumber: '001', |
|
|
|
|
|
toBatch: '21', |
|
|
|
|
|
toInventoryStatus: 'OK', |
|
|
|
|
|
supplierCode: '31213', |
|
|
|
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
handleHandle(aaa) |
|
|
handleHandle(aaa) |
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
|
|
|
await message.confirm('确认要放弃吗?') |
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
|
|
|
CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.id).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
getList() |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
|
|
|
await message.confirm('确认要关闭吗?') |
|
|
console.log('列表-操作按钮事件-关闭') |
|
|
console.log('列表-操作按钮事件-关闭') |
|
|
|
|
|
CustomerreturnJobMainApi.closeCustomerreturnJobMain(row.id).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
getList() |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
|
|
|
await message.confirm('确认要承接吗?') |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
|
|
CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.id).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
getList() |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|