|
|
|
@ -120,14 +120,15 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="船名"
|
|
|
|
|
name="vessel"
|
|
|
|
|
name="vesselId"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.vessel">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.vesselId">
|
|
|
|
|
<a-select-option :value="item.id" v-for="item in vesselList" :key="item.id">
|
|
|
|
|
{{ item.vesselName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -143,7 +144,7 @@
|
|
|
|
|
<a-input v-model:value="formState.voyno" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</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
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="船代"
|
|
|
|
@ -157,19 +158,24 @@
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-col> -->
|
|
|
|
|
<a-col :xs="12" :sm="12" :md="12" :lg="8" :xl="5">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="船公司"
|
|
|
|
|
name="carrier"
|
|
|
|
|
name="carrierId"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.carrier">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.carrierId">
|
|
|
|
|
<a-select-option
|
|
|
|
|
:value="item.id"
|
|
|
|
|
v-for="item in carrierList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.shortName }} / {{ item.codeName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -200,9 +206,21 @@
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span>发货人信息</span>
|
|
|
|
|
<div class="Template">
|
|
|
|
|
<a-select v-model:value="formState.shipperTemplate">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.shipperId"
|
|
|
|
|
@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>
|
|
|
|
|
<!-- @click="saveModel('shipper')" -->
|
|
|
|
|
<a-button
|
|
|
|
@ -222,38 +240,44 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="发货人"
|
|
|
|
|
name="shippername"
|
|
|
|
|
name="shipperName"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.shippername" />
|
|
|
|
|
<a-input v-model:value="formState.shipperName" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="地址"
|
|
|
|
|
name="shipperaddR1"
|
|
|
|
|
name="shipperAddress"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.shipperaddR1" />
|
|
|
|
|
<a-input v-model:value="formState.shipperAddress" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<!-- shipperCountryName -->
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="国家"
|
|
|
|
|
name="shippercountryName"
|
|
|
|
|
name="shipperCountry"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.shippercountryName">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.shipperCountry">
|
|
|
|
|
<a-select-option
|
|
|
|
|
:value="item.id"
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -261,12 +285,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="电话"
|
|
|
|
|
name="shippertel"
|
|
|
|
|
name="shipperCountryTel"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.shippertel" />
|
|
|
|
|
<a-input v-model:value="formState.shipperCountryTel" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -278,9 +302,21 @@
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span>收货人信息</span>
|
|
|
|
|
<div class="Template">
|
|
|
|
|
<a-select v-model:value="formState.consigneeTemplate">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.consigneeId"
|
|
|
|
|
@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>
|
|
|
|
|
<!-- @click="saveModel('consignee')" -->
|
|
|
|
|
<a-button
|
|
|
|
@ -303,38 +339,43 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="收货人"
|
|
|
|
|
name="consigneename"
|
|
|
|
|
name="consigneeName"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.consigneename" />
|
|
|
|
|
<a-input v-model:value="formState.consigneeName" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="地址"
|
|
|
|
|
name="consigneeaddR1"
|
|
|
|
|
name="consigneeAddress"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.consigneeaddR1" />
|
|
|
|
|
<a-input v-model:value="formState.consigneeAddress" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="国家"
|
|
|
|
|
name="consigneecountryName"
|
|
|
|
|
name="consigneeCountry"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.consigneecountryName">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.consigneeCountry">
|
|
|
|
|
<a-select-option
|
|
|
|
|
:value="item.id"
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -342,12 +383,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="电话"
|
|
|
|
|
name="consigneetel"
|
|
|
|
|
name="consigneeCountryTel"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.consigneetel" />
|
|
|
|
|
<a-input v-model:value="formState.consigneeCountryTel" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -359,9 +400,21 @@
|
|
|
|
|
<div class="title">
|
|
|
|
|
<span>通知人信息</span>
|
|
|
|
|
<div class="Template">
|
|
|
|
|
<a-select v-model:value="formState.notifypartyTemplate">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.notifyPartyId"
|
|
|
|
|
@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>
|
|
|
|
|
<!-- @click="saveModel('notifyparty')" -->
|
|
|
|
|
<a-button
|
|
|
|
@ -384,38 +437,43 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="通知人"
|
|
|
|
|
name="notifypartyname"
|
|
|
|
|
name="notifyPartyName"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.notifypartyname" />
|
|
|
|
|
<a-input v-model:value="formState.notifyPartyName" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="地址"
|
|
|
|
|
name="notifypartyaddR1"
|
|
|
|
|
name="notifyPartyAddress"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.notifypartyaddR1" />
|
|
|
|
|
<a-input v-model:value="formState.notifyPartyAddress" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="国家"
|
|
|
|
|
name="notifypartycountryName"
|
|
|
|
|
name="notifyPartyCountry"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.notifypartycountryName">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.notifyPartyCountry">
|
|
|
|
|
<a-select-option
|
|
|
|
|
:value="item.id"
|
|
|
|
|
v-for="item in countryList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.countryName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -423,12 +481,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="电话"
|
|
|
|
|
name="notifypartytel"
|
|
|
|
|
name="notifyPartyCountryTel"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.notifypartytel" />
|
|
|
|
|
<a-input v-model:value="formState.notifyPartyCountryTel" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -444,14 +502,26 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="装货港代码"
|
|
|
|
|
name="portloadid"
|
|
|
|
|
name="loadPortId"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.portloadid">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.loadPortId"
|
|
|
|
|
@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-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -459,12 +529,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="装货港"
|
|
|
|
|
name="portload"
|
|
|
|
|
name="loadPort"
|
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.portload" />
|
|
|
|
|
<a-input v-model:value="formState.loadPort" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
@ -472,14 +542,26 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="卸货港代码"
|
|
|
|
|
name="portdischargeid"
|
|
|
|
|
name="dischargePortId"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.portdischargeid">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.dischargePortId"
|
|
|
|
|
@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-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -487,12 +569,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="卸货港"
|
|
|
|
|
name="portdischarge"
|
|
|
|
|
name="dischargePort"
|
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.portdischarge" />
|
|
|
|
|
<a-input v-model:value="formState.dischargePort" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
@ -500,14 +582,26 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="收货地代码"
|
|
|
|
|
name="placedeliveryid"
|
|
|
|
|
name="deliveryPlaceId"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.placedeliveryid">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select
|
|
|
|
|
v-model:value="formState.deliveryPlaceId"
|
|
|
|
|
@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-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -515,12 +609,12 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="收货地"
|
|
|
|
|
name="placedelivery"
|
|
|
|
|
name="deliveryPlace"
|
|
|
|
|
:labelCol="labelCol3"
|
|
|
|
|
:wrapperCol="wrapperCol3"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-input v-model:value="formState.portdischarge" />
|
|
|
|
|
<a-input v-model:value="formState.deliveryPlace" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -602,15 +696,17 @@
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="货物类型"
|
|
|
|
|
label="货物标识"
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="cargoid"
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.cargoid">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select-option value="S">S 普通货</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-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -623,11 +719,16 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="kindpkgs"
|
|
|
|
|
name="kindPkgs"
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.kindpkgs">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.kindPkgs">
|
|
|
|
|
<a-select-option
|
|
|
|
|
v-for="item in kindPkgsList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.packageName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -638,10 +739,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="tempset"
|
|
|
|
|
name="temperatureSet"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.tempset" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.temperatureSet"
|
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -652,13 +756,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="tempid"
|
|
|
|
|
name="temperatureUnit"
|
|
|
|
|
>
|
|
|
|
|
<a-select
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
|
:default-value="formState.tempid || 'C摄氏'"
|
|
|
|
|
v-model:value="formState.tempid"
|
|
|
|
|
:default-value="formState.temperatureUnit || 'C摄氏'"
|
|
|
|
|
v-model:value="formState.temperatureUnit"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option value="C"> C摄氏 </a-select-option>
|
|
|
|
|
<a-select-option value="F"> F华氏 </a-select-option>
|
|
|
|
@ -672,10 +776,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="reeferf"
|
|
|
|
|
name="reeferQuantity"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.reeferf" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.reeferQuantity"
|
|
|
|
|
:disabled="formState.cargoid !== 'R'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -686,10 +793,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="dclass"
|
|
|
|
|
name="dangerClass"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.dclass" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.dangerClass"
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -700,10 +810,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="dunno"
|
|
|
|
|
name="dangerNo"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.dunno" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.dangerNo"
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -714,10 +827,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="dattn"
|
|
|
|
|
name="dangerAttn"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.dattn" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.dangerAttn"
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -728,10 +844,13 @@
|
|
|
|
|
:labelCol="labelCol2"
|
|
|
|
|
:wrapperCol="wrapperCol2"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="dtel"
|
|
|
|
|
name="dangerTel"
|
|
|
|
|
>
|
|
|
|
|
<div class="line-box">
|
|
|
|
|
<a-input v-model:value="formState.dtel" />
|
|
|
|
|
<a-input
|
|
|
|
|
v-model:value="formState.dangerTel"
|
|
|
|
|
:disabled="formState.cargoid !== 'D'"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -760,14 +879,14 @@
|
|
|
|
|
md: { span: 23 },
|
|
|
|
|
}"
|
|
|
|
|
has-feedback
|
|
|
|
|
name="remarks"
|
|
|
|
|
name="remark"
|
|
|
|
|
>
|
|
|
|
|
<!-- <inputView
|
|
|
|
|
type="remarks"
|
|
|
|
|
:parentVal="orderDetails.remarks"
|
|
|
|
|
@getInputChange="inputChange"
|
|
|
|
|
/> -->
|
|
|
|
|
<a-input v-model:value="formState.remarks" />
|
|
|
|
|
<a-input v-model:value="formState.remark" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
@ -778,8 +897,7 @@
|
|
|
|
|
<div class="mail-box">
|
|
|
|
|
<div class="title">集装箱信息</div>
|
|
|
|
|
<div class="ctn-btn">
|
|
|
|
|
<!-- @click="addCtn" -->
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<div class="btn" @click="addCtn">
|
|
|
|
|
<i class="iconfont icon-icon_tianjia"></i><span>新建</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- @click="copyCtn" -->
|
|
|
|
@ -794,14 +912,19 @@
|
|
|
|
|
<a-form-item
|
|
|
|
|
class="pre-from-label"
|
|
|
|
|
label="场站"
|
|
|
|
|
name="yard"
|
|
|
|
|
name="yardId"
|
|
|
|
|
:labelCol="labelCol"
|
|
|
|
|
:wrapperCol="wrapperCol"
|
|
|
|
|
has-feedback
|
|
|
|
|
>
|
|
|
|
|
<a-select v-model:value="formState.yard" style="width: 200px">
|
|
|
|
|
<a-select-option value="china">China</a-select-option>
|
|
|
|
|
<a-select-option value="usa">U.S.A</a-select-option>
|
|
|
|
|
<a-select v-model:value="formState.yardId" style="width: 200px">
|
|
|
|
|
<a-select-option
|
|
|
|
|
v-for="item in yardList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
{{ item.codeName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</div>
|
|
|
|
@ -831,7 +954,17 @@
|
|
|
|
|
import {
|
|
|
|
|
GetShippingBillList,
|
|
|
|
|
EditShippingBill,
|
|
|
|
|
GetShippingBillInfo,
|
|
|
|
|
} 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'
|
|
|
|
|
const { notification } = useMessage()
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
@ -881,6 +1014,7 @@
|
|
|
|
|
} else {
|
|
|
|
|
// this.getNoDataInit()
|
|
|
|
|
}
|
|
|
|
|
GetList()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
@ -910,6 +1044,8 @@
|
|
|
|
|
orderList.value.push({ checked: false, ...e })
|
|
|
|
|
})
|
|
|
|
|
formState.value = orderList.value[editIndex.value]
|
|
|
|
|
} else {
|
|
|
|
|
orderList.value.push({ checked: false })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
@ -926,10 +1062,27 @@
|
|
|
|
|
...formState.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) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log('保存')
|
|
|
|
|
}
|
|
|
|
|
// 删除
|
|
|
|
|
function removeOrder() {
|
|
|
|
@ -959,9 +1112,82 @@
|
|
|
|
|
orderList.value[editIndex.value] = formState.value
|
|
|
|
|
editIndex.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 columns = [
|
|
|
|
@ -973,10 +1199,15 @@
|
|
|
|
|
className: 'htCenter',
|
|
|
|
|
readOnly: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '尺寸',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'size',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '箱型',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'isTempName',
|
|
|
|
|
data: 'ctn',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = [
|
|
|
|
@ -995,52 +1226,51 @@
|
|
|
|
|
process(dict)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '表现形式',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'ctnAll',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '箱号',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'bsno',
|
|
|
|
|
data: 'cntrNo',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '封号',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'bsno',
|
|
|
|
|
data: 'sealNo',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '件数',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'bsno',
|
|
|
|
|
data: 'pkgs',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '包装',
|
|
|
|
|
title: '毛重',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'isTempName',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = [
|
|
|
|
|
{
|
|
|
|
|
name: '是',
|
|
|
|
|
value: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '否',
|
|
|
|
|
value: false,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
return res.name
|
|
|
|
|
})
|
|
|
|
|
process(dict)
|
|
|
|
|
},
|
|
|
|
|
data: 'kgs',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '重量',
|
|
|
|
|
title: '尺码',
|
|
|
|
|
width: 80,
|
|
|
|
|
data: 'bsno',
|
|
|
|
|
data: 'cbm',
|
|
|
|
|
},
|
|
|
|
|
// kindPkgsName
|
|
|
|
|
// kindPkgs
|
|
|
|
|
{
|
|
|
|
|
title: '尺码',
|
|
|
|
|
title: '包装',
|
|
|
|
|
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 = {
|
|
|
|
@ -1069,7 +1299,23 @@
|
|
|
|
|
// 此行直接复制,必须(非商用)
|
|
|
|
|
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({
|
|
|
|
|
init,
|
|
|
|
|