|
@ -174,9 +174,9 @@ const isShowMainButton = (row,val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
@ -188,12 +188,22 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
console.log('列表-操作按钮事件-关闭') |
|
|
handleClose(row.id) |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
|
|
|
const handleClose = async (id: number) => { |
|
|
|
|
|
try { |
|
|
|
|
|
await message.confirm(t('common.confirmColse')) |
|
|
|
|
|
await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) |
|
|
|
|
|
message.success(t('common.closeSuccess')) |
|
|
|
|
|
await getList() |
|
|
|
|
|
} catch {} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
@ -209,7 +219,7 @@ const handleExport = async () => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
const data = await PurchasereceiptJobMainApi.exportPurchasereceiptJobMain(setSearchParams) |
|
|
const data = await PurchasereceiptJobMainApi.exportPurchasereceiptJobMain(setSearchParams) |
|
|
download.excel(data, '采购收货任务主.xls') |
|
|
download.excel(data, '采购收货任务主.xlsx') |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
|