Blame view

src/views/project/finance/financeList/index.vue 22.2 KB
柏杨 authored
1
2
3
<template>
  <div class="p-4">
    <BasicTable @register="registerTable">
柏杨 authored
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      <template #headerTop>
        <a-alert type="info" show-icon>
          <template #message>
            <template v-if="checkedKeys.length > 0">
              <span>已选中{{ checkedKeys.length }}条记录(可跨页)</span>
              <a-button
                :style="{ borderRadius: '5px 5px 5px 5px' }"
                type="link"
                @click="handleClearChoose"
                size="small"
                >清空</a-button
              >
            </template>
            <template v-else>
              <span>未选中任何订单</span>
            </template>
          </template>
        </a-alert>
      </template>
柏杨 authored
23
24
25
26
27
28
29
30
31
32
33
      <template #toolbar>
        <a-button
          type="primary"
          @click="handleCommit"
          v-if="role == ROLE.ADMIN || role == ROLE.FINANCE"
          :style="{ borderRadius: '5px 5px 5px 5px' }"
          >提交应收审核</a-button
        >
        <a-button
          type="primary"
          @click="handleCommitCheck"
柏杨 authored
34
35
36
37
38
39
          v-if="
            role == ROLE.ADMIN ||
            role == ROLE.FINANCE ||
            role == ROLE.BUSINESS ||
            role == ROLE.TRACKER
          "
柏杨 authored
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
          :style="{ borderRadius: '5px 5px 5px 5px' }"
          >提交应付审核</a-button
        >
        <a-button
          type="primary"
          @click="handleInvoiceAnalysis"
          :style="{ borderRadius: '5px 5px 5px 5px' }"
          v-if="role == ROLE.ADMIN || role == ROLE.FINANCE"
          >收款单分析</a-button
        >
        <a-button
          type="primary"
          @click="handleCheckSumCheck"
          v-if="role == ROLE.ADMIN || role == ROLE.FINANCE"
          :style="{ borderRadius: '5px 5px 5px 5px' }"
          >应付款汇总</a-button
        >
        <a-popconfirm
          title="请确认是否删除?"
          ok-text="是"
          cancel-text="否"
柏杨 authored
61
          @confirm="handleDeleteCheckIds"
柏杨 authored
62
63
64
65
66
67
68
69
70
        >
          <a-button type="primary" :style="{ borderRadius: '5px 5px 5px 5px' }"
            >应付款删除</a-button
          >
        </a-popconfirm>
        <a-popconfirm
          title="请确认是否删除?"
          ok-text="是"
          cancel-text="否"
柏杨 authored
71
          @confirm="handleDeleteInvoiceIds"
柏杨 authored
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        >
          <a-button type="primary" :style="{ borderRadius: '5px 5px 5px 5px' }"
            >应收款删除</a-button
          >
        </a-popconfirm>
        <FinanceEdit @register="registerFinanceEdit" @success="handleSuccess" />
        <InvoiceAnalysis @register="registerInvoiceAnalysis" />
        <TrackEdit @register="registerTrackEdit" @success="handleSuccess" />
        <InvoiceDetail @register="registerInvoiceDetail" />
        <DeductShow @register="registerDeductShow" />
        <Commit @register="registerCommit" @success="handleSuccess" />
        <EditRefundTime @register="registerEditRefundTime" @success="handleSuccess" />
        <ReUploadBgUrl @register="registerReUploadBgUrl" @success="handleSuccess" />
        <Note @register="registerNote" @success="handleSuccess" />
        <FinanceEditCheck @register="registerFinanceEditCheck" @success="handleSuccess" />
        <TrackEditCheck @register="registerTrackEditCheck" @success="handleSuccess" />
        <CheckSumCheck @register="registerCheckSumCheck" />
        <InvoiceUploadCheck @register="registerInvoiceUploadCheck" @success="handleSuccess" />
        <CheckDetailCheck @register="registerInvoiceDetailCheck" />
        <DeductShowCheck @register="registerDeductShowCheck" />
        <InvoiceShowCheck @register="registerInvoiceShowCheck" />
        <CommitCheck @register="registerCommitCheck" @success="handleSuccess" />
        <EditRefundTimeCheck @register="registerEditRefundTimeCheck" @success="handleSuccess" />
        <NoteCheck @register="registerNoteCheck" @success="handleSuccess" />
chenhang4442024 authored
96
        <QuestDrawer @register="registerQuestDrawer" @success="handleSuccess" />
柏杨 authored
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
      </template>
      <template #bodyCell="{ column, record }">
        <template v-if="column.key === 'picUrl'">
          <img :z-index="100000" :width="50" :height="50" :src="record?.smallPicUrl" />
        </template>
        <template v-if="column.key === 'action'">
          <TableAction
            :actions="[
              // {
              //   label: '财务编辑',
              //   onClick: handleFinanceEdit.bind(null, record),
              // },
              ...(role == ROLE.ADMIN || role == ROLE.FINANCE
                ? [
                    {
                      label: '财务编辑',
                      onClick: handleFinanceEdit.bind(null, record),
                    },
                  ]
                : []),
              {
                label: '跟单编辑',
                onClick: handleTrackEdit.bind(null, record),
              },
              // ...(role == ROLE.ADMIN || role == ROLE.FINANCE
              //   ? [
              //       {
              //         label: '提交审核',
              //         onClick: handleCommit.bind(null, record),
              //       },
              //     ]
              //   : []),
            ]"
            :dropDownActions="[
              {
                label: '订单信息',
                onClick: handleInvoiceDetail.bind(null, record),
              },
              {
                label: '更新报关单',
                onClick: handleReUploadBgUrl.bind(null, record),
              },
              // {
              //   label: '删除',
              //   popConfirm: {
              //     title: '是否确认删除',
              //     placement: 'left',
              //     confirm: handleDelete.bind(null, record),
              //   },
              //   // onClick: handleDelete.bind(null, record),
              // },
              {
                label: '扣款单',
                onClick: handleDeductShow.bind(null, record),
              },
              ...(role == ROLE.ADMIN
                ? [
                    {
                      label: '修改必须回款日期',
                      onClick: handleEditRefundTime.bind(null, record),
                    },
                  ]
                : []),
              {
                label: '添加备注',
                onClick: handleNote.bind(null, record),
              },
柏杨 authored
164
165
166
167
168
169
170
171
              ...(role == ROLE.FINANCE || role == ROLE.TRACKER || role == ROLE.BUSINESS
                ? [
                    {
                      label: '扣款单删除',
                      onClick: handleDeleteDeduct.bind(null, record),
                    },
                  ]
                : []),
172
173
174
                ...(role == ROLE.ADMIN
                ? [
                    {
175
                      label: '设置为已收款',
176
                      onClick: handleInvoiceSetFinishStatus.bind(null, record),
177
                      //需要设置按钮为红色。
178
179
180
                    },
                  ]
                : []),
柏杨 authored
181
182
183
184
185
186
187
188
189
190
191
192
            ]"
          />
        </template>
        <template v-if="column.key === 'action2'">
          <TableAction
            v-if="
              role == ROLE.ADMIN ||
              role == ROLE.FINANCE ||
              role == ROLE.TRACKER ||
              role == ROLE.BUSINESS
            "
            :actions="[
柏杨 authored
193
194
195
196
              ...(role == ROLE.ADMIN ||
              role == ROLE.FINANCE ||
              role == ROLE.TRACKER ||
              role == ROLE.BUSINESS
柏杨 authored
197
198
                ? [
                    {
柏杨 authored
199
                      label: '付款编辑',
柏杨 authored
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
                      onClick: handleFinanceEditCheck.bind(null, record),
                    },
                  ]
                : []),
              {
                label: '跟单编辑',
                onClick: handleTrackEditCheck.bind(null, record),
              },
              {
                label: '发票上传',
                onClick: handleInvoiceUploadCheck.bind(null, record),
              },
            ]"
            :dropDownActions="[
              // ...(role == ROLE.ADMIN || role == ROLE.FINANCE
              //   ? [
              //       {
              //         label: '提交审核',
              //         onClick: handleCommitCheck.bind(null, record),
              //       },
              //     ]
              //   : []),
              {
                label: '订单信息',
                onClick: handleDetail.bind(null, record),
              },
              // {
              //   label: '删除',
              //   popConfirm: {
              //     title: '是否确认删除',
              //     placement: 'left',
              //     confirm: handleDelete.bind(null, record),
              //   },
              //   // onClick: handleDelete.bind(null, record),
              // },
              {
                label: '生产科发票',
                onClick: handleInvoiceShowCheck.bind(null, record),
              },
              {
                label: '扣款单',
                onClick: handleDeductShowCheck.bind(null, record),
              },
              ...(role == ROLE.ADMIN
                ? [
                    {
                      label: '修改应付款日期',
                      onClick: handleEditRefundTimeCheck.bind(null, record),
                    },
                  ]
                : []),
              {
                label: '添加备注',
                onClick: handleNoteCheck.bind(null, record),
              },
柏杨 authored
255
256
257
258
259
260
261
262
              ...(role == ROLE.FINANCE || role == ROLE.TRACKER || role == ROLE.BUSINESS
                ? [
                    {
                      label: '扣款单删除',
                      onClick: handleCheckDeleteDeduct.bind(null, record),
                    },
                  ]
                : []),
263
264
265
                ...(role == ROLE.ADMIN
                ? [
                    {
266
                      label: '设置为已付款',
267
268
269
270
                      onClick: handleCheckSetFinishStatus.bind(null, record),
                    },
                  ]
                : []),
柏杨 authored
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
            ]"
          />
          <TableAction
            v-if="role == ROLE.PRODUCE"
            :actions="[
              {
                label: '发票上传',
                onClick: handleInvoiceUploadCheck.bind(null, record),
              },
              {
                label: '生产科发票',
                onClick: handleInvoiceShowCheck.bind(null, record),
              },
            ]"
          />
        </template>
      </template>
    </BasicTable>
  </div>
</template>
<script lang="ts" setup>
chenhang4442024 authored
292
  import { computed, defineComponent, onMounted, ref, watchEffect, onUnmounted } from 'vue';
柏杨 authored
293
  import { BasicTable, useTable, BasicColumn, TableAction } from '/@/components/Table';
chenhang4442024 authored
294
295
296
297
298
299
300
  import {
    searchFormSchema, 
    columns,
    setViewRichTextCallback,
    handleViewRichText,
    handleViewRichTextSimple,
  } from './finance.data';
柏杨 authored
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
  import FinanceEdit from './FinanceEdit.vue';
  import TrackEdit from './TrackEdit.vue';
  import InvoiceAnalysis from './InvoiceAnalysis.vue';
  import InvoiceDetail from './InvoiceDetail.vue';
  import DeductShow from './DeductShow.vue';
  import Commit from './Commit.vue';
  import EditRefundTime from './EditRefundTime.vue';
  import ReUploadBgUrl from './ReUploadBgUrl.vue';
  import Note from './Note.vue';
  import TrackEditCheck from './TrackEditCheck.vue';
  import FinanceEditCheck from './FinanceEditCheck.vue';
  import InvoiceUploadCheck from './InvoiceUploadCheck.vue';
  import CheckDetailCheck from './CheckDetailCheck.vue';
  import CheckSumCheck from './CheckSumCheck.vue';
  import DeductShowCheck from './DeductShowCheck.vue';
  import InvoiceShowCheck from './InvoiceShowCheck.vue';
  import CommitCheck from './CommitCheck.vue';
  import EditRefundTimeCheck from './EditRefundTimeCheck.vue';
  import NoteCheck from './NoteCheck.vue';
  import { useDrawer } from '/@/components/Drawer';
  import {
    getCheck,
    checkDelete,
    checkCommit,
    checkDetail,
    getInvoice,
    deleteInvoice,
    commit,
    getBaseInvoice,
柏杨 authored
330
331
    deleteDeduct,
    checkDeleteDeduct,
332
333
    invoiceSetFinishStatus,
    checkSetFinishStatus,
柏杨 authored
334
335
336
337
338
339
340
  } from '@/api/project/invoice';
  import { useModal } from '/@/components/Modal';
  import { CheckOutlined, FilePptOutlined } from '@ant-design/icons-vue';
  import { icon } from 'ant-design-vue';
  import { ROLE } from './type.d';
  import { useUserStoreWithOut } from '/@/store/modules/user';
  import { useMessage } from '/@/hooks/web/useMessage';
柏杨 authored
341
  import { useOrderStoreWithOut } from '/@/store/modules/order';
chenhang4442024 authored
342
  import QuestDrawer from '/@/views/project/quest/QuestDrawer.vue';
柏杨 authored
343
344
345
346
347

  const [registerInvoiceAnalysis, { openModal: openInvoiceAnalysis }] = useModal();
  const [registerFinanceEdit, { openDrawer: openFinanceEdit }] = useDrawer();
  const [registerTrackEdit, { openDrawer: openTrackEdit }] = useDrawer();
  const [registerInvoiceDetail, { openDrawer: openInvoiceDetail }] = useDrawer();
chenhang4442024 authored
348
  const [registerQuestDrawer, { openDrawer: openQuestDrawer }] = useDrawer();
柏杨 authored
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
  const [registerCommit, { openModal: openCommit }] = useModal();
  const [registerEditRefundTime, { openModal: openEditRefundTime }] = useModal();
  const [registerReUploadBgUrl, { openModal: openReUploadBgUrl }] = useModal();
  const [registerNote, { openModal: openNote }] = useModal();
  const [registerDeductShow, { openModal: openDeductShow }] = useModal();
  const [registerCheckSumCheck, { openModal: openCheckSumCheck }] = useModal();
  const [registerFinanceEditCheck, { openDrawer: openFinanceEditCheck }] = useDrawer();
  const [registerTrackEditCheck, { openDrawer: openTrackEditCheck }] = useDrawer();
  const [registerInvoiceUploadCheck, { openModal: openInvoiceUploadCheck }] = useModal();
  const [registerDeductShowCheck, { openModal: openDeductShowCheck }] = useModal();
  const [registerCommitCheck, { openModal: openCommitCheck }] = useModal();
  const [registerEditRefundTimeCheck, { openModal: openEditRefundTimeCheck }] = useModal();
  const [registerInvoiceShowCheck, { openModal: openInvoiceShowCheck }] = useModal();
  const [registerNoteCheck, { openModal: openNoteCheck }] = useModal();
  const [registerInvoiceDetailCheck, { openDrawer: openCheckDetailCheck }] = useDrawer();
  const checkedKeys = ref<Array<string | number>>([]);
  const invoiceIdKeys = ref<Array<string | number>>([]);
  const checkIdKeys = ref<Array<string | number>>([]);
柏杨 authored
367
  const orderStore = useOrderStoreWithOut();
柏杨 authored
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
  const userStore = useUserStoreWithOut();
  const user = userStore.getUserInfo;
  const role = computed(() => {
    return user?.roleSmallVO?.code;
  });
  const [registerTable, { reload: reloadTable }] = useTable({
    title: '',
    api: getInvoice,
    columns: columns,
    bordered: true,
    clickToRowSelect: false,
    rowKey: 'id',
    rowSelection: {
      type: 'checkbox',
      selectedRowKeys: checkedKeys,
      onSelect,
      onSelectAll,
    },
    formConfig: {
      labelWidth: 120,
      schemas: searchFormSchema,
      autoSubmitOnEnter: true,
    },
    useSearchForm: true,
    showTableSetting: true,
    showIndexColumn: false,
    tableSetting: {
      setting: false,
    },
    // actionColumn: {
    //   width: 330,
    //   title: 'Action',
    //   dataIndex: 'action',
    //   // slots: { customRender: 'action' },
    // },
  });
chenhang4442024 authored
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
  // 设置扣款原因查看回调函数 - 放在全局位置以确保一直有效
  setViewRichTextCallback(async (richTextId) => {
    try {
      // 获取富文本数据
      const data = await handleViewRichText(richTextId);

      // 关闭加载提示
      createMessage.destroy('richTextLoading');

      if (data) {
        // 创建一个适配QuestDrawer的记录对象
        const questRecord = {
          id: data.id,
          title: data.title || '扣款原因详情',
          contentText: data.contentText || '',
          contentImages: data.contentImages || [],
          files: data.files || [],
422
423
424
          questType: data.questType || '',
          deductAmount: data.deductAmount, // 确保传递扣款金额
          isRmb: data.isRmb // 确保传递货币类型
chenhang4442024 authored
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
        };

        // 打开抽屉组件显示数据
        openQuestDrawer(true, {
          record: questRecord,
          isUpdate: true,
          isView: true,
        });
      } else {
        // API请求失败,使用简化版函数创建模拟数据
        const fallbackData = await handleViewRichTextSimple(richTextId);

        openQuestDrawer(true, {
          record: fallbackData,
          isUpdate: true,
          isView: true,
        });
      }
    } catch (error) {
      // 关闭加载提示
      createMessage.destroy('richTextLoading');
      createMessage.error('查看扣款原因时发生错误,请联系管理员');
    }
  });
柏杨 authored
450
451
  onMounted(async () => {
    await orderStore.getDict();
chenhang4442024 authored
452
453
454
455
456
457
458
459

    // 回调函数已移到全局位置
  });

  // 组件卸载时清除回调函数
  onUnmounted(() => {
    // 清除回调函数
    setViewRichTextCallback(null);
柏杨 authored
460
461
  });
柏杨 authored
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
  // 单选函数
  async function onSelect(record, selected: boolean) {
    if (selected) {
      checkedKeys.value = [...checkedKeys.value, record.id];

      // 仅当 invoiceId 不为 undefined 时,才加入
      if (record.invoiceId !== undefined) {
        invoiceIdKeys.value = [...invoiceIdKeys.value, record.invoiceId];
      }

      // 仅当 checkId 不为 undefined 时,才加入
      if (record.checkId !== undefined) {
        checkIdKeys.value = [...checkIdKeys.value, record.checkId];
      }
    } else {
      checkedKeys.value = checkedKeys.value.filter((id) => id !== record.id);

      // 仅当 invoiceId 不为 undefined 时,才删除
      if (record.invoiceId !== undefined) {
        invoiceIdKeys.value = invoiceIdKeys.value.filter(
          (invoiceId) => invoiceId !== record.invoiceId,
        );
      }

      // 仅当 checkId 不为 undefined 时,才删除
      if (record.checkId !== undefined) {
        checkIdKeys.value = checkIdKeys.value.filter((checkId) => checkId !== record.checkId);
      }
    }
  }

  // 全选函数
  async function onSelectAll(selected: boolean, selectedRows: any[], changeRows: any[]) {
    const changeIds = changeRows.map((item) => item.id);
    const invoiceIds = changeRows.map((item) => item.invoiceId);
    const checkIds = changeRows.map((item) => item.checkId);

    if (selected) {
      checkedKeys.value = [...checkedKeys.value, ...changeIds];

      // 过滤掉 undefined 的 invoiceId 和 checkId
      invoiceIdKeys.value = [
        ...invoiceIdKeys.value,
        ...invoiceIds.filter((invoiceId) => invoiceId !== undefined),
      ];
      checkIdKeys.value = [
        ...checkIdKeys.value,
        ...checkIds.filter((checkId) => checkId !== undefined),
      ];
    } else {
      checkedKeys.value = checkedKeys.value.filter((id) => !changeIds.includes(id));

      // 仅当 invoiceId 不为 undefined 时,才删除
      invoiceIdKeys.value = invoiceIdKeys.value.filter(
        (invoiceId) => invoiceIds.indexOf(invoiceId) === -1,
      );

      // 仅当 checkId 不为 undefined 时,才删除
      checkIdKeys.value = checkIdKeys.value.filter((checkId) => checkIds.indexOf(checkId) === -1);
    }
柏杨 authored
522
  }
柏杨 authored
523
柏杨 authored
524
525
526
527
  function handleClearChoose() {
    checkedKeys.value = [];
    invoiceIdKeys.value = [];
    checkIdKeys.value = [];
柏杨 authored
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
  }

  function handleFinanceEdit(record) {
    openFinanceEdit(true, {
      data: record,
    });
  }
  function handleTrackEdit(record) {
    openTrackEdit(true, {
      data: record,
    });
  }
  function handleDelete(record) {
    const id: string[] = Array.isArray(record.id) ? record.id : [record.id];
    deleteInvoice({ ids: id });
    setTimeout(() => {
      reloadTable();
    }, 50);
  }
  function handleDeleteInvoiceIds() {
    deleteInvoice({ ids: invoiceIdKeys.value });
    setTimeout(() => {
      reloadTable();
    }, 50);
  }
  function handleDeleteCheckIds() {
柏杨 authored
554
    checkDelete({ ids: checkIdKeys.value });
柏杨 authored
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
    setTimeout(() => {
      reloadTable();
    }, 50);
  }
  function handleDeductShow(record) {
    openDeductShow(true, {
      data: record,
    });
  }
  function handleCommit(record) {
    openCommit(true, {
      data: invoiceIdKeys.value,
    });
  }
  function handleEditRefundTime(record) {
    openEditRefundTime(true, {
      data: record,
    });
  }
  function handleInvoiceDetail(record) {
    openInvoiceDetail(true, {
      data: record,
    });
  }
柏杨 authored
579
580
581
582
583
584
  function handleDeleteDeduct(record) {
    deleteDeduct({ id: record.invoiceId });
  }
  function handleCheckDeleteDeduct(record) {
    checkDeleteDeduct({ id: record.checkId });
  }
柏杨 authored
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
  function handleReUploadBgUrl(record) {
    openReUploadBgUrl(true, {
      data: record,
    });
  }
  function handleNote(record) {
    openNote(true, {
      data: record,
    });
  }
  const { createMessage } = useMessage();
  const { error } = createMessage;
  function handleInvoiceAnalysis(record) {
    openInvoiceAnalysis(true, {
      data: invoiceIdKeys.value,
柏杨 authored
600
      id: checkedKeys.value,
柏杨 authored
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
    });
  }

  function handleSuccess() {
    setTimeout(() => {
      reloadTable();
    }, 50);
  }

  function handleFinanceEditCheck(record) {
    openFinanceEditCheck(true, {
      data: record,
    });
  }
  function handleTrackEditCheck(record) {
    openTrackEditCheck(true, {
      data: record,
    });
  }
  function handleInvoiceUploadCheck(record) {
    openInvoiceUploadCheck(true, {
      data: record,
    });
  }
  function handleInvoiceShowCheck(record) {
    openInvoiceShowCheck(true, {
      data: record,
    });
  }
  function handleNoteCheck(record) {
    openNoteCheck(true, {
      data: record,
    });
  }
  function handleDeductShowCheck(record) {
    openDeductShowCheck(true, {
      data: record,
    });
  }
  function handleDetail(record) {
    openCheckDetailCheck(true, {
      data: record,
    });
  }
  function handleCommitCheck(record) {
    openCommitCheck(true, {
      data: checkIdKeys.value,
    });
  }
  function handleEditRefundTimeCheck(record) {
    openEditRefundTimeCheck(true, {
      data: record,
    });
  }
  function handleCheckSumCheck(record) {
    openCheckSumCheck(true, {
      data: checkIdKeys.value,
柏杨 authored
658
      id: checkedKeys.value,
柏杨 authored
659
660
    });
  }
661
662
663
664
665
666
667
668
669
670
671
672
  function handleInvoiceSetFinishStatus(record) {
   invoiceSetFinishStatus({id:record.invoiceId});
   setTimeout(() => {
      reloadTable();
    }, 50);
  }
  function handleCheckSetFinishStatus(record) {
    checkSetFinishStatus({id:record.checkId});
    setTimeout(() => {
      reloadTable();
    }, 50);
  }
柏杨 authored
673
</script>