|
@@ -67,7 +67,7 @@
|
|
|
<strong>¥{{ totalData.unsettleAmount }}</strong>
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
- <div style="margin-bottom: 15px">
|
|
|
+ <div v-if="$hasPermissions('B_financialCollectionPl')" style="margin-bottom: 15px">
|
|
|
<a-button type="primary" id="financialCollectionList-export" :loading="loading" @click="handleCollection">批量收款</a-button>
|
|
|
<span style="margin-left: 8px">
|
|
|
<template v-if="hasSelected">
|
|
@@ -93,7 +93,7 @@
|
|
|
size="small"
|
|
|
type="link"
|
|
|
class="button-info"
|
|
|
- v-if="record.settleState == 'SETTLED'"
|
|
|
+ v-if="record.settleState == 'SETTLED' && $hasPermissions('B_financialCollectionDetail')"
|
|
|
@click="handleVoucher(record)"
|
|
|
id="financialCollectionList-voucher-btn">凭证</a-button>
|
|
|
<a-button
|
|
@@ -101,10 +101,10 @@
|
|
|
type="link"
|
|
|
:loading="loading"
|
|
|
class="button-warning"
|
|
|
- v-if="record.settleState == 'UNSETTLE'&&record.satelliteFlag!=1"
|
|
|
+ v-if="record.settleState == 'UNSETTLE'&&record.satelliteFlag!=1 && $hasPermissions('B_financialCollectionSing')"
|
|
|
@click="handleCollectionSing(record)"
|
|
|
id="financialCollectionList-pay-btn">收款</a-button>
|
|
|
- <span v-if="!(record.settleState == 'SETTLED') && !(record.settleState == 'UNSETTLE'&&record.satelliteFlag!=1)">--</span>
|
|
|
+ <span v-if="(!(record.settleState == 'SETTLED') && !(record.settleState == 'UNSETTLE'&&record.satelliteFlag!=1))||(!$hasPermissions('B_financialCollectionSing') && !$hasPermissions('B_financialCollectionDetail'))">--</span>
|
|
|
<!-- satelliteFlag为1,是卫星仓 -->
|
|
|
</template>
|
|
|
</s-table>
|
|
@@ -189,16 +189,20 @@ export default {
|
|
|
return this.selectedRowKeys.length > 0
|
|
|
},
|
|
|
rowSelection () {
|
|
|
- return {
|
|
|
- selectedRowKeys: this.selectedRowKeys,
|
|
|
- onChange: (selectedRowKeys, selectedRows) => {
|
|
|
- this.selectedRowKeys = selectedRowKeys
|
|
|
- },
|
|
|
- getCheckboxProps: record => ({
|
|
|
- props: {
|
|
|
- disabled: record.settleState == 'SETTLED'
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.$hasPermissions('B_financialCollectionPl')) {
|
|
|
+ return {
|
|
|
+ selectedRowKeys: this.selectedRowKeys,
|
|
|
+ onChange: (selectedRowKeys, selectedRows) => {
|
|
|
+ this.selectedRowKeys = selectedRowKeys
|
|
|
+ },
|
|
|
+ getCheckboxProps: record => ({
|
|
|
+ props: {
|
|
|
+ disabled: record.settleState == 'SETTLED'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return null
|
|
|
}
|
|
|
}
|
|
|
},
|