Browse Source

发票作废功能

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
d1b92f3968
  1. 5
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 2
      src/locales/en-US.ts
  3. 2
      src/locales/zh-CN.ts
  4. 28
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

5
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -97,6 +97,11 @@ export const financerejSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/financeRej?id=` + id })
}
// 作废--供应商发货申请主
export const repealSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/repeal?id=` + id })
}
// 生成记录
export const genRecordsSupplierinvoiceRequestMain = async (id) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/genRecords?id=` + id })

2
src/locales/en-US.ts

@ -939,6 +939,7 @@ export default {
:'Unit Price',
'是否发布所选中数据?':'Do you publish the selected data?',
'是否关闭所选中数据?':'Do you want to close the selected data?',
'是否作废所选中数据?':'Do you want to void the selected data?',
'发布成功!':'Release Successfully!',
'是否下架所选中数据?':'Do you want to remove selected data?',
'下架成功!':'Removed Successfully!',
@ -947,6 +948,7 @@ export default {
'是否打开所选中数据?':'Open the selected data?',
'打开成功!':'Open Successfully!',
'关闭成功!':'Closed Successfully',
'作废成功!':'Invalid successfully',
'失效时间要大于生效时间':'The expiration time must be longer than the effective time',
'供应商导入模版':'Supplier import template',
'供应商物料':'Supplier Material',

2
src/locales/zh-CN.ts

@ -939,6 +939,7 @@ export default {
:'单价',
'是否发布所选中数据?':'是否发布所选中数据?',
'是否关闭所选中数据?':'是否关闭所选中数据?',
'是否作废所选中数据?':'是否作废所选中数据?',
'发布成功!':'发布成功!',
'是否下架所选中数据?':'是否下架所选中数据?',
'下架成功!':'下架成功!',
@ -947,6 +948,7 @@ export default {
'是否打开所选中数据?':'是否打开所选中数据?',
'打开成功!':'打开成功!',
'关闭成功!':'关闭成功!',
'作废成功!':'作废成功!',
'失效时间要大于生效时间':'失效时间要大于生效时间',
'供应商导入模版':'供应商导入模版',
'供应商物料':'供应商物料',

28
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -347,6 +347,15 @@
},
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8','6'])}), //
defaultButtons.mainListPurchasePlanCloBtn({ hasPermi: 'wms:supplierinvoice-request-main:close' ,hide: isShowMainButton(row, ['1','8','6']) }), //
{
label: t('ts.作废'),
name: 'repeal',
hide: isShowMainButton(row, ['1','8','6']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:repeal'
},
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-request-main:delete'}), //
{
label: t('ts.打印'),
@ -392,6 +401,8 @@ const handleImport = () => {
handleDelete(row.masterId)
} else if( val == 'mian_print'){ //
handleDocumentPrint(row.masterId)
} else if( val == 'repeal'){ //
handleRepeal(row.masterId)
}
}
@ -456,6 +467,23 @@ const handleImport = () => {
}
}
/** 关闭按钮操作 */
const handleRepeal = async (id : number) => {
try {
//
await message.confirm(t('ts.是否作废所选中数据?'))
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.repealSupplierinvoiceRequestMain(id)
message.success(t('ts.作废成功!'))
tableObject.loading = false
//
await getList()
} catch { }finally{
tableObject.loading = false
}
}
/** 打开按钮操作 */
const handleOpe = async (id : number) => {
try {

Loading…
Cancel
Save