|
|
@ -120,14 +120,15 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="船名"
|
|
|
|
label="船名"
|
|
|
|
name="vessel"
|
|
|
|
name="vesselId"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.vessel">
|
|
|
|
<a-select v-model:value="formState.vesselId">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option :value="item.id" v-for="item in vesselList" :key="item.id">
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
{{ item.vesselName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -143,7 +144,7 @@
|
|
|
|
<a-input v-model:value="formState.voyno" />
|
|
|
|
<a-input v-model:value="formState.voyno" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="4">
|
|
|
|
<!-- <a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="4">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="船代"
|
|
|
|
label="船代"
|
|
|
@ -157,19 +158,24 @@
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col> -->
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="5">
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="5">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="船公司"
|
|
|
|
label="船公司"
|
|
|
|
name="carrier"
|
|
|
|
name="carrierId"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.carrier">
|
|
|
|
<a-select v-model:value="formState.carrierId">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in carrierList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.shortName }} / {{ item.codeName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -200,9 +206,21 @@
|
|
|
|
<div class="title">
|
|
|
|
<div class="title">
|
|
|
|
<span>发货人信息</span>
|
|
|
|
<span>发货人信息</span>
|
|
|
|
<div class="Template">
|
|
|
|
<div class="Template">
|
|
|
|
<a-select v-model:value="formState.shipperTemplate">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.shipperId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
ChangeSFT(e, 'shipper')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in SFTList.shipperList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<!-- @click="saveModel('shipper')" -->
|
|
|
|
<!-- @click="saveModel('shipper')" -->
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
@ -222,38 +240,44 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="发货人"
|
|
|
|
label="发货人"
|
|
|
|
name="shippername"
|
|
|
|
name="shipperName"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.shippername" />
|
|
|
|
<a-input v-model:value="formState.shipperName" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="地址"
|
|
|
|
label="地址"
|
|
|
|
name="shipperaddR1"
|
|
|
|
name="shipperAddress"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.shipperaddR1" />
|
|
|
|
<a-input v-model:value="formState.shipperAddress" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<!-- shipperCountryName -->
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="国家"
|
|
|
|
label="国家"
|
|
|
|
name="shippercountryName"
|
|
|
|
name="shipperCountry"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.shippercountryName">
|
|
|
|
<a-select v-model:value="formState.shipperCountry">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -261,12 +285,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="电话"
|
|
|
|
label="电话"
|
|
|
|
name="shippertel"
|
|
|
|
name="shipperCountryTel"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.shippertel" />
|
|
|
|
<a-input v-model:value="formState.shipperCountryTel" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
@ -278,9 +302,21 @@
|
|
|
|
<div class="title">
|
|
|
|
<div class="title">
|
|
|
|
<span>收货人信息</span>
|
|
|
|
<span>收货人信息</span>
|
|
|
|
<div class="Template">
|
|
|
|
<div class="Template">
|
|
|
|
<a-select v-model:value="formState.consigneeTemplate">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.consigneeId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
ChangeSFT(e, 'consignee')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in SFTList.consigneeList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<!-- @click="saveModel('consignee')" -->
|
|
|
|
<!-- @click="saveModel('consignee')" -->
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
@ -303,38 +339,43 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="收货人"
|
|
|
|
label="收货人"
|
|
|
|
name="consigneename"
|
|
|
|
name="consigneeName"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.consigneename" />
|
|
|
|
<a-input v-model:value="formState.consigneeName" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="地址"
|
|
|
|
label="地址"
|
|
|
|
name="consigneeaddR1"
|
|
|
|
name="consigneeAddress"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.consigneeaddR1" />
|
|
|
|
<a-input v-model:value="formState.consigneeAddress" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="国家"
|
|
|
|
label="国家"
|
|
|
|
name="consigneecountryName"
|
|
|
|
name="consigneeCountry"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.consigneecountryName">
|
|
|
|
<a-select v-model:value="formState.consigneeCountry">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -342,12 +383,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="电话"
|
|
|
|
label="电话"
|
|
|
|
name="consigneetel"
|
|
|
|
name="consigneeCountryTel"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.consigneetel" />
|
|
|
|
<a-input v-model:value="formState.consigneeCountryTel" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
@ -359,9 +400,21 @@
|
|
|
|
<div class="title">
|
|
|
|
<div class="title">
|
|
|
|
<span>通知人信息</span>
|
|
|
|
<span>通知人信息</span>
|
|
|
|
<div class="Template">
|
|
|
|
<div class="Template">
|
|
|
|
<a-select v-model:value="formState.notifypartyTemplate">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.notifyPartyId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
ChangeSFT(e, 'notifyParty')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in SFTList.notifyPartyList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<!-- @click="saveModel('notifyparty')" -->
|
|
|
|
<!-- @click="saveModel('notifyparty')" -->
|
|
|
|
<a-button
|
|
|
|
<a-button
|
|
|
@ -384,38 +437,43 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="通知人"
|
|
|
|
label="通知人"
|
|
|
|
name="notifypartyname"
|
|
|
|
name="notifyPartyName"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.notifypartyname" />
|
|
|
|
<a-input v-model:value="formState.notifyPartyName" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="地址"
|
|
|
|
label="地址"
|
|
|
|
name="notifypartyaddR1"
|
|
|
|
name="notifyPartyAddress"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.notifypartyaddR1" />
|
|
|
|
<a-input v-model:value="formState.notifyPartyAddress" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="国家"
|
|
|
|
label="国家"
|
|
|
|
name="notifypartycountryName"
|
|
|
|
name="notifyPartyCountry"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.notifypartycountryName">
|
|
|
|
<a-select v-model:value="formState.notifyPartyCountry">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -423,12 +481,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="电话"
|
|
|
|
label="电话"
|
|
|
|
name="notifypartytel"
|
|
|
|
name="notifyPartyCountryTel"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.notifypartytel" />
|
|
|
|
<a-input v-model:value="formState.notifyPartyCountryTel" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
@ -444,14 +502,26 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="装货港代码"
|
|
|
|
label="装货港代码"
|
|
|
|
name="portloadid"
|
|
|
|
name="loadPortId"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.portloadid">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.loadPortId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
PortChange(e, 'loadPort')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in portList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.portName }}/{{ item.ediCode }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -459,12 +529,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="装货港"
|
|
|
|
label="装货港"
|
|
|
|
name="portload"
|
|
|
|
name="loadPort"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.portload" />
|
|
|
|
<a-input v-model:value="formState.loadPort" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
|
|
@ -472,14 +542,26 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="卸货港代码"
|
|
|
|
label="卸货港代码"
|
|
|
|
name="portdischargeid"
|
|
|
|
name="dischargePortId"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.portdischargeid">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.dischargePortId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
PortChange(e, 'dischargePort')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in portList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.portName }}/{{ item.ediCode }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -487,12 +569,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="卸货港"
|
|
|
|
label="卸货港"
|
|
|
|
name="portdischarge"
|
|
|
|
name="dischargePort"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.portdischarge" />
|
|
|
|
<a-input v-model:value="formState.dischargePort" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
|
|
@ -500,14 +582,26 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="收货地代码"
|
|
|
|
label="收货地代码"
|
|
|
|
name="placedeliveryid"
|
|
|
|
name="deliveryPlaceId"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.placedeliveryid">
|
|
|
|
<a-select
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
v-model:value="formState.deliveryPlaceId"
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
@change="
|
|
|
|
|
|
|
|
(e) => {
|
|
|
|
|
|
|
|
PortChange(e, 'deliveryPlace')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
v-for="item in portList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.portName }}/{{ item.ediCode }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -515,12 +609,12 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="收货地"
|
|
|
|
label="收货地"
|
|
|
|
name="placedelivery"
|
|
|
|
name="deliveryPlace"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-input v-model:value="formState.portdischarge" />
|
|
|
|
<a-input v-model:value="formState.deliveryPlace" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
@ -602,15 +696,17 @@
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="货物类型"
|
|
|
|
label="货物标识"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="cargoid"
|
|
|
|
name="cargoid"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.cargoid">
|
|
|
|
<a-select v-model:value="formState.cargoid">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option value="S">S 普通货</a-select-option>
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
<a-select-option value="R">R 冻柜</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="D">D 危险品</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="O">O 超限箱</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -623,11 +719,16 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="kindpkgs"
|
|
|
|
name="kindPkgs"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.kindpkgs">
|
|
|
|
<a-select v-model:value="formState.kindPkgs">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
v-for="item in kindPkgsList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.packageName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -638,10 +739,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="tempset"
|
|
|
|
name="temperatureSet"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.tempset" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.temperatureSet"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -652,13 +756,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="tempid"
|
|
|
|
name="temperatureUnit"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select
|
|
|
|
<a-select
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
:default-value="formState.tempid || 'C摄氏'"
|
|
|
|
:default-value="formState.temperatureUnit || 'C摄氏'"
|
|
|
|
v-model:value="formState.tempid"
|
|
|
|
v-model:value="formState.temperatureUnit"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select-option value="C"> C摄氏 </a-select-option>
|
|
|
|
<a-select-option value="C"> C摄氏 </a-select-option>
|
|
|
|
<a-select-option value="F"> F华氏 </a-select-option>
|
|
|
|
<a-select-option value="F"> F华氏 </a-select-option>
|
|
|
@ -672,10 +776,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="reeferf"
|
|
|
|
name="reeferQuantity"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.reeferf" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.reeferQuantity"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -686,10 +793,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="dclass"
|
|
|
|
name="dangerClass"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.dclass" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.dangerClass"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -700,10 +810,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="dunno"
|
|
|
|
name="dangerNo"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.dunno" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.dangerNo"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -714,10 +827,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="dattn"
|
|
|
|
name="dangerAttn"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.dattn" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.dangerAttn"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -728,10 +844,13 @@
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="dtel"
|
|
|
|
name="dangerTel"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div class="line-box">
|
|
|
|
<div class="line-box">
|
|
|
|
<a-input v-model:value="formState.dtel" />
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model:value="formState.dangerTel"
|
|
|
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -760,14 +879,14 @@
|
|
|
|
md: { span: 23 },
|
|
|
|
md: { span: 23 },
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
name="remarks"
|
|
|
|
name="remark"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- <inputView
|
|
|
|
<!-- <inputView
|
|
|
|
type="remarks"
|
|
|
|
type="remarks"
|
|
|
|
:parentVal="orderDetails.remarks"
|
|
|
|
:parentVal="orderDetails.remarks"
|
|
|
|
@getInputChange="inputChange"
|
|
|
|
@getInputChange="inputChange"
|
|
|
|
/> -->
|
|
|
|
/> -->
|
|
|
|
<a-input v-model:value="formState.remarks" />
|
|
|
|
<a-input v-model:value="formState.remark" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
@ -778,8 +897,7 @@
|
|
|
|
<div class="mail-box">
|
|
|
|
<div class="mail-box">
|
|
|
|
<div class="title">集装箱信息</div>
|
|
|
|
<div class="title">集装箱信息</div>
|
|
|
|
<div class="ctn-btn">
|
|
|
|
<div class="ctn-btn">
|
|
|
|
<!-- @click="addCtn" -->
|
|
|
|
<div class="btn" @click="addCtn">
|
|
|
|
<div class="btn">
|
|
|
|
|
|
|
|
<i class="iconfont icon-icon_tianjia"></i><span>新建</span>
|
|
|
|
<i class="iconfont icon-icon_tianjia"></i><span>新建</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- @click="copyCtn" -->
|
|
|
|
<!-- @click="copyCtn" -->
|
|
|
@ -794,14 +912,19 @@
|
|
|
|
<a-form-item
|
|
|
|
<a-form-item
|
|
|
|
class="pre-from-label"
|
|
|
|
class="pre-from-label"
|
|
|
|
label="场站"
|
|
|
|
label="场站"
|
|
|
|
name="yard"
|
|
|
|
name="yardId"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:labelCol="labelCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
has-feedback
|
|
|
|
has-feedback
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-select v-model:value="formState.yard" style="width: 200px">
|
|
|
|
<a-select v-model:value="formState.yardId" style="width: 200px">
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
<a-select-option
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
v-for="item in yardList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ item.codeName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -831,7 +954,17 @@
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
GetShippingBillList,
|
|
|
|
GetShippingBillList,
|
|
|
|
EditShippingBill,
|
|
|
|
EditShippingBill,
|
|
|
|
|
|
|
|
GetShippingBillInfo,
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger.js'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
GetVesselSelectList,
|
|
|
|
|
|
|
|
GetCarrierlist,
|
|
|
|
|
|
|
|
GetShippingBillTemplateSelectList,
|
|
|
|
|
|
|
|
GetClientCountrySelectList,
|
|
|
|
|
|
|
|
GetClientPortSelectList,
|
|
|
|
|
|
|
|
GetPackageSelectList,
|
|
|
|
|
|
|
|
GetYardClientList,
|
|
|
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
const { notification } = useMessage()
|
|
|
|
const { notification } = useMessage()
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
@ -881,6 +1014,7 @@
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// this.getNoDataInit()
|
|
|
|
// this.getNoDataInit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
GetList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
function close() {
|
|
|
@ -910,6 +1044,8 @@
|
|
|
|
orderList.value.push({ checked: false, ...e })
|
|
|
|
orderList.value.push({ checked: false, ...e })
|
|
|
|
})
|
|
|
|
})
|
|
|
|
formState.value = orderList.value[editIndex.value]
|
|
|
|
formState.value = orderList.value[editIndex.value]
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
orderList.value.push({ checked: false })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
@ -926,10 +1062,27 @@
|
|
|
|
...formState.value,
|
|
|
|
...formState.value,
|
|
|
|
ctnInfo: list.value,
|
|
|
|
ctnInfo: list.value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
vesselList.value.forEach((e) => {
|
|
|
|
|
|
|
|
if (e.id == ApiData.vesselId) {
|
|
|
|
|
|
|
|
ApiData.vessel = e.vesselName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
carrierList.value.forEach((e) => {
|
|
|
|
|
|
|
|
if (e.id == ApiData.carrierId) {
|
|
|
|
|
|
|
|
ApiData.carrier = e.codeName
|
|
|
|
|
|
|
|
ApiData.carrierName = e.shortName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
yardList.value.forEach((e) => {
|
|
|
|
|
|
|
|
if (e.id == ApiData.carrierId) {
|
|
|
|
|
|
|
|
ApiData.yard = e.shortName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
EditShippingBill(ApiData).then((res) => {
|
|
|
|
EditShippingBill(ApiData).then((res) => {
|
|
|
|
console.log(res)
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log('保存')
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 删除
|
|
|
|
// 删除
|
|
|
|
function removeOrder() {
|
|
|
|
function removeOrder() {
|
|
|
@ -959,9 +1112,82 @@
|
|
|
|
orderList.value[editIndex.value] = formState.value
|
|
|
|
orderList.value[editIndex.value] = formState.value
|
|
|
|
editIndex.value = index
|
|
|
|
editIndex.value = index
|
|
|
|
formState.value = orderList.value[index]
|
|
|
|
formState.value = orderList.value[index]
|
|
|
|
|
|
|
|
// GetShippingBillInfo({ id: formState.value.id }).then((res) => {
|
|
|
|
|
|
|
|
// if (res.succeeded) {
|
|
|
|
|
|
|
|
// notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// -----------------------右侧表单------------------------
|
|
|
|
// -----------------------右侧表单------------------------
|
|
|
|
|
|
|
|
const vesselList = ref<any>([])
|
|
|
|
|
|
|
|
const carrierList = ref<any>([])
|
|
|
|
|
|
|
|
const countryList = ref<any>([])
|
|
|
|
|
|
|
|
const portList = ref<any>([])
|
|
|
|
|
|
|
|
const kindPkgsList = ref<any>([])
|
|
|
|
|
|
|
|
const yardList = ref<any>([])
|
|
|
|
|
|
|
|
const SFTList = reactive<any>({
|
|
|
|
|
|
|
|
consigneList: [],
|
|
|
|
|
|
|
|
shipperList: [],
|
|
|
|
|
|
|
|
notifypartyList: [],
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// const shipperList = ref<any>([])
|
|
|
|
|
|
|
|
// const consigneList = ref<any>([])
|
|
|
|
|
|
|
|
// const notifypartyList = ref<any>([])
|
|
|
|
|
|
|
|
function GetList() {
|
|
|
|
|
|
|
|
GetVesselSelectList().then((res) => {
|
|
|
|
|
|
|
|
vesselList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetCarrierlist().then((res) => {
|
|
|
|
|
|
|
|
carrierList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
let TypeList = [
|
|
|
|
|
|
|
|
{ label: '发货人', value: '2', code: 'shipper' },
|
|
|
|
|
|
|
|
{ label: '收货人', value: '1', code: 'consignee' },
|
|
|
|
|
|
|
|
{ label: '通知人', value: '3', code: 'notifyParty' },
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
TypeList.forEach((e) => {
|
|
|
|
|
|
|
|
GetShippingBillTemplateSelectList({ type: e.value }).then((res) => {
|
|
|
|
|
|
|
|
SFTList[`${e.code}List`] = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetClientCountrySelectList().then((res) => {
|
|
|
|
|
|
|
|
countryList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetClientPortSelectList().then((res) => {
|
|
|
|
|
|
|
|
portList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetPackageSelectList().then((res) => {
|
|
|
|
|
|
|
|
kindPkgsList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
GetYardClientList().then((res) => {
|
|
|
|
|
|
|
|
yardList.value = res.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function ChangeSFT(data, type) {
|
|
|
|
|
|
|
|
console.log(data, type)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SFTList[`${type}List`].forEach((e) => {
|
|
|
|
|
|
|
|
if (e.id == data) {
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
formState.value[`${type}Name`] = e.name
|
|
|
|
|
|
|
|
formState.value[`${type}Address`] = e.address
|
|
|
|
|
|
|
|
formState.value[`${type}Country`] = e.country
|
|
|
|
|
|
|
|
formState.value[`${type}CountryName`] = e.countryName
|
|
|
|
|
|
|
|
formState.value[`${type}CountryTel`] = e.tel
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function PortChange(data, type) {
|
|
|
|
|
|
|
|
console.log(data, type)
|
|
|
|
|
|
|
|
portList.value.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.id == data) {
|
|
|
|
|
|
|
|
formState.value[`${type}Code`] = item.ediCode
|
|
|
|
|
|
|
|
formState.value[type] = item.portName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
// -----------------------下侧表格------------------------
|
|
|
|
// -----------------------下侧表格------------------------
|
|
|
|
const list = ref<any>([])
|
|
|
|
const list = ref<any>([])
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
@ -973,10 +1199,15 @@
|
|
|
|
className: 'htCenter',
|
|
|
|
className: 'htCenter',
|
|
|
|
readOnly: false,
|
|
|
|
readOnly: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '尺寸',
|
|
|
|
|
|
|
|
width: 80,
|
|
|
|
|
|
|
|
data: 'size',
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '箱型',
|
|
|
|
title: '箱型',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'isTempName',
|
|
|
|
data: 'ctn',
|
|
|
|
type: 'dropdown',
|
|
|
|
type: 'dropdown',
|
|
|
|
source: async (query, process) => {
|
|
|
|
source: async (query, process) => {
|
|
|
|
const res = [
|
|
|
|
const res = [
|
|
|
@ -995,52 +1226,51 @@
|
|
|
|
process(dict)
|
|
|
|
process(dict)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '表现形式',
|
|
|
|
|
|
|
|
width: 80,
|
|
|
|
|
|
|
|
data: 'ctnAll',
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '箱号',
|
|
|
|
title: '箱号',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'bsno',
|
|
|
|
data: 'cntrNo',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '封号',
|
|
|
|
title: '封号',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'bsno',
|
|
|
|
data: 'sealNo',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '件数',
|
|
|
|
title: '件数',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'bsno',
|
|
|
|
data: 'pkgs',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '包装',
|
|
|
|
title: '毛重',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'isTempName',
|
|
|
|
data: 'kgs',
|
|
|
|
type: 'dropdown',
|
|
|
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
|
|
|
const res = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '是',
|
|
|
|
|
|
|
|
value: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '否',
|
|
|
|
|
|
|
|
value: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
|
|
|
return res.name
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
process(dict)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '重量',
|
|
|
|
title: '尺码',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'bsno',
|
|
|
|
data: 'cbm',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// kindPkgsName
|
|
|
|
|
|
|
|
// kindPkgs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '尺码',
|
|
|
|
title: '包装',
|
|
|
|
width: 80,
|
|
|
|
width: 80,
|
|
|
|
data: 'bsno',
|
|
|
|
data: 'kindPkgsName',
|
|
|
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
|
|
|
console.log(kindPkgsList.value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dict = kindPkgsList.value.map((res) => {
|
|
|
|
|
|
|
|
return res.cnExplain
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
process(dict)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const settings = {
|
|
|
|
const settings = {
|
|
|
@ -1069,7 +1299,23 @@
|
|
|
|
// 此行直接复制,必须(非商用)
|
|
|
|
// 此行直接复制,必须(非商用)
|
|
|
|
licenseKey: 'non-commercial-and-evaluation',
|
|
|
|
licenseKey: 'non-commercial-and-evaluation',
|
|
|
|
// 定义所有单元格发生变化的回调处理
|
|
|
|
// 定义所有单元格发生变化的回调处理
|
|
|
|
async afterChange(changes, source) {},
|
|
|
|
async afterChange(changes, source) {
|
|
|
|
|
|
|
|
if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
|
|
|
|
|
|
|
|
let dict: any = {}
|
|
|
|
|
|
|
|
if (changes[0][1] === 'kindPkgsName') {
|
|
|
|
|
|
|
|
const res = kindPkgsList.value
|
|
|
|
|
|
|
|
const item = res.filter((item) => {
|
|
|
|
|
|
|
|
return item.packageName === changes[0][3]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (item) dict = item[0]
|
|
|
|
|
|
|
|
list.value[changes[0][0]]['kindPkgs'] = dict?.id
|
|
|
|
|
|
|
|
list.value[changes[0][0]]['kindPkgsName'] = dict?.packageName
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function addCtn() {
|
|
|
|
|
|
|
|
list.value.push({})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
defineExpose({
|
|
|
|
defineExpose({
|
|
|
|
init,
|
|
|
|
init,
|
|
|
|