Browse Source

修改bug

chenrui 1 năm trước cách đây
mục cha
commit
8df5f71d7e

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

@@ -2221,8 +2221,8 @@ export const asyncRouterMap = [
             component: BlankLayout,
             component: BlankLayout,
             meta: {
             meta: {
               title: '销售缺货报表',
               title: '销售缺货报表',
-              icon: 'profile'
-              // permission: 'M_salesOutofStockReportList'
+              icon: 'profile',
+              permission: 'M_salesOutofStockReportList'
             },
             },
             hideChildrenInMenu: true,
             hideChildrenInMenu: true,
             children: [
             children: [
@@ -2233,8 +2233,8 @@ export const asyncRouterMap = [
                 meta: {
                 meta: {
                   title: '销售缺货报表',
                   title: '销售缺货报表',
                   icon: 'profile',
                   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"
               @click="handleExport"
               :disabled="disabled"
               :disabled="disabled"
               :loading="exportLoading"
               :loading="exportLoading"
+              v-if="$hasPermissions('B_isSalesOosExport')"
               id="salesOutofStockReport-export">导出</a-button>
               id="salesOutofStockReport-export">导出</a-button>
           </a-col>
           </a-col>
         </a-row>
         </a-row>
@@ -54,8 +55,10 @@
             size="small"
             size="small"
             type="link"
             type="link"
             class="button-success"
             class="button-success"
+            v-if="$hasPermissions('B_isSalesOosDetail')"
             @click="handleDetail(record)"
             @click="handleDetail(record)"
           >详情</a-button>
           >详情</a-button>
+          <span v-else>--</span>
         </template>
         </template>
       </s-table>
       </s-table>
       </a-spin>
       </a-spin>
@@ -124,7 +127,7 @@ export default {
         { title: '创建时间', dataIndex: 'createDate', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
         { 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: '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: '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: '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: '缺货金额', dataIndex: 'totalAmount', width: '7%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }