|
|
@ -51,7 +51,7 @@ |
|
|
|
@searchTableSuccess="searchTableSuccess" --> |
|
|
|
<BasicForm |
|
|
|
ref="basicFormRef" |
|
|
|
@success="()=>{alert(1)}" |
|
|
|
@success="submitForm" |
|
|
|
:rules="SupplierinvoiceRecordMainTransferRules" |
|
|
|
:formAllSchemas="SupplierinvoiceRecordMainTransfer.allSchemas" |
|
|
|
:isBusiness="false" |
|
|
@ -246,16 +246,16 @@ const butttondata = (row,$index) => { |
|
|
|
hasPermi: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
}, |
|
|
|
// { |
|
|
|
// label: t('ts.发票回转'), |
|
|
|
// name: 'transfer', |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// hide:!(row['status']==5&&!!row['voucherNumber']), |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// } |
|
|
|
{ |
|
|
|
label: t('ts.发票回转'), |
|
|
|
name: 'transfer', |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|
hasPermi: 'wms:supplierinvoice-record-main:reverse', |
|
|
|
hide:!(row['status']==5&&!!row['voucherNumber']), |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
/** 添加/修改操作 */ |
|
|
@ -270,6 +270,21 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//发票回转 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
data.reverseInvoiceJournal = 'APINVCOR' |
|
|
|
data.adjustmentJournal = 'APADJ' |
|
|
|
console.log('发票回转',formType, data) |
|
|
|
loadStart() |
|
|
|
try{ |
|
|
|
await SupplierinvoiceRecordMainApi.reverseSupplierinvoiceRecordMain(data) |
|
|
|
message.success(t('ts.发票回转成功')) |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
const { wsCache } = useCache() |
|
|
|
/** 详情操作 */ |
|
|
|