Browse Source

SCP待开票

intex_online20241111
songguoqiang 1 week ago
parent
commit
7abab17e76
  1. 16
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

16
src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

@ -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()

Loading…
Cancel
Save