1004749546@qq.com 3 سال پیش
والد
کامیت
735def2b4b

+ 11 - 2
src/views/financialManagement/companyCollectionPayment/list.vue

@@ -79,7 +79,7 @@
       bordered>
       bordered>
       <!-- 结算单号 -->
       <!-- 结算单号 -->
       <template slot="unitSettleNo" slot-scope="text, record">
       <template slot="unitSettleNo" slot-scope="text, record">
-        <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.unitSettleNo }}</span>
+        <span :class="$hasPermissions('M_companyCollectionPayment_detail')?'active':'common'" @click="handleDetail(record)">{{ record.unitSettleNo }}</span>
       </template>
       </template>
     </s-table>
     </s-table>
   </a-card>
   </a-card>
@@ -150,7 +150,9 @@ export default {
     },
     },
     //  详情
     //  详情
     handleDetail (row) {
     handleDetail (row) {
-      this.$router.push({ path: `/financialManagement/companyCollectionPayment/detail/${row.id}/${row.unitSettleSn}` })
+      if ($hasPermissions('M_companyCollectionPayment_detail')) {
+        this.$router.push({ path: `/financialManagement/companyCollectionPayment/detail/${row.id}/${row.unitSettleSn}` })
+      }
     },
     },
     // 合计
     // 合计
     getTotal (param) {
     getTotal (param) {
@@ -199,5 +201,12 @@ export default {
     .sTable{
     .sTable{
       margin-top: 15px;
       margin-top: 15px;
     }
     }
+	.active{
+		color: #ed1c24;
+		cursor: pointer;
+	}
+	.common{
+		color: #000;
+	}
   }
   }
 </style>
 </style>

+ 3 - 2
src/views/financialManagement/companyReceivablePayable/list.vue

@@ -45,8 +45,9 @@
       bordered>
       bordered>
       <!-- 操作 -->
       <!-- 操作 -->
       <template slot="action" slot-scope="text, record">
       <template slot="action" slot-scope="text, record">
-        <a-button size="small" type="link" class="button-info" @click="handleCollectionPayment(record)" id="companyReceivablePayableList-collectionPayment-btn">收付款</a-button>
-        <a-button size="small" type="link" class="button-success" @click="handleDetail(record)" id="companyReceivablePayableList-detail-btn">详情</a-button>
+        <a-button v-if="$hasPermissions('M_collectionPayment')" size="small" type="link" class="button-info" @click="handleCollectionPayment(record)" id="companyReceivablePayableList-collectionPayment-btn">收付款</a-button>
+        <a-button v-if="$hasPermissions('M_companyReceivablePayable_detail')" size="small" type="link" class="button-success" @click="handleDetail(record)" id="companyReceivablePayableList-detail-btn">详情</a-button>
+		<span v-if="!$hasPermissions('M_collectionPayment') && !$hasPermissions('M_companyReceivablePayable_detail')">--</span>
       </template>
       </template>
     </s-table>
     </s-table>
   </a-card>
   </a-card>

+ 17 - 8
src/views/financialManagement/expenseManagement/list.vue

@@ -57,7 +57,7 @@
       </div>
       </div>
       <!-- 操作按钮 -->
       <!-- 操作按钮 -->
       <div class="table-operator">
       <div class="table-operator">
-        <a-button id="expenseManagementList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
+        <a-button v-if="$hasPermissions('B_expenseNew')" id="expenseManagementList-add" type="primary" class="button-error" @click="handleEdit()">新增</a-button>
       </div>
       </div>
       <!-- alert -->
       <!-- alert -->
       <a-alert type="info" showIcon style="margin-bottom:15px">
       <a-alert type="info" showIcon style="margin-bottom:15px">
@@ -79,32 +79,32 @@
         </template>
         </template>
         <!-- 状态 -->
         <!-- 状态 -->
         <template slot="accountExpensesNo" slot-scope="text, record">
         <template slot="accountExpensesNo" slot-scope="text, record">
-          <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ text }}</span>
+          <span :class="$hasPermissions('B_expenseDetail')?'active':'common'" @click="handleDetail(record)">{{ text }}</span>
         </template>
         </template>
         <!-- 操作 -->
         <!-- 操作 -->
         <template slot="action" slot-scope="text, record">
         <template slot="action" slot-scope="text, record">
           <a-button
           <a-button
             size="small"
             size="small"
             type="link"
             type="link"
-            v-if="record.state == 'WAIT_AUDIT'"
+            v-if="record.state == 'WAIT_AUDIT' && $hasPermissions('B_expenseAudit')"
             class="button-warring"
             class="button-warring"
             @click="handleAudit(record)"
             @click="handleAudit(record)"
             id="expenseManagement-edit-btn">审核</a-button>
             id="expenseManagement-edit-btn">审核</a-button>
           <a-button
           <a-button
             size="small"
             size="small"
             type="link"
             type="link"
-            v-if="record.state == 'WAIT_AUDIT'"
+            v-if="record.state == 'WAIT_AUDIT' && $hasPermissions('B_expenseEdit')"
             class="button-info"
             class="button-info"
             @click="handleEdit(record)"
             @click="handleEdit(record)"
             id="expenseManagement-edit-btn">编辑</a-button>
             id="expenseManagement-edit-btn">编辑</a-button>
           <a-button
           <a-button
             size="small"
             size="small"
             type="link"
             type="link"
-            v-if="record.state == 'WAIT_AUDIT'"
+            v-if="record.state == 'WAIT_AUDIT' && $hasPermissions('B_expenseDel')"
             class="button-error"
             class="button-error"
             @click="handleDel(record)"
             @click="handleDel(record)"
             id="expenseManagement-del-btn">删除</a-button>
             id="expenseManagement-del-btn">删除</a-button>
-          <span v-if="record.state != 'WAIT_AUDIT'">--</span>
+          <span v-if="record.state != 'WAIT_AUDIT'||( !$hasPermissions('B_expenseAudit')&& !$hasPermissions('B_expenseEdit') && !$hasPermissions('B_expenseDel'))">--</span>
         </template>
         </template>
       </s-table>
       </s-table>
     </a-spin>
     </a-spin>
@@ -228,8 +228,10 @@ export default {
     },
     },
     //  详情
     //  详情
     handleDetail (row) {
     handleDetail (row) {
-      this.itemId = row.id
-      this.openModal = true
+      if ($hasPermissions('B_expenseDetail')) {
+        this.itemId = row.id
+        this.openModal = true
+      }
     },
     },
     //  审核
     //  审核
     handleAudit (row) {
     handleAudit (row) {
@@ -306,5 +308,12 @@ export default {
     .sTable{
     .sTable{
       margin-top: 15px;
       margin-top: 15px;
     }
     }
+	.active{
+		color: #ed1c24;
+		cursor: pointer;
+	}
+	.common{
+		color: #000;
+	}
   }
   }
 </style>
 </style>

+ 18 - 14
src/views/financialManagement/financialCollection/list.vue

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

+ 18 - 13
src/views/financialManagement/financialPayment/list.vue

@@ -66,7 +66,7 @@
           <strong>¥{{ totalData.unsettleAmount }}</strong>
           <strong>¥{{ totalData.unsettleAmount }}</strong>
         </div>
         </div>
       </a-alert>
       </a-alert>
-      <div style="margin-bottom: 15px">
+      <div v-if="$hasPermissions('B_financialPaymentPl')" style="margin-bottom: 15px">
         <a-button type="primary" id="finacialPay-export" :loading="loading" @click="handlePayment">批量付款</a-button>
         <a-button type="primary" id="finacialPay-export" :loading="loading" @click="handlePayment">批量付款</a-button>
         <span style="margin-left: 8px">
         <span style="margin-left: 8px">
           <template v-if="hasSelected">
           <template v-if="hasSelected">
@@ -92,7 +92,7 @@
             size="small"
             size="small"
             type="link"
             type="link"
             class="button-info"
             class="button-info"
-            v-if="record.settleState == 'SETTLED'"
+            v-if="record.settleState == 'SETTLED' && $hasPermissions('B_financialPaymentDetail')"
             @click="handleVoucher(record)"
             @click="handleVoucher(record)"
             id="finacialPay-voucher-btn">凭证</a-button>
             id="finacialPay-voucher-btn">凭证</a-button>
           <a-button
           <a-button
@@ -100,9 +100,10 @@
             type="link"
             type="link"
             class="button-warning"
             class="button-warning"
             :loading="loading"
             :loading="loading"
-            v-else
+            v-else-if="record.settleState != 'SETTLED' && $hasPermissions('B_financialPaymentSing')"
             @click="handlePay(record)"
             @click="handlePay(record)"
             id="finacialPay-pay-btn">付款</a-button>
             id="finacialPay-pay-btn">付款</a-button>
+          <span v-else>--</span>
         </template>
         </template>
       </s-table>
       </s-table>
     </a-spin>
     </a-spin>
@@ -187,16 +188,20 @@ export default {
       return this.selectedRowKeys.length > 0
       return this.selectedRowKeys.length > 0
     },
     },
     rowSelection () {
     rowSelection () {
-      return {
-        selectedRowKeys: this.selectedRowKeys,
-        onChange: (selectedRowKeys, selectedRows) => {
-          this.selectedRowKeys = selectedRowKeys
-        },
-        getCheckboxProps: record => ({
-          props: {
-            disabled: record.settleState == 'SETTLED'
-          }
-        })
+      if (this.$hasPermissions('B_financialPaymentPl')) {
+        return {
+			  selectedRowKeys: this.selectedRowKeys,
+			  onChange: (selectedRowKeys, selectedRows) => {
+			    this.selectedRowKeys = selectedRowKeys
+			  },
+			  getCheckboxProps: record => ({
+			    props: {
+			      disabled: record.settleState == 'SETTLED'
+			    }
+			  })
+        }
+      } else {
+        return null
       }
       }
     }
     }
   },
   },

+ 1 - 1
src/views/financialManagement/warehousingAudit/detail.vue

@@ -8,7 +8,7 @@
           <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.receivingBillNo) || '--' }}</p>
           <p style=" display: inline-block;margin: 0 0 0 60px;color: #000;font-size: 16px;font-weight: 600;">单号:{{ (basicInfoData&&basicInfoData.receivingBillNo) || '--' }}</p>
         </template>
         </template>
         <!-- 操作区,位于 title 行的行尾 -->
         <!-- 操作区,位于 title 行的行尾 -->
-        <template slot="extra">
+        <template v-if="$hasPermissions('B_warehousingDetail_print')" slot="extra">
           <a-radio-group key="3" v-model="printerType">
           <a-radio-group key="3" v-model="printerType">
             <a-radio value="NEEDLE">针式</a-radio>
             <a-radio value="NEEDLE">针式</a-radio>
             <a-radio value="INK">喷墨</a-radio>
             <a-radio value="INK">喷墨</a-radio>

+ 14 - 5
src/views/financialManagement/warehousingAudit/list.vue

@@ -62,26 +62,26 @@
         bordered>
         bordered>
         <!-- 采购入库单号 -->
         <!-- 采购入库单号 -->
         <template slot="receivingBillNo" slot-scope="text, record">
         <template slot="receivingBillNo" slot-scope="text, record">
-          <span v-if="record.receivingBillNo" style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.receivingBillNo }}</span>
+          <span v-if="record.receivingBillNo" :class="$hasPermissions('M_warehousingAudit_detail')?'active':'common'" @click="handleDetail(record)">{{ record.receivingBillNo }}</span>
           <span v-else>--</span>
           <span v-else>--</span>
         </template>
         </template>
         <!-- 操作 -->
         <!-- 操作 -->
         <template slot="action" slot-scope="text, record">
         <template slot="action" slot-scope="text, record">
           <a-button
           <a-button
             size="small"
             size="small"
-            v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT'"
+            v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT' && $hasPermissions('B_receivingAudit')"
             type="link"
             type="link"
             class="button-info"
             class="button-info"
             @click="handleExamine(record, 1)"
             @click="handleExamine(record, 1)"
             id="warehousingAudit-adopt-btn">通过</a-button>
             id="warehousingAudit-adopt-btn">通过</a-button>
           <a-button
           <a-button
             size="small"
             size="small"
-            v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT'"
+            v-if="record.auditState=='WAIT_PUT_WAREHOUSE_AUDIT'&& $hasPermissions('B_receivingAudit')"
             type="link"
             type="link"
             class="button-warning"
             class="button-warning"
             @click="handleExamine(record, 2)"
             @click="handleExamine(record, 2)"
             id="warehousingAudit-unadopt-btn">不通过</a-button>
             id="warehousingAudit-unadopt-btn">不通过</a-button>
-          <span v-if="record.auditState!='WAIT_PUT_WAREHOUSE_AUDIT'">--</span>
+          <span v-if="record.auditState!='WAIT_PUT_WAREHOUSE_AUDIT'|| !$hasPermissions('B_receivingAudit')">--</span>
         </template>
         </template>
       </s-table>
       </s-table>
     </a-spin>
     </a-spin>
@@ -166,7 +166,9 @@ export default {
     },
     },
     //  详情
     //  详情
     handleDetail (row) {
     handleDetail (row) {
-      this.$router.push({ path: `/financialManagement/warehousingAudit/detail/${row.receivingBillSn}` })
+      if (this.$hasPermissions('M_warehousingAudit_detail')) {
+        this.$router.push({ path: `/financialManagement/warehousingAudit/detail/${row.receivingBillSn}` })
+      }
     },
     },
     //  审核
     //  审核
     handleExamine (row, type) {
     handleExamine (row, type) {
@@ -207,5 +209,12 @@ export default {
     .sTable{
     .sTable{
       margin-top: 15px;
       margin-top: 15px;
     }
     }
+	.active{
+		color: #ed1c24;
+		cursor: pointer;
+	}
+	.common{
+		color: #000;
+	}
   }
   }
 </style>
 </style>

+ 1 - 1
src/views/financialManagement/withdrawalManagement/list.vue

@@ -20,7 +20,7 @@
     </div>
     </div>
     <!-- 操作按钮 -->
     <!-- 操作按钮 -->
     <div class="table-operator">
     <div class="table-operator">
-      <a-button id="withdrawalManagementList-tx" type="primary" class="button-warning" @click="handleCashOut">申请提现</a-button>
+      <a-button v-if="$hasPermissions('B_withdrawalManagement_cashOut')" id="withdrawalManagementList-tx" type="primary" class="button-warning" @click="handleCashOut">申请提现</a-button>
       <div style="display: inline-block;margin-left: 80px;">可提现余额: <strong>¥{{ accountInfo&&(accountInfo.balance || accountInfo.balance==0) ? accountInfo.balance : '--' }}</strong> 元</div>
       <div style="display: inline-block;margin-left: 80px;">可提现余额: <strong>¥{{ accountInfo&&(accountInfo.balance || accountInfo.balance==0) ? accountInfo.balance : '--' }}</strong> 元</div>
     </div>
     </div>
     <!-- 列表 -->
     <!-- 列表 -->