chenrui 2 ヶ月 前
コミット
4c2091575d

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

@@ -167,9 +167,9 @@ export const asyncRouterMap = [
         redirect: '/vinReport/vinReportDetails',
         component: PageView,
         meta: {
-          title: 'VIN报表',
-          icon: 'fund'
-          // permission: 'M_vinReportDayList'
+          title: 'VIN管理',
+          icon: 'fund',
+          permission: 'M_vinReportDayList'
         },
         children: [
           {
@@ -177,9 +177,9 @@ export const asyncRouterMap = [
             name: 'dayReportList',
             component: () => import(/* webpackChunkName: "vinReport" */ '@/views/vinReport/vinReportDetails/dayReportList.vue'),
             meta: {
-              title: 'VIN日报',
-              icon: 'project'
-              // permission: 'M_vinReportDayList'
+              title: 'VIN查询日报',
+              icon: 'project',
+              permission: 'M_vinReportDayList'
             }
           },
           {
@@ -187,9 +187,9 @@ export const asyncRouterMap = [
             name: 'monthReportList',
             component: () => import(/* webpackChunkName: "vinReport" */ '@/views/vinReport/vinReportDetails/monthReportList.vue'),
             meta: {
-              title: 'VIN月报',
-              icon: 'project'
-              // permission: 'M_vinReportMonthList'
+              title: 'VIN查询月报',
+              icon: 'project',
+              permission: 'M_vinReportMonthList'
             }
           },
           {
@@ -197,9 +197,9 @@ export const asyncRouterMap = [
             name: 'recordList',
             component: () => import(/* webpackChunkName: "vinReport" */ '@/views/vinReport/vinReportDetails/recordList.vue'),
             meta: {
-              title: 'VIN记录',
-              icon: 'project'
-              // permission: 'M_vinReportRecordList'
+              title: 'VIN查询明细',
+              icon: 'project',
+              permission: 'M_vinReportRecordList'
             }
           }
         ]

+ 1 - 1
src/views/vinReport/vinReportDetails/dayReportList.vue

@@ -137,7 +137,7 @@ export default {
     },
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight
-      this.tableHeight = window.innerHeight - tableSearchH - 420
+      this.tableHeight = window.innerHeight - tableSearchH - 330
     },
     pageInit () {
       const _this = this

+ 2 - 3
src/views/vinReport/vinReportDetails/monthReportList.vue

@@ -115,8 +115,7 @@ export default {
       const ajaxData = {
         dealerSn: row.tenantId,
         queryYeary: row.queryYeary,
-        queryMonth: row.queryMonth,
-        queryDay: row.queryDay
+        queryMonth: row.queryMonth
       }
       this.$refs.recordMonthModal.pageInit(ajaxData)
       this.$nextTick(() => {
@@ -137,7 +136,7 @@ export default {
     },
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight
-      this.tableHeight = window.innerHeight - tableSearchH - 420
+      this.tableHeight = window.innerHeight - tableSearchH - 330
     },
     pageInit () {
       const _this = this

+ 4 - 4
src/views/vinReport/vinReportDetails/recordList.vue

@@ -92,13 +92,13 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: '6%', align: 'center' },
-        { title: '时间', dataIndex: 'createDate', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '时间', dataIndex: 'createDate', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '经销商名称', dataIndex: 'dealerName', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '车架号', dataIndex: 'vin', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌', dataIndex: 'carBrandName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '车型', dataIndex: 'carModelName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '年款', dataIndex: 'carModelYear', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '排量', dataIndex: 'carDisplacement', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '排量', dataIndex: 'carDisplacement', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '图标', dataIndex: 'carIcon', width: '8%', align: 'center', scopedSlots: { customRender: 'iconVal' } },
         { title: '配置', dataIndex: 'carConfLevel', width: '26%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '配件', dataIndex: 'partCode', width: '6%', align: 'center', scopedSlots: { customRender: 'partCode' }, ellipsis: true }
@@ -161,8 +161,8 @@ export default {
       this.$refs.table.refresh(true)
     },
     setTableH () {
-      const tableSearchH = this.searchData && Object.keys(this.searchData).length > 0 ? 180 : this.$refs.tableSearch.offsetHeight
-      this.tableHeight = window.innerHeight - tableSearchH - 420
+      const tableSearchH = this.searchData && Object.keys(this.searchData).length > 0 ? 120 : this.$refs.tableSearch.offsetHeight
+      this.tableHeight = window.innerHeight - tableSearchH - 330
     },
     pageInit () {
       const _this = this

+ 2 - 2
src/views/vinReport/vinReportDetails/recordModal.vue

@@ -7,7 +7,7 @@
     title="VIN记录"
     v-model="isShow"
     @cancle="isShow=false"
-    width="68%">
+    width="73%">
     <!-- 主要内容 -->
     <div>
       <record-list-info :searchData="searchData" ref="recordList"></record-list-info>
@@ -66,7 +66,7 @@ export default {
     }
     .btn-cont {
       text-align: center;
-      margin: 35px 0 10px;
+      margin: 25px 0 10px;
     }
   }
 </style>