|
|
@ -180,110 +180,17 @@ const isShowMainButton = (row,val) => { |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
|
let aaa = { |
|
|
|
"id": 6, |
|
|
|
"requestNumber": "REQ4520240313-0003", |
|
|
|
"deliverPlanNumber": null, |
|
|
|
"fromWarehouseCode": "CKV", |
|
|
|
"toWarehouseCode": "CKV", |
|
|
|
"details": null, |
|
|
|
"requestTime": null, |
|
|
|
"requestDueTime": null, |
|
|
|
"status": "1", |
|
|
|
"expiredTime": null, |
|
|
|
"concurrencyStamp": "1", |
|
|
|
"jobStageStatus": null, |
|
|
|
"priority": null, |
|
|
|
"priorityincrement": null, |
|
|
|
"departmentCode": null, |
|
|
|
"userGroupCode": null, |
|
|
|
"acceptUserId": null, |
|
|
|
"acceptUserName": null, |
|
|
|
"acceptTime": null, |
|
|
|
"completeUserId": null, |
|
|
|
"completeUserName": null, |
|
|
|
"completeTime": null, |
|
|
|
"fromAreaTypes": "FG", |
|
|
|
"toAreaTypes": "CUST", |
|
|
|
"number": "JOB3220240314-0006", |
|
|
|
"businessType": "Stockup", |
|
|
|
"remark": null, |
|
|
|
"extraProperties": null, |
|
|
|
"siteId": null, |
|
|
|
"autoComplete": "FALSE", |
|
|
|
"allowModifyLocation": "FALSE", |
|
|
|
"allowModifyQty": "TRUE", |
|
|
|
"allowBiggerQty": "TRUE", |
|
|
|
"allowSmallerQty": "TRUE", |
|
|
|
"allowModifyInventoryStatus": "TRUE", |
|
|
|
"allowContinuousScanning": "TRUE", |
|
|
|
"allowPartialComplete": "TRUE", |
|
|
|
"ruleUserId": null, |
|
|
|
"allowModifyBatch": "FALSE", |
|
|
|
"allowModifyPackingNumber": "FALSE", |
|
|
|
"fromAreaCodes": "KQV2", |
|
|
|
"toAreaCodes": "CUST", |
|
|
|
"serialNumber": "0", |
|
|
|
"inInventoryStatuses": "OK", |
|
|
|
"outInventoryStatuses": "OK", |
|
|
|
"createTime": null, |
|
|
|
"subList": [{ |
|
|
|
"id": 1, |
|
|
|
"packingNumber": null, |
|
|
|
"batch": "2024021801", |
|
|
|
"inventoryStatus": "OK", |
|
|
|
"ownerCode": null, |
|
|
|
"containerNumber": null, |
|
|
|
"fromLocationCode": "FG", |
|
|
|
"toLocationCode": "RAW", |
|
|
|
"itemCode": "FOG-LAMP-RIGHT", |
|
|
|
"itemName": "HL后雾灯(新)-右\r\n", |
|
|
|
"itemDesc1": "HL后雾灯(新)-右\r\n", |
|
|
|
"itemDesc2": "HL后雾灯(新)-右\r\n", |
|
|
|
"projectCode": "PJ001", |
|
|
|
"qty": 1, |
|
|
|
"uom": "EA", |
|
|
|
"masterId": 6, |
|
|
|
"number": "JOB3220240314-0006", |
|
|
|
"remark": null, |
|
|
|
"siteId": "", |
|
|
|
"createTime": null, |
|
|
|
"toPackingNumber": null, |
|
|
|
"toContainerNumber": null, |
|
|
|
"toBatch": null, |
|
|
|
"handleQty": null, |
|
|
|
"toInventoryStatus": null, |
|
|
|
recordList: [{ |
|
|
|
handleQty: 10, |
|
|
|
toPackingNumber: '12', |
|
|
|
toContainerNumber: '001', |
|
|
|
toBatch: '21', |
|
|
|
toInventoryStatus: 'OK', |
|
|
|
toLocationCode: 'WIP', |
|
|
|
supplierCode: '31213', |
|
|
|
},{ |
|
|
|
handleQty: 22, |
|
|
|
toPackingNumber: 'M20230421000005', |
|
|
|
toContainerNumber: '001', |
|
|
|
toBatch: '20230808', |
|
|
|
toInventoryStatus: 'OK', |
|
|
|
toLocationCode: 'FG', |
|
|
|
supplierCode: '31213', |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
handleHandle(aaa) |
|
|
|
console.log('列表-操作按钮事件-执行') |
|
|
|
handleHandle |
|
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
|
StockupJobMainApi.abandonStockupMainJob(row.id) |
|
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
|