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