|
|
|
@ -153,13 +153,8 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
<a-form-item label="船公司">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
placeholder="请选择船公司"
|
|
|
|
|
v-model="form.carrierId"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="filterOption"
|
|
|
|
|
>
|
|
|
|
|
<a-select show-search 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">
|
|
|
|
|
{{ item.cnName }} / {{ item.code }}
|
|
|
|
|
</a-select-option>
|
|
|
|
@ -175,46 +170,23 @@
|
|
|
|
|
<div>
|
|
|
|
|
<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"
|
|
|
|
|
:loading="sendLoading"
|
|
|
|
|
@click="handleSendAll"
|
|
|
|
|
<a-button type="primary" :loading="sendLoading" @click="handleSendAll"
|
|
|
|
|
style="margin-right: 10px;">批量发送</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
|
<a-button style="margin-left: 8px" @click="init">重置</a-button>
|
|
|
|
|
<tableSort
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
@columnChange="handleColumnChange"
|
|
|
|
|
:columns="columns"
|
|
|
|
|
<tableSort style="margin-left: 10px;" @columnChange="handleColumnChange" :columns="columns"
|
|
|
|
|
:columnsAll="columnsAll"></tableSort>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<vxe-grid
|
|
|
|
|
:data="loadData"
|
|
|
|
|
stripe
|
|
|
|
|
resizable
|
|
|
|
|
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="没有更多数据了!">
|
|
|
|
|
<vxe-grid :data="loadData" stripe resizable 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 }">
|
|
|
|
|
<a-icon @click="handleEdit(row)" type="form" style="cursor: pointer;" :style="{ color: '#13c2c2' }" />
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
title="请确认删除?"
|
|
|
|
|
ok-text="是"
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
@confirm="e => {
|
|
|
|
|
<a-popconfirm title="请确认删除?" ok-text="是" cancel-text="否" @confirm="e => {
|
|
|
|
|
confirm(e, row.id)
|
|
|
|
|
}
|
|
|
|
|
">
|
|
|
|
@ -231,29 +203,18 @@
|
|
|
|
|
<span>{{ row.shipRateTotalCurrency }} {{ row.shipRateTotalAmount }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
<template #isRecvBC="{ row }">
|
|
|
|
|
<a-icon
|
|
|
|
|
type="bulb"
|
|
|
|
|
theme="filled"
|
|
|
|
|
style="color: green;font-size: 16px;"
|
|
|
|
|
:title="row.lstRecvBCDate"
|
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: green;font-size: 16px;" :title="row.lstRecvBCDate"
|
|
|
|
|
v-if="row.isRecvBC" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #isRecvBKCancel="{ row }">
|
|
|
|
|
<a-icon
|
|
|
|
|
type="bulb"
|
|
|
|
|
theme="filled"
|
|
|
|
|
style="color: red;font-size: 16px;"
|
|
|
|
|
:title="row.lstRecvBCDate"
|
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: red;font-size: 16px;" :title="row.lstRecvBCDate"
|
|
|
|
|
v-if="row.isRecvBKCancel" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #isShipperOwned="{ row }">
|
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
|
</template>
|
|
|
|
|
<template #pager>
|
|
|
|
|
<vxe-pager
|
|
|
|
|
:current-page="queryParam.pageNo"
|
|
|
|
|
:page-size="queryParam.pageSize"
|
|
|
|
|
:total="queryParam.totalResult"
|
|
|
|
|
<vxe-pager :current-page="queryParam.pageNo" :page-size="queryParam.pageSize" :total="queryParam.totalResult"
|
|
|
|
|
:page-sizes="[10, 50, 100, 200, 500]"
|
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
@ -266,11 +227,7 @@
|
|
|
|
|
<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-item label="数量">
|
|
|
|
|
<a-input-number
|
|
|
|
|
style="width: 100%;"
|
|
|
|
|
:min="1"
|
|
|
|
|
:max="50"
|
|
|
|
|
:precision="0"
|
|
|
|
|
<a-input-number style="width: 100%;" :min="1" :max="50" :precision="0"
|
|
|
|
|
v-decorator="['number', { rules: [{ required: true, message: '请输入数量' }], initialValue: 1 }]" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<a-form-item :wrapper-col="{ span: 12, offset: 5 }">
|
|
|
|
@ -289,7 +246,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT,
|
|
|
|
|
import {
|
|
|
|
|
mskGetPage, mskDelete, DjyUserConfigMulti, maskCopy, maskCopySPOT,
|
|
|
|
|
BatchSend, CheckWarningBatchSend, CheckWarningBatchCopy, BatchSendSPOT
|
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
@ -616,6 +574,7 @@ export default {
|
|
|
|
|
if (select[0].bookingChannelType === 'SPOT_API') {
|
|
|
|
|
this.$refs.mskBookingOrder.spotInit(pkIdArr[0], 'copy', this.copyMoreForm.getFieldValue('number'), pkIdArr[0])
|
|
|
|
|
}
|
|
|
|
|
this.copyflag = false
|
|
|
|
|
},
|
|
|
|
|
handleSendAll() {
|
|
|
|
|
const select = this.$refs.table.getCheckboxRecords()
|
|
|
|
@ -1110,9 +1069,16 @@ export default {
|
|
|
|
|
handleAdd() {
|
|
|
|
|
if (this.tenantParam.length === 0) {
|
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
|
} else {
|
|
|
|
|
this.addFlag = true
|
|
|
|
|
}
|
|
|
|
|
if (this.tenantParam.length === 1) {
|
|
|
|
|
if (this.tenantParam[0] === 'MSK_CON_API') {
|
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
|
}
|
|
|
|
|
if (this.tenantParam[0] === 'MSK_SPOT_API') {
|
|
|
|
|
this.$refs.mskBookingOrder.spotInit()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.tenantParam.length > 1) {
|
|
|
|
|
if (this.tenantParam.includes('MSK_CON_API')) {
|
|
|
|
|
this.mskApiFlag = true
|
|
|
|
|
} else {
|
|
|
|
@ -1128,6 +1094,8 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.mskEdiFlag = false
|
|
|
|
|
}
|
|
|
|
|
this.addFlag = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1172,6 +1140,7 @@ export default {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
|
|
|
|
|
div {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 50px;
|
|
|
|
@ -1184,6 +1153,7 @@ export default {
|
|
|
|
|
transition: box-shadow 0.3s, background-color 0.3s;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div:hover {
|
|
|
|
|
border: 1px solid #d1cfcf;
|
|
|
|
|
}
|
|
|
|
|