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