|
|
@ -177,13 +177,108 @@ const butttondata = (row) => { |
|
|
|
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.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
|
let aaa = { |
|
|
|
"id": "1809190002130023642", |
|
|
|
"requestNumber": "REQ1720231128-0001", |
|
|
|
"deliverPlanNumber": "REQ0120231116-0001", |
|
|
|
"customerDeliverNumber": null, |
|
|
|
"customerCode": "customer01", |
|
|
|
"customerDockCode": "测试", |
|
|
|
"deliverDock": null, |
|
|
|
"carrierCode": "cys-001", |
|
|
|
"transferMode": "", |
|
|
|
"vehiclePlateNumber": "", |
|
|
|
"fromWarehouseCode": null, |
|
|
|
"toWarehouseCode": null, |
|
|
|
"requestTime": 1701137233000, |
|
|
|
"requestDueTime": 0, |
|
|
|
"status": "2", |
|
|
|
"expiredTime": null, |
|
|
|
"updateTime": 1701137233000, |
|
|
|
"updater": "1", |
|
|
|
"jobStageStatus": null, |
|
|
|
"priority": null, |
|
|
|
"priorityincrement": null, |
|
|
|
"departmentCode": "研发部门", |
|
|
|
"acceptUserId": null, |
|
|
|
"acceptTime": null, |
|
|
|
"completeUserId": "1", |
|
|
|
"completeTime": 1701137339000, |
|
|
|
"fromLocationTypes": "FG", |
|
|
|
"toLocationTypes": "CUST", |
|
|
|
"number": "JOB2420231128-0001", |
|
|
|
"businessType": "DeliverJob", |
|
|
|
"remark": "", |
|
|
|
"createTime": 1701137233000, |
|
|
|
"creator": "1", |
|
|
|
"ruleUserId": null, |
|
|
|
"fromAreaCodes": "采购在途库", |
|
|
|
"toAreaCodes": "采购在途库", |
|
|
|
"fromDockCode": null, |
|
|
|
"autoComplete": "FALSE", |
|
|
|
"allowModifyLocation": "TRUE", |
|
|
|
"allowModifyQty": "TRUE", |
|
|
|
"allowBiggerQty": "TRUE", |
|
|
|
"allowSmallerQty": "TRUE", |
|
|
|
"allowModifyInventoryStatus": "TRUE", |
|
|
|
"allowContinuousScanning": "TRUE", |
|
|
|
"allowPartialComplete": "TRUE", |
|
|
|
"allowModifyBatch": "FALSE", |
|
|
|
"allowModifyPackingNumber": "FALSE", |
|
|
|
"subList": [{ |
|
|
|
"id": "1809190001245559365", |
|
|
|
"soNumber": "222", |
|
|
|
"soLine": "1", |
|
|
|
"packingNumber": "PN20230112300001", |
|
|
|
"batch": "20231123", |
|
|
|
"inventoryStatus": null, |
|
|
|
"ownerCode": null, |
|
|
|
"containerNumber": null, |
|
|
|
"fromLocationCode": "INSPECT", |
|
|
|
"toLocationCode": null, |
|
|
|
"itemCode": "THILDD0A701AG", |
|
|
|
"itemName": "HL后雾灯(新)-右\r\n", |
|
|
|
"itemDesc1": "HL后雾灯(新)-右\r\n", |
|
|
|
"itemDesc2": "", |
|
|
|
"projectCode": "P0001", |
|
|
|
"qty": 1, |
|
|
|
"uom": "EA", |
|
|
|
"number": "JOB2420231128-0001", |
|
|
|
"remark": "", |
|
|
|
"createTime": 1701137234000, |
|
|
|
"creator": "1", |
|
|
|
"toPackingNumber": null, |
|
|
|
"toContainerNumber": null, |
|
|
|
"toBatch": null, |
|
|
|
"handleQty": null, |
|
|
|
"toInventoryStatus": null, |
|
|
|
recordLst: [{ |
|
|
|
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', |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
handleHandle(aaa) |
|
|
|
console.log('列表-操作按钮事件-执行') |
|
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
@ -200,6 +295,15 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
|
} |
|
|
|
|
|
|
|
const handleHandle = async (data) => { |
|
|
|
try { |
|
|
|
await message.confirm(t('common.confirmHandle')) |
|
|
|
await DeliverJobMainApi.executeDeliverJobMain(data) |
|
|
|
message.success(t('common.handleSuccess')) |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
const handleExport = async () => { |
|
|
|