|
@@ -86,7 +86,7 @@
|
|
:data="loadData"
|
|
:data="loadData"
|
|
:row-selection="{ columnWidth: 40 }"
|
|
:row-selection="{ columnWidth: 40 }"
|
|
@rowSelection="rowSelectionFun"
|
|
@rowSelection="rowSelectionFun"
|
|
- :pageSize="10"
|
|
|
|
|
|
+ :pageSize="showTotal?10:30"
|
|
bordered>
|
|
bordered>
|
|
<!-- 产品编码 -->
|
|
<!-- 产品编码 -->
|
|
<template slot="productCode" slot-scope="text, record">
|
|
<template slot="productCode" slot-scope="text, record">
|
|
@@ -152,9 +152,9 @@
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
>删除</a-button>
|
|
>删除</a-button>
|
|
</template>
|
|
</template>
|
|
- <template slot="footer" slot-scope="currentPageData">
|
|
|
|
|
|
+ <template slot="footer">
|
|
<!-- 总计 -->
|
|
<!-- 总计 -->
|
|
- <a-alert type="info" banner :showIcon="false">
|
|
|
|
|
|
+ <a-alert type="info" v-if="showTotal" banner :showIcon="false">
|
|
<div slot="message">
|
|
<div slot="message">
|
|
<span v-if="$hasPermissions('B_salesEdit_salesPrice')">总售价:<strong>{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? toThousands(countData.totalAmount) : '--' }}</strong>;</span>
|
|
<span v-if="$hasPermissions('B_salesEdit_salesPrice')">总售价:<strong>{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? toThousands(countData.totalAmount) : '--' }}</strong>;</span>
|
|
总款数:<strong>{{ countData&&(countData.totalCategory || countData.totalCategory==0) ? countData.totalCategory : '--' }}</strong>;
|
|
总款数:<strong>{{ countData&&(countData.totalCategory || countData.totalCategory==0) ? countData.totalCategory : '--' }}</strong>;
|
|
@@ -218,6 +218,10 @@
|
|
salesBillSn: {
|
|
salesBillSn: {
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
|
|
+ },
|
|
|
|
+ showTotal:{
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|