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