|
|
@ -153,13 +153,8 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="船公司">
|
|
|
|
<a-form-item label="船公司">
|
|
|
|
<a-select
|
|
|
|
<a-select show-search placeholder="请选择船公司" v-model="form.carrierId" :show-arrow="false"
|
|
|
|
show-search
|
|
|
|
:filter-option="filterOption">
|
|
|
|
placeholder="请选择船公司"
|
|
|
|
|
|
|
|
v-model="form.carrierId"
|
|
|
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
|
|
|
:filter-option="filterOption"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option v-for="item in carrierList" :key="item.code" :value="item.code">
|
|
|
|
<a-select-option v-for="item in carrierList" :key="item.code" :value="item.code">
|
|
|
|
{{ item.cnName }} / {{ item.code }}
|
|
|
|
{{ item.cnName }} / {{ item.code }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
@ -175,48 +170,25 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a-button type="primary" @click="handleAdd" style="margin-right: 10px;">新增</a-button>
|
|
|
|
<a-button type="primary" @click="handleAdd" style="margin-right: 10px;">新增</a-button>
|
|
|
|
<a-button type="primary" @click="handleOpenCopy" style="margin-right: 10px;">批量复制</a-button>
|
|
|
|
<a-button type="primary" @click="handleOpenCopy" style="margin-right: 10px;">批量复制</a-button>
|
|
|
|
<a-button
|
|
|
|
<a-button type="primary" :loading="sendLoading" @click="handleSendAll"
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
:loading="sendLoading"
|
|
|
|
|
|
|
|
@click="handleSendAll"
|
|
|
|
|
|
|
|
style="margin-right: 10px;">批量发送</a-button>
|
|
|
|
style="margin-right: 10px;">批量发送</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="init">重置</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="init">重置</a-button>
|
|
|
|
<tableSort
|
|
|
|
<tableSort style="margin-left: 10px;" @columnChange="handleColumnChange" :columns="columns"
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
|
|
|
@columnChange="handleColumnChange"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
|
|
|
|
:columnsAll="columnsAll"></tableSort>
|
|
|
|
:columnsAll="columnsAll"></tableSort>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<vxe-grid
|
|
|
|
<vxe-grid :data="loadData" stripe resizable round ref="table" :columns="columns" :loading="loading"
|
|
|
|
:data="loadData"
|
|
|
|
style="height: 100%;" :checkbox_config="{ checkField: 'checked' }" :checkbox-config="{ highlight: true }"
|
|
|
|
stripe
|
|
|
|
:height="tableHeight" @cell-dblclick="handledbclick" @sort-change="tableSortChange"
|
|
|
|
resizable
|
|
|
|
@resizable-change="resizableChange" @checkbox-change="checkboxChangeEvent" empty-text="没有更多数据了!">
|
|
|
|
round
|
|
|
|
|
|
|
|
ref="table"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
|
|
style="height: 100%;"
|
|
|
|
|
|
|
|
:checkbox_config="{ checkField: 'checked' }"
|
|
|
|
|
|
|
|
:checkbox-config="{ highlight: true }"
|
|
|
|
|
|
|
|
:height="tableHeight"
|
|
|
|
|
|
|
|
@cell-dblclick="handledbclick"
|
|
|
|
|
|
|
|
@sort-change="tableSortChange"
|
|
|
|
|
|
|
|
@resizable-change="resizableChange"
|
|
|
|
|
|
|
|
@checkbox-change="checkboxChangeEvent"
|
|
|
|
|
|
|
|
empty-text="没有更多数据了!">
|
|
|
|
|
|
|
|
<template #caozuo="{ row }">
|
|
|
|
<template #caozuo="{ row }">
|
|
|
|
<a-icon @click="handleEdit(row)" type="form" style="cursor: pointer;" :style="{ color: '#13c2c2' }" />
|
|
|
|
<a-icon @click="handleEdit(row)" type="form" style="cursor: pointer;" :style="{ color: '#13c2c2' }" />
|
|
|
|
<a-popconfirm
|
|
|
|
<a-popconfirm title="请确认删除?" ok-text="是" cancel-text="否" @confirm="e => {
|
|
|
|
title="请确认删除?"
|
|
|
|
confirm(e, row.id)
|
|
|
|
ok-text="是"
|
|
|
|
}
|
|
|
|
cancel-text="否"
|
|
|
|
|
|
|
|
@confirm="e => {
|
|
|
|
|
|
|
|
confirm(e, row.id)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
">
|
|
|
|
">
|
|
|
|
<a-icon type="delete" style="margin:0 8px;cursor: pointer;" :style="{ color: '#13c2c2' }" />
|
|
|
|
<a-icon type="delete" style="margin:0 8px;cursor: pointer;" :style="{ color: '#13c2c2' }" />
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm>
|
|
|
@ -231,29 +203,18 @@
|
|
|
|
<span>{{ row.shipRateTotalCurrency }} {{ row.shipRateTotalAmount }}</span>
|
|
|
|
<span>{{ row.shipRateTotalCurrency }} {{ row.shipRateTotalAmount }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #isRecvBC="{ row }">
|
|
|
|
<template #isRecvBC="{ row }">
|
|
|
|
<a-icon
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: green;font-size: 16px;" :title="row.lstRecvBCDate"
|
|
|
|
type="bulb"
|
|
|
|
|
|
|
|
theme="filled"
|
|
|
|
|
|
|
|
style="color: green;font-size: 16px;"
|
|
|
|
|
|
|
|
:title="row.lstRecvBCDate"
|
|
|
|
|
|
|
|
v-if="row.isRecvBC" />
|
|
|
|
v-if="row.isRecvBC" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #isRecvBKCancel="{ row }">
|
|
|
|
<template #isRecvBKCancel="{ row }">
|
|
|
|
<a-icon
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: red;font-size: 16px;" :title="row.lstRecvBCDate"
|
|
|
|
type="bulb"
|
|
|
|
|
|
|
|
theme="filled"
|
|
|
|
|
|
|
|
style="color: red;font-size: 16px;"
|
|
|
|
|
|
|
|
:title="row.lstRecvBCDate"
|
|
|
|
|
|
|
|
v-if="row.isRecvBKCancel" />
|
|
|
|
v-if="row.isRecvBKCancel" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #isShipperOwned="{ row }">
|
|
|
|
<template #isShipperOwned="{ row }">
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #pager>
|
|
|
|
<template #pager>
|
|
|
|
<vxe-pager
|
|
|
|
<vxe-pager :current-page="queryParam.pageNo" :page-size="queryParam.pageSize" :total="queryParam.totalResult"
|
|
|
|
:current-page="queryParam.pageNo"
|
|
|
|
|
|
|
|
:page-size="queryParam.pageSize"
|
|
|
|
|
|
|
|
:total="queryParam.totalResult"
|
|
|
|
|
|
|
|
:page-sizes="[10, 50, 100, 200, 500]"
|
|
|
|
:page-sizes="[10, 50, 100, 200, 500]"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
@page-change="handlePageChange">
|
|
|
@ -266,11 +227,7 @@
|
|
|
|
<a-modal title="输入复制数量" :visible="copyflag" :footer="null" @cancel="copyflag = false">
|
|
|
|
<a-modal title="输入复制数量" :visible="copyflag" :footer="null" @cancel="copyflag = false">
|
|
|
|
<a-form :form="copyMoreForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" @submit="handleSubmitCopyMore">
|
|
|
|
<a-form :form="copyMoreForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" @submit="handleSubmitCopyMore">
|
|
|
|
<a-form-item label="数量">
|
|
|
|
<a-form-item label="数量">
|
|
|
|
<a-input-number
|
|
|
|
<a-input-number style="width: 100%;" :min="1" :max="50" :precision="0"
|
|
|
|
style="width: 100%;"
|
|
|
|
|
|
|
|
:min="1"
|
|
|
|
|
|
|
|
:max="50"
|
|
|
|
|
|
|
|
:precision="0"
|
|
|
|
|
|
|
|
v-decorator="['number', { rules: [{ required: true, message: '请输入数量' }], initialValue: 1 }]" />
|
|
|
|
v-decorator="['number', { rules: [{ required: true, message: '请输入数量' }], initialValue: 1 }]" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item :wrapper-col="{ span: 12, offset: 5 }">
|
|
|
|
<a-form-item :wrapper-col="{ span: 12, offset: 5 }">
|
|
|
@ -281,7 +238,7 @@
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
<a-modal title="" :visible="addFlag" :footer="null" @cancel="addFlag = false">
|
|
|
|
<a-modal title="" :visible="addFlag" :footer="null" @cancel="addFlag = false">
|
|
|
|
<div class="change">
|
|
|
|
<div class="change">
|
|
|
|
<div @click="handleOpen('api')" v-if="mskApiFlag" >MSKAPI订舱</div>
|
|
|
|
<div @click="handleOpen('api')" v-if="mskApiFlag">MSKAPI订舱</div>
|
|
|
|
<div @click="handleOpen('spot')" v-if="mskSpotFlag">MSKSPOT订舱</div>
|
|
|
|
<div @click="handleOpen('spot')" v-if="mskSpotFlag">MSKSPOT订舱</div>
|
|
|
|
<div @click="handleOpen('eid')" v-if="mskEdiFlag">MSKEID订舱</div>
|
|
|
|
<div @click="handleOpen('eid')" v-if="mskEdiFlag">MSKEID订舱</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -289,7 +246,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT,
|
|
|
|
import {
|
|
|
|
|
|
|
|
mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT,
|
|
|
|
BatchSend, CheckWarningBatchSend, CheckWarningBatchCopy, BatchSendSPOT
|
|
|
|
BatchSend, CheckWarningBatchSend, CheckWarningBatchCopy, BatchSendSPOT
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
@ -616,6 +574,7 @@ export default {
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
this.$refs.mskBookingOrder.spotInit(pkIdArr[0], 'copy', this.copyMoreForm.getFieldValue('number'), pkIdArr[0])
|
|
|
|
this.$refs.mskBookingOrder.spotInit(pkIdArr[0], 'copy', this.copyMoreForm.getFieldValue('number'), pkIdArr[0])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.copyflag = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSendAll() {
|
|
|
|
handleSendAll() {
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
@ -627,74 +586,74 @@ export default {
|
|
|
|
const apiFlag = select.every(obj => obj.bookingChannelType === 'CON_API');
|
|
|
|
const apiFlag = select.every(obj => obj.bookingChannelType === 'CON_API');
|
|
|
|
if (spotFlag || apiFlag) {
|
|
|
|
if (spotFlag || apiFlag) {
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
const pkIdArr = select.map((item, index) => {
|
|
|
|
return item.id
|
|
|
|
return item.id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.sendLoading = true
|
|
|
|
this.sendLoading = true
|
|
|
|
CheckWarningBatchSend(pkIdArr).then(res => {
|
|
|
|
CheckWarningBatchSend(pkIdArr).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
if (spotFlag) {
|
|
|
|
if (spotFlag) {
|
|
|
|
BatchSendSPOT(pkIdArr).then(res => {
|
|
|
|
BatchSendSPOT(pkIdArr).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.data) {
|
|
|
|
if (res.data) {
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
this.$notification.open({
|
|
|
|
this.$notification.open({
|
|
|
|
message: '批量发送',
|
|
|
|
message: '批量发送',
|
|
|
|
description: (<div>
|
|
|
|
description: (<div>
|
|
|
|
{arr.map(item => {
|
|
|
|
{arr.map(item => {
|
|
|
|
return <div >{item}</div>
|
|
|
|
return <div >{item}</div>
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</div>),
|
|
|
|
</div>),
|
|
|
|
duration: 15
|
|
|
|
duration: 15
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.sendLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.sendLoading = false
|
|
|
|
if (apiFlag) {
|
|
|
|
})
|
|
|
|
BatchSend(pkIdArr).then(res => {
|
|
|
|
}
|
|
|
|
if (res.success) {
|
|
|
|
if (apiFlag) {
|
|
|
|
if (res.data) {
|
|
|
|
BatchSend(pkIdArr).then(res => {
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
if (res.success) {
|
|
|
|
this.$notification.open({
|
|
|
|
if (res.data) {
|
|
|
|
message: '批量发送',
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
description: (<div>
|
|
|
|
this.$notification.open({
|
|
|
|
{arr.map(item => {
|
|
|
|
message: '批量发送',
|
|
|
|
return <div >{item}</div>
|
|
|
|
description: (<div>
|
|
|
|
})}
|
|
|
|
{arr.map(item => {
|
|
|
|
</div>),
|
|
|
|
return <div >{item}</div>
|
|
|
|
duration: 15
|
|
|
|
})}
|
|
|
|
});
|
|
|
|
</div>),
|
|
|
|
this.FnGetData()
|
|
|
|
duration: 15
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
this.FnGetData()
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.sendLoading = false
|
|
|
|
this.$message.error(res.message)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.sendLoading = false
|
|
|
|
this.sendLoading = false
|
|
|
|
})
|
|
|
|
const that = this
|
|
|
|
|
|
|
|
const arr = res.message.split('#')
|
|
|
|
|
|
|
|
this.$confirm({
|
|
|
|
|
|
|
|
title: '批量发送提醒',
|
|
|
|
|
|
|
|
okText: '继续',
|
|
|
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
|
|
|
content: (<div>
|
|
|
|
|
|
|
|
{arr.map(item => {
|
|
|
|
|
|
|
|
return <div style={{ color: 'red' }} >{item}</div>
|
|
|
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
是否继续?</div>),
|
|
|
|
|
|
|
|
onOk() {
|
|
|
|
|
|
|
|
that.handleBatchSend()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
})
|
|
|
|
this.sendLoading = false
|
|
|
|
|
|
|
|
const that = this
|
|
|
|
|
|
|
|
const arr = res.message.split('#')
|
|
|
|
|
|
|
|
this.$confirm({
|
|
|
|
|
|
|
|
title: '批量发送提醒',
|
|
|
|
|
|
|
|
okText: '继续',
|
|
|
|
|
|
|
|
cancelText: '取消',
|
|
|
|
|
|
|
|
content: (<div>
|
|
|
|
|
|
|
|
{arr.map(item => {
|
|
|
|
|
|
|
|
return <div style={{ color: 'red' }} >{item}</div>
|
|
|
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
是否继续?</div>),
|
|
|
|
|
|
|
|
onOk() {
|
|
|
|
|
|
|
|
that.handleBatchSend()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.warning('只能选择同一类型的数据')
|
|
|
|
this.$message.warning('只能选择同一类型的数据')
|
|
|
|
return false
|
|
|
|
return false
|
|
|
@ -708,47 +667,47 @@ export default {
|
|
|
|
this.sendLoading = true
|
|
|
|
this.sendLoading = true
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
BatchSendSPOT(pkIdArr).then(res => {
|
|
|
|
BatchSendSPOT(pkIdArr).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.data) {
|
|
|
|
if (res.data) {
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
this.$notification.open({
|
|
|
|
this.$notification.open({
|
|
|
|
message: '批量发送',
|
|
|
|
message: '批量发送',
|
|
|
|
description: (<div>
|
|
|
|
description: (<div>
|
|
|
|
{arr.map(item => {
|
|
|
|
{arr.map(item => {
|
|
|
|
return <div >{item}</div>
|
|
|
|
return <div >{item}</div>
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</div>),
|
|
|
|
</div>),
|
|
|
|
duration: 15
|
|
|
|
duration: 15
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.sendLoading = false
|
|
|
|
this.$message.error(res.message)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.sendLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (select[0].bookingChannelType === 'CON_API') {
|
|
|
|
if (select[0].bookingChannelType === 'CON_API') {
|
|
|
|
BatchSend(pkIdArr).then(res => {
|
|
|
|
BatchSend(pkIdArr).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.data) {
|
|
|
|
if (res.data) {
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
const arr = res.data.split('#')
|
|
|
|
this.$notification.open({
|
|
|
|
this.$notification.open({
|
|
|
|
message: '批量发送',
|
|
|
|
message: '批量发送',
|
|
|
|
description: (<div>
|
|
|
|
description: (<div>
|
|
|
|
{arr.map(item => {
|
|
|
|
{arr.map(item => {
|
|
|
|
return <div >{item}</div>
|
|
|
|
return <div >{item}</div>
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
</div>),
|
|
|
|
</div>),
|
|
|
|
duration: 15
|
|
|
|
duration: 15
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.sendLoading = false
|
|
|
|
this.$message.error(res.message)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.sendLoading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleOpenCopy() {
|
|
|
|
handleOpenCopy() {
|
|
|
@ -947,27 +906,27 @@ export default {
|
|
|
|
this.copyLoad = true
|
|
|
|
this.copyLoad = true
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
maskCopySPOT(data).then(res => {
|
|
|
|
maskCopySPOT(data).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('复制成功')
|
|
|
|
this.$message.success('复制成功')
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
this.copyflag = false
|
|
|
|
this.copyflag = false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.copyLoad = false
|
|
|
|
this.copyLoad = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (select[0].bookingChannelType === 'CON_API') {
|
|
|
|
if (select[0].bookingChannelType === 'CON_API') {
|
|
|
|
maskCopy(data).then(res => {
|
|
|
|
maskCopy(data).then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('复制成功')
|
|
|
|
this.$message.success('复制成功')
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
this.copyflag = false
|
|
|
|
this.copyflag = false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.copyLoad = false
|
|
|
|
this.copyLoad = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkboxChangeEvent() {
|
|
|
|
checkboxChangeEvent() {
|
|
|
@ -1110,23 +1069,32 @@ export default {
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
if (this.tenantParam.length === 0) {
|
|
|
|
if (this.tenantParam.length === 0) {
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.addFlag = true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.tenantParam.includes('MSK_CON_API')) {
|
|
|
|
if (this.tenantParam.length === 1) {
|
|
|
|
this.mskApiFlag = true
|
|
|
|
if (this.tenantParam[0] === 'MSK_CON_API') {
|
|
|
|
} else {
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
this.mskApiFlag = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.tenantParam[0] === 'MSK_SPOT_API') {
|
|
|
|
if (this.tenantParam.includes('MSK_SPOT_API')) {
|
|
|
|
this.$refs.mskBookingOrder.spotInit()
|
|
|
|
this.mskSpotFlag = true
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.mskSpotFlag = false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.tenantParam.includes('MSK_INTTR_EDI')) {
|
|
|
|
if (this.tenantParam.length > 1) {
|
|
|
|
this.mskEdiFlag = true
|
|
|
|
if (this.tenantParam.includes('MSK_CON_API')) {
|
|
|
|
} else {
|
|
|
|
this.mskApiFlag = true
|
|
|
|
this.mskEdiFlag = false
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.mskApiFlag = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.tenantParam.includes('MSK_SPOT_API')) {
|
|
|
|
|
|
|
|
this.mskSpotFlag = true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.mskSpotFlag = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.tenantParam.includes('MSK_INTTR_EDI')) {
|
|
|
|
|
|
|
|
this.mskEdiFlag = true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.mskEdiFlag = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.addFlag = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1172,11 +1140,12 @@ export default {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
margin-top: 25px;
|
|
|
|
margin-top: 25px;
|
|
|
|
|
|
|
|
|
|
|
|
div {
|
|
|
|
div {
|
|
|
|
width: 120px;
|
|
|
|
width: 120px;
|
|
|
|
height: 50px;
|
|
|
|
height: 50px;
|
|
|
|
background-color: rgb(247,249,250);
|
|
|
|
background-color: rgb(247, 249, 250);
|
|
|
|
border: 1px solid rgb(247,249,250);
|
|
|
|
border: 1px solid rgb(247, 249, 250);
|
|
|
|
color: rgb(105, 102, 102);
|
|
|
|
color: rgb(105, 102, 102);
|
|
|
|
line-height: 50px;
|
|
|
|
line-height: 50px;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
@ -1184,8 +1153,9 @@ export default {
|
|
|
|
transition: box-shadow 0.3s, background-color 0.3s;
|
|
|
|
transition: box-shadow 0.3s, background-color 0.3s;
|
|
|
|
margin-right: 10px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
div:hover {
|
|
|
|
div:hover {
|
|
|
|
border: 1px solid #d1cfcf;
|
|
|
|
border: 1px solid #d1cfcf;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|