Browse Source

系统未税金额

hella_online_20240829
wangyufei 4 months ago
parent
commit
2b6247c689
  1. 7
      src/components/BasicForm/src/BasicForm.vue
  2. 2
      src/components/SearchTable/src/SearchTable.vue
  3. 4
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

7
src/components/BasicForm/src/BasicForm.vue

@ -135,11 +135,8 @@
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
> >
<template #selectionsActions="selections"> <template v-for="name in Object.keys($slots)" :key="name" #[name]="{selections}">
<slot name="searchTableSelectionsActions" :selections="selections"></slot> <slot :name="name" :selections="selections"></slot>
</template>
<template v-for="name in Object.keys($slots)" :key="name" #[name]>
<slot :name="name"></slot>
</template> </template>
</SearchTable> </SearchTable>
</template> </template>

2
src/components/SearchTable/src/SearchTable.vue

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

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

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

Loading…
Cancel
Save