Browse Source

系统未税金额

hella_online_20240829
wangyufei 5 months ago
parent
commit
54d7bb6467
  1. 4
      src/components/BasicForm/src/BasicForm.vue
  2. 1
      src/components/SearchTable/src/SearchTable.vue
  3. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

4
src/components/BasicForm/src/BasicForm.vue

@ -134,6 +134,10 @@
:showSearchTableQueryFields="showSearchTableQueryFields"
@searchTableSuccess="searchTableSuccess"
>
<template #selectionsActions="selections">
<slot name="searchTableSelectionsActions" :selections="selections"></slot>
</template>
<template v-for="name in Object.keys($slots)" :key="name" #[name]>
<slot :name="name"></slot>
</template>

1
src/components/SearchTable/src/SearchTable.vue

@ -37,6 +37,7 @@
</ContentWrap>
<template #footer>
<div class="flex items-center">
<slot name="selectionsActions" :selections="searchTableRef?searchTableRef.selections:[]"></slot>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="searchDialogVisible = false"> </el-button>

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

@ -112,6 +112,12 @@
@submitForm="submitForm"
@sumFormDataHandle="sumFormDataHandle"
>
<template #searchTableSelectionsActions="{selections}">
<div style="text-align: left;margin-right:10px">
系统未税金额:{{selections.selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(2))*item['invoicableQuantity']).toFixed(2)),0)}}
</div>
</template>
<!-- <template #foorter>
<div style="text-align: left">
{{ basicFormFooter }}

Loading…
Cancel
Save