|
@@ -230,22 +230,14 @@
|
|
|
@corpFocus="remoteMethod($event,'pot')" >
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="中转航班" prop="potEnName" >
|
|
|
+ <el-form-item label="中转航班" prop="potVoyageNo" >
|
|
|
<span slot="label">
|
|
|
<span style="color: #1e9fff">中转航班</span>
|
|
|
</span>
|
|
|
- <search-query :datalist="potData"
|
|
|
- :selectValue="assemblyForm.potVoyageNo"
|
|
|
- :filterable="true"
|
|
|
- :clearable="true"
|
|
|
- :remote="true"
|
|
|
- :disabled="detailData.seeDisabled"
|
|
|
- :buttonIf="false"
|
|
|
- :forParameter="{key:'id',label:'enName',value:'enName'}"
|
|
|
- @remoteMethod="remoteMethod($event,'pot')"
|
|
|
- @corpChange="corpChange($event,'pot')"
|
|
|
- @corpFocus="remoteMethod($event,'pot')" >
|
|
|
- </search-query>
|
|
|
+ <el-input style="width: 100%;" v-model="assemblyForm.potVoyageNo"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="detailData.seeDisabled"
|
|
|
+ clearable placeholder="请输入中转航班" ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="中转ETD" prop="potEnName" >
|
|
|
<span slot="label">
|
|
@@ -528,6 +520,8 @@
|
|
|
mpayplaceData:[],
|
|
|
// 签单地点
|
|
|
issueAtData:[],
|
|
|
+ // 中转港
|
|
|
+ potData:[],
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -565,6 +559,9 @@
|
|
|
else if (payplaceArr.indexOf(name) != -1) {
|
|
|
this[name + 'BportsListfun'](value)
|
|
|
}
|
|
|
+ else if (name == 'pot') {
|
|
|
+ this.potBportsListfun()
|
|
|
+ }
|
|
|
else {}
|
|
|
|
|
|
},
|
|
@@ -655,6 +652,17 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // 中转港
|
|
|
+ else if (name == 'pot') {
|
|
|
+ for (let item of this.potData) {
|
|
|
+ if (item.enName == value) {
|
|
|
+ this.$set(this.assemblyForm,'potId',item.id)
|
|
|
+ this.$set(this.assemblyForm,'potCode',item.code)
|
|
|
+ this.$set(this.assemblyForm,'potCnName',item.cnName)
|
|
|
+ this.$set(this.assemblyForm,'potEnName',item.enName)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
else {
|
|
|
this.assemblyForm[name] = value
|
|
|
}
|
|
@@ -662,6 +670,15 @@
|
|
|
|
|
|
|
|
|
// 接口数据请求🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
|
|
|
+ // 中转港
|
|
|
+ potBportsListfun(enName){
|
|
|
+ bportsList(1,10,{enName}).then(res=>{
|
|
|
+ this.potData = res.data.data.records.map(item=>{
|
|
|
+ item.enName = item.enName + ' - ' + item.code
|
|
|
+ return item
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取船名数据
|
|
|
vesselBvesselsListfun(cnName){
|
|
|
getBvesselsList(1,10,{cnName}).then(res=>{
|