Browse Source

发票寄出流程增加

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
d7a1e60465
  1. 5
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 30
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

@ -77,6 +77,11 @@ export const rejSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/rej?id=` + id })
}
// 供应商--发票寄出
export const invoiceSentOutSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/invoiceSentOut?id=` + id })
}
// 财务--审批通过供应商发货申请主
export const financeappSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/financeApp?id=` + id })

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

@ -271,6 +271,15 @@
link: true, //
hasPermi: ''
},
{
label: '发票寄出确认',
name: 'invoice_sent_out',
hide: isShowMainButton(row, ['8']),
type: 'danger',
color: '',
link: true, //
hasPermi: ''
},
{
label: '财务审批通过',
name: 'finance_mainPlanSub',
@ -291,7 +300,7 @@
},
// defaultButtons.mainListPlanAppBtn({ hide: isShowMainButton(row, ['2']) }), //
//defaultButtons.mainListPlanTurBtn({ hide: isShowMainButton(row, ['2']) }), //
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','6'])}), //
defaultButtons.mainListEditBtn({ hasPermi: 'wms:supplierinvoice-request-main:update' , hide: isShowMainButton(row, ['1','8'])}), //
defaultButtons.mainListPurchasePlanCloBtn({ hide: isShowMainButton(row, ['1', '2','4']) }), //
//
// {
@ -326,6 +335,8 @@ const handleImport = () => {
handleApp(row.id)
} else if (val == 'purchase_mainPlanTur') { //
handleTur(row.id)
} else if (val == 'invoice_sent_out') { //
handleInvoiceSentOut(row.id)
} else if(val == 'finance_mainPlanSub'){ //
handleFinanceApp(row.id)
} else if(val == 'finance_mainPlanTur'){ //
@ -478,6 +489,23 @@ const handleImport = () => {
}
}
/** 发票寄出确认按钮操作 */
const handleInvoiceSentOut = async (id : number) => {
try {
//
await message.confirm('是否确认发票寄出选中数据?')
tableObject.loading = true
//
await SupplierinvoiceRequestMainApi.invoiceSentOutSupplierinvoiceRequestMain(id)
message.success(t('发票寄出成功!'))
tableObject.loading = false
//
await getList()
} catch { }finally{
tableObject.loading = false
}
}
/** 驳回按钮操作 */
const handleFinaceTur = async (id : number) => {
try {

Loading…
Cancel
Save