|
|
@ -2,28 +2,38 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
<a-card :bordered="false" :bodyStyle="tstyle">
|
|
|
|
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
|
|
|
|
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
|
|
|
|
<a-form :model="form" :label-col="{ span: 8 }" :wrapper-col="{ span: 16 }">
|
|
|
|
<a-form :model="form" :label-col="{ span: 9 }" :wrapper-col="{ span: 15 }">
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
|
|
|
|
<a-form-item label="订舱号">
|
|
|
|
|
|
|
|
<a-input v-model="form.BookingReference" allow-clear placeholder="请输入订舱号" />
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="4">
|
|
|
|
|
|
|
|
<a-form-item label="订舱人">
|
|
|
|
|
|
|
|
<a-input v-model="form.BookingCreator" allow-clear placeholder="请输入订舱人" />
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="合约号">
|
|
|
|
<a-form-item label="合约号">
|
|
|
|
<a-input v-model="form.priceReference" allow-clear placeholder="请输入合约号" />
|
|
|
|
<a-input v-model="form.priceReference" allow-clear placeholder="请输入合约号" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="船名">
|
|
|
|
<a-form-item label="船名">
|
|
|
|
<a-input v-model="form.vessel" allow-clear placeholder="请输入船名" />
|
|
|
|
<a-input v-model="form.vessel" allow-clear placeholder="请输入船名" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="航次号">
|
|
|
|
|
|
|
|
<a-input v-model="form.voyno" allow-clear placeholder="请输入航次号" />
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="5">
|
|
|
|
|
|
|
|
<a-form-item label="持约方公司">
|
|
|
|
<a-form-item label="持约方公司">
|
|
|
|
<a-input v-model="form.priceOwnerCompanyName" allow-clear placeholder="请输入持约方公司" />
|
|
|
|
<a-input v-model="form.priceOwnerCompanyName" allow-clear placeholder="请输入持约方公司" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="3">
|
|
|
|
|
|
|
|
<a-form-item label="航次号">
|
|
|
|
|
|
|
|
<a-input v-model="form.voyno" allow-clear placeholder="请输入航次号" />
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="1">
|
|
|
|
<a-col :span="1">
|
|
|
|
<a @click="toggleAdvanced" style="margin-left: 8px;margin-top: 9px;display: inline-block;">
|
|
|
|
<a @click="toggleAdvanced" style="margin-left: 8px;margin-top: 9px;display: inline-block;">
|
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
@ -32,17 +42,17 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="始发地">
|
|
|
|
<a-form-item label="始发地">
|
|
|
|
<a-input v-model="form.placeReceiptCity" allow-clear placeholder="请输入始发地" />
|
|
|
|
<a-input v-model="form.placeReceiptCity" allow-clear placeholder="请输入始发地" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="预计离港时间">
|
|
|
|
<a-form-item label="预计离港时间">
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.eDeparture" />
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.eDeparture" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="是否冷冻处理">
|
|
|
|
<a-form-item label="是否冷冻处理">
|
|
|
|
<a-select v-model="form.isReefer">
|
|
|
|
<a-select v-model="form.isReefer">
|
|
|
|
<a-select-option :value="1">
|
|
|
|
<a-select-option :value="1">
|
|
|
@ -54,24 +64,24 @@
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="订舱公司代码">
|
|
|
|
<a-form-item label="订舱公司代码">
|
|
|
|
<a-input v-model="form.bookedByCompanyPartyCode" allow-clear placeholder="请输入发件服务器" />
|
|
|
|
<a-input v-model="form.bookedByCompanyPartyCode" allow-clear placeholder="请输入订舱公司代码" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="6">
|
|
|
|
|
|
|
|
<a-form-item label="目的地">
|
|
|
|
<a-form-item label="目的地">
|
|
|
|
<a-input v-model="form.placeDeliveryCity" allow-clear placeholder="请输入目的地" />
|
|
|
|
<a-input v-model="form.placeDeliveryCity" allow-clear placeholder="请输入目的地" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-form-item label="ETD">
|
|
|
|
<a-form-item label="ETD">
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.etd" />
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.etd" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="货物标志">
|
|
|
|
<a-form-item label="货物标志">
|
|
|
|
<a-select v-model="form.commodityCodeType">
|
|
|
|
<a-select v-model="form.commodityCodeType">
|
|
|
|
<a-select-option value="DRY">
|
|
|
|
<a-select-option value="DRY">
|
|
|
@ -83,24 +93,22 @@
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="持约方公司代码">
|
|
|
|
<a-form-item label="持约方公司代码">
|
|
|
|
<a-input v-model="form.priceOwnerCompanyPartyCode" allow-clear placeholder="请输入持约方公司代码" />
|
|
|
|
<a-input v-model="form.priceOwnerCompanyPartyCode" allow-clear placeholder="请输入持约方公司代码" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-row>
|
|
|
|
|
|
|
|
<a-col :span="6">
|
|
|
|
|
|
|
|
<a-form-item label="订舱公司">
|
|
|
|
<a-form-item label="订舱公司">
|
|
|
|
<a-input v-model="form.bookedByCompanyName" allow-clear placeholder="请输入订舱公司" />
|
|
|
|
<a-input v-model="form.bookedByCompanyName" allow-clear placeholder="请输入订舱公司" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="ETA">
|
|
|
|
<a-form-item label="ETA">
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.eta" />
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.eta" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="6">
|
|
|
|
<a-col :span="4">
|
|
|
|
<a-form-item label="是否持约方">
|
|
|
|
<a-form-item label="是否持约方">
|
|
|
|
<a-select v-model="form.isbookingPartOwnPrice">
|
|
|
|
<a-select v-model="form.isbookingPartOwnPrice">
|
|
|
|
<a-select-option value="true">
|
|
|
|
<a-select-option value="true">
|
|
|
@ -112,7 +120,7 @@
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="5">
|
|
|
|
<a-col :span="3">
|
|
|
|
<a-form-item label="定时时间">
|
|
|
|
<a-form-item label="定时时间">
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.job" />
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="form.job" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
@ -129,60 +137,27 @@
|
|
|
|
<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>
|
|
|
|
<tableSort
|
|
|
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
|
|
|
@columnChange="handleColumnChange"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
|
|
|
|
:columnsAll="columnsAll"></tableSort>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <vxe-table
|
|
|
|
<vxe-grid
|
|
|
|
:data="loadData"
|
|
|
|
:data="loadData"
|
|
|
|
stripe
|
|
|
|
stripe
|
|
|
|
resizable
|
|
|
|
resizable
|
|
|
|
round
|
|
|
|
round
|
|
|
|
|
|
|
|
ref="table"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
:loading="loading"
|
|
|
|
:loading="loading"
|
|
|
|
ref="xTable1"
|
|
|
|
@cell-dblclick="handledbclick"
|
|
|
|
|
|
|
|
@sort-change="tableSortChange"
|
|
|
|
|
|
|
|
@resizable-change="resizableChange"
|
|
|
|
|
|
|
|
height="600px"
|
|
|
|
empty-text="没有更多数据了!">
|
|
|
|
empty-text="没有更多数据了!">
|
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
|
<template #caozuo="{ row }">
|
|
|
|
<vxe-column
|
|
|
|
|
|
|
|
v-for="item in columns"
|
|
|
|
|
|
|
|
:key="`${item.field}3`"
|
|
|
|
|
|
|
|
:field="item.field"
|
|
|
|
|
|
|
|
:min-width="item.width"
|
|
|
|
|
|
|
|
:title="item.title"
|
|
|
|
|
|
|
|
:fixed="item.fixed"
|
|
|
|
|
|
|
|
:align="item.align">
|
|
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
|
|
<div v-if="item.field == 'vessel'">
|
|
|
|
|
|
|
|
<span>{{ row.vessel }} / {{ row.voyno }}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isReefer'">
|
|
|
|
|
|
|
|
<span v-if="row.isReefer">是</span>
|
|
|
|
|
|
|
|
<span v-else>否</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isJob'">
|
|
|
|
|
|
|
|
<span v-if="row.isJob">是</span>
|
|
|
|
|
|
|
|
<span v-else>否</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isbookingPartOwnPrice'">
|
|
|
|
|
|
|
|
<span v-if="row.isbookingPartOwnPrice">是</span>
|
|
|
|
|
|
|
|
<span v-else>否</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isImportReturned'">
|
|
|
|
|
|
|
|
<span v-if="row.isImportReturned">是</span>
|
|
|
|
|
|
|
|
<span v-else>否</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isRecvBC'">
|
|
|
|
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: green;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBC" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isRecvBKCancel'">
|
|
|
|
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: red;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBKCancel" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else-if="item.field == 'isShipperOwned'">
|
|
|
|
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span v-else>{{ row[item.field] }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</vxe-column>
|
|
|
|
|
|
|
|
<vxe-column title="操作" fixed="right" width="120" align="center">
|
|
|
|
|
|
|
|
<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' }" />
|
|
|
|
</vxe-button>
|
|
|
|
</vxe-button>
|
|
|
@ -199,40 +174,23 @@
|
|
|
|
</vxe-button>
|
|
|
|
</vxe-button>
|
|
|
|
</a-popconfirm>
|
|
|
|
</a-popconfirm>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-column>
|
|
|
|
<template #vessel="{ row }">
|
|
|
|
</vxe-table>
|
|
|
|
<span>{{ row.vessel }} / {{ row.voyno }}</span>
|
|
|
|
<vxe-pager :loading="loading" :current-page="queryParam.pageNo" :page-size="queryParam.pageSize"
|
|
|
|
</template>
|
|
|
|
:total="queryParam.totalResult" :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
<template #isRecvBC="{ row }">
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: green;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBC" />
|
|
|
|
</vxe-pager> -->
|
|
|
|
</template>
|
|
|
|
<vxe-grid
|
|
|
|
<template #isRecvBKCancel="{ row }">
|
|
|
|
:data="loadData"
|
|
|
|
<a-icon type="bulb" theme="filled" style="color: red;font-size: 16px;" :title="row.lstRecvBCDate" v-if="row.isRecvBKCancel" />
|
|
|
|
stripe
|
|
|
|
</template>
|
|
|
|
resizable
|
|
|
|
<template #isShipperOwned="{ row }">
|
|
|
|
round
|
|
|
|
<a-icon v-if="row.isShipperOwned" type="check-circle" style="color: green;font-size: 16px;" theme="filled" />
|
|
|
|
ref="table"
|
|
|
|
|
|
|
|
:columns="columns"
|
|
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
|
|
@cell-dblclick="handledbclick"
|
|
|
|
|
|
|
|
@sort-change="tableSortChange"
|
|
|
|
|
|
|
|
@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>
|
|
|
|
<template #pager>
|
|
|
|
<template #pager>
|
|
|
|
<vxe-pager
|
|
|
|
<vxe-pager
|
|
|
|
:current-page="queryParam.PageNo"
|
|
|
|
:current-page="queryParam.PageNo"
|
|
|
|
:page-size="queryParam.PageSize"
|
|
|
|
:page-size="queryParam.PageSize"
|
|
|
|
:total="queryParam.totalCount"
|
|
|
|
:total="queryParam.totalResult"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
@page-change="handlePageChange">
|
|
|
|
</vxe-pager>
|
|
|
|
</vxe-pager>
|
|
|
@ -243,14 +201,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { mskGetPage, mskDelete } from '@/api/modular/main/BookingLedger'
|
|
|
|
import { mskGetPage, mskDelete, DjyUserConfigMulti } from '@/api/modular/main/BookingLedger'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import columnSetting from '@/components/tableColumnSetting'
|
|
|
|
import tableSort from '@/components/tableSort'
|
|
|
|
import tableSort from '@/components/tableSort'
|
|
|
|
import mskBookingOrder from '@/components/mskBookingOrder'
|
|
|
|
import mskBookingOrder from '@/components/mskBookingOrder'
|
|
|
|
import { DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
|
|
|
|
import { DjyUserConfigAdd } from '@/api/modular/main/DjyUserConfig'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
columnSetting, mskBookingOrder,tableSort
|
|
|
|
columnSetting, mskBookingOrder, tableSort
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -308,7 +266,8 @@ export default {
|
|
|
|
title: '船名/航次',
|
|
|
|
title: '船名/航次',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
field: 'vessel'
|
|
|
|
field: 'vessel',
|
|
|
|
|
|
|
|
slots: { default: 'vessel' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'ETD',
|
|
|
|
title: 'ETD',
|
|
|
@ -332,13 +291,15 @@ export default {
|
|
|
|
title: 'BC',
|
|
|
|
title: 'BC',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '50',
|
|
|
|
field: 'isRecvBC'
|
|
|
|
field: 'isRecvBC',
|
|
|
|
|
|
|
|
slots: { default: 'isRecvBC' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '200',
|
|
|
|
width: '200',
|
|
|
|
field: 'isRecvBKCancel'
|
|
|
|
field: 'isRecvBKCancel',
|
|
|
|
|
|
|
|
slots: { default: 'isRecvBKCancel' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '状态',
|
|
|
|
title: '状态',
|
|
|
@ -350,7 +311,8 @@ export default {
|
|
|
|
title: 'soc',
|
|
|
|
title: 'soc',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '50',
|
|
|
|
field: 'isShipperOwned'
|
|
|
|
field: 'isShipperOwned',
|
|
|
|
|
|
|
|
slots: { default: 'isShipperOwned' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '订舱人',
|
|
|
|
title: '订舱人',
|
|
|
@ -363,6 +325,14 @@ export default {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '150',
|
|
|
|
field: 'createdTime'
|
|
|
|
field: 'createdTime'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '操作',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
field: 'caozuo',
|
|
|
|
|
|
|
|
slots: { default: 'caozuo' },
|
|
|
|
|
|
|
|
width: 100,
|
|
|
|
|
|
|
|
fixed: 'right'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
columnsAll: [
|
|
|
|
columnsAll: [
|
|
|
@ -394,7 +364,8 @@ export default {
|
|
|
|
title: '船名/航次',
|
|
|
|
title: '船名/航次',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '100',
|
|
|
|
width: '100',
|
|
|
|
field: 'vessel'
|
|
|
|
field: 'vessel',
|
|
|
|
|
|
|
|
slots: { default: 'vessel' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'ETD',
|
|
|
|
title: 'ETD',
|
|
|
@ -418,13 +389,15 @@ export default {
|
|
|
|
title: 'BC',
|
|
|
|
title: 'BC',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '50',
|
|
|
|
field: 'isRecvBC'
|
|
|
|
field: 'isRecvBC',
|
|
|
|
|
|
|
|
slots: { default: 'isRecvBC' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
title: 'BookingCancellation',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '200',
|
|
|
|
width: '200',
|
|
|
|
field: 'isRecvBKCancel'
|
|
|
|
field: 'isRecvBKCancel',
|
|
|
|
|
|
|
|
slots: { default: 'isRecvBKCancel' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '状态',
|
|
|
|
title: '状态',
|
|
|
@ -436,7 +409,8 @@ export default {
|
|
|
|
title: 'soc',
|
|
|
|
title: 'soc',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '50',
|
|
|
|
width: '50',
|
|
|
|
field: 'isShipperOwned'
|
|
|
|
field: 'isShipperOwned',
|
|
|
|
|
|
|
|
slots: { default: 'isShipperOwned' }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '订舱人',
|
|
|
|
title: '订舱人',
|
|
|
@ -449,6 +423,14 @@ export default {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: '150',
|
|
|
|
width: '150',
|
|
|
|
field: 'createdTime'
|
|
|
|
field: 'createdTime'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '操作',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
field: 'caozuo',
|
|
|
|
|
|
|
|
slots: { default: 'caozuo' },
|
|
|
|
|
|
|
|
width: 100,
|
|
|
|
|
|
|
|
fixed: 'right'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
@ -469,24 +451,13 @@ export default {
|
|
|
|
getConfigStart() {
|
|
|
|
getConfigStart() {
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
if (arr.length === 0) {
|
|
|
|
if (arr.length === 0) {
|
|
|
|
this.columns = JSON.parse(JSON.stringify(this.columnsAll))
|
|
|
|
this.getDict()
|
|
|
|
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 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(data))
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.setLocalStorage()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
setLocalStorage() {
|
|
|
|
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
const $data = {}
|
|
|
|
const $data = {}
|
|
|
|
arr.map((item, index) => {
|
|
|
|
arr.map((item, index) => {
|
|
|
|
switch (item.type) {
|
|
|
|
switch (item.type) {
|
|
|
@ -501,7 +472,6 @@ export default {
|
|
|
|
break
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(JSON.parse($data.mskOrder_list_column.configJson))
|
|
|
|
|
|
|
|
if (Object.keys($data).includes('mskOrder_list_column')) {
|
|
|
|
if (Object.keys($data).includes('mskOrder_list_column')) {
|
|
|
|
this.columns = JSON.parse($data.mskOrder_list_column.configJson)
|
|
|
|
this.columns = JSON.parse($data.mskOrder_list_column.configJson)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -539,7 +509,6 @@ export default {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
}, 200);
|
|
|
|
}, 200);
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
|
if (this.queryParam.pageSize !== pageSize) {
|
|
|
|
if (this.queryParam.pageSize !== pageSize) {
|
|
|
@ -550,6 +519,41 @@ export default {
|
|
|
|
this.queryParam.PageSize = pageSize
|
|
|
|
this.queryParam.PageSize = pageSize
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getDict() {
|
|
|
|
|
|
|
|
const query = {
|
|
|
|
|
|
|
|
typeArr: ['mskOrder_list_column', 'mskOrder_page', 'mskOrder_sort']
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
DjyUserConfigMulti(this.$qs.stringify(query)).then(res => {
|
|
|
|
|
|
|
|
const arr = []
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
if (item.type.includes('mskOrder')) {
|
|
|
|
|
|
|
|
arr.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (arr.length > 0) {
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(arr))
|
|
|
|
|
|
|
|
this.setLocalStorage()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.columns = JSON.parse(JSON.stringify(this.columnsAll))
|
|
|
|
|
|
|
|
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 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
localStorage.setItem('mskOrderSetting', JSON.stringify(data))
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
changeSetting(key, value) {
|
|
|
|
changeSetting(key, value) {
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
const arr = localStorage.getItem('mskOrderSetting') ? JSON.parse(localStorage.getItem('mskOrderSetting')) : []
|
|
|
|
arr.forEach(item => {
|
|
|
|
arr.forEach(item => {
|
|
|
|