|  | @@ -266,7 +266,7 @@
 | 
	
		
			
				|  |  |                      </el-form-item>
 | 
	
		
			
				|  |  |                      <el-form-item label="船公司" prop="carrierCnName" >
 | 
	
		
			
				|  |  |                          <span slot="label">
 | 
	
		
			
				|  |  | -                            <span style="color: #1e9fff" @click="emailJump('carrier')">船公司</span>
 | 
	
		
			
				|  |  | +                            <span style="color: #4c9e44;cursor: pointer;text-decoration: underline" @click="emailJump()">船公司</span>
 | 
	
		
			
				|  |  |                          </span>
 | 
	
		
			
				|  |  |                          <search-query :datalist="carrierData"
 | 
	
		
			
				|  |  |                                        :selectValue="assemblyForm.carrierCnName"
 | 
	
	
		
			
				|  | @@ -853,7 +853,7 @@
 | 
	
		
			
				|  |  |  import precontainers
 | 
	
		
			
				|  |  |      from "@/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue";
 | 
	
		
			
				|  |  |  import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
 | 
	
		
			
				|  |  | -import {getBcorpslistByType} from "@/api/iosBasicData/bcorps";
 | 
	
		
			
				|  |  | +import {getBcorpslistByType,getBcorpsDetail} from "@/api/iosBasicData/bcorps";
 | 
	
		
			
				|  |  |  import {bportsList} from "@/api/iosBasicData/bports";
 | 
	
		
			
				|  |  |  import {bpackagesList} from "@/api/iosBasicData/bpackages";
 | 
	
		
			
				|  |  |  import {bcommodityList} from "@/api/iosBasicData/bcommodity";
 | 
	
	
		
			
				|  | @@ -862,7 +862,7 @@ import {blinesList} from "@/api/iosBasicData/blines";
 | 
	
		
			
				|  |  |  import {bcorpstypedefineList} from "@/api/iosBasicData/bcorpstypedefine";
 | 
	
		
			
				|  |  |  import bcorpstypedefine from "@/views/iosBasicData/bcorps/bcorpstypedefine.vue";
 | 
	
		
			
				|  |  |  import {textareaWrap} from "@/util/messageReminder";
 | 
	
		
			
				|  |  | -import Vue from "vue";
 | 
	
		
			
				|  |  | +import emailhash from '@/views/iosBasicData/SeafreightExportF/bills/assembly/Jsonfile/emailhash.json'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      export default {
 | 
	
		
			
				|  |  |          props:{
 | 
	
	
		
			
				|  | @@ -876,6 +876,7 @@ import Vue from "vue";
 | 
	
		
			
				|  |  |          components:{SearchQuery, precontainers,bcorpstypedefine},
 | 
	
		
			
				|  |  |          data(){
 | 
	
		
			
				|  |  |              return {
 | 
	
		
			
				|  |  | +                emailhash:emailhash, // 邮箱跳转地址
 | 
	
		
			
				|  |  |                  // 多选的数据
 | 
	
		
			
				|  |  |                  tabsMultipleChoice:[],
 | 
	
		
			
				|  |  |                  // 发货人数据
 | 
	
	
		
			
				|  | @@ -1070,6 +1071,13 @@ import Vue from "vue";
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  // 船公司
 | 
	
		
			
				|  |  |                  else if (name == 'carrier') {
 | 
	
		
			
				|  |  | +                    if (!value) {
 | 
	
		
			
				|  |  | +                        this.$set(this.assemblyForm,'carrierId','')
 | 
	
		
			
				|  |  | +                        this.$set(this.assemblyForm,'carrierCnName','')
 | 
	
		
			
				|  |  | +                        this.$set(this.assemblyForm,'carrierEnName','')
 | 
	
		
			
				|  |  | +                        this.$set(this.assemblyForm,'carrierCode','')
 | 
	
		
			
				|  |  | +                        this.$set(this.assemblyForm,'carrierArgreementNo','')
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      for(let item of this[name + 'Data']) {
 | 
	
		
			
				|  |  |                          if (item.cnName == value) {
 | 
	
		
			
				|  |  |                              this.$set(this.assemblyForm,'carrierId',item.id)
 | 
	
	
		
			
				|  | @@ -1220,20 +1228,24 @@ import Vue from "vue";
 | 
	
		
			
				|  |  |                  this.$set(this.assemblyForm,'hnotifyCntyCode',this.assemblyForm.hconsigneeCntyCode)
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 邮箱跳转
 | 
	
		
			
				|  |  | -            emailJump(name){
 | 
	
		
			
				|  |  | -                if (name == 'carrier') {
 | 
	
		
			
				|  |  | -                    if (!this.assemblyForm.carrierId) {
 | 
	
		
			
				|  |  | -                        this.$message({
 | 
	
		
			
				|  |  | -                            message: '请先选择船公司',
 | 
	
		
			
				|  |  | -                            type: 'warning'
 | 
	
		
			
				|  |  | -                        });
 | 
	
		
			
				|  |  | -                        return
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                    // getBcorpslistByType().then(res=>{
 | 
	
		
			
				|  |  | -                    //
 | 
	
		
			
				|  |  | -                    // })
 | 
	
		
			
				|  |  | -                    // this.assemblyForm.carrierId
 | 
	
		
			
				|  |  | +            emailJump(){
 | 
	
		
			
				|  |  | +                if (!this.assemblyForm.carrierId) {
 | 
	
		
			
				|  |  | +                    this.$message({
 | 
	
		
			
				|  |  | +                        message: '请先选择船公司',
 | 
	
		
			
				|  |  | +                        type: 'warning'
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                    return
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                // 调详情获取邮箱
 | 
	
		
			
				|  |  | +                getBcorpsDetail(this.assemblyForm.carrierId).then(res=>{
 | 
	
		
			
				|  |  | +                    let email = res.data.data.email.split('@')[1] // 取@符号后面的数据
 | 
	
		
			
				|  |  | +                    for (let i in this.emailhash) {
 | 
	
		
			
				|  |  | +                        if (email == i) {
 | 
	
		
			
				|  |  | +                            // 跳转打开一个新的页面
 | 
	
		
			
				|  |  | +                            window.open(this.emailhash[i],"_blank")
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 添加跳转
 | 
	
		
			
				|  |  |              addJump(name){
 |