|
@@ -11,7 +11,7 @@
|
|
<el-button type="text">查看</el-button>
|
|
<el-button type="text">查看</el-button>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="item.rows" v-for="(item,index) in infoArrs" :key="index">{{ item.label }}:{{ item.value }}</el-col>
|
|
|
|
|
|
+ <el-col :span="3" v-for="(item,index) in infoArrs" :key="index">{{ item.columnLabel }}:{{ item.value }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
<div class="newBagDetails-info-details">
|
|
<div class="newBagDetails-info-details">
|
|
@@ -21,12 +21,11 @@
|
|
</scroll-pane>
|
|
</scroll-pane>
|
|
</div>
|
|
</div>
|
|
<div class="newBagDetails-info-details-msgs">
|
|
<div class="newBagDetails-info-details-msgs">
|
|
- <el-row class="newBagDetails-info-details-msgs-l1" :gutter="20">
|
|
|
|
- <el-col :span="item.rows" v-for="(item,index) in msgs1" :key="index">{{ item.label }}:{{ item.value }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row class="newBagDetails-info-details-msgs-l2" :gutter="20">
|
|
|
|
- <el-col :span="item.rows" v-for="(item,index) in msgs2" :key="index">{{ item.label }}:{{ item.value }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
|
|
+ <el-scrollbar style="height: 100%;">
|
|
|
|
+ <el-row class="newBagDetails-info-details-msgs-l1" :gutter="20">
|
|
|
|
+ <el-col :span="3" class="msgs-list" v-for="(item,index) in msgs1" :key="index">{{ item.columnLabel }}:{{ item.value }}</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-scrollbar>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -38,7 +37,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="newBagDetails-contents-page">
|
|
<div class="newBagDetails-contents-page">
|
|
- <component ref="dataChild" :query="query" :tagObj="tagObj" :is="componentName"></component>
|
|
|
|
|
|
+ <component ref="dataChild" :query="query" :tableDatas="tableDatas" :tagObj="tagObj" :is="componentName"></component>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -50,145 +49,19 @@ import baggageView from './components/baggageView.vue'
|
|
import baggageList from './components/baggageList.vue'
|
|
import baggageList from './components/baggageList.vue'
|
|
import baggageMessage from './components/baggageMessage.vue'
|
|
import baggageMessage from './components/baggageMessage.vue'
|
|
import pf from '@/layout/mixin/publicFunc'
|
|
import pf from '@/layout/mixin/publicFunc'
|
|
|
|
+import { getAuthData } from '@/utils/validate'
|
|
|
|
+import { getToken } from '@/utils/auth'
|
|
export default {
|
|
export default {
|
|
name: 'NewBagDetails',
|
|
name: 'NewBagDetails',
|
|
mixins: [pf],
|
|
mixins: [pf],
|
|
components: { ScrollPane, baggageView, baggageList, baggageMessage },
|
|
components: { ScrollPane, baggageView, baggageList, baggageMessage },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- infoArrs: [
|
|
|
|
- {
|
|
|
|
- prop: 'luggageCount',
|
|
|
|
- label: '总件数',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'luggageWeight',
|
|
|
|
- label: '重量',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'PNRNO',
|
|
|
|
- label: 'PNR编号',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'groupName',
|
|
|
|
- label: '企业或团队名称',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'frequentflyerNO',
|
|
|
|
- label: '常旅客号',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'frequentflyerGrade',
|
|
|
|
- label: '常旅客级别',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ infoArrs: [],
|
|
passenger_name: '',
|
|
passenger_name: '',
|
|
- detailsArr: [
|
|
|
|
- {
|
|
|
|
- no: '39998979441'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- no: '39998979441'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- no: '39998979441'
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ detailsArr: [],
|
|
activeIndex: null,
|
|
activeIndex: null,
|
|
- msgs1: [
|
|
|
|
- {
|
|
|
|
- prop: 'nodeCode',
|
|
|
|
- label: '最新节点',
|
|
|
|
- rows: 4,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'currentResult',
|
|
|
|
- label: '最新结果',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'luggageType',
|
|
|
|
- label: '特殊行李类型',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'no_checkin',
|
|
|
|
- label: '删除',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'activeState',
|
|
|
|
- label: '激活',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'file_code',
|
|
|
|
- label: '卷宗号',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'No_BSM',
|
|
|
|
- label: '无BSM',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- msgs2: [
|
|
|
|
- {
|
|
|
|
- prop: 'compensation_type',
|
|
|
|
- label: '赔偿类型',
|
|
|
|
- rows: 4,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'compensation_amount',
|
|
|
|
- label: '赔偿金额',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'abnormal_state',
|
|
|
|
- label: '异常状态',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'loading_number',
|
|
|
|
- label: '装载序列号',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'Loadable',
|
|
|
|
- label: '可装载',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- prop: 'Transport',
|
|
|
|
- label: '可运输',
|
|
|
|
- rows: 3,
|
|
|
|
- value: ''
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ msgs1: [],
|
|
tabMenu: [
|
|
tabMenu: [
|
|
{
|
|
{
|
|
key: 'baggageView',
|
|
key: 'baggageView',
|
|
@@ -207,37 +80,65 @@ export default {
|
|
componentName: 'baggageView',
|
|
componentName: 'baggageView',
|
|
query: '',
|
|
query: '',
|
|
passengerName: '',
|
|
passengerName: '',
|
|
- tagObj: {}
|
|
|
|
|
|
+ PNRNO: '',
|
|
|
|
+ tagObj: {},
|
|
|
|
+ tableDatas: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
const { query } = this.$route
|
|
const { query } = this.$route
|
|
|
|
+ const { auth_id } = this.$route.meta
|
|
|
|
+ const { arrs } = getAuthData(auth_id)
|
|
|
|
+ const table = arrs.filter(item => item.auth_type == 4 || item.auth_type == 5)
|
|
|
|
+ if (table && table.length) {
|
|
|
|
+ this.tableDatas = table
|
|
|
|
+ const tableDatas5 = table.filter(item => item.auth_type == 5)
|
|
|
|
+ if (tableDatas5 && tableDatas5.length) {
|
|
|
|
+ const { auth_id } = tableDatas5[0]
|
|
|
|
+ this.getColumnData(auth_id)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.query = query
|
|
this.query = query
|
|
},
|
|
},
|
|
- mounted () {
|
|
|
|
- this.getLuggageInfo()
|
|
|
|
- },
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //获取表头数据
|
|
|
|
+ async getColumnData (auth_id) {
|
|
|
|
+ try {
|
|
|
|
+ const { code, returnData } = await this.getQueryList(SERVICE_ID.sysUserAuthId, [{
|
|
|
|
+ user_id: getToken('userid'),
|
|
|
|
+ auth_id
|
|
|
|
+ }]);
|
|
|
|
+ if (code == 0) {
|
|
|
|
+ if (returnData && returnData.length) {
|
|
|
|
+ const nodeDatas = returnData.filter(item => item.needShow)
|
|
|
|
+ const newNodeDatas = nodeDatas.sort((a, b) => a.orderNumber - b.orderNumber)
|
|
|
|
+ this.infoArrs = newNodeDatas.slice(0, 6)
|
|
|
|
+ this.msgs1 = newNodeDatas.slice(6)
|
|
|
|
+ this.getLuggageInfo(auth_id)
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("获取表头数据失败");
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log(error)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//获取行李信息
|
|
//获取行李信息
|
|
- async getLuggageInfo () {
|
|
|
|
|
|
+ async getLuggageInfo (auth_id) {
|
|
try {
|
|
try {
|
|
- const { code, returnData } = await this.getQueryList(SERVICE_ID.bagTableId, this.query)
|
|
|
|
|
|
+ const { code, returnData } = await this.getQueryListAuth(SERVICE_ID.bagTableId, this.query, 1, 20, auth_id)
|
|
if (code == 0 && returnData && returnData.length) {
|
|
if (code == 0 && returnData && returnData.length) {
|
|
const datasObj = [...returnData][0]
|
|
const datasObj = [...returnData][0]
|
|
this.passengerName = datasObj['passengerName']
|
|
this.passengerName = datasObj['passengerName']
|
|
|
|
+ this.PNRNO = datasObj['PNRNO']
|
|
for (const key in datasObj) {
|
|
for (const key in datasObj) {
|
|
this.infoArrs.map(item => {
|
|
this.infoArrs.map(item => {
|
|
- if (item.prop == key) {
|
|
|
|
|
|
+ if (item.columnName == key) {
|
|
item.value = datasObj[key]
|
|
item.value = datasObj[key]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.msgs1.map(item => {
|
|
this.msgs1.map(item => {
|
|
- if (item.prop == key) {
|
|
|
|
- item.value = datasObj[key]
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.msgs2.map(item => {
|
|
|
|
- if (item.prop == key) {
|
|
|
|
|
|
+ if (item.columnName == key) {
|
|
item.value = datasObj[key]
|
|
item.value = datasObj[key]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -251,11 +152,11 @@ export default {
|
|
//获取行李号
|
|
//获取行李号
|
|
async getLuggageNums () {
|
|
async getLuggageNums () {
|
|
try {
|
|
try {
|
|
- const { flightDate, flightNo } = this.query
|
|
|
|
|
|
+ const { carrierFlights, carrierFlightsDate } = this.query
|
|
const { code, returnData } = await this.getQueryList(SERVICE_ID.bagTableId, {
|
|
const { code, returnData } = await this.getQueryList(SERVICE_ID.bagTableId, {
|
|
- passengerName: this.passengerName,
|
|
|
|
- flightDate,
|
|
|
|
- flightNo
|
|
|
|
|
|
+ PNRNO: this.PNRNO,
|
|
|
|
+ carrierFlightsDate,
|
|
|
|
+ carrierFlights
|
|
})
|
|
})
|
|
if (code == 0 && returnData && returnData.length) {
|
|
if (code == 0 && returnData && returnData.length) {
|
|
this.detailsArr = [...returnData]
|
|
this.detailsArr = [...returnData]
|
|
@@ -355,8 +256,16 @@ export default {
|
|
&-msgs {
|
|
&-msgs {
|
|
padding: 25px 0;
|
|
padding: 25px 0;
|
|
height: 104px;
|
|
height: 104px;
|
|
|
|
+ ::v-deep .el-scrollbar__wrap {
|
|
|
|
+ overflow-x: hidden;
|
|
|
|
+ }
|
|
|
|
+ ::v-deep .el-scrollbar__bar.is-horizontal {
|
|
|
|
+ height: 0 !important;
|
|
|
|
+ }
|
|
&-l1 {
|
|
&-l1 {
|
|
- margin-bottom: 22px;
|
|
|
|
|
|
+ .msgs-list {
|
|
|
|
+ margin-bottom: 22px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|