|
|
@ -28,7 +28,7 @@ |
|
|
|
v-model:sort="tableObject.sort" |
|
|
|
> |
|
|
|
<template #code="{row}"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, t('ts.代码'), row.code)"> |
|
|
|
<el-button type="primary" link @click="openDetail(row, t('代码'), row.code)"> |
|
|
|
<span>{{ row.code }}</span> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
@ -148,7 +148,7 @@ const butttondata = (row) =>{ |
|
|
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-invoiced:delete'}), // 删除 |
|
|
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}), |
|
|
|
{ |
|
|
|
label: t('ts.审核通过'), |
|
|
|
label: t('审核通过'), |
|
|
|
name: 'agree', |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
type: 'primary', |
|
|
@ -157,7 +157,7 @@ const butttondata = (row) =>{ |
|
|
|
hasPermi: 'wms:supplierinvoice-invoiced:agree' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.作废'), |
|
|
|
label: t('作废'), |
|
|
|
name: 'refuse', |
|
|
|
hide: isShowMainButton(row, ['1']), |
|
|
|
type: 'danger', |
|
|
@ -194,7 +194,7 @@ const formsSuccess = async (formType,data) => { |
|
|
|
}); |
|
|
|
if(isHave){ |
|
|
|
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ |
|
|
|
message.error(t('ts.失效时间要大于生效时间')) |
|
|
|
message.error(t('失效时间要大于生效时间')) |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -234,11 +234,11 @@ const handleDelete = async (id: number) => { |
|
|
|
const handleAgree = async (id : number) => { |
|
|
|
try { |
|
|
|
// 审批通过的二次确认 |
|
|
|
await message.confirm(t('ts.是否审批通过所选中数据?')) |
|
|
|
await message.confirm(t('是否审批通过所选中数据?')) |
|
|
|
tableObject.loading = true |
|
|
|
// 发起审批通过 |
|
|
|
await SupplierinvoiceInvoicedApi.agreeSupplierinvoiceInvoiced(id) |
|
|
|
message.success(t('ts.审批通过成功!')) |
|
|
|
message.success(t('审批通过成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
@ -252,11 +252,11 @@ const handleAgree = async (id : number) => { |
|
|
|
const handleRefuse = async (id : number) => { |
|
|
|
try { |
|
|
|
// 审批通过的二次确认 |
|
|
|
await message.confirm(t('ts.是否审批拒绝所选中数据?')) |
|
|
|
await message.confirm(t('是否审批拒绝所选中数据?')) |
|
|
|
tableObject.loading = true |
|
|
|
// 发起审批通过 |
|
|
|
await SupplierinvoiceInvoicedApi.refuseSupplierinvoiceInvoiced(id) |
|
|
|
message.success(t('ts.审批成功!')) |
|
|
|
message.success(t('审批成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|
await getList() |
|
|
|