Bladeren bron

修改销售发票部分

hurx 11 uur geleden
bovenliggende
commit
32fd710d09
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      src/views/bill/statementInvoice/index.vue

+ 3 - 3
src/views/bill/statementInvoice/index.vue

@@ -275,10 +275,10 @@ const handleSend = async (row?: StatementInvoiceVO) => {
   const _no = row?.statementInvoiceNo;
   const _ids = row?.id || ids.value;
   const oldValue = row.invoiceStatus; // 保存旧值
-  await proxy?.$modal.confirm('是否发送当前发票编号【' + _no + '】吗?').finally(() => (loading.value = false));
+  await proxy?.$modal.confirm('是否确认当前发票编号【' + _no + '】吗?').finally(() => (loading.value = false));
   //todo 发送
   try {
-    await changeStatus(row.id, '1'); // 传新值 1 待开票
+    await changeStatus(row.id, '2'); // 传新值 1 待开票
   } catch (e) {
     // 恢复旧值
     row.invoiceStatus = oldValue;
@@ -319,7 +319,7 @@ const buttonConfigMap: Record<number, ActionButton[]> = {
   [InvoiceStatus.DRAFT]: [
     { action: 'detail', label: '查看', handler: handleDetail, permission: 'bill:statementInvoice:edit' },
     { action: 'edit', label: '编辑', handler: handleUpdate, permission: 'bill:statementInvoice:edit' },
-    { action: 'send', label: '发送开票信息', handler: handleSend, permission: 'bill:statementInvoice:edit' },
+    { action: 'send', label: '确认', handler: handleSend, permission: 'bill:statementInvoice:edit' },
     { action: 'withdraw', label: '撤回', handler: handleWithdraw, permission: 'bill:statementInvoice:edit' },
     { action: 'obsolete', label: '作废', handler: handleObsolete, permission: 'bill:statementInvoice:remove' }
   ],