|
|
@ -129,9 +129,10 @@
|
|
|
|
<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 style="margin-left: 10px;" @columnChange="handleColumnChange" :columns="columns" :columnsAll="columnsAll"></tableSort>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<vxe-table
|
|
|
|
<!-- <vxe-table
|
|
|
|
:data="loadData"
|
|
|
|
:data="loadData"
|
|
|
|
stripe
|
|
|
|
stripe
|
|
|
|
resizable
|
|
|
|
resizable
|
|
|
@ -142,48 +143,45 @@
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<vxe-column
|
|
|
|
<vxe-column
|
|
|
|
v-for="item in columns"
|
|
|
|
v-for="item in columns"
|
|
|
|
:key="`${item.dataIndex}3`"
|
|
|
|
:key="`${item.field}3`"
|
|
|
|
:field="item.dataIndex"
|
|
|
|
:field="item.field"
|
|
|
|
:min-width="item.width"
|
|
|
|
:min-width="item.width"
|
|
|
|
:title="item.title"
|
|
|
|
:title="item.title"
|
|
|
|
:fixed="item.fixed"
|
|
|
|
:fixed="item.fixed"
|
|
|
|
:align="item.align">
|
|
|
|
:align="item.align">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<div v-if="item.dataIndex == 'vessel'">
|
|
|
|
<div v-if="item.field == 'vessel'">
|
|
|
|
<span>{{ row.vessel }} / {{ row.voyno }}</span>
|
|
|
|
<span>{{ row.vessel }} / {{ row.voyno }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isReefer'">
|
|
|
|
<div v-else-if="item.field == 'isReefer'">
|
|
|
|
<span v-if="row.isReefer">是</span>
|
|
|
|
<span v-if="row.isReefer">是</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isJob'">
|
|
|
|
<div v-else-if="item.field == 'isJob'">
|
|
|
|
<span v-if="row.isJob">是</span>
|
|
|
|
<span v-if="row.isJob">是</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isbookingPartOwnPrice'">
|
|
|
|
<div v-else-if="item.field == 'isbookingPartOwnPrice'">
|
|
|
|
<span v-if="row.isbookingPartOwnPrice">是</span>
|
|
|
|
<span v-if="row.isbookingPartOwnPrice">是</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isImportReturned'">
|
|
|
|
<div v-else-if="item.field == 'isImportReturned'">
|
|
|
|
<span v-if="row.isImportReturned">是</span>
|
|
|
|
<span v-if="row.isImportReturned">是</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
<span v-else>否</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isShipperOwned'">
|
|
|
|
<div v-else-if="item.field == 'isRecvBC'">
|
|
|
|
<span v-if="row.isShipperOwned">是</span>
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: green;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBC" />
|
|
|
|
<span v-else>否</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isRecvBC'">
|
|
|
|
<div v-else-if="item.field == 'isRecvBKCancel'">
|
|
|
|
<span :title="row.lstRecvBCDate" v-if="row.isRecvBC" style="display: inline-block;width:15px;height: 15px;border-radius: 50%;background: green;cursor: pointer;"></span>
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: red;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBKCancel" />
|
|
|
|
<span v-else style="display: inline-block;width:15px;height: 15px;border-radius: 50%;background: gray"></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else-if="item.dataIndex == 'isRecvBKCancel'">
|
|
|
|
<div v-else-if="item.field == 'isShipperOwned'">
|
|
|
|
<span :title="row.lstRecvBKCancelDate" v-if="row.isRecvBKCancel" style="display: inline-block;width:15px;height: 15px;border-radius: 50%;background: green;cursor: pointer;"></span>
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
<span v-else style="display: inline-block;width:15px;height: 15px;border-radius: 50%;background: gray"></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span v-else>{{ row[item.dataIndex] }}</span>
|
|
|
|
<span v-else>{{ row[item.field] }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
<vxe-column title="操作" fixed="right" width="120" align="center">
|
|
|
|
<vxe-column title="操作" fixed="right" width="120" align="center">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<vxe-button type="text" @click="handleEdit(row.id)">
|
|
|
|
<vxe-button type="text" @click="handleEdit(row.id)">
|
|
|
|
<a-icon type="form" :style="{ color: '#13c2c2' }" />
|
|
|
|
<a-icon type="form" :style="{ color: '#13c2c2' }" />
|
|
|
@ -201,27 +199,58 @@
|
|
|
|
</vxe-button>
|
|
|
|
</vxe-button>
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-column>
|
|
|
|
</vxe-table>
|
|
|
|
</vxe-table>
|
|
|
|
<vxe-pager
|
|
|
|
<vxe-pager :loading="loading" :current-page="queryParam.pageNo" :page-size="queryParam.pageSize"
|
|
|
|
|
|
|
|
:total="queryParam.totalResult" :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
|
|
|
|
</vxe-pager> -->
|
|
|
|
|
|
|
|
<vxe-grid
|
|
|
|
|
|
|
|
:data="loadData"
|
|
|
|
|
|
|
|
stripe
|
|
|
|
|
|
|
|
resizable
|
|
|
|
|
|
|
|
round
|
|
|
|
|
|
|
|
ref="table"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
:loading="loading"
|
|
|
|
:loading="loading"
|
|
|
|
:current-page="queryParam.pageNo"
|
|
|
|
@cell-dblclick="handledbclick"
|
|
|
|
:page-size="queryParam.pageSize"
|
|
|
|
@sort-change="tableSortChange"
|
|
|
|
:total="queryParam.totalResult"
|
|
|
|
@resizable-change="resizableChange"
|
|
|
|
|
|
|
|
height="600px"
|
|
|
|
|
|
|
|
empty-text="没有更多数据了!">
|
|
|
|
|
|
|
|
<template #caozuo="{ row }">
|
|
|
|
|
|
|
|
<vxe-button style="padding:0;margin:0;margin-right:5px;" type="text" @click="$refs.editForm.edit(row)">
|
|
|
|
|
|
|
|
<a-icon type="form" :style="{ color: '#13c2c2' }" />
|
|
|
|
|
|
|
|
</vxe-button>
|
|
|
|
|
|
|
|
<a-popconfirm title="是否确认删除?" ok-text="是" cancel-text="否" @confirm="confirm(row)">
|
|
|
|
|
|
|
|
<vxe-button style="padding:0;margin:0;" type="text">
|
|
|
|
|
|
|
|
<a-icon type="delete" :style="{ color: '#13c2c2' }" />
|
|
|
|
|
|
|
|
</vxe-button>
|
|
|
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #pager>
|
|
|
|
|
|
|
|
<vxe-pager
|
|
|
|
|
|
|
|
:current-page="queryParam.PageNo"
|
|
|
|
|
|
|
|
:page-size="queryParam.PageSize"
|
|
|
|
|
|
|
|
:total="queryParam.totalCount"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
</vxe-pager>
|
|
|
|
</vxe-pager>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</vxe-grid>
|
|
|
|
</a-card>
|
|
|
|
</a-card>
|
|
|
|
<mskBookingOrder @handleSuccess="handleSuccess" ref="mskBookingOrder"></mskBookingOrder>
|
|
|
|
<mskBookingOrder @handleSuccess="handleSuccess" ref="mskBookingOrder"></mskBookingOrder>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { mskGetPage, mskDelete } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { mskGetPage, mskDelete } from '@/api/modular/main/BookingLedger'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import mskBookingOrder from '@/components/mskBookingOrder'
|
|
|
|
import tableSort from '@/components/tableSort'
|
|
|
|
export default {
|
|
|
|
import mskBookingOrder from '@/components/mskBookingOrder'
|
|
|
|
|
|
|
|
import { DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
columnSetting, mskBookingOrder
|
|
|
|
columnSetting, mskBookingOrder,tableSort
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -255,193 +284,171 @@
|
|
|
|
title: '订舱号',
|
|
|
|
title: '订舱号',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'bookingReference'
|
|
|
|
field: 'bookingReference'
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '合约号',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: '200',
|
|
|
|
|
|
|
|
dataIndex: 'priceReference'
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '预计离港日期',
|
|
|
|
title: '起运港',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'earliestDepartureDate'
|
|
|
|
field: 'placeReceiptCity'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '始发地',
|
|
|
|
title: '目的港',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'placeReceiptCity'
|
|
|
|
field: 'placeDeliveryCity'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '目的地',
|
|
|
|
title: '箱型箱量',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'placeDeliveryCity'
|
|
|
|
field: 'ctnStat'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '船名/航次',
|
|
|
|
title: '船名/航次',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'vessel'
|
|
|
|
field: 'vessel'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'ETD',
|
|
|
|
title: 'ETD',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'etd'
|
|
|
|
field: 'etd'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'ATD',
|
|
|
|
title: '总重(KGS)',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'atd'
|
|
|
|
field: 'totalCargoWeight'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '货物标志',
|
|
|
|
title: '合约号',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '160',
|
|
|
|
dataIndex: 'cargoType'
|
|
|
|
field: 'priceReference'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '总重(KGS)',
|
|
|
|
title: 'BC',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '50',
|
|
|
|
dataIndex: 'totalCargoWeight'
|
|
|
|
field: 'isRecvBC'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '是否冷冻处理',
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '200',
|
|
|
|
dataIndex: 'isReefer'
|
|
|
|
field: 'isRecvBKCancel'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '温度',
|
|
|
|
title: '状态',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'tempSet'
|
|
|
|
field: 'status'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '通风',
|
|
|
|
title: 'soc',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '50',
|
|
|
|
dataIndex: 'vent'
|
|
|
|
field: 'isShipperOwned'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '湿度',
|
|
|
|
title: '订舱人',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'humidity'
|
|
|
|
field: 'createdUserName'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '状态',
|
|
|
|
title: '订舱日期',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'status'
|
|
|
|
field: 'createdTime'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
columnsAll: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '订舱公司',
|
|
|
|
title: '订舱号',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'bookedByCompanyName'
|
|
|
|
field: 'bookingReference'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '订舱公司代码',
|
|
|
|
title: '起运港',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'bookedByCompanyPartyCode'
|
|
|
|
field: 'placeReceiptCity'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '是否持约方',
|
|
|
|
title: '目的港',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'isbookingPartOwnPrice'
|
|
|
|
field: 'placeDeliveryCity'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '持约方公司',
|
|
|
|
title: '箱型箱量',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'priceOwnerCompanyName'
|
|
|
|
field: 'ctnStat'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '持约方公司代码',
|
|
|
|
title: '船名/航次',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'priceOwnerCompanyPartyCode'
|
|
|
|
field: 'vessel'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '箱型箱量',
|
|
|
|
title: 'ETD',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '100',
|
|
|
|
dataIndex: 'ctnStat'
|
|
|
|
field: 'etd'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'soc',
|
|
|
|
title: '总重(KGS)',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'isShipperOwned'
|
|
|
|
field: 'totalCargoWeight'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '进口退货集装箱',
|
|
|
|
title: '合约号',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '120',
|
|
|
|
width: '160',
|
|
|
|
dataIndex: 'isImportReturned'
|
|
|
|
field: 'priceReference'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'BC',
|
|
|
|
title: 'BC',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '50',
|
|
|
|
dataIndex: 'isRecvBC'
|
|
|
|
field: 'isRecvBC'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '200',
|
|
|
|
width: '200',
|
|
|
|
dataIndex: 'isRecvBKCancel'
|
|
|
|
field: 'isRecvBKCancel'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '创建日期',
|
|
|
|
title: '状态',
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: '150',
|
|
|
|
|
|
|
|
dataIndex: 'createdTime'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '创建人',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'createdUserName'
|
|
|
|
field: 'status'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '更新日期',
|
|
|
|
title: 'soc',
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: '150',
|
|
|
|
|
|
|
|
dataIndex: 'updatedTime'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '更新人',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '50',
|
|
|
|
dataIndex: 'updatedUserName'
|
|
|
|
field: 'isShipperOwned'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '是否定时任务',
|
|
|
|
title: '订舱人',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '130',
|
|
|
|
width: '130',
|
|
|
|
dataIndex: 'isJob'
|
|
|
|
field: 'createdUserName'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '定时时间',
|
|
|
|
title: '订舱日期',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '150',
|
|
|
|
dataIndex: 'jobTime'
|
|
|
|
field: 'createdTime'
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '发送时间',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: '130',
|
|
|
|
|
|
|
|
dataIndex: 'sendTime'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
@ -450,7 +457,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() { },
|
|
|
|
created() { },
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.FnGetData()
|
|
|
|
this.getConfigStart()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
toggleAdvanced() {
|
|
|
|
toggleAdvanced() {
|
|
|
@ -459,26 +466,139 @@
|
|
|
|
onSelectChange(selectedRowKeys) {
|
|
|
|
onSelectChange(selectedRowKeys) {
|
|
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleDeleteSelect() {
|
|
|
|
getConfigStart() {
|
|
|
|
const records = this.$refs.xTable1.getCheckboxRecords()
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
if (records.length === 0) {
|
|
|
|
if (arr.length === 0) {
|
|
|
|
this.$message.warning('请先选择')
|
|
|
|
this.columns = JSON.parse(JSON.stringify(this.columnsAll))
|
|
|
|
return false
|
|
|
|
const data = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: 'mskOrder_list_column',
|
|
|
|
|
|
|
|
configJson: JSON.stringify(this.columns)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: 'mskOrder_page',
|
|
|
|
|
|
|
|
configJson: JSON.stringify({ pageSize: 10 })
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
type: 'mskOrder_sort',
|
|
|
|
|
|
|
|
configJson: JSON.stringify({ sortField: 'etd', descSort: true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const arr = []
|
|
|
|
]
|
|
|
|
records.forEach(item => {
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(data))
|
|
|
|
arr.push(item.gid)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
|
|
EmailUserAccountDelete(arr).then(res => {
|
|
|
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(`删除失败,${res.data.msg}`)
|
|
|
|
const $data = {}
|
|
|
|
|
|
|
|
arr.map((item, index) => {
|
|
|
|
|
|
|
|
switch (item.type) {
|
|
|
|
|
|
|
|
case 'mskOrder_list_column':
|
|
|
|
|
|
|
|
this.$set($data, 'mskOrder_list_column', item)
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
case 'mskOrder_page':
|
|
|
|
|
|
|
|
this.$set($data, 'mskOrder_page', item)
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
case 'mskOrder_sort':
|
|
|
|
|
|
|
|
this.$set($data, 'mskOrder_sort', item)
|
|
|
|
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.loading = false
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(JSON.parse($data.mskOrder_list_column.configJson))
|
|
|
|
|
|
|
|
if (Object.keys($data).includes('mskOrder_list_column')) {
|
|
|
|
|
|
|
|
this.columns = JSON.parse($data.mskOrder_list_column.configJson)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
|
|
type: 'mskOrder_list_column',
|
|
|
|
|
|
|
|
configJson: JSON.stringify(this.columns)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(arr))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Object.keys($data).includes('mskOrder_page')) {
|
|
|
|
|
|
|
|
this.queryParam.PageSize = JSON.parse($data.mskOrder_page.configJson).pageSize
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
|
|
type: 'mskOrder_page',
|
|
|
|
|
|
|
|
configJson: JSON.stringify({ pageSize: 10 })
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(arr))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Object.keys($data).includes('mskOrder_sort')) {
|
|
|
|
|
|
|
|
const data = $data.mskOrder_sort.configJson ? JSON.parse($data.mskOrder_sort.configJson) : null
|
|
|
|
|
|
|
|
if (data) {
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.$refs.table.sort(data.sortField, data.descSort ? 'desc' : 'asc')
|
|
|
|
|
|
|
|
}, 200);
|
|
|
|
|
|
|
|
this.queryParam.sortField = data.sortField
|
|
|
|
|
|
|
|
this.queryParam.descSort = data.descSort
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
|
|
type: 'mskOrder_sort',
|
|
|
|
|
|
|
|
configJson: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(arr))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
}, 200);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
|
|
|
|
|
if (this.queryParam.pageSize !== pageSize) {
|
|
|
|
|
|
|
|
this.editPageSizeSave(pageSize)
|
|
|
|
|
|
|
|
this.changeSetting('mskOrder_page', { pageSize: pageSize })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.queryParam.PageNo = currentPage
|
|
|
|
|
|
|
|
this.queryParam.PageSize = pageSize
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
changeSetting(key, value) {
|
|
|
|
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
|
|
|
|
arr.forEach(item => {
|
|
|
|
|
|
|
|
if (item.type === key) {
|
|
|
|
|
|
|
|
item.configJson = JSON.stringify(value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(arr))
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
tableSortChange(e) {
|
|
|
|
|
|
|
|
const { property, order } = e
|
|
|
|
|
|
|
|
const data =
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
sortField: property,
|
|
|
|
|
|
|
|
descSort: order === 'desc'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.queryParam.sortField = data.sortField
|
|
|
|
|
|
|
|
this.queryParam.descSort = data.descSort
|
|
|
|
|
|
|
|
this.changeSetting('mskOrder_sort', data)
|
|
|
|
|
|
|
|
this.FnGetData(this.queryParam)
|
|
|
|
|
|
|
|
DjyUserConfigAdd({
|
|
|
|
|
|
|
|
type: 'mskOrder_sort',
|
|
|
|
|
|
|
|
configJson: JSON.stringify(data)
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleColumnChange(list) {
|
|
|
|
|
|
|
|
this.columns = JSON.parse(JSON.stringify(list))
|
|
|
|
|
|
|
|
this.columns.forEach((item, index) => {
|
|
|
|
|
|
|
|
this.$set(this.columns, index, item)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
this.editColumnsSave(this.columns)
|
|
|
|
|
|
|
|
this.changeSetting('mskOrder_list_column', this.columns)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
editColumnsSave(data = {}) {
|
|
|
|
|
|
|
|
DjyUserConfigAdd({
|
|
|
|
|
|
|
|
type: 'mskOrder_list_column',
|
|
|
|
|
|
|
|
configJson: JSON.stringify(data)
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handledbclick(row) {
|
|
|
|
|
|
|
|
this.$refs.editForm.edit(row.row)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
resizableChange(e) {
|
|
|
|
|
|
|
|
this.columns[e.columnIndex].width = e.resizeWidth
|
|
|
|
|
|
|
|
this.editColumnsSave(this.columns)
|
|
|
|
|
|
|
|
this.changeSetting('mskOrder_list_column', this.columns)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleEdit(id) {
|
|
|
|
handleEdit(id) {
|
|
|
|
this.$refs.mskBookingOrder.init(id)
|
|
|
|
this.$refs.mskBookingOrder.init(id)
|
|
|
@ -577,36 +697,37 @@
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
this.$refs.mskBookingOrder.init()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
/deep/ .ant-form-item{
|
|
|
|
/deep/ .ant-form-item {
|
|
|
|
margin-bottom: 10px !important;
|
|
|
|
margin-bottom: 10px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.table-operator {
|
|
|
|
|
|
|
|
|
|
|
|
.table-operator {
|
|
|
|
margin-bottom: 18px;
|
|
|
|
margin-bottom: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.Close {
|
|
|
|
.Close {
|
|
|
|
height: 45px;
|
|
|
|
height: 45px;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.vxe-table--render-default .vxe-body--row.row--stripe {
|
|
|
|
.vxe-table--render-default .vxe-body--row.row--stripe {
|
|
|
|
background: #f5f9fe;
|
|
|
|
background: #f5f9fe;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ant-card-body {
|
|
|
|
.ant-card-body {
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.inline {
|
|
|
|
.inline {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.inline-right {
|
|
|
|
.inline-right {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
top: 6px;
|
|
|
|
right: 25px;
|
|
|
|
right: 25px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|