Parcourir la source

值机、终止到达跳转高级查询

zhongxiaoyu il y a 2 ans
Parent
commit
ba9b38ce2c

+ 6 - 7
src/views/advancedQuery/views/advancedHome.vue

@@ -199,8 +199,8 @@
                       @keyup.esc.native="dialogFocus"
                     >
                       <el-option
-                        v-for="option in statusList"
-                        :key="option.ID"
+                        v-for="(option, index) in statusList"
+                        :key="index"
                         :label="option.statusName"
                         :value="option.statusCode"
                       />
@@ -601,27 +601,26 @@ export default {
       ],
       statusList: [
         {
-          ID: 0,
+          statusName: '值机',
+          statusCode: '值机'
+        },
+        {
           statusName: '安检',
           statusCode: '安检'
         },
         {
-          ID: 1,
           statusName: '分拣',
           statusCode: '分拣'
         },
         {
-          ID: 2,
           statusName: '装车',
           statusCode: '装车'
         },
         {
-          ID: 3,
           statusName: '装机',
           statusCode: '装机'
         },
         {
-          ID: 4,
           statusName: '到达',
           statusCode: '到达'
         }

+ 47 - 29
src/views/baggageManagement/mixins/terminal.js

@@ -1,7 +1,7 @@
 /*
  * @Author: Badguy
  * @Date: 2022-03-04 11:41:55
- * @LastEditTime: 2022-06-09 16:24:07
+ * @LastEditTime: 2022-08-09 17:40:33
  * @LastEditors: your name
  * @Description: 航站视图通用部分
  * have a nice day!
@@ -11,7 +11,7 @@ import { mapGetters } from 'vuex'
 import { commonTableCellClass } from '@/utils/table'
 
 export default {
-  data () {
+  data() {
     return {
       // 表格数据
       tableData: [],
@@ -24,18 +24,18 @@ export default {
       computedTableHeight: undefined
     }
   },
-  created () {
+  created() {
     this.setFilterAndSort(this.tableCols)
   },
-  updated () {
+  updated() {
     this.setTableHeight()
   },
-  activated () {
+  activated() {
     this.setTableHeight()
   },
   computed: {
     ...mapGetters(['clickedCells']),
-    dealedTableData () {
+    dealedTableData() {
       const filtered = this.tableData.filter(item => {
         let flag = true
         Object.entries(this.filterValues).forEach(([key, arr]) => {
@@ -61,7 +61,7 @@ export default {
   },
   watch: {
     dealedTableData: {
-      handler (val) {
+      handler(val) {
         this.spanArr = []
         let contactDot = this.contactDot
         val.forEach((item, index, arr) => {
@@ -86,7 +86,7 @@ export default {
   },
   methods: {
     // 设置表格高度
-    setTableHeight () {
+    setTableHeight() {
       const headerHeight = 80
       const bottomBlankHeight = 41
       const formWrapHeight = this.$refs['formWrap'].offsetHeight
@@ -96,7 +96,7 @@ export default {
       })
     },
     // 设置筛选和排序
-    setFilterAndSort (tableCols) {
+    setFilterAndSort(tableCols) {
       const self = this
       Object.values(tableCols).forEach(({ prop, filterable, sortable, children }) => {
         if (children) {
@@ -113,7 +113,7 @@ export default {
       })
     },
     // 合计行
-    summaryMethod ({ columns, data }) {
+    summaryMethod({ columns, data }) {
       const sums = []
       if (columns.length > 0) {
         columns.forEach((column, index) => {
@@ -194,7 +194,7 @@ export default {
       }
       return sums
     },
-    cellClass ({ row, column, rowIndex, columnIndex }) {
+    cellClass({ row, column, rowIndex, columnIndex }) {
       const classes = commonTableCellClass({ row, column, rowIndex, columnIndex })
       if (
         [
@@ -206,7 +206,7 @@ export default {
           'outTransferredBaggageCount',
           'tounLoad',
           'unLoad',
-          // 'checkInNumber',
+          'checkInNumber',
           'unActive',
           'preLoad',
           'midIn',
@@ -215,7 +215,8 @@ export default {
           'sortNumber',
           'loadNumber',
           'boardID',
-          // 'checkIns',
+          'checkIns',
+          'terminateArrivalQuantity',
           'projectedLoad',
           'loadedQuantity',
           'numberOfDestinationArrivals',
@@ -240,7 +241,7 @@ export default {
       }
       return classes.join(' ')
     },
-    cellClickHandler (row, column, cell, event) {
+    cellClickHandler(row, column, cell, event) {
       if (
         [
           'flightNO',
@@ -251,7 +252,7 @@ export default {
           'outTransferredBaggageCount',
           'tounLoad',
           'unLoad',
-          // 'checkInNumber',
+          'checkInNumber',
           'unActive',
           'preLoad',
           'midIn',
@@ -260,7 +261,8 @@ export default {
           'sortNumber',
           'loadNumber',
           'boardID',
-          // 'checkIns',
+          'checkIns',
+          'terminateArrivalQuantity',
           'projectedLoad',
           'loadedQuantity',
           'numberOfDestinationArrivals',
@@ -449,12 +451,14 @@ export default {
             }
           })
           break
+        case 'checkInNumber':
         case 'checkNumber':
         case 'sortNumber':
         case 'loadNumber':
         case 'boardID':
           {
             const reflect = {
+              checkInNumber: '值机',
               checkNumber: '安检',
               sortNumber: '分拣',
               loadNumber: '装车',
@@ -473,19 +477,19 @@ export default {
             })
           }
           break
-        // case 'checkIns':
-        //   this.$router.push({
-        //     path: '/advance',
-        //     query: {
-        //       flightNO: row.flightNO,
-        //       startDate: row.flightDate,
-        //       endDate: row.flightDate,
-        //       departureStation: row.departureAirport,
-        //       destination: this.formData.currentAirport,
-        //       checkIn: 1
-        //     }
-        //   })
-        //   break
+        case 'checkIns':
+          this.$router.push({
+            path: '/advance',
+            query: {
+              flightNO: row.flightNO,
+              startDate: row.flightDate,
+              endDate: row.flightDate,
+              departureStation: row.departureAirport,
+              destination: this.formData.currentAirport,
+              status: '值机'
+            }
+          })
+          break
         case 'projectedLoad':
           this.$router.push({
             path: '/advance',
@@ -527,6 +531,20 @@ export default {
             }
           })
           break
+        case 'terminateArrivalQuantity':
+          this.$router.push({
+            path: '/advance',
+            query: {
+              flightNO: row.flightNO,
+              startDate: row.flightDate,
+              endDate: row.flightDate,
+              departureStation: row.departureAirport,
+              destination: this.formData.currentAirport,
+              status: '到达',
+              transferIn: 0
+            }
+          })
+          break
         default:
           break
       }