소스 검색

修改bug

chenrui 1 년 전
부모
커밋
8df5f71d7e
2개의 변경된 파일8개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 4
      src/config/router.config.js
  2. 4 1
      src/views/reportData/salesOutofStockReport/list.vue

+ 4 - 4
src/config/router.config.js

@@ -2221,8 +2221,8 @@ export const asyncRouterMap = [
             component: BlankLayout,
             meta: {
               title: '销售缺货报表',
-              icon: 'profile'
-              // permission: 'M_salesOutofStockReportList'
+              icon: 'profile',
+              permission: 'M_salesOutofStockReportList'
             },
             hideChildrenInMenu: true,
             children: [
@@ -2233,8 +2233,8 @@ export const asyncRouterMap = [
                 meta: {
                   title: '销售缺货报表',
                   icon: 'profile',
-                  hidden: true
-                  // permission: 'M_salesOutofStockReportList'
+                  hidden: true,
+                  permission: 'M_salesOutofStockReportList'
                 }
               }
             ]

+ 4 - 1
src/views/reportData/salesOutofStockReport/list.vue

@@ -33,6 +33,7 @@
               @click="handleExport"
               :disabled="disabled"
               :loading="exportLoading"
+              v-if="$hasPermissions('B_isSalesOosExport')"
               id="salesOutofStockReport-export">导出</a-button>
           </a-col>
         </a-row>
@@ -54,8 +55,10 @@
             size="small"
             type="link"
             class="button-success"
+            v-if="$hasPermissions('B_isSalesOosDetail')"
             @click="handleDetail(record)"
           >详情</a-button>
+          <span v-else>--</span>
         </template>
       </s-table>
       </a-spin>
@@ -124,7 +127,7 @@ export default {
         { title: '创建时间', dataIndex: 'createDate', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '销售单号', dataIndex: 'salesOosBillNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'targetName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '缺货数', dataIndex: 'totalCategory', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '缺货数', dataIndex: 'totalCategory', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '缺货数量', dataIndex: 'totalQty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '缺货金额', dataIndex: 'totalAmount', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }