|
|
@ -54,6 +54,10 @@
|
|
|
|
:align="item.align"
|
|
|
|
:align="item.align"
|
|
|
|
:show-overflow="true"
|
|
|
|
:show-overflow="true"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
|
|
<span v-if="item.dataIndex == 'Carrier'">{{ FnCarrier(row[item.dataIndex]) }}</span>
|
|
|
|
|
|
|
|
<span v-else>{{ row[item.dataIndex] }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column title="操作" fixed="right" width="200" align="center">
|
|
|
|
<vxe-column title="操作" fixed="right" width="200" align="center">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
@ -77,6 +81,7 @@
|
|
|
|
import { getDjyTenantConfig, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig'
|
|
|
|
import { getDjyTenantConfig, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig'
|
|
|
|
import addForm from './addForm.vue'
|
|
|
|
import addForm from './addForm.vue'
|
|
|
|
import editForm from './editForm.vue'
|
|
|
|
import editForm from './editForm.vue'
|
|
|
|
|
|
|
|
import { GetCarrierlist } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -108,12 +113,18 @@ export default {
|
|
|
|
title: '说明',
|
|
|
|
title: '说明',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'remarks'
|
|
|
|
dataIndex: 'remarks'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '船公司',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
dataIndex: 'Carrier'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
loadData: [],
|
|
|
|
loadData: [],
|
|
|
|
DisplayLoadData: []
|
|
|
|
DisplayLoadData: [],
|
|
|
|
|
|
|
|
CarrierList: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {},
|
|
|
|
created() {},
|
|
|
@ -124,6 +135,15 @@ export default {
|
|
|
|
...mapGetters(['userInfo'])
|
|
|
|
...mapGetters(['userInfo'])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
FnCarrier(data) {
|
|
|
|
|
|
|
|
let RData = ''
|
|
|
|
|
|
|
|
this.CarrierList.forEach(item => {
|
|
|
|
|
|
|
|
if (data == item.code) {
|
|
|
|
|
|
|
|
RData = item.cnName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return RData
|
|
|
|
|
|
|
|
},
|
|
|
|
FnQuery() {
|
|
|
|
FnQuery() {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
|
|
|
|
getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
|
|
|
@ -213,6 +233,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
init() {
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
GetCarrierlist().then(res => {
|
|
|
|
|
|
|
|
this.CarrierList = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnGetData() {
|
|
|
|
FnGetData() {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|