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"
>
<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 v-for="name in Object.keys($slots)" :key="name" #[name]="{selections}">
<slot :name="name" :selections="selections"></slot>
</template>
</SearchTable>
</template>

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

@ -37,7 +37,7 @@
</ContentWrap>
<template #footer>
<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="searchDialogVisible = false"> </el-button>

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

@ -113,9 +113,9 @@
@sumFormDataHandle="sumFormDataHandle"
>
<template #searchTableSelectionsActions="{selections}">
<template #selectionsActionspoLine="{selections}">
<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>
</template>
<!-- <template #foorter>

Loading…
Cancel
Save