chris %!s(int64=2) %!d(string=hai) anos
pai
achega
10b03327bd

+ 1 - 1
src/views/modules/device/temp.vue

@@ -130,7 +130,7 @@
             <el-button v-if="isAuth('device:temp:info')" type="text" size="small" @click="detailHandle(scope.row.id)">查看</el-button>
             <el-button v-if="isAuth('device:temp:edit')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">编辑</el-button>
             <el-button v-if="isAuth('device:temp:list')" type="text" size="small" @click="historyHandle(scope.row)">历史数据</el-button>
-            <el-button v-if="isAuth('device:temp:delete')" style="color: red" type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
+            <el-button v-if="isAuth('device:temp:history')" style="color: red" type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 2 - 1
src/views/modules/finance/customer.vue

@@ -1,3 +1,4 @@
+<!-- 客户账款 -->
 <template>
   <div class="customer">
     <template v-if="!detailVisible">
@@ -91,7 +92,7 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="true" type="text" size="small" @click="detailHandle(scope.row.customerId)">详情</el-button>
+            <el-button v-if="isAuth('fin:customer:info')" type="text" size="small" @click="detailHandle(scope.row.customerId)">详情</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 4 - 4
src/views/modules/finance/expense.vue

@@ -1,5 +1,5 @@
+<!-- 报销 -->
 <template>
-  <!-- 报销 -->
   <div class="expense">
     <template v-if="!addOrUpdateVisible && !detailVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
@@ -16,7 +16,7 @@
         </el-form-item>
       </el-form>
       <div style="margin-bottom:15px">
-        <el-button v-if="isAuth('finance:expense:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增</el-button>
+        <el-button v-if="isAuth('fin:expense:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增</el-button>
       </div>
       <el-table
         :data="dataList"
@@ -105,8 +105,8 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="isAuth('finance:expense:info')" type="text" size="small" @click="detailHandle(scope.row.submitExpenseId)">详情</el-button>
-            <el-button v-if="isAuth('finance:expense:update') && scope.row.approvalState.toString() === '1'" type="text" size="small" @click="addOrUpdateHandle(scope.row.submitExpenseId, false)">编辑</el-button>
+            <el-button v-if="isAuth('fin:expense:info')" type="text" size="small" @click="detailHandle(scope.row.submitExpenseId)">详情</el-button>
+            <el-button v-if="isAuth('fin:expense:update') && scope.row.approvalState.toString() === '1'" type="text" size="small" @click="addOrUpdateHandle(scope.row.submitExpenseId, false)">编辑</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 4 - 4
src/views/modules/finance/purchase-invoice.vue

@@ -1,5 +1,5 @@
+<!-- 采购发票管理 -->
 <template>
-  <!-- 采购发票管理 -->
   <div class="purchase-invoice">
     <template v-if="!addOrUpdateVisible && !detailVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
@@ -16,7 +16,7 @@
         </el-form-item>
       </el-form>
       <div style="margin-bottom:15px">
-        <el-button v-if="isAuth('finance:purchase-invoice:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增发票</el-button>
+        <el-button v-if="isAuth('fin:purchaseInvoice:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增发票</el-button>
       </div>
       <el-table
         :data="dataList"
@@ -123,8 +123,8 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="isAuth('finance:purchase-invoice:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseInvoiceId)">详情</el-button>
-            <el-button v-if="isAuth('finance:purchase-invoice:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseInvoiceId, false)">编辑</el-button>
+            <el-button v-if="isAuth('fin:purchaseInvoice:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseInvoiceId)">详情</el-button>
+            <el-button v-if="isAuth('fin:purchaseInvoice:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseInvoiceId, false)">编辑</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 4 - 4
src/views/modules/finance/sale-invoice.vue

@@ -1,5 +1,5 @@
+<!-- 销售发票管理 -->
 <template>
-  <!-- 销售发票管理 -->
   <div class="sale-invoice">
     <template v-if="!addOrUpdateVisible && !detailVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
@@ -16,7 +16,7 @@
         </el-form-item>
       </el-form>
       <div style="margin-bottom:15px">
-        <el-button v-if="isAuth('finance:sale-invoice:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增发票</el-button>
+        <el-button v-if="isAuth('fin:purchaseInvoice:save')" type="primary" @click="addOrUpdateHandle(0, false)">新增发票</el-button>
       </div>
       <el-table
         :data="dataList"
@@ -123,8 +123,8 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="isAuth('finance:sale-invoice:info')" type="text" size="small" @click="detailHandle(scope.row.salesInvoiceId)">详情</el-button>
-            <el-button v-if="isAuth('finance:sale-invoice:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.salesInvoiceId, false)">编辑</el-button>
+            <el-button v-if="isAuth('fin:purchaseInvoice:info')" type="text" size="small" @click="detailHandle(scope.row.salesInvoiceId)">详情</el-button>
+            <el-button v-if="isAuth('fin:purchaseInvoice:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.salesInvoiceId, false)">编辑</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 2 - 1
src/views/modules/finance/supplier.vue

@@ -1,3 +1,4 @@
+<!-- 供应商账款 -->
 <template>
   <div class="customer">
     <template v-if="!detailVisible">
@@ -92,7 +93,7 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="true" type="text" size="small" @click="detailHandle(scope.row.supplierId)">详情</el-button>
+            <el-button v-if="isAuth('fin:supplier:info')" type="text" size="small" @click="detailHandle(scope.row.supplierId)">详情</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 1 - 0
src/views/modules/my/my-info.vue

@@ -1,3 +1,4 @@
+<!-- 我的信息 -->
 <template>
     <div>
       <e-desc title="基本信息" column="3">