|
|
@ -74,7 +74,7 @@ import * as PurchasereceiptJobDetailApi from '@/api/wms/purchasereceiptJobDetail |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import {exportSparereceiptJobMain} from "@/api/wms/purchasereceiptJobMain"; |
|
|
|
// 采购收货任务主 |
|
|
|
// 备件收货任务主 |
|
|
|
defineOptions({ name: 'PurchasereceiptJobMain' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -178,9 +178,9 @@ const butttondata = (row,$index) => { |
|
|
|
return [] |
|
|
|
} |
|
|
|
return [ |
|
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:accept'}), // 承接 |
|
|
|
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-job-main:abandon'}), // 放弃 |
|
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:accept'}), // 承接 |
|
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:purchasereceipt-job-main:abandon'}), // 放弃 |
|
|
|
defaultButtons.mainListJobRecBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:execute'}), // 收货 |
|
|
|
] |
|
|
|
} |
|
|
@ -214,7 +214,7 @@ const handleExecuteSpare = async (id: number) => { |
|
|
|
/** 放弃按钮操作 */ |
|
|
|
const handleAbandon = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm("是否确认放弃任务!") |
|
|
|
await message.confirm("是否确认取消承接!") |
|
|
|
await PurchasereceiptJobMainApi.abandonPurchasereceiptJobMainSpare(id) |
|
|
|
message.success("放弃成功") |
|
|
|
await getList() |
|
|
|