各种问题

master
sunzehua 3 months ago
parent f4ec40cb5f
commit 2fb67070fa

12
.env

@ -1,14 +1,14 @@
NODE_ENV=production NODE_ENV=production
VUE_APP_PREVIEW=true VUE_APP_PREVIEW=true
# VUE_APP_TYPE = 'customer' # VUE_APP_TYPE = 'customer'
# VUE_APP_TYPE = 'hechuan' VUE_APP_TYPE = 'hechuan'
# VUE_APP_TYPE = 'yunyingduan' # VUE_APP_TYPE = 'yunyingduan'
VUE_APP_TYPE = 'gangjie' # VUE_APP_TYPE = 'gangjie'
# 打包部署的三个端 客户端customer 和川端hechuan 运营端djy # 打包部署的三个端 客户端customer 和川端hechuan 运营端djy
# 和川大简云正式 # 和川大简云正式
# VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api
# VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345 VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345
# 和川大简云测试 # 和川大简云测试
# VUE_APP_API_BASE_URL=http://60.209.125.238:35100 # VUE_APP_API_BASE_URL=http://60.209.125.238:35100
@ -23,8 +23,8 @@ VUE_APP_TYPE = 'gangjie'
# VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:30814 # VUE_APP_SOCKET_BASE_URL=http://60.209.125.238:30814
# 港捷 # 港捷
VUE_APP_API_BASE_URL=http://118.190.144.189:5001 # VUE_APP_API_BASE_URL=http://118.190.144.189:5001
VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001 # VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001
# 客户端正式 # 客户端正式
# VUE_APP_API_BASE_URL=http://118.190.144.189:6001 # VUE_APP_API_BASE_URL=http://118.190.144.189:6001

@ -1,14 +1,14 @@
NODE_ENV=development NODE_ENV=development
VUE_APP_PREVIEW=true VUE_APP_PREVIEW=true
# VUE_APP_TYPE = 'customer' # VUE_APP_TYPE = 'customer'
# VUE_APP_TYPE = 'hechuan' VUE_APP_TYPE = 'hechuan'
# VUE_APP_TYPE = 'yunyingduan' # VUE_APP_TYPE = 'yunyingduan'
VUE_APP_TYPE = 'gangjie' # VUE_APP_TYPE = 'gangjie'
# 打包部署的三个端 客户端customer 和川端hechuan 运营端yunyingduan # 打包部署的三个端 客户端customer 和川端hechuan 运营端yunyingduan
# 和川大简云正式 # 和川大简云正式
# VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api VUE_APP_API_BASE_URL=http://47.104.85.216:12345/api
# VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345 VUE_APP_SOCKET_BASE_URL=http://47.104.85.216:12345
# 和川大简云测试 # 和川大简云测试
# VUE_APP_API_BASE_URL=http://60.209.125.238:35100 # VUE_APP_API_BASE_URL=http://60.209.125.238:35100
@ -26,8 +26,8 @@ VUE_APP_TYPE = 'gangjie'
# VUE_APP_SOCKET_BASE_URL=http://192.168.0.80:7373/ # VUE_APP_SOCKET_BASE_URL=http://192.168.0.80:7373/
# 港捷 # 港捷
VUE_APP_API_BASE_URL=http://118.190.144.189:5001 # VUE_APP_API_BASE_URL=http://118.190.144.189:5001
VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001 # VUE_APP_SOCKET_BASE_URL=http://118.190.144.189:5001
# 运营端正式 # 运营端正式
# VUE_APP_API_BASE_URL=http://118.190.144.189:6002 # VUE_APP_API_BASE_URL=http://118.190.144.189:6002

@ -2,7 +2,7 @@
<div class="select-content"> <div class="select-content">
<div class="select-input"> <div class="select-input">
<a-select <a-select
size="small" :size="size"
ref="selectView" ref="selectView"
:class="`select-input-${type}`" :class="`select-input-${type}`"
v-model="value" v-model="value"
@ -127,6 +127,10 @@ export default {
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false
},
size: {
type: String,
default: 'small'
} }
}, },
data() { data() {

@ -148,7 +148,7 @@ export default {
this.loading = true this.loading = true
getDjyTenantConfig({ type: 'booking_default_value' }).then(res => { getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.loadData = JSON.parse(res.data.configJson) this.loadData = res.data.configJson ? JSON.parse(res.data.configJson) : ''
this.DisplayLoadData = this.loadData this.DisplayLoadData = this.loadData
} else { } else {
this.loadData = [] this.loadData = []

@ -12,91 +12,121 @@
<a-form class="Editing"> <a-form class="Editing">
<a-row> <a-row>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="提单号:" :label-col="formItemLayout.labelCol1" <a-form-item
label="提单号:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1">{{ form.mblNo }} :wrapper-col="formItemLayout.wrapperCol1">{{ form.mblNo }}
<a-icon @click="copyText(form.mblNo)" style="cursor: pointer;" type="copy" /> <a-icon @click="copyText(form.mblNo)" style="cursor: pointer;" type="copy" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="船名/航次:" :label-col="formItemLayout.labelCol2" <a-form-item
label="船名/航次:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.vessel }}/{{ form.voyNo }} {{ form.vessel }}/{{ form.voyNo }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="收货地:" :label-col="formItemLayout.labelCol1" <a-form-item
label="收货地:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.placeReceipt }} {{ form.placeReceipt }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="ETD" :label-col="formItemLayout.labelCol2" <a-form-item
label="ETD"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.etd ? form.etd.substring(0, 11) : '-' }} {{ form.etd ? form.etd.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="交货地:" :label-col="formItemLayout.labelCol1" <a-form-item
label="交货地:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.placeDelivery }} {{ form.placeDelivery }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="ETA" :label-col="formItemLayout.labelCol2" <a-form-item
label="ETA"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.eta ? form.eta.substring(0, 11) : '-' }} {{ form.eta ? form.eta.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="订舱人:" :label-col="formItemLayout.labelCol1" <a-form-item
label="订舱人:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.bookingParty }} {{ form.bookingParty }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="合约号:" :label-col="formItemLayout.labelCol2" <a-form-item
label="合约号:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.contractNo }} {{ form.contractNo }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="样单截止时间:" :label-col="formItemLayout.labelCol1" <a-form-item
label="样单截止时间:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.siCutDate }} {{ form.siCutDate }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="箱使天数:" :label-col="formItemLayout.labelCol2" <a-form-item
label="箱使天数:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.detensionFreeDays }} {{ form.detensionFreeDays }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="舱单截止时间:" :label-col="formItemLayout.labelCol1" <a-form-item
label="舱单截止时间:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.manifestCutDate }} {{ form.manifestCutDate }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="截港时间:" :label-col="formItemLayout.labelCol2" <a-form-item
label="截港时间:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.cyCutoffTime }} {{ form.cyCutoffTime }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="MDGF截止时间" :label-col="formItemLayout.labelCol1" <a-form-item
label="MDGF截止时间"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.mdgfCutDate }} {{ form.mdgfCutDate }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
<a-form-item label="VGM截止时间" :label-col="formItemLayout.labelCol2" <a-form-item
label="VGM截止时间"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
{{ form.vgmCutoffTime }} {{ form.vgmCutoffTime }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="14"> <a-col :span="14">
<a-form-item label="箱型箱量:" :label-col="formItemLayout.labelCol1" <a-form-item
label="箱型箱量:"
:label-col="formItemLayout.labelCol1"
:wrapper-col="formItemLayout.wrapperCol1"> :wrapper-col="formItemLayout.wrapperCol1">
{{ form.ctnStat }} {{ form.ctnStat }}
</a-form-item> </a-form-item>
@ -105,31 +135,41 @@
<p class="title"><i class="iconfont icon-chuanfanguanli-chuanfanshenqing"></i>一程</p> <p class="title"><i class="iconfont icon-chuanfanguanli-chuanfanshenqing"></i>一程</p>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="船名/航次:" :label-col="formItemLayout.labelCol3" <a-form-item
label="船名/航次:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.vessel }}/{{ form.voyNo }} {{ form.vessel }}/{{ form.voyNo }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="ETD" :label-col="formItemLayout.labelCol4" <a-form-item
label="ETD"
:label-col="formItemLayout.labelCol4"
:wrapper-col="formItemLayout.wrapperCol4"> :wrapper-col="formItemLayout.wrapperCol4">
{{ form.etd ? form.etd.substring(0, 11) : '-' }} {{ form.etd ? form.etd.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="装货港:" :label-col="formItemLayout.labelCol3" <a-form-item
label="装货港:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.portload }} {{ form.portload }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="ETA" :label-col="formItemLayout.labelCol4" <a-form-item
label="ETA"
:label-col="formItemLayout.labelCol4"
:wrapper-col="formItemLayout.wrapperCol4"> :wrapper-col="formItemLayout.wrapperCol4">
{{ form.eta ? form.eta.substring(0, 11) : '-' }} {{ form.eta ? form.eta.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="卸货港:" :label-col="formItemLayout.labelCol3" <a-form-item
label="卸货港:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.portDischarge }} {{ form.portDischarge }}
</a-form-item> </a-form-item>
@ -140,31 +180,41 @@
<p class="title"><i class="iconfont icon-chuanfanguanli-chuanfanshenqing"></i>二程</p> <p class="title"><i class="iconfont icon-chuanfanguanli-chuanfanshenqing"></i>二程</p>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="船名/航次:" :label-col="formItemLayout.labelCol3" <a-form-item
label="船名/航次:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.secondVessel }}/{{ form.secondVoyno }} {{ form.secondVessel }}/{{ form.secondVoyno }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="ETD" :label-col="formItemLayout.labelCol4" <a-form-item
label="ETD"
:label-col="formItemLayout.labelCol4"
:wrapper-col="formItemLayout.wrapperCol4"> :wrapper-col="formItemLayout.wrapperCol4">
{{ form.secondETD ? form.secondETD.substring(0, 11) : '-' }} {{ form.secondETD ? form.secondETD.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="装货港:" :label-col="formItemLayout.labelCol3" <a-form-item
label="装货港:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.transferPort1 }} {{ form.transferPort1 }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="ETA" :label-col="formItemLayout.labelCol4" <a-form-item
label="ETA"
:label-col="formItemLayout.labelCol4"
:wrapper-col="formItemLayout.wrapperCol4"> :wrapper-col="formItemLayout.wrapperCol4">
{{ form.secondETA ? form.secondETA.substring(0, 11) : '-' }} {{ form.secondETA ? form.secondETA.substring(0, 11) : '-' }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="卸货港:" :label-col="formItemLayout.labelCol3" <a-form-item
label="卸货港:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
{{ form.portDischarge }} {{ form.portDischarge }}
</a-form-item> </a-form-item>
@ -178,7 +228,9 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="5"> <a-col :span="5">
<a-form-item label="已生成舱位:" :label-col="formItemLayout.labelCol5" <a-form-item
label="已生成舱位:"
:label-col="formItemLayout.labelCol5"
:wrapper-col="formItemLayout.wrapperCol5"> :wrapper-col="formItemLayout.wrapperCol5">
{{ form.bookingSlotId ? '是' : '否' }} {{ form.bookingSlotId ? '是' : '否' }}
</a-form-item> </a-form-item>
@ -187,7 +239,9 @@
<span class="CsSee" v-if="form.bookingSlotId" @click="FnSee1"></span> <span class="CsSee" v-if="form.bookingSlotId" @click="FnSee1"></span>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
<a-form-item label="已生成订舱:" :label-col="formItemLayout.labelCol5" <a-form-item
label="已生成订舱:"
:label-col="formItemLayout.labelCol5"
:wrapper-col="formItemLayout.wrapperCol5"> :wrapper-col="formItemLayout.wrapperCol5">
{{ form.bookingOrderId ? '是' : '否' }} {{ form.bookingOrderId ? '是' : '否' }}
</a-form-item> </a-form-item>
@ -196,7 +250,9 @@
<span class="CsSee" v-if="form.bookingOrderId" @click="FnSee"></span> <span class="CsSee" v-if="form.bookingOrderId" @click="FnSee"></span>
</a-col> </a-col>
<a-col :span="5"> <a-col :span="5">
<a-form-item label="任务状态:" :label-col="formItemLayout.labelCol5" <a-form-item
label="任务状态:"
:label-col="formItemLayout.labelCol5"
:wrapper-col="formItemLayout.wrapperCol5"> :wrapper-col="formItemLayout.wrapperCol5">
{{ form.taskStatus == 'Complete' ? '已完成' : '-' }} {{ form.taskStatus == 'Complete' ? '已完成' : '-' }}
</a-form-item> </a-form-item>
@ -208,7 +264,11 @@
<p class="title">关键信息</p> <p class="title">关键信息</p>
</a-col> </a-col>
<div class="unitBox"> <div class="unitBox">
<p v-for="(item, index) in form.keywords" :key="index" class="unit" :style="{ <p
v-for="(item, index) in form.keywords"
:key="index"
class="unit"
:style="{
background: item.background, background: item.background,
color: Rcolor(item.background), color: Rcolor(item.background),
border: `1px solid ${Rcolor(item.background)}` border: `1px solid ${Rcolor(item.background)}`
@ -221,7 +281,8 @@
<div <div
style="height: 30px;border: 1px solid red;padding: 0 10px;color: black;font-size: 13px;line-height: 30px;width: 45%;margin-left: 7px;margin-bottom: 10px;"> style="height: 30px;border: 1px solid red;padding: 0 10px;color: black;font-size: 13px;line-height: 30px;width: 45%;margin-left: 7px;margin-bottom: 10px;">
<a-icon type="info-circle" theme="filled" style="font-size: 15px;color: red;margin-right: 20px;" /> <a-icon type="info-circle" theme="filled" style="font-size: 15px;color: red;margin-right: 20px;" />
<span @click="compareResultFlag = true" <span
@click="compareResultFlag = true"
style="cursor: pointer;text-decoration: underline;">订舱变更比对BC存在差异</span> style="cursor: pointer;text-decoration: underline;">订舱变更比对BC存在差异</span>
差异总数:{{ compareResultList.length }} 差异总数:{{ compareResultList.length }}
</div> </div>
@ -303,10 +364,18 @@
<a-form class="Editing"> <a-form class="Editing">
<a-row> <a-row>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="委托单位:" :label-col="formItemLayout.labelCol3" <a-form-item
label="委托单位:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
<a-select show-search v-model="CreateData.customerId" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchCustomer" show-search
v-model="CreateData.customerId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchCustomer"
@change="ChangeCustomer"> @change="ChangeCustomer">
<a-select-option v-for="(item, index) in CustomerList" :key="index" :value="item.id"> <a-select-option v-for="(item, index) in CustomerList" :key="index" :value="item.id">
{{ item.shortName }} {{ item.shortName }}
@ -316,11 +385,20 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-spin :spinning="fetching"> <a-spin :spinning="fetching">
<a-form-item label="联系人:" :label-col="formItemLayout.labelCol2" <a-form-item
label="联系人:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search mode="multiple" v-model="CreateData.customerList" <a-select
:default-active-first-option="false" :show-arrow="false" :filter-option="false" show-search
:not-found-content="null" @change="handleChangeUser" @search="SearchUser"> mode="multiple"
v-model="CreateData.customerList"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@change="handleChangeUser"
@search="SearchUser">
<a-select-option v-for="item in customerByList" :key="item.id" :value="item.id"> <a-select-option v-for="item in customerByList" :key="item.id" :value="item.id">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
@ -337,8 +415,15 @@
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="销售:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2"> <a-form-item label="销售:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.saleId" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.saleId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'saleName') ChangeUser(e, 'saleName')
} }
"> ">
@ -350,8 +435,15 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="操作:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2"> <a-form-item label="操作:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.opId" :default-active-first-option="false" :show-arrow="false" <a-select
:filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.opId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'opName') ChangeUser(e, 'opName')
} }
"> ">
@ -363,8 +455,15 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="单证:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2"> <a-form-item label="单证:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.docId" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.docId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'docName') ChangeUser(e, 'docName')
} }
"> ">
@ -378,8 +477,15 @@
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="客服:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2"> <a-form-item label="客服:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.custServiceId" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.custServiceId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'custServiceName') ChangeUser(e, 'custServiceName')
} }
"> ">
@ -390,10 +496,19 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="航线操作:" :label-col="formItemLayout.labelCol2" <a-form-item
label="航线操作:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.routeID" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.routeID"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'route') ChangeUser(e, 'route')
} }
"> ">
@ -404,10 +519,19 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="航线管理:" :label-col="formItemLayout.labelCol2" <a-form-item
label="航线管理:"
:label-col="formItemLayout.labelCol2"
:wrapper-col="formItemLayout.wrapperCol2"> :wrapper-col="formItemLayout.wrapperCol2">
<a-select show-search v-model="CreateData.lineManageID" :default-active-first-option="false" <a-select
:show-arrow="false" :filter-option="false" :not-found-content="null" @search="SearchUser" @change="e => { show-search
v-model="CreateData.lineManageID"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser"
@change="e => {
ChangeUser(e, 'lineManage') ChangeUser(e, 'lineManage')
} }
"> ">
@ -420,7 +544,9 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="操作备注:" :label-col="formItemLayout.labelCol3" <a-form-item
label="操作备注:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
<a-input v-model="CreateData.czRemark" /> <a-input v-model="CreateData.czRemark" />
</a-form-item> </a-form-item>
@ -428,7 +554,9 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="申请箱使:" :label-col="formItemLayout.labelCol3" <a-form-item
label="申请箱使:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
<a-input v-model="CreateData.shenQingXiangShi" /> <a-input v-model="CreateData.shenQingXiangShi" />
</a-form-item> </a-form-item>
@ -436,11 +564,17 @@
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="16"> <a-col :span="16">
<a-form-item label="服务项目:" :label-col="formItemLayout.labelCol3" <a-form-item
label="服务项目:"
:label-col="formItemLayout.labelCol3"
:wrapper-col="formItemLayout.wrapperCol3"> :wrapper-col="formItemLayout.wrapperCol3">
<div class="content"> <div class="content">
<div class="items" v-for="(serive, sindex) in bookingServiceItem" :key="sindex" <div
:class="{ active: serive.isYield }" @click="saveService(serive)"> class="items"
v-for="(serive, sindex) in bookingServiceItem"
:key="sindex"
:class="{ active: serive.isYield }"
@click="saveService(serive)">
{{ serive.serviceProjectName }} {{ serive.serviceProjectName }}
</div> </div>
</div> </div>
@ -453,8 +587,14 @@
<a-modal v-model="UserVisible" title="转移任务" @ok="UserhandleOk"> <a-modal v-model="UserVisible" title="转移任务" @ok="UserhandleOk">
<a-form> <a-form>
<a-form-item label="接收人:" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1"> <a-form-item label="接收人:" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1">
<a-select show-search v-model="UserId" :default-active-first-option="false" :show-arrow="false" <a-select
:filter-option="false" :not-found-content="null" @search="SearchUser"> show-search
v-model="UserId"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
@search="SearchUser">
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id"> <a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
@ -841,8 +981,6 @@ export default {
} }
this.ChangeFileRadio() this.ChangeFileRadio()
}) })
}, },
OpenUser() { OpenUser() {
this.UserId = '' this.UserId = ''

@ -149,7 +149,7 @@
:filter-option="false" :filter-option="false"
:not-found-content="null" :not-found-content="null"
> >
<a-select-option v-for="item in portLoadingData" :key="item.code" :value="item.code"> <a-select-option v-for="item in portLoadingData" :key="item.code" :value="item.ediCode">
{{ item.enName }} {{ item.enName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -168,7 +168,7 @@
:filter-option="false" :filter-option="false"
:not-found-content="null" :not-found-content="null"
> >
<a-select-option v-for="item in portTransitData" :key="item.code" :value="item.code"> <a-select-option v-for="item in portTransitData" :key="item.code" :value="item.ediCode">
{{ item.enName }} {{ item.enName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -187,7 +187,7 @@
:filter-option="false" :filter-option="false"
:not-found-content="null" :not-found-content="null"
> >
<a-select-option v-for="item in portDischargeData" :key="item.code" :value="item.code"> <a-select-option v-for="item in portDischargeData" :key="item.code" :value="item.ediCode">
{{ item.enName }} {{ item.enName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -331,21 +331,21 @@ export default {
} }
if (this.portLoadingData.length) { if (this.portLoadingData.length) {
this.portLoadingData.forEach(item => { this.portLoadingData.forEach(item => {
if (item.code == values.portLoadingId) { if (item.ediCode == values.portLoadingId) {
values.portLoading = item.enName values.portLoading = item.enName
} }
}) })
} }
if (this.portTransitData.length) { if (this.portTransitData.length) {
this.portTransitData.forEach(item => { this.portTransitData.forEach(item => {
if (item.code == values.portTransitId) { if (item.ediCode == values.portTransitId) {
values.portTransit = item.enName values.portTransit = item.enName
} }
}) })
} }
if (this.portDischargeData.length) { if (this.portDischargeData.length) {
this.portDischargeData.forEach(item => { this.portDischargeData.forEach(item => {
if (item.code == values.portDischargeId) { if (item.ediCode == values.portDischargeId) {
values.portDischarge = item.enName values.portDischarge = item.enName
} }
}) })
@ -429,21 +429,21 @@ export default {
} }
if (this.portLoadingData.length) { if (this.portLoadingData.length) {
this.portLoadingData.forEach(item => { this.portLoadingData.forEach(item => {
if (item.code == values.portLoadingId) { if (item.ediCode == values.portLoadingId) {
values.portLoading = item.enName values.portLoading = item.enName
} }
}) })
} }
if (this.portTransitData.length) { if (this.portTransitData.length) {
this.portTransitData.forEach(item => { this.portTransitData.forEach(item => {
if (item.code == values.portTransitId) { if (item.ediCode == values.portTransitId) {
values.portTransit = item.enName values.portTransit = item.enName
} }
}) })
} }
if (this.portDischargeData.length) { if (this.portDischargeData.length) {
this.portDischargeData.forEach(item => { this.portDischargeData.forEach(item => {
if (item.code == values.portDischargeId) { if (item.ediCode == values.portDischargeId) {
values.portDischarge = item.enName values.portDischarge = item.enName
} }
}) })

@ -7,32 +7,13 @@
@cancel="handleCancel" @cancel="handleCancel"
> >
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <a-form-model ref="ruleForm" :model="form" :rules="rules" >
<a-row> <a-row>
<!-- <a-col :span="12">
<a-form-item label="租户" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select
placeholder="请选择租户"
v-decorator="['tenantId', { rules: [{ required: true, message: '请选择租户!' }] }]"
show-search
@focus="tenantSearch"
@search="tenantSearch"
:default-active-first-option="false"
:show-arrow="false"
:filter-option="false"
:not-found-content="null"
>
<a-select-option v-for="item in tenantData" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col> -->
<a-col :span="12"> <a-col :span="12">
<a-form-item label="船名" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="船名" prop="vessel" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <a-select
placeholder="请选择船名" placeholder="请选择船名"
v-decorator="['vessel', { rules: [{ required: true, message: '请选择船名!' }] }]" v-model="form.vessel"
show-search show-search
@focus="vesselSearch" @focus="vesselSearch"
@search="vesselSearch" @search="vesselSearch"
@ -45,14 +26,15 @@
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="船公司" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="船公司" prop="carrierid" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <a-select
placeholder="请选择船公司" placeholder="请选择船公司"
v-decorator="['carrierid', { rules: [{ required: true, message: '请选择船公司!' }] }]" v-decorator="['carrierid', { rules: [{ required: true, message: '请选择船公司!' }] }]"
show-search show-search
v-model="form.carrierid"
@focus="carrierSearch" @focus="carrierSearch"
@search="carrierSearch" @search="carrierSearch"
:default-active-first-option="false" :default-active-first-option="false"
@ -64,141 +46,129 @@
{{ item.cnName }} {{ item.cnName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="内部航次" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="内部航次" prop="voynoInside" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-input <a-input
placeholder="请输入内部航次" placeholder="请输入内部航次"
v-model="form.voynoInside"
v-decorator="['voynoInside', { rules: [{ required: true, message: '请输入内部航次!' }] }]" v-decorator="['voynoInside', { rules: [{ required: true, message: '请输入内部航次!' }] }]"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="航次" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="航次" prop="voyno" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-input <a-input
placeholder="请输入航次" placeholder="请输入航次"
v-model="form.voyno"
v-decorator="['voyno', { rules: [{ required: true, message: '请输入航次!' }] }]" v-decorator="['voyno', { rules: [{ required: true, message: '请输入航次!' }] }]"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="云港通ETD" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="云港通ETD" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
show-time show-time
:style="{ width: '100%' }" :style="{ width: '100%' }"
v-model="form.ygtETD"
placeholder="请选择云港通ETD" placeholder="请选择云港通ETD"
v-decorator="['ygtETD']"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="开船日期" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="开船日期" prop="etd" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
:style="{ width: '100%' }" :style="{ width: '100%' }"
v-model="form.etd"
placeholder="请选择开船日期" placeholder="请选择开船日期"
v-decorator="['etd', { rules: [{ required: true, message: '请选择开船日期!' }] }]" v-decorator="['etd', { rules: [{ required: true, message: '请选择开船日期!' }] }]"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="截港时间" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="截港时间" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
show-time show-time
:style="{ width: '100%' }" :style="{ width: '100%' }"
placeholder="请选择截港时间" placeholder="请选择截港时间"
v-decorator="['closingDate']" v-model="form.closingDate"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="截单时间" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="截单时间" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
:style="{ width: '100%' }" :style="{ width: '100%' }"
v-model="form.closeDocTime"
placeholder="请选择截单时间" placeholder="请选择截单时间"
show-time show-time
v-decorator="['closeDocTime']"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="实际开船" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="实际开船" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
show-time show-time
:style="{ width: '100%' }" :style="{ width: '100%' }"
v-model="form.atd"
placeholder="请选择实际开船时间" placeholder="请选择实际开船时间"
v-decorator="['atd']"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="装货港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="装货港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <selectView
placeholder="请选择装货港" type="portloadid"
v-decorator="['portLoadingId']" :defaultVal="form.portLoading"
show-search searchApi="GetPortloadlist"
@focus="portLoadingSearch" size="default"
@search="portLoadingSearch" :searchQuery="{ KeyWord: '' }"
:default-active-first-option="false" :isCopy="false"
:show-arrow="false" :showLabel="['ediCode', 'enName']"
:filter-option="false" :openSearch="true"
:not-found-content="null" @change="getSelectViewRes"></selectView>
> </a-form-model-item>
<a-select-option v-for="item in portLoadingData" :key="item.code" :value="item.code">
{{ item.enName }}
</a-select-option>
</a-select>
</a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="中转港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="中转港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <selectView
placeholder="请选择中转港" type="transportid"
v-decorator="['portTransitId']" :defaultVal="form.portTransit"
show-search searchApi="GetPortlist"
@focus="portTransitSearch" :searchQuery="{ KeyWord: '' }"
@search="portTransitSearch" :showLabel="['ediCode', 'enName']"
:default-active-first-option="false" size="default"
:show-arrow="false" :openSearch="true"
:filter-option="false" :isCopy="false"
:not-found-content="null" @change="getSelectViewRes"></selectView>
> </a-form-model-item>
<a-select-option v-for="item in portTransitData" :key="item.code" :value="item.code">
{{ item.enName }}
</a-select-option>
</a-select>
</a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="卸货港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="卸货港" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <selectView
placeholder="请选择卸货港" type="portdischargeid"
v-decorator="['portDischargeId']" :defaultVal="form.portDischarge"
show-search searchApi="GetPortlist"
@focus="portDischargeSearch" :searchQuery="{ KeyWord: '' }"
@search="portDischargeSearch" :showLabel="['ediCode', 'enName']"
:default-active-first-option="false" size="default"
:show-arrow="false" :openSearch="true"
:filter-option="false" :isCopy="false"
:not-found-content="null" @change="getSelectViewRes"></selectView>
> </a-form-model-item>
<a-select-option v-for="item in portDischargeData" :key="item.code" :value="item.code">
{{ item.enName }}
</a-select-option>
</a-select>
</a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="默认场站" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="默认场站" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select <a-select
placeholder="请选择默认场站" placeholder="请选择默认场站"
v-decorator="['yardCode']" v-model="form.yardCode"
show-search show-search
@focus="yardSearch" @focus="yardSearch"
@search="yardSearch" @search="yardSearch"
@ -211,25 +181,25 @@
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="预抵日期" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback> <a-form-model-item label="预抵日期" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-date-picker <a-date-picker
:style="{ width: '100%' }" :style="{ width: '100%' }"
placeholder="请选择预抵日期" placeholder="请选择预抵日期"
v-decorator="['eta']" v-model="form.eta"
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</a-form-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form-model>
</a-spin> </a-spin>
<template slot="footer"> <template slot="footer">
<a-button type="danger" @click="handleCancel"></a-button> <a-button type="danger" @click="handleCancel"></a-button>
<a-button type="primary" @click="handleCopySave"></a-button> <a-button type="primary" @click="handleSubmit(true)"></a-button>
<a-button type="primary" @click="handleSubmit"></a-button> <a-button type="primary" @click="handleSubmit(false)"></a-button>
</template> </template>
</a-modal> </a-modal>
</template> </template>
@ -244,10 +214,18 @@ import {
GetVessellist, GetVessellist,
GetYardlist GetYardlist
} from '@/api/modular/main/vesselinfo' } from '@/api/modular/main/vesselinfo'
import selectView from '../BookingLedger/detail/components/selectView.vue'
export default { export default {
data() { data() {
return { return {
TypeData: [], TypeData: [],
rules: {
voynoInside: [{ required: true, message: '请输入内部航次!', trigger: 'blur' }],
etd: [{ required: true, message: '请选择开船日期', trigger: 'blur' }],
voyno: [{ required: true, message: '请输入航次', trigger: 'blur' }],
carrierid: [{ required: true, message: '请选择船公司', trigger: 'blur' }],
vessel: [{ required: true, message: '请选择船名', trigger: 'blur' }]
},
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 6 } sm: { span: 6 }
@ -276,114 +254,36 @@ export default {
yardData: [] yardData: []
} }
}, },
components: {
selectView
},
mounted() {}, mounted() {},
methods: { methods: {
// //
edit(record) { edit(record) {
this.data = record this.data = record
console.log(record)
this.visible = true this.visible = true
setTimeout(() => { setTimeout(() => {
this.form.setFieldsValue({ this.form = record
tenantId: record.tenantId, this.$forceUpdate()
vessel: record.vessel,
voyno: record.voyno,
portLoadingId: record.portLoadingId,
portTransitId: record.portTransitId,
portDischargeId: record.portDischargeId,
portLoading: record.portLoading,
portTransit: record.portTransit,
portDischarge: record.portDischarge,
etd: record.etd,
closingDate: record.closingDate,
eta: record.eta,
yard: record.yard,
ygtETD: record.ygtETD,
yardCode: record.yardCode,
atd: record.atd,
carrierid: record.carrierid,
voynoInside: record.voynoInside,
closeDocTime: record.closeDocTime
})
console.log(this.form.getFieldsValue())
}, 100) }, 100)
}, },
handleCopySave() { getSelectViewRes({ type, res }) {
const { if (type === 'portloadid') {
form: { validateFields } this.form.portLoadingId = res.ediCode
} = this
this.confirmLoading = true
validateFields((errors, values) => {
console.log(errors, values)
if (!errors) {
for (const key in values) {
console.log(key, 1)
if (typeof values[key] === 'object' && !(values[key] === null)) {
values[key] = JSON.stringify(values[key])
}
}
if (!values.carrier) {
values.carrier = this.data.carrier
}
values.id = this.data.id
if (this.portLoadingData.length) {
this.portLoadingData.forEach(item => {
if (item.code == values.portLoadingId) {
values.portLoading = item.enName
}
})
}
if (this.portTransitData.length) {
this.portTransitData.forEach(item => {
if (item.code == values.portTransitId) {
values.portTransit = item.enName
}
})
} }
if (this.portDischargeData.length) { if (type === 'portdischargeid') {
this.portDischargeData.forEach(item => { this.form.portDischargeId = res.ediCode
if (item.code == values.portDischargeId) {
values.portDischarge = item.enName
}
})
}
if (this.carrierData.length) {
this.carrierData.forEach(item => {
if (item.code == values.carrierid) {
values.carrier = item.cnName
} }
}) if (type === 'transportid') {
} this.form.portTransitId = res.ediCode
if (this.yardData.length) {
this.yardData.forEach(item => {
if (item.code == values.yardCode) {
values.yard = item.name
} }
})
}
DjyVesselInfoServiceAddOrUpdate(values)
.then(res => {
if (res.success) {
this.$message.success('编辑成功')
this.confirmLoading = false
this.$emit('ok', values)
this.editRow(values)
} else {
this.$message.error(`编辑失败,${res.message}`)
}
})
.finally(res => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
}, },
editRow(record) { editRow(record) {
this.data = record this.data = record
setTimeout(() => { setTimeout(() => {
this.form.setFieldsValue({ this.form = {
vessel: record.vessel, vessel: record.vessel,
voyno: record.voyno, voyno: record.voyno,
portTransitId: record.portTransitId, portTransitId: record.portTransitId,
@ -402,14 +302,10 @@ export default {
carrierid: record.carrierid, carrierid: record.carrierid,
voynoInside: record.voynoInside, voynoInside: record.voynoInside,
closeDocTime: record.closeDocTime closeDocTime: record.closeDocTime
}) }
this.$forceUpdate()
}, 100) }, 100)
}, },
// tenantSearch(data) {
// SysTenantPage({ Name: data }).then(res => {
// this.tenantData = res.data.rows
// })
// },
portLoadingSearch(data) { portLoadingSearch(data) {
GetPortloadlist({ KeyWord: data }).then(res => { GetPortloadlist({ KeyWord: data }).then(res => {
this.portLoadingData = res.data this.portLoadingData = res.data
@ -440,80 +336,74 @@ export default {
this.yardData = res.data this.yardData = res.data
}) })
}, },
handleSubmit() { handleSubmit(isCopy) {
const { this.$refs.ruleForm.validate(valid => {
form: { validateFields } if (valid) {
} = this if (!this.form.carrier) {
this.confirmLoading = true this.form.carrier = this.data.carrier
validateFields((errors, values) => {
console.log(errors, values)
if (!errors) {
for (const key in values) {
console.log(key, 1)
if (typeof values[key] === 'object' && !(values[key] === null)) {
values[key] = JSON.stringify(values[key])
} }
}
if (!values.carrier) {
values.carrier = this.data.carrier
}
values.id = this.data.id
if (this.portLoadingData.length) { if (this.portLoadingData.length) {
this.portLoadingData.forEach(item => { this.portLoadingData.forEach(item => {
if (item.code == values.portLoadingId) { if (item.ediCode == this.form.portLoadingId) {
values.portLoading = item.enName this.form.portLoading = item.enName
} }
}) })
} }
if (this.portTransitData.length) { if (this.portTransitData.length) {
this.portTransitData.forEach(item => { this.portTransitData.forEach(item => {
if (item.code == values.portTransitId) { if (item.ediCode == this.form.portTransitId) {
values.portTransit = item.enName this.form.portTransit = item.enName
} }
}) })
} }
if (this.portDischargeData.length) { if (this.portDischargeData.length) {
this.portDischargeData.forEach(item => { this.portDischargeData.forEach(item => {
if (item.code == values.portDischargeId) { if (item.ediCode == this.form.portDischargeId) {
values.portDischarge = item.enName this.form.portDischarge = item.enName
} }
}) })
} }
if (this.carrierData.length) { if (this.carrierData.length) {
this.carrierData.forEach(item => { this.carrierData.forEach(item => {
if (item.code == values.carrierid) { if (item.code == this.form.carrierid) {
values.carrier = item.cnName this.form.carrier = item.cnName
} }
}) })
} }
if (this.yardData.length) { if (this.yardData.length) {
this.yardData.forEach(item => { this.yardData.forEach(item => {
if (item.code == values.yardCode) { if (item.code == this.form.yardCode) {
values.yard = item.name this.form.yard = item.name
} }
}) })
} }
DjyVesselInfoServiceAddOrUpdate(values) if (!isCopy) {
this.form.id = this.data.id
}
this.confirmLoading = true
DjyVesselInfoServiceAddOrUpdate(this.form)
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.$message.success('编辑成功') this.$message.success('编辑成功')
this.confirmLoading = false this.confirmLoading = false
this.$emit('ok', values) this.$emit('ok', this.form)
if (isCopy) {
this.editRow(this.form)
} else {
this.handleCancel() this.handleCancel()
}
} else { } else {
this.$message.error(`编辑失败,${res.message}`) this.$message.error(`编辑失败,${res.message}`)
} }
this.confirmLoading = false
}) })
.finally(res => { .finally(res => {
this.confirmLoading = false this.confirmLoading = false
}) })
} else {
this.confirmLoading = false
} }
}) })
}, },
handleCancel() { handleCancel() {
this.form.resetFields()
this.visible = false this.visible = false
} }
} }

@ -276,6 +276,12 @@ export default {
field: 'portLoading', field: 'portLoading',
width: 150 width: 150
}, },
{
title: '装货港代码',
align: 'center',
field: 'portLoadingId',
width: 150
},
{ {
title: '中转港', title: '中转港',
align: 'center', align: 'center',
@ -374,7 +380,6 @@ export default {
}) })
}, },
confirm(e) { confirm(e) {
this.FnDel(e) this.FnDel(e)
}, },

Loading…
Cancel
Save