Browse Source

data未定义角色

Qukatie 11 months ago
parent
commit
f632d6f4a1
1 changed files with 1145 additions and 1144 deletions
  1. 1145 1144
      src/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation.vue

+ 1145 - 1144
src/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation.vue

@@ -17,7 +17,7 @@
                                 <el-col :span="10">
                                     <search-query :datalist="polData" :selectValue="assemblyForm.polEnName"
                                         :filterable="true" :clearable="true" :remote="true" :joinData="true"
-                                        :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         :buttonIf="false" placeholder="请选择装货港"
                                         :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
                                         @remoteMethod="remoteMethod($event, 'pol')"
@@ -29,7 +29,7 @@
                                     <span style="padding-left: 20px"></span>
                                     <el-input type="age" style="width: 100%;" v-model="assemblyForm.polNamePrint"
                                         size="small" autocomplete="off"
-                                        :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         clearable placeholder="装货港" @change="textareaBlur('polNamePrint')"></el-input>
                                 </el-col>
                             </el-row>
@@ -49,7 +49,7 @@
                                 <el-col :span="10">
                                     <search-query :datalist="podData" :selectValue="assemblyForm.podEnName"
                                         :filterable="true" :clearable="true" :remote="true" :joinData="true"
-                                        :disabled="detailData.seeDisabled||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         :buttonIf="false" placeholder="请选择卸货港"
                                         :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
                                         @remoteMethod="remoteMethod($event, 'pod')"
@@ -61,7 +61,7 @@
                                     <span style="padding-left: 20px"></span>
                                     <el-input type="age" style="width: 100%;" v-model="assemblyForm.podNamePrint"
                                         size="small" autocomplete="off"
-                                        :disabled="detailData.seeDisabled||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         clearable placeholder="卸货港" @change="textareaBlur('podNamePrint')"></el-input>
                                 </el-col>
                             </el-row>
@@ -82,7 +82,7 @@
                                     <search-query :datalist="destinationData"
                                         :selectValue="assemblyForm.destinationName" :filterable="true" :clearable="true"
                                         :remote="true" :joinData="true"
-                                        :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         :buttonIf="false" placeholder="请选择目的地"
                                         :forParameter="{ key: 'id', short: 'enName', label: 'code', value: 'enName' }"
                                         @remoteMethod="remoteMethod($event, 'destination')"
@@ -94,7 +94,7 @@
                                     <span style="padding-left: 20px"></span>
                                     <el-input type="age" style="width: 100%;"
                                         v-model="assemblyForm.destinationNamePrint" size="small" autocomplete="off"
-                                        :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         clearable placeholder="目的地"
                                         @change="textareaBlur('destinationNamePrint')"></el-input>
                                 </el-col>
@@ -436,7 +436,7 @@
                             </span>
                             <el-date-picker v-model="assemblyForm.actualEta" clearable style="width: 100%" type="date"
                                 size="small"
-                                :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                 value-format="yyyy-MM-dd" :picker-options="etdPickerOptions" placeholder="请选择ATA日期"
                                 @change="handlePick">
                             </el-date-picker>
@@ -501,7 +501,7 @@
                                 </span>
                                 <search-query :datalist="vesselData" :selectValue="assemblyForm.vesselEnName"
                                     :filterable="true" :clearable="true" :remote="true" :allowCreate="true"
-                                    :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                    :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                     :buttonIf="false" placeholder="请选择船名"
                                     :forParameter="{ key: 'id', label: 'enName', value: 'enName' }"
                                     @remoteMethod="remoteMethod($event, 'vessel')"
@@ -515,7 +515,7 @@
                                 </span>
                                 <el-input type="age" style="width: 100%;" v-model="assemblyForm.voyageNo" size="small"
                                     autocomplete="off"
-                                    :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                    :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                     clearable placeholder="请输入航次"></el-input>
                             </el-form-item>
                         </div>
@@ -527,7 +527,7 @@
                                     </span>
                                     <el-date-picker style="width: 100%;" v-model="assemblyForm.actualEtd" clearable
                                         type="date" size="small"
-                                        :disabled="detailData.seeDisabled||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         value-format="yyyy-MM-dd" placeholder="选择日期">
                                     </el-date-picker>
                                 </el-form-item>
@@ -551,7 +551,7 @@
                                     </span>
                                     <search-query :datalist="carrierData" :selectValue="assemblyForm.carrierCnName"
                                         :filterable="true" :clearable="true" :remote="true" :joinData="true"
-                                        :disabled="detailData.seeDisabled || generateBillsfalse||(assemblyForm.billType == 'MH'&&assemblyForm.masterBillNo>0)"
+                                        :disabled="detailData.seeDisabled || generateBillsfalse || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
                                         :buttonIf="false" placeholder="请选择船公司"
                                         :forParameter="{ key: 'id', short: 'shortName', label: 'cnName', value: 'cnName' }"
                                         @remoteMethod="remoteMethod($event, 'carrier')"
@@ -704,7 +704,7 @@
                                         label="deptName" url="/blade-system/dept/top-list" :filterable="true"
                                         :remote="true" dataName="deptName"
                                         @selectChange="dicChange('branchName', $event)"
-                                        :disabled="!roleName.includes('admin') || detailData.seeDisabled"></dic-select>
+                                        :disabled="detailData.seeDisabled||!(roleName.includes('admin')||roleName.includes('总部'))"></dic-select>
                                 </el-form-item>
                             </el-col>
                         </div>
@@ -990,1211 +990,1212 @@
 </template>
 
 <script>
-    import precontainers
+import precontainers
     from "@/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation/precontainers.vue";
-    import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
-    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";
-    import {
-        getBvesselsList
-    } from "@/api/iosBasicData/bvessels";
-    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 emailhash from '@/views/iosBasicData/OceanFreightImport/bills/assembly/Jsonfile/emailhash.json'
-    import bcorps from "@/views/iosBasicData/bcorps/index.vue";
-    import {
-        NdayDate
-    } from "@/util/date";
-    import {
-        regularFloating,
-        regularInteger
-    } from "@/util/regularJudgment";
-    import {
-        getBcorpsattnList
-    } from "@/api/iosBasicData/bcorpsattn";
-    import {
-        getWorkDicts
-    } from "@/api/system/dictbiz";
-    import {
-        bportsDetail
-    } from "@/api/iosBasicData/bports";
-    import {
-        bpackagesDetail
-    } from "@/api/iosBasicData/bpackages";
-    import {
-        getBvesselsDetail
-    } from "@/api/iosBasicData/bvessels";
-    import {
-        blinesDetail
-    } from "@/api/iosBasicData/blines";
-    import {
-        synchronizationExchangeRate
-    } from "@/api/iosBasicData/rateManagement";
-    import {
-        isProcurement
-    } from "@/api/basicData/configuration";
-    import _ from "lodash";
-    import dicSelect from "@/components/dicSelect/main";
-    import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
-    import {
-        getDeptLazyTree,
-        getDeptTree,
-        getLazyList
-    } from "@/api/system/dept";
-    export default {
-        props: {
-            detailData: {
-                type: Object
+import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
+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";
+import {
+    getBvesselsList
+} from "@/api/iosBasicData/bvessels";
+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 emailhash from '@/views/iosBasicData/OceanFreightImport/bills/assembly/Jsonfile/emailhash.json'
+import bcorps from "@/views/iosBasicData/bcorps/index.vue";
+import {
+    NdayDate
+} from "@/util/date";
+import {
+    regularFloating,
+    regularInteger
+} from "@/util/regularJudgment";
+import {
+    getBcorpsattnList
+} from "@/api/iosBasicData/bcorpsattn";
+import {
+    getWorkDicts
+} from "@/api/system/dictbiz";
+import {
+    bportsDetail
+} from "@/api/iosBasicData/bports";
+import {
+    bpackagesDetail
+} from "@/api/iosBasicData/bpackages";
+import {
+    getBvesselsDetail
+} from "@/api/iosBasicData/bvessels";
+import {
+    blinesDetail
+} from "@/api/iosBasicData/blines";
+import {
+    synchronizationExchangeRate
+} from "@/api/iosBasicData/rateManagement";
+import {
+    isProcurement
+} from "@/api/basicData/configuration";
+import _ from "lodash";
+import dicSelect from "@/components/dicSelect/main";
+import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
+import {
+    getDeptLazyTree,
+    getDeptTree,
+    getLazyList
+} from "@/api/system/dept";
+export default {
+    props: {
+        detailData: {
+            type: Object
+        },
+        assemblyForm: {
+            type: Object,
+            default: {}
+        },
+        saberUserInfo: {
+            type: Object,
+            default: {}
+        },
+        // 是否生成账单
+        generateBillsfalse: {
+            type: Boolean,
+            default: false
+        },
+        disabled: {
+            type: Boolean,
+            default: false
+        }
+    },
+    components: {
+        TreeSelect,
+        bcorps,
+        SearchQuery,
+        precontainers,
+        bcorpstypedefine,
+        dicSelect
+    },
+    data() {
+        return {
+            roleName: localStorage.getItem("roleName"),
+            dicTree: [],
+            textareaNumber: 5,
+            loading: false,
+            delData: [],
+            delOption: {
+                border: true,
+                align: 'center',
+                menu: false,
+                header: false,
+                column: [{
+                    label: '名称',
+                    prop: 'name'
+                }, {
+                    label: '键值',
+                    prop: 'value'
+                }]
             },
-            assemblyForm: {
-                type: Object,
-                default: {}
+            hsLoading: false,
+            // 设置当前时间选择的范围
+            etdPickerOptions: {
+                disabledDate(time) {
+                    // 获取当前日期后的90天
+                    // return time.getTime() < Date.now() || time.getTime() > Date.parse(NdayDate(90))
+                    // 获取前后的45天 Date.parse(NdayDate(45))
+                    let timeDay = localStorage.getItem("timeFrame") ? localStorage.getItem("timeFrame") : 45
+                    return time.getTime() < Date.parse(NdayDate(-(timeDay))) || time.getTime() > Date.parse(
+                        NdayDate(timeDay - 1))
+                }
             },
-            saberUserInfo: {
-                type: Object,
-                default: {}
+            emailhash: emailhash, // 邮箱跳转地址
+            foreignAgencyData: [],
+            // 场站
+            cyData: [],
+            podCyData: [],
+            cyContactsData: [], // 场站联系人
+            podCyCnNameData: [],
+            // 多选的数据
+            tabsMultipleChoice: [],
+            // 发货人数据
+            hshipperData: [],
+            // 收货人数据
+            hconsigneeData: [],
+            // 通知人
+            hnotifyData: [],
+            // 第二通知人
+            hnotify2Data: [],
+            // 通知人弹窗开启关闭
+            hnotify2Visible: false,
+            // 收货地
+            placeReceiptData: [],
+            // 装货港
+            polData: [],
+            // 卸货港
+            podData: [],
+            // 目的地
+            destinationData: [],
+            // 交货地
+            placeDeliveryData: [],
+            // 中转港
+            potData: [],
+            // 商品 HS-CODE
+            commodityData: [],
+            // 货物类别
+            cargoTypeData: [{
+                label: '普货',
+                value: 'dry',
             },
-            // 是否生成账单
-            generateBillsfalse: {
-                type: Boolean,
-                default: false
+            {
+                label: '危险品',
+                value: 'danger',
             },
-            disabled: {
-                type: Boolean,
-                default: false
+            {
+                label: '冻柜',
+                value: 'reefer',
             }
-        },
-        components: {
-            TreeSelect,
-            bcorps,
-            SearchQuery,
-            precontainers,
-            bcorpstypedefine,
-            dicSelect
-        },
-        data() {
-            return {
-                dicTree: [],
-                textareaNumber: 5,
-                loading: false,
-                delData: [],
-                delOption: {
-                    border: true,
-                    align: 'center',
-                    menu: false,
-                    header: false,
-                    column: [{
-                        label: '名称',
-                        prop: 'name'
-                    }, {
-                        label: '键值',
-                        prop: 'value'
-                    }]
-                },
-                hsLoading: false,
-                // 设置当前时间选择的范围
-                etdPickerOptions: {
-                    disabledDate(time) {
-                        // 获取当前日期后的90天
-                        // return time.getTime() < Date.now() || time.getTime() > Date.parse(NdayDate(90))
-                        // 获取前后的45天 Date.parse(NdayDate(45))
-                        let timeDay = localStorage.getItem("timeFrame") ? localStorage.getItem("timeFrame") : 45
-                        return time.getTime() < Date.parse(NdayDate(-(timeDay))) || time.getTime() > Date.parse(
-                            NdayDate(timeDay - 1))
-                    }
-                },
-                emailhash: emailhash, // 邮箱跳转地址
-                foreignAgencyData: [],
-                // 场站
-                cyData: [],
-                podCyData: [],
-                cyContactsData: [], // 场站联系人
-                podCyCnNameData: [],
-                // 多选的数据
-                tabsMultipleChoice: [],
-                // 发货人数据
-                hshipperData: [],
-                // 收货人数据
-                hconsigneeData: [],
-                // 通知人
-                hnotifyData: [],
-                // 第二通知人
-                hnotify2Data: [],
-                // 通知人弹窗开启关闭
-                hnotify2Visible: false,
-                // 收货地
-                placeReceiptData: [],
-                // 装货港
-                polData: [],
-                // 卸货港
-                podData: [],
-                // 目的地
-                destinationData: [],
-                // 交货地
-                placeDeliveryData: [],
-                // 中转港
-                potData: [],
-                // 商品 HS-CODE
-                commodityData: [],
-                // 货物类别
-                cargoTypeData: [{
-                        label: '普货',
-                        value: 'dry',
-                    },
-                    {
-                        label: '危险品',
-                        value: 'danger',
-                    },
-                    {
-                        label: '冻柜',
-                        value: 'reefer',
-                    }
-                ],
-                // 危险品弹窗
-                dgVisible: false,
-                // 船公司数据
-                carrierData: [],
-                // 船名
-                vesselData: [],
-                // 包装
-                packingUnitData: [],
-                // 订舱代理数据
-                bookingAgentData: [],
-                // 航线
-                lineData: [],
-                // COLOADER
-                coloaderCnNameData: [],
-                // 危险品包装等级
-                dgPackingLevelData: [],
+            ],
+            // 危险品弹窗
+            dgVisible: false,
+            // 船公司数据
+            carrierData: [],
+            // 船名
+            vesselData: [],
+            // 包装
+            packingUnitData: [],
+            // 订舱代理数据
+            bookingAgentData: [],
+            // 航线
+            lineData: [],
+            // COLOADER
+            coloaderCnNameData: [],
+            // 危险品包装等级
+            dgPackingLevelData: [],
 
-                marksIndex: 1
+            marksIndex: 1
+        }
+    },
+    created() {
+        isProcurement({
+            "param": "textarea.number"
+        }).then(res => {
+            if (res.data.data) {
+                this.textareaNumber = res.data.data
             }
+        })
+        // // 往来单位
+        // this.hshipperBcorpsListfun()
+        // this.hconsigneeBcorpsListfun()
+        // this.hnotifyBcorpsListfun()
+        // this.hnotify2BcorpsListfun()
+        // this.bookingAgentBcorpsListfun()
+        // // 港口接口
+        // this.placeReceiptBportsListfun()
+        // this.polBportsListfun()
+        // this.podBportsListfun()
+        // this.destinationBportsListfun()
+        // this.placeDeliveryBportsListfun()
+        // // 货物
+        // this.commodityBcommodityListfun()
+        // // 包装
+        // this.packingUnitBpackagesListfun()
+        // // 船公司
+        this.carrierBcorpslistByTypefun()
+        // // 船名
+        // this.vesselBvesselsListfun()
+        // // 航线
+        // this.lineBlinesListfun()
+        // 危险品包装等级
+        this.dgPackingLevelWorkDicts()
+        this.getHsCode()
+        this.getDicTree()
+    },
+    methods: {
+        getDicTree() {
+            getDeptTree().then(res => {
+                res.data.data.forEach(item => {
+                    item.label = item.title
+                })
+                this.dicTree = res.data.data
+            })
         },
-        created() {
-            isProcurement({
-                "param": "textarea.number"
-            }).then(res => {
-                if (res.data.data) {
-                    this.textareaNumber = res.data.data
+        treeChange(val) {
+            for (let item of this.dicTree) {
+                if (item.title == val) {
+                    this.assemblyForm.accDeptName = item.title
+                    this.assemblyForm.accDept = item.id
                 }
-            })
-            // // 往来单位
-            // this.hshipperBcorpsListfun()
-            // this.hconsigneeBcorpsListfun()
-            // this.hnotifyBcorpsListfun()
-            // this.hnotify2BcorpsListfun()
-            // this.bookingAgentBcorpsListfun()
-            // // 港口接口
-            // this.placeReceiptBportsListfun()
-            // this.polBportsListfun()
-            // this.podBportsListfun()
-            // this.destinationBportsListfun()
-            // this.placeDeliveryBportsListfun()
-            // // 货物
-            // this.commodityBcommodityListfun()
-            // // 包装
-            // this.packingUnitBpackagesListfun()
-            // // 船公司
-            this.carrierBcorpslistByTypefun()
-            // // 船名
-            // this.vesselBvesselsListfun()
-            // // 航线
-            // this.lineBlinesListfun()
-            // 危险品包装等级
-            this.dgPackingLevelWorkDicts()
-            this.getHsCode()
-            this.getDicTree()
+            }
         },
-        methods: {
-            getDicTree() {
-                getDeptTree().then(res => {
-                    res.data.data.forEach(item => {
-                        item.label = item.title
-                    })
-                    this.dicTree = res.data.data
-                })
-            },
-            treeChange(val) {
-                for (let item of this.dicTree) {
-                    if (item.title == val) {
-                        this.assemblyForm.accDeptName = item.title
-                        this.assemblyForm.accDept = item.id
-                    }
+        //DEL监听
+        delShow(val, type) {
+            if (val) {
+                this.loading = true
+                this.delData = []
+                if (type == 1) {
+                    bportsDetail(val).then(res => {
+                        this.delData = res.data.data.extendedDataArr
+                    }).finally(() => {
+                        this.loading = false;
+                    });
                 }
-            },
-            //DEL监听
-            delShow(val, type) {
-                if (val) {
-                    this.loading = true
-                    this.delData = []
-                    if (type == 1) {
-                        bportsDetail(val).then(res => {
-                            this.delData = res.data.data.extendedDataArr
-                        }).finally(() => {
-                            this.loading = false;
-                        });
-                    }
-                    if (type == 2) {
-                        bpackagesDetail(val).then(res => {
-                            this.delData = res.data.data.extendedDataArr
-                        }).finally(() => {
-                            this.loading = false;
-                        });
-                    }
-                    if (type == 3) {
-                        getBvesselsDetail(val).then(res => {
-                            this.delData = res.data.data.extendedDataArr
-                        }).finally(() => {
-                            this.loading = false;
-                        });
-                    }
-                    if (type == 4) {
-                        blinesDetail(val).then(res => {
-                            this.delData = res.data.data.extendedDataArr
-                        }).finally(() => {
-                            this.loading = false;
-                        });
-                    }
-
-                } else {
-                    this.delData = []
+                if (type == 2) {
+                    bpackagesDetail(val).then(res => {
+                        this.delData = res.data.data.extendedDataArr
+                    }).finally(() => {
+                        this.loading = false;
+                    });
                 }
-            },
-            //ETD监听
-            handlePick(val) {
-                if (this.assemblyForm.id) {
-                    this.$confirm('是否同步汇率, 是否继续?', '提示', {
-                        confirmButtonText: '是',
-                        cancelButtonText: '否',
-                        type: 'warning'
-                    }).then(() => {
-                        let obj = {}
-                        obj = {
-                            date: this.assemblyForm.actualEta,
-                            type: 1,
-                            billId: this.assemblyForm.id
-                        }
-                        synchronizationExchangeRate(obj).then(res => {
-                            this.billsDetailfun()
-                        })
-                    }).catch(() => {
-                        let obj = {}
-                        obj = {
-                            date: this.assemblyForm.actualEta,
-                            type: 0,
-                            billId: this.assemblyForm.id
-                        }
-                        synchronizationExchangeRate(obj).then(res => {
-                            this.billsDetailfun()
-                        })
+                if (type == 3) {
+                    getBvesselsDetail(val).then(res => {
+                        this.delData = res.data.data.extendedDataArr
+                    }).finally(() => {
+                        this.loading = false;
                     });
                 }
-            },
-            // 易燃易爆品闪点类型为数字
-            dgFlashPointInput(val) {
-                this.$set(this.assemblyForm, 'dgFlashPoint', regularInteger(val))
-            },
-            // 件数聚焦
-            quantityFocus() {
-                if (this.assemblyForm.waitingBoxList) {
-                    if (Number(this.assemblyForm.waitingBoxList[0].quantity) == 0) {
-                        this.$alert('当前数据已经均分箱量,请撤销之后再修改', '提示', {
-                            confirmButtonText: '确定',
-                        });
-                        this.$nextTick(() => {
-                            this.$refs.quantityRef.blur()
-                            this.$refs.grossWeightRef.blur()
-                            this.$refs.measurementRef.blur()
-                        })
-                        return
-                    }
+                if (type == 4) {
+                    blinesDetail(val).then(res => {
+                        this.delData = res.data.data.extendedDataArr
+                    }).finally(() => {
+                        this.loading = false;
+                    });
                 }
 
-            },
-            // 件数监听
-            quantityInput(value) {
-                this.$set(this.assemblyForm, 'quantity', regularInteger(value))
-            },
-            // 正浮点数正则监听
-            floatingInput(value, name) {
-                this.$set(this.assemblyForm, name, regularFloating(value))
-            },
-            // 详情接口
-            billsDetailfun() {
-                this.$emit('billsDetailfun')
-            },
-            dicChange(name, row) {
-                if (name == 'operatorName') {
-                    if (row) {
-                        this.assemblyForm.operatorName = row.realName
-                        this.assemblyForm.operatorId = row.id
-                    } else {
-                        this.assemblyForm.operatorName = null
-                        this.assemblyForm.operatorId = null
+            } else {
+                this.delData = []
+            }
+        },
+        //ETD监听
+        handlePick(val) {
+            if (this.assemblyForm.id) {
+                this.$confirm('是否同步汇率, 是否继续?', '提示', {
+                    confirmButtonText: '是',
+                    cancelButtonText: '否',
+                    type: 'warning'
+                }).then(() => {
+                    let obj = {}
+                    obj = {
+                        date: this.assemblyForm.actualEta,
+                        type: 1,
+                        billId: this.assemblyForm.id
                     }
-                }
-                if (name == 'accDeptName') {
-                    if (row) {
-                        this.assemblyForm.accDeptName = row.realName
-                        this.assemblyForm.accDept = row.id
-                    } else {
-                        this.assemblyForm.accDeptName = null
-                        this.assemblyForm.accDept = null
+                    synchronizationExchangeRate(obj).then(res => {
+                        this.billsDetailfun()
+                    })
+                }).catch(() => {
+                    let obj = {}
+                    obj = {
+                        date: this.assemblyForm.actualEta,
+                        type: 0,
+                        billId: this.assemblyForm.id
                     }
+                    synchronizationExchangeRate(obj).then(res => {
+                        this.billsDetailfun()
+                    })
+                });
+            }
+        },
+        // 易燃易爆品闪点类型为数字
+        dgFlashPointInput(val) {
+            this.$set(this.assemblyForm, 'dgFlashPoint', regularInteger(val))
+        },
+        // 件数聚焦
+        quantityFocus() {
+            if (this.assemblyForm.waitingBoxList) {
+                if (Number(this.assemblyForm.waitingBoxList[0].quantity) == 0) {
+                    this.$alert('当前数据已经均分箱量,请撤销之后再修改', '提示', {
+                        confirmButtonText: '确定',
+                    });
+                    this.$nextTick(() => {
+                        this.$refs.quantityRef.blur()
+                        this.$refs.grossWeightRef.blur()
+                        this.$refs.measurementRef.blur()
+                    })
+                    return
                 }
-                 if (name == 'branchName') {
-                                if (row) {
-                                    this.assemblyForm.branchId = row.id
-                                    this.saveLocalCurrency(row.id)
-                                } else {
-                                    this.assemblyForm.branchId = null
-                                    this.assemblyForm.branchName = null
-                                }
-                            }
-            },
-            // 远程搜索
-            remoteMethod(value, name) {
-                let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2', 'bookingAgent', 'foreignAgency']
-                let portArr = ['placeReceipt', 'pol', 'pod', 'destination', 'placeDelivery', 'pot']
-                if (arr.indexOf(name) != -1) {
-                    this[name + 'BcorpsListfun'](value)
-                }
-                // 港口
-                else if (portArr.indexOf(name) != -1) {
-                    this[name + 'BportsListfun'](value)
-                }
-                // 场站
-                else if (name == 'cy') {
-                    this.cyBcorpslistByType(value)
-                } else if (name == 'podCyCnName') {
-                    this.cyBcorpslistByType2(value)
-                }
-                // 场站联系人
-                else if (name == 'podCyCnName') {
-                    this.cyBcorpsattnListfun()
-                }
-                // 货物
-                // else if (name == 'commodity') {
-                //     this.commodityBcommodityListfun(value)
-                // }
-                // 包装
-                else if (name == 'packingUnit') {
-                    this.packingUnitBpackagesListfun(value)
-                }
-                // 船名
-                else if (name == 'vessel') {
-                    this.vesselBvesselsListfun(value)
+            }
+
+        },
+        // 件数监听
+        quantityInput(value) {
+            this.$set(this.assemblyForm, 'quantity', regularInteger(value))
+        },
+        // 正浮点数正则监听
+        floatingInput(value, name) {
+            this.$set(this.assemblyForm, name, regularFloating(value))
+        },
+        // 详情接口
+        billsDetailfun() {
+            this.$emit('billsDetailfun')
+        },
+        dicChange(name, row) {
+            if (name == 'operatorName') {
+                if (row) {
+                    this.assemblyForm.operatorName = row.realName
+                    this.assemblyForm.operatorId = row.id
+                } else {
+                    this.assemblyForm.operatorName = null
+                    this.assemblyForm.operatorId = null
                 }
-                // 船公司
-                else if (name == 'carrier') {
-                    this.carrierBcorpslistByTypefun(value)
+            }
+            if (name == 'accDeptName') {
+                if (row) {
+                    this.assemblyForm.accDeptName = row.realName
+                    this.assemblyForm.accDept = row.id
+                } else {
+                    this.assemblyForm.accDeptName = null
+                    this.assemblyForm.accDept = null
                 }
-                // 航线
-                else if (name == 'line') {
-                    this.lineBlinesListfun(value)
+            }
+            if (name == 'branchName') {
+                if (row) {
+                    this.assemblyForm.branchId = row.id
+                    this.saveLocalCurrency(row.id)
+                } else {
+                    this.assemblyForm.branchId = null
+                    this.assemblyForm.branchName = null
                 }
-                // COLOADER
-                else if (name == 'coloaderCnName') {
-                    this.bcorpstypedefineListfun(value)
+            }
+        },
+        // 远程搜索
+        remoteMethod(value, name) {
+            let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2', 'bookingAgent', 'foreignAgency']
+            let portArr = ['placeReceipt', 'pol', 'pod', 'destination', 'placeDelivery', 'pot']
+            if (arr.indexOf(name) != -1) {
+                this[name + 'BcorpsListfun'](value)
+            }
+            // 港口
+            else if (portArr.indexOf(name) != -1) {
+                this[name + 'BportsListfun'](value)
+            }
+            // 场站
+            else if (name == 'cy') {
+                this.cyBcorpslistByType(value)
+            } else if (name == 'podCyCnName') {
+                this.cyBcorpslistByType2(value)
+            }
+            // 场站联系人
+            else if (name == 'podCyCnName') {
+                this.cyBcorpsattnListfun()
+            }
+            // 货物
+            // else if (name == 'commodity') {
+            //     this.commodityBcommodityListfun(value)
+            // }
+            // 包装
+            else if (name == 'packingUnit') {
+                this.packingUnitBpackagesListfun(value)
+            }
+            // 船名
+            else if (name == 'vessel') {
+                this.vesselBvesselsListfun(value)
+            }
+            // 船公司
+            else if (name == 'carrier') {
+                this.carrierBcorpslistByTypefun(value)
+            }
+            // 航线
+            else if (name == 'line') {
+                this.lineBlinesListfun(value)
+            }
+            // COLOADER
+            else if (name == 'coloaderCnName') {
+                this.bcorpstypedefineListfun(value)
+            }
+        },
+        // 选择框的回调
+        corpChange(value, name) {
+            console.log('corpChange', value, name)
+            let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2']
+            let portArr = ['placeReceipt', 'destination', 'placeDelivery']
+            let cnPorArr = ['pol', 'pod', 'pot']
+            if (arr.indexOf(name) != -1) {
+                if (!value) {
+                    // this.$set(this.assemblyForm.detail, name + 'Id', '')
+                    this.$set(this.assemblyForm.detail, name + 'Id', '')
+                    this.$set(this.assemblyForm.detail, name + 'CnName', '')
+                    this.$set(this.assemblyForm.detail, name + 'EnName', '')
+                    this.$set(this.assemblyForm.detail, name + 'Code', '')
+                    this.$set(this.assemblyForm.detail, name + 'Details', '')
+                    this.$set(this.assemblyForm.detail, name + 'CntyName', '')
+                    this.$set(this.assemblyForm.detail, name + 'CntyCode', '')
                 }
-            },
-            // 选择框的回调
-            corpChange(value, name) {
-                console.log('corpChange', value, name)
-                let arr = ['hshipper', 'hconsignee', 'hnotify', 'hnotify2']
-                let portArr = ['placeReceipt', 'destination', 'placeDelivery']
-                let cnPorArr = ['pol', 'pod', 'pot']
-                if (arr.indexOf(name) != -1) {
-                    if (!value) {
-                        // this.$set(this.assemblyForm.detail, name + 'Id', '')
-                        this.$set(this.assemblyForm.detail, name + 'Id', '')
-                        this.$set(this.assemblyForm.detail, name + 'CnName', '')
-                        this.$set(this.assemblyForm.detail, name + 'EnName', '')
-                        this.$set(this.assemblyForm.detail, name + 'Code', '')
-                        this.$set(this.assemblyForm.detail, name + 'Details', '')
-                        this.$set(this.assemblyForm.detail, name + 'CntyName', '')
-                        this.$set(this.assemblyForm.detail, name + 'CntyCode', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            console.log(item.cntyCode, 1231231)
-                            this.$set(this.assemblyForm.detail, name + 'Id', item.id)
-                            this.$set(this.assemblyForm.detail, name + 'CnName', item.cnName)
-                            this.$set(this.assemblyForm.detail, name + 'EnName', item.enName)
-                            this.$set(this.assemblyForm.detail, name + 'Code', item.code)
-                            // this.$set(this.assemblyForm,name + 'Details',item.details)
-                            if (!this.assemblyForm[name + 'Details']) {
-                                this.$set(this.assemblyForm.detail, name + 'Details', item.details)
-                            }
-                            // 国家名称
-                            this.$set(this.assemblyForm.detail, name + 'CntyName', item.cntyName)
-                            // 国家代码
-                            this.$set(this.assemblyForm.detail, name + 'CntyCode', item.cntyCode)
+                for (let item of this[name + 'Data']) {
+                    if (item.cnName == value) {
+                        console.log(item.cntyCode, 1231231)
+                        this.$set(this.assemblyForm.detail, name + 'Id', item.id)
+                        this.$set(this.assemblyForm.detail, name + 'CnName', item.cnName)
+                        this.$set(this.assemblyForm.detail, name + 'EnName', item.enName)
+                        this.$set(this.assemblyForm.detail, name + 'Code', item.code)
+                        // this.$set(this.assemblyForm,name + 'Details',item.details)
+                        if (!this.assemblyForm[name + 'Details']) {
+                            this.$set(this.assemblyForm.detail, name + 'Details', item.details)
                         }
+                        // 国家名称
+                        this.$set(this.assemblyForm.detail, name + 'CntyName', item.cntyName)
+                        // 国家代码
+                        this.$set(this.assemblyForm.detail, name + 'CntyCode', item.cntyCode)
                     }
                 }
-                // 有中文名称的港口
-                else if (cnPorArr.indexOf(name) != -1) {
-                    if (!value) {
-                        this.$set(this.assemblyForm, name + 'Id', '')
-                        this.$set(this.assemblyForm, name + 'CnName', '')
-                        this.$set(this.assemblyForm, name + 'EnName', '')
-                        this.$set(this.assemblyForm, name + 'Code', '')
-                        this.$set(this.assemblyForm, name + 'NamePrint', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.enName == value) {
-                            this.$set(this.assemblyForm, name + 'Id', item.id)
-                            this.$set(this.assemblyForm, name + 'CnName', item.cnName)
-                            this.$set(this.assemblyForm, name + 'EnName', item.enName)
-                            this.$set(this.assemblyForm, name + 'Code', item.code)
-                            this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
-                            // 签单地点 默认 装货港
-                            if (name == 'pol') {
-                                this.$set(this.assemblyForm, 'issueAt', this.assemblyForm.polEnName)
-                                this.$set(this.assemblyForm, 'issueAtId', this.assemblyForm.polId)
-                            }
-                            // // 选择卸货港带出目的地
-                            // if(name == 'pod') {
-                            //     this.$set(this.assemblyForm,'destinationId',item.id)
-                            //     this.$set(this.assemblyForm,'destinationName',item.enName)
-                            //     this.$set(this.assemblyForm,'destinationCode',item.code)
-                            //     this.$set(this.assemblyForm,'destinationNamePrint',item.enName)
-                            // }
-                        }
-                    }
-                } else if (name == 'foreignAgency') {
-                    if (!value) {
-                        // this.$set(this.assemblyForm.detail, name + 'Id', '')
-                        this.$set(this.assemblyForm, name + 'Id', '')
-                        this.$set(this.assemblyForm, name + 'CnName', '')
-                        this.$set(this.assemblyForm, name + 'EnName', '')
-                        this.$set(this.assemblyForm, name + 'Code', '')
-                        this.$set(this.assemblyForm, name + 'Details', '')
-                        this.$set(this.assemblyForm, name + 'CntyName', '')
-                        this.$set(this.assemblyForm, name + 'CntyCode', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            console.log(item.cntyCode, 1231231)
-                            this.$set(this.assemblyForm, name + 'Id', item.id)
-                            this.$set(this.assemblyForm, name + 'CnName', item.cnName)
-                            this.$set(this.assemblyForm, name + 'EnName', item.enName)
-                            this.$set(this.assemblyForm, name + 'Code', item.code)
-                            // this.$set(this.assemblyForm,name + 'Details',item.details)
-                            if (!this.assemblyForm[name + 'Details']) {
-                                this.$set(this.assemblyForm, name + 'Details', item.details)
-                            }
-                            // 国家名称
-                            this.$set(this.assemblyForm, name + 'CntyName', item.cntyName)
-                            // 国家代码
-                            this.$set(this.assemblyForm, name + 'CntyCode', item.cntyCode)
+            }
+            // 有中文名称的港口
+            else if (cnPorArr.indexOf(name) != -1) {
+                if (!value) {
+                    this.$set(this.assemblyForm, name + 'Id', '')
+                    this.$set(this.assemblyForm, name + 'CnName', '')
+                    this.$set(this.assemblyForm, name + 'EnName', '')
+                    this.$set(this.assemblyForm, name + 'Code', '')
+                    this.$set(this.assemblyForm, name + 'NamePrint', '')
+                }
+                for (let item of this[name + 'Data']) {
+                    if (item.enName == value) {
+                        this.$set(this.assemblyForm, name + 'Id', item.id)
+                        this.$set(this.assemblyForm, name + 'CnName', item.cnName)
+                        this.$set(this.assemblyForm, name + 'EnName', item.enName)
+                        this.$set(this.assemblyForm, name + 'Code', item.code)
+                        this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
+                        // 签单地点 默认 装货港
+                        if (name == 'pol') {
+                            this.$set(this.assemblyForm, 'issueAt', this.assemblyForm.polEnName)
+                            this.$set(this.assemblyForm, 'issueAtId', this.assemblyForm.polId)
                         }
+                        // // 选择卸货港带出目的地
+                        // if(name == 'pod') {
+                        //     this.$set(this.assemblyForm,'destinationId',item.id)
+                        //     this.$set(this.assemblyForm,'destinationName',item.enName)
+                        //     this.$set(this.assemblyForm,'destinationCode',item.code)
+                        //     this.$set(this.assemblyForm,'destinationNamePrint',item.enName)
+                        // }
                     }
                 }
-                // 没有中文名的港口
-                else if (portArr.indexOf(name) != -1) {
-                    console.log(name)
-                    if (!value) {
-                        this.$set(this.assemblyForm, name + 'Id', '')
-                        this.$set(this.assemblyForm, name + 'Name', '')
-                        this.$set(this.assemblyForm, name + 'Code', '')
-                        this.$set(this.assemblyForm, name + 'NamePrint', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.enName == value) {
-                            this.$set(this.assemblyForm, name + 'Id', item.id)
-                            this.$set(this.assemblyForm, name + 'Name', item.enName)
-                            this.$set(this.assemblyForm, name + 'Code', item.code)
-                            this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
+            } else if (name == 'foreignAgency') {
+                if (!value) {
+                    // this.$set(this.assemblyForm.detail, name + 'Id', '')
+                    this.$set(this.assemblyForm, name + 'Id', '')
+                    this.$set(this.assemblyForm, name + 'CnName', '')
+                    this.$set(this.assemblyForm, name + 'EnName', '')
+                    this.$set(this.assemblyForm, name + 'Code', '')
+                    this.$set(this.assemblyForm, name + 'Details', '')
+                    this.$set(this.assemblyForm, name + 'CntyName', '')
+                    this.$set(this.assemblyForm, name + 'CntyCode', '')
+                }
+                for (let item of this[name + 'Data']) {
+                    if (item.cnName == value) {
+                        console.log(item.cntyCode, 1231231)
+                        this.$set(this.assemblyForm, name + 'Id', item.id)
+                        this.$set(this.assemblyForm, name + 'CnName', item.cnName)
+                        this.$set(this.assemblyForm, name + 'EnName', item.enName)
+                        this.$set(this.assemblyForm, name + 'Code', item.code)
+                        // this.$set(this.assemblyForm,name + 'Details',item.details)
+                        if (!this.assemblyForm[name + 'Details']) {
+                            this.$set(this.assemblyForm, name + 'Details', item.details)
                         }
+                        // 国家名称
+                        this.$set(this.assemblyForm, name + 'CntyName', item.cntyName)
+                        // 国家代码
+                        this.$set(this.assemblyForm, name + 'CntyCode', item.cntyCode)
                     }
                 }
-                // else if (name == 'commodity') {
-                //     if (!value) {
-                //         this.$set(this.assemblyForm,'hscode','')
-                //         this.$set(this.assemblyForm,'commodityShName','')
-                //         this.$set(this.assemblyForm,'commodityCnName','')
-                //         this.$set(this.assemblyForm,'commodityEnName','')
-                //     }
-                //     for(let item of this[name + 'Data']) {
-                //         if (item.hsCode == value) {
-                //             this.$set(this.assemblyForm,'hscode',item.hsCode)
-                //             this.$set(this.assemblyForm,'commodityShName',item.cnName)
-                //             this.$set(this.assemblyForm,'commodityCnName',item.cnName)
-                //             this.$set(this.assemblyForm,'commodityEnName',item.enName)
-                //         }
-                //     }
-                // }
-                // 船名
-                else if (name == 'vessel') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'vesselId', '')
-                        this.$set(this.assemblyForm, 'vesselCnName', '')
-                        this.$set(this.assemblyForm, 'vesselEnName', '')
-                    }
-                    if (this[name + 'Data'].length == 0) {
-                        this.$set(this.assemblyForm, 'vesselId', null)
-                        this.$set(this.assemblyForm, 'vesselCnName', value)
-                        this.$set(this.assemblyForm, 'vesselEnName', value)
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.enName == value) {
-                            this.$set(this.assemblyForm, 'vesselId', item.id)
-                            this.$set(this.assemblyForm, 'vesselCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'vesselEnName', item.enName)
-                        }
+            }
+            // 没有中文名的港口
+            else if (portArr.indexOf(name) != -1) {
+                console.log(name)
+                if (!value) {
+                    this.$set(this.assemblyForm, name + 'Id', '')
+                    this.$set(this.assemblyForm, name + 'Name', '')
+                    this.$set(this.assemblyForm, name + 'Code', '')
+                    this.$set(this.assemblyForm, name + 'NamePrint', '')
+                }
+                for (let item of this[name + 'Data']) {
+                    if (item.enName == value) {
+                        this.$set(this.assemblyForm, name + 'Id', item.id)
+                        this.$set(this.assemblyForm, name + 'Name', item.enName)
+                        this.$set(this.assemblyForm, name + 'Code', item.code)
+                        this.$set(this.assemblyForm, name + 'NamePrint', item.enName)
                     }
                 }
-                // 船公司
-                else if (name == 'carrier') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'carrierId', '')
-                        this.$set(this.assemblyForm, 'carrierShortName', '')
-                        this.$set(this.assemblyForm, 'carrierCnName', '')
-                        this.$set(this.assemblyForm, 'carrierEnName', '')
-                        this.$set(this.assemblyForm, 'carrierCode', '')
-                        this.$set(this.assemblyForm, 'carrierArgreementNo', '')
+            }
+            // else if (name == 'commodity') {
+            //     if (!value) {
+            //         this.$set(this.assemblyForm,'hscode','')
+            //         this.$set(this.assemblyForm,'commodityShName','')
+            //         this.$set(this.assemblyForm,'commodityCnName','')
+            //         this.$set(this.assemblyForm,'commodityEnName','')
+            //     }
+            //     for(let item of this[name + 'Data']) {
+            //         if (item.hsCode == value) {
+            //             this.$set(this.assemblyForm,'hscode',item.hsCode)
+            //             this.$set(this.assemblyForm,'commodityShName',item.cnName)
+            //             this.$set(this.assemblyForm,'commodityCnName',item.cnName)
+            //             this.$set(this.assemblyForm,'commodityEnName',item.enName)
+            //         }
+            //     }
+            // }
+            // 船名
+            else if (name == 'vessel') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'vesselId', '')
+                    this.$set(this.assemblyForm, 'vesselCnName', '')
+                    this.$set(this.assemblyForm, 'vesselEnName', '')
+                }
+                if (this[name + 'Data'].length == 0) {
+                    this.$set(this.assemblyForm, 'vesselId', null)
+                    this.$set(this.assemblyForm, 'vesselCnName', value)
+                    this.$set(this.assemblyForm, 'vesselEnName', value)
+                }
+                for (let item of this[name + 'Data']) {
+                    if (item.enName == value) {
+                        this.$set(this.assemblyForm, 'vesselId', item.id)
+                        this.$set(this.assemblyForm, 'vesselCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'vesselEnName', item.enName)
                     }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            console.log(item)
-                            this.$set(this.assemblyForm, 'carrierId', item.id)
-                            this.$set(this.assemblyForm, 'carrierShortName', item.shortName ? item.shortName : item
-                                .cnName)
-                            this.$set(this.assemblyForm, 'carrierCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'carrierEnName', item.enName)
-                            this.$set(this.assemblyForm, 'carrierCode', item.code)
-                            this.$set(this.assemblyForm, 'carrierArgreementNo', item.carrierArgreementNo)
+                }
+            }
+            // 船公司
+            else if (name == 'carrier') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'carrierId', '')
+                    this.$set(this.assemblyForm, 'carrierShortName', '')
+                    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) {
+                        console.log(item)
+                        this.$set(this.assemblyForm, 'carrierId', item.id)
+                        this.$set(this.assemblyForm, 'carrierShortName', item.shortName ? item.shortName : item
+                            .cnName)
+                        this.$set(this.assemblyForm, 'carrierCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'carrierEnName', item.enName)
+                        this.$set(this.assemblyForm, 'carrierCode', item.code)
+                        this.$set(this.assemblyForm, 'carrierArgreementNo', item.carrierArgreementNo)
 
-                        }
                     }
                 }
-                // 包装
-                else if (name == 'packingUnit') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'packingUnitId', '')
-                        this.$set(this.assemblyForm, 'packingUnit', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            this.$set(this.assemblyForm, 'packingUnitId', item.id)
-                            this.$set(this.assemblyForm, 'packingUnit', item.cnName)
-                        }
-                    }
+            }
+            // 包装
+            else if (name == 'packingUnit') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'packingUnitId', '')
+                    this.$set(this.assemblyForm, 'packingUnit', '')
                 }
-                // 订舱代理
-                else if (name == 'bookingAgent') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'bookingAgentId', '')
-                        this.$set(this.assemblyForm, 'bookingAgentCnName', '')
-                        this.$set(this.assemblyForm, 'bookingAgentEnName', '')
-                        this.$set(this.assemblyForm, 'bookingRemarks', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            this.$set(this.assemblyForm, 'bookingAgentId', item.id)
-                            this.$set(this.assemblyForm, 'bookingAgentCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'bookingAgentEnName', item.enName)
-                            this.$set(this.assemblyForm, 'bookingRemarks', item.remarks)
-                        }
+                for (let item of this[name + 'Data']) {
+                    if (item.cnName == value) {
+                        this.$set(this.assemblyForm, 'packingUnitId', item.id)
+                        this.$set(this.assemblyForm, 'packingUnit', item.cnName)
                     }
                 }
-                // 航线
-                else if (name == 'line') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'lineId', '')
-                        this.$set(this.assemblyForm, 'lineCnName', '')
-                        this.$set(this.assemblyForm, 'lineEnName', '')
-                    }
-                    for (let item of this[name + 'Data']) {
-                        if (item.cnName == value) {
-                            this.$set(this.assemblyForm, 'lineId', item.id)
-                            this.$set(this.assemblyForm, 'lineCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'lineEnName', item.enName)
-                        }
-                    }
+            }
+            // 订舱代理
+            else if (name == 'bookingAgent') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'bookingAgentId', '')
+                    this.$set(this.assemblyForm, 'bookingAgentCnName', '')
+                    this.$set(this.assemblyForm, 'bookingAgentEnName', '')
+                    this.$set(this.assemblyForm, 'bookingRemarks', '')
                 }
-                // COLOADER
-                else if (name == 'coloaderCnName') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'coloaderId', '')
-                        this.$set(this.assemblyForm, 'coloaderCnName', '')
-                        this.$set(this.assemblyForm, 'coloaderEnName', '')
-                    }
-                    for (let item of this.coloaderCnNameData) {
-                        if (item.cnName == value) {
-                            this.$set(this.assemblyForm, 'coloaderId', item.id)
-                            this.$set(this.assemblyForm, 'coloaderCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'coloaderEnName', item.enName)
-                        }
+                for (let item of this[name + 'Data']) {
+                    if (item.cnName == value) {
+                        this.$set(this.assemblyForm, 'bookingAgentId', item.id)
+                        this.$set(this.assemblyForm, 'bookingAgentCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'bookingAgentEnName', item.enName)
+                        this.$set(this.assemblyForm, 'bookingRemarks', item.remarks)
                     }
-                } else if (name == 'cargoType') {
-                    this.$set(this.assemblyForm, 'cargoType', value ? value : '')
-                    if (value == 'danger') {
-                        // 危险品
-                        this.DangerousGoodsAdd()
-                    }
-                } else if (name == 'cy') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'cyId', '')
-                        this.$set(this.assemblyForm, 'cyCode', '')
-                        this.$set(this.assemblyForm, 'cyShortName', '')
-                        this.$set(this.assemblyForm, 'cyCnName', '')
-                        this.$set(this.assemblyForm, 'cyEnName', '')
-                        this.$set(this.assemblyForm, 'cyRemarks', '')
-                        // 联系人
-                        this.$set(this.assemblyForm, 'cyTel', '')
-                        this.$set(this.assemblyForm, 'cyAddress', '')
-                        this.$set(this.assemblyForm, 'cyContacts', '')
-                    }
-                    for (let item of this.cyData) {
-                        if (item.cnName == value) {
-                            console.log(item)
-                            this.$set(this.assemblyForm, 'cyId', item.id)
-                            this.$set(this.assemblyForm, 'cyCode', item.code)
-                            this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
-                            this.$set(this.assemblyForm, 'cyCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'cyEnName', item.enName)
-                            this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
-                            // 查询场站联系人
-                            getBcorpsattnList(1, 20, {
-                                pid: this.assemblyForm.cyId
-                            }).then(res => {
-                                if (res.data.data.records.length > 0) {
-                                    this.$set(this.assemblyForm, 'cyTel', res.data.data.records[0].tel)
-                                    this.$set(this.assemblyForm, 'cyAddress', res.data.data.records[0].addr)
-                                    this.$set(this.assemblyForm, 'cyContacts', res.data.data.records[0].cname)
-                                }
-                            })
-                        }
-                    }
-                } else if (name == 'podCyCnName') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'podCyId', '')
-                        this.$set(this.assemblyForm, 'podCyCode', '')
-                        this.$set(this.assemblyForm, 'podCyCnName', '')
-                        this.$set(this.assemblyForm, 'podCyEnName', '')
-                        // 联系人
-                        this.$set(this.assemblyForm, 'podCyTel', '')
-                        this.$set(this.assemblyForm, 'podCyAddress', '')
-                        this.$set(this.assemblyForm, 'podCyContacts', '')
-                    }
-                    for (let item of this.podCyData) {
-                        if (item.cnName == value) {
-                            console.log(item)
-                            this.$set(this.assemblyForm, 'podCyId', item.id)
-                            this.$set(this.assemblyForm, 'podCyCode', item.code)
-                            // this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
-                            this.$set(this.assemblyForm, 'podCyCnName', item.cnName)
-                            this.$set(this.assemblyForm, 'podCyEnName', item.enName)
-                            // this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
-                            // 查询场站联系人
-                            getBcorpsattnList(1, 20, {
-                                pid: this.assemblyForm.cyId
-                            }).then(res => {
-                                if (res.data.data.records.length > 0) {
-                                    this.$set(this.assemblyForm, 'podCyTel', res.data.data.records[0].tel)
-                                    this.$set(this.assemblyForm, 'podCyAddress', res.data.data.records[0].addr)
-                                    this.$set(this.assemblyForm, 'podCyContacts', res.data.data.records[0]
-                                        .cname)
-                                }
-                            })
-                        }
+                }
+            }
+            // 航线
+            else if (name == 'line') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'lineId', '')
+                    this.$set(this.assemblyForm, 'lineCnName', '')
+                    this.$set(this.assemblyForm, 'lineEnName', '')
+                }
+                for (let item of this[name + 'Data']) {
+                    if (item.cnName == value) {
+                        this.$set(this.assemblyForm, 'lineId', item.id)
+                        this.$set(this.assemblyForm, 'lineCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'lineEnName', item.enName)
                     }
                 }
-                // 场站联系人
-                else if (name == 'cyContacts') {
-                    if (!value) {
-                        this.$set(this.assemblyForm, 'cyTel', '')
-                        this.$set(this.assemblyForm, 'cyAddress', '')
-                        this.$set(this.assemblyForm, 'cyContacts', '')
+            }
+            // COLOADER
+            else if (name == 'coloaderCnName') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'coloaderId', '')
+                    this.$set(this.assemblyForm, 'coloaderCnName', '')
+                    this.$set(this.assemblyForm, 'coloaderEnName', '')
+                }
+                for (let item of this.coloaderCnNameData) {
+                    if (item.cnName == value) {
+                        this.$set(this.assemblyForm, 'coloaderId', item.id)
+                        this.$set(this.assemblyForm, 'coloaderCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'coloaderEnName', item.enName)
                     }
-                    for (let item of this.cyContactsData) {
-                        if (item.cname == value) {
-                            this.$set(this.assemblyForm, 'cyTel', item.tel)
-                            this.$set(this.assemblyForm, 'cyAddress', item.addr)
-                            this.$set(this.assemblyForm, 'cyContacts', item.cname)
-                        }
+                }
+            } else if (name == 'cargoType') {
+                this.$set(this.assemblyForm, 'cargoType', value ? value : '')
+                if (value == 'danger') {
+                    // 危险品
+                    this.DangerousGoodsAdd()
+                }
+            } else if (name == 'cy') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'cyId', '')
+                    this.$set(this.assemblyForm, 'cyCode', '')
+                    this.$set(this.assemblyForm, 'cyShortName', '')
+                    this.$set(this.assemblyForm, 'cyCnName', '')
+                    this.$set(this.assemblyForm, 'cyEnName', '')
+                    this.$set(this.assemblyForm, 'cyRemarks', '')
+                    // 联系人
+                    this.$set(this.assemblyForm, 'cyTel', '')
+                    this.$set(this.assemblyForm, 'cyAddress', '')
+                    this.$set(this.assemblyForm, 'cyContacts', '')
+                }
+                for (let item of this.cyData) {
+                    if (item.cnName == value) {
+                        console.log(item)
+                        this.$set(this.assemblyForm, 'cyId', item.id)
+                        this.$set(this.assemblyForm, 'cyCode', item.code)
+                        this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
+                        this.$set(this.assemblyForm, 'cyCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'cyEnName', item.enName)
+                        this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
+                        // 查询场站联系人
+                        getBcorpsattnList(1, 20, {
+                            pid: this.assemblyForm.cyId
+                        }).then(res => {
+                            if (res.data.data.records.length > 0) {
+                                this.$set(this.assemblyForm, 'cyTel', res.data.data.records[0].tel)
+                                this.$set(this.assemblyForm, 'cyAddress', res.data.data.records[0].addr)
+                                this.$set(this.assemblyForm, 'cyContacts', res.data.data.records[0].cname)
+                            }
+                        })
                     }
-                } else {
-                    this.$set(this.assemblyForm, name, value ? value : '')
                 }
-            },
-            // 通知人添加第二个通知人弹窗
-            hnotifyClick() {
-                if (this.detailData.seeDisabled) {
-                    return;
+            } else if (name == 'podCyCnName') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'podCyId', '')
+                    this.$set(this.assemblyForm, 'podCyCode', '')
+                    this.$set(this.assemblyForm, 'podCyCnName', '')
+                    this.$set(this.assemblyForm, 'podCyEnName', '')
+                    // 联系人
+                    this.$set(this.assemblyForm, 'podCyTel', '')
+                    this.$set(this.assemblyForm, 'podCyAddress', '')
+                    this.$set(this.assemblyForm, 'podCyContacts', '')
                 }
-                this.hnotify2Visible = true
-            },
-            // 第二通知人弹窗的清除
-            hnotify2Cancellation(name) {
-                let title = ''
-                if (name == '清除') {
-                    title = '确认清除吗?'
+                for (let item of this.podCyData) {
+                    if (item.cnName == value) {
+                        console.log(item)
+                        this.$set(this.assemblyForm, 'podCyId', item.id)
+                        this.$set(this.assemblyForm, 'podCyCode', item.code)
+                        // this.$set(this.assemblyForm, 'cyShortName', item.shortName ? item.shortName : item.cnName)
+                        this.$set(this.assemblyForm, 'podCyCnName', item.cnName)
+                        this.$set(this.assemblyForm, 'podCyEnName', item.enName)
+                        // this.$set(this.assemblyForm, 'cyRemarks', item.details) // 客户里的详情信息
+                        // 查询场站联系人
+                        getBcorpsattnList(1, 20, {
+                            pid: this.assemblyForm.cyId
+                        }).then(res => {
+                            if (res.data.data.records.length > 0) {
+                                this.$set(this.assemblyForm, 'podCyTel', res.data.data.records[0].tel)
+                                this.$set(this.assemblyForm, 'podCyAddress', res.data.data.records[0].addr)
+                                this.$set(this.assemblyForm, 'podCyContacts', res.data.data.records[0]
+                                    .cname)
+                            }
+                        })
+                    }
                 }
-                this.$confirm(title)
-                    .then(_ => {
-                        this.$set(this.assemblyForm, 'hnotify2Id', '')
-                        this.$set(this.assemblyForm, 'hnotify2CnName', '')
-                        this.$set(this.assemblyForm, 'hnotify2EnName', '')
-                        this.$set(this.assemblyForm, 'hnotify2Code', '')
-                        this.$set(this.assemblyForm, 'hnotify2Details', '')
-                        this.$set(this.assemblyForm, 'hnotify2CntyName', '')
-                        this.$set(this.assemblyForm, 'hnotify2CntyCode', '')
-                        this.hnotify2Visible = false
-                    })
-                    .catch(_ => {});
-            },
-            // 通知人
-            hnotify2HandleClose(done) {
-                done();
-            },
-            // 危险品弹窗开启
-            DangerousGoodsAdd() {
-                if (this.assemblyForm.cargoType == 'danger') {
-                    this.dgVisible = true
-                } else {
-                    this.$message({
-                        message: '请选择货物为危险品',
-                        type: 'warning'
-                    });
+            }
+            // 场站联系人
+            else if (name == 'cyContacts') {
+                if (!value) {
+                    this.$set(this.assemblyForm, 'cyTel', '')
+                    this.$set(this.assemblyForm, 'cyAddress', '')
+                    this.$set(this.assemblyForm, 'cyContacts', '')
                 }
-            },
-            // 危险品弹窗的清除
-            dgCancellation(name) {
-                let title = ''
-                if (name == '清除') {
-                    title = '确认清除吗?'
+                for (let item of this.cyContactsData) {
+                    if (item.cname == value) {
+                        this.$set(this.assemblyForm, 'cyTel', item.tel)
+                        this.$set(this.assemblyForm, 'cyAddress', item.addr)
+                        this.$set(this.assemblyForm, 'cyContacts', item.cname)
+                    }
                 }
-                this.$confirm(title)
-                    .then(_ => {
-                        this.$set(this.assemblyForm, 'dgImdgCode', '')
-                        this.$set(this.assemblyForm, 'dgUnCode', '')
-                        this.$set(this.assemblyForm, 'dgPackingLevel', '0')
-                        this.$set(this.assemblyForm, 'dgFlashPoint', '')
-                        this.$set(this.assemblyForm, 'dgFlashPointUnit', '')
-                        this.$set(this.assemblyForm, 'dgContacts', '')
-                        this.$set(this.assemblyForm, 'dgTel', '')
-                        this.$set(this.assemblyForm, 'dgIsMarinePollutant', '')
-                        this.dgVisible = false
-                    })
-                    .catch(_ => {});
-            },
-            handleInput(event, name) {
-                console.log(event, 1231)
-                // 2E80-2EFF   CJK 部首补充    2F00-2FDF   康熙字典部首
-                // 3000-303F   CJK 符号和标点   31C0-31EF   CJK 笔画
-                // 3200-32FF   封闭式 CJK 文字和月份   3300-33FF   CJK 兼容
-                // 3400-4DBF   CJK 统一表意符号扩展 A  4DC0-4DFF   易经六十四卦符号
-                // 4E00-9FBF   CJK 统一表意符号  F900-FAFF   CJK 兼容象形文字
-                // FE30-FE4F   CJK 兼容形式    FF00-FFEF   全角ASCII、全角标点
-                // 匹配中文字符
-                // let a = event.replace(/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g, '')
-                // this.assemblyForm[name] = a
-            },
-            // text文本框input
-            textareaBlur(name) {
-                console.log(name, 1160)
-                // if (this.assemblyForm[name].length > (35 * 5)) {
-                //     this.$message({
-                //         message: '输入的字体已经超出五行',
-                //         type: 'warning'
-                //     });
-                // }
-                let arr = ['hshipperDetails', 'hconsigneeDetails', 'hnotifyDetails', 'hnotify2Details',
-                    'foreignAgencyDetails'
-                ]
-                if (arr.indexOf(name) != -1) {
-                    this.assemblyForm.detail[name] = _.toUpper(this.assemblyForm.detail[name])
+            } else {
+                this.$set(this.assemblyForm, name, value ? value : '')
+            }
+        },
+        // 通知人添加第二个通知人弹窗
+        hnotifyClick() {
+            if (this.detailData.seeDisabled) {
+                return;
+            }
+            this.hnotify2Visible = true
+        },
+        // 第二通知人弹窗的清除
+        hnotify2Cancellation(name) {
+            let title = ''
+            if (name == '清除') {
+                title = '确认清除吗?'
+            }
+            this.$confirm(title)
+                .then(_ => {
+                    this.$set(this.assemblyForm, 'hnotify2Id', '')
+                    this.$set(this.assemblyForm, 'hnotify2CnName', '')
+                    this.$set(this.assemblyForm, 'hnotify2EnName', '')
+                    this.$set(this.assemblyForm, 'hnotify2Code', '')
+                    this.$set(this.assemblyForm, 'hnotify2Details', '')
+                    this.$set(this.assemblyForm, 'hnotify2CntyName', '')
+                    this.$set(this.assemblyForm, 'hnotify2CntyCode', '')
+                    this.hnotify2Visible = false
+                })
+                .catch(_ => { });
+        },
+        // 通知人
+        hnotify2HandleClose(done) {
+            done();
+        },
+        // 危险品弹窗开启
+        DangerousGoodsAdd() {
+            if (this.assemblyForm.cargoType == 'danger') {
+                this.dgVisible = true
+            } else {
+                this.$message({
+                    message: '请选择货物为危险品',
+                    type: 'warning'
+                });
+            }
+        },
+        // 危险品弹窗的清除
+        dgCancellation(name) {
+            let title = ''
+            if (name == '清除') {
+                title = '确认清除吗?'
+            }
+            this.$confirm(title)
+                .then(_ => {
+                    this.$set(this.assemblyForm, 'dgImdgCode', '')
+                    this.$set(this.assemblyForm, 'dgUnCode', '')
+                    this.$set(this.assemblyForm, 'dgPackingLevel', '0')
+                    this.$set(this.assemblyForm, 'dgFlashPoint', '')
+                    this.$set(this.assemblyForm, 'dgFlashPointUnit', '')
+                    this.$set(this.assemblyForm, 'dgContacts', '')
+                    this.$set(this.assemblyForm, 'dgTel', '')
+                    this.$set(this.assemblyForm, 'dgIsMarinePollutant', '')
+                    this.dgVisible = false
+                })
+                .catch(_ => { });
+        },
+        handleInput(event, name) {
+            console.log(event, 1231)
+            // 2E80-2EFF   CJK 部首补充    2F00-2FDF   康熙字典部首
+            // 3000-303F   CJK 符号和标点   31C0-31EF   CJK 笔画
+            // 3200-32FF   封闭式 CJK 文字和月份   3300-33FF   CJK 兼容
+            // 3400-4DBF   CJK 统一表意符号扩展 A  4DC0-4DFF   易经六十四卦符号
+            // 4E00-9FBF   CJK 统一表意符号  F900-FAFF   CJK 兼容象形文字
+            // FE30-FE4F   CJK 兼容形式    FF00-FFEF   全角ASCII、全角标点
+            // 匹配中文字符
+            // let a = event.replace(/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g, '')
+            // this.assemblyForm[name] = a
+        },
+        // text文本框input
+        textareaBlur(name) {
+            console.log(name, 1160)
+            // if (this.assemblyForm[name].length > (35 * 5)) {
+            //     this.$message({
+            //         message: '输入的字体已经超出五行',
+            //         type: 'warning'
+            //     });
+            // }
+            let arr = ['hshipperDetails', 'hconsigneeDetails', 'hnotifyDetails', 'hnotify2Details',
+                'foreignAgencyDetails'
+            ]
+            if (arr.indexOf(name) != -1) {
+                this.assemblyForm.detail[name] = _.toUpper(this.assemblyForm.detail[name])
 
-                }
-                let arr2 = ['marks', 'commodityDescr', 'bookingRemarks', 'siRemarks', 'forwarding', 'remarks',
-                    'cyRemarks'
-                ]
-                if (arr2.indexOf(name) != -1) {
-                    this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
+            }
+            let arr2 = ['marks', 'commodityDescr', 'bookingRemarks', 'siRemarks', 'forwarding', 'remarks',
+                'cyRemarks'
+            ]
+            if (arr2.indexOf(name) != -1) {
+                this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
 
-                }
-                let arr3 =
-                    'placeReceiptNamePrint,polNamePrint,podNamePrint,destinationNamePrint,placeDeliveryNamePrint,potNamePrint'
+            }
+            let arr3 =
+                'placeReceiptNamePrint,polNamePrint,podNamePrint,destinationNamePrint,placeDeliveryNamePrint,potNamePrint'
                     .split(',')
-                if (arr3.indexOf(name) != -1) {
-                    this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
+            if (arr3.indexOf(name) != -1) {
+                this.assemblyForm[name] = _.toUpper(this.assemblyForm[name])
 
+            }
+            // this.assemblyForm[name] = textareaWrap(this.assemblyForm[name])
+        },
+        // 同通知人
+        notifybyfun() {
+            if (this.detailData.seeDisabled) {
+                return;
+            }
+            this.$set(this.assemblyForm.detail, 'hnotifyId', this.assemblyForm.detail.hconsigneeId)
+            this.$set(this.assemblyForm.detail, 'hnotifyCnName', this.assemblyForm.detail.hconsigneeCnName)
+            this.$set(this.assemblyForm.detail, 'hnotifyEnName', this.assemblyForm.detail.hconsigneeEnName)
+            this.$set(this.assemblyForm.detail, 'hnotifyCode', this.assemblyForm.detail.hconsigneeCode)
+            this.$set(this.assemblyForm.detail, 'hnotifyDetails', this.assemblyForm.detail.hconsigneeDetails)
+            this.$set(this.assemblyForm.detail, 'hnotifyCntyName', this.assemblyForm.detail.hconsigneeCntyName)
+            this.$set(this.assemblyForm.detail, 'hnotifyCntyCode', this.assemblyForm.detail.hconsigneeCntyCode)
+        },
+        // 邮箱跳转
+        emailJump(name) {
+            let value = null
+            if (this.detailData.seeDisabled) {
+                return;
+            }
+            if (name == 'cy') {
+                if (!this.assemblyForm.cyId) {
+                    this.$message({
+                        message: '请先选择场站',
+                        type: 'warning'
+                    });
+                    return
                 }
-                // this.assemblyForm[name] = textareaWrap(this.assemblyForm[name])
-            },
-            // 同通知人
-            notifybyfun() {
-                if (this.detailData.seeDisabled) {
-                    return;
-                }
-                this.$set(this.assemblyForm.detail, 'hnotifyId', this.assemblyForm.detail.hconsigneeId)
-                this.$set(this.assemblyForm.detail, 'hnotifyCnName', this.assemblyForm.detail.hconsigneeCnName)
-                this.$set(this.assemblyForm.detail, 'hnotifyEnName', this.assemblyForm.detail.hconsigneeEnName)
-                this.$set(this.assemblyForm.detail, 'hnotifyCode', this.assemblyForm.detail.hconsigneeCode)
-                this.$set(this.assemblyForm.detail, 'hnotifyDetails', this.assemblyForm.detail.hconsigneeDetails)
-                this.$set(this.assemblyForm.detail, 'hnotifyCntyName', this.assemblyForm.detail.hconsigneeCntyName)
-                this.$set(this.assemblyForm.detail, 'hnotifyCntyCode', this.assemblyForm.detail.hconsigneeCntyCode)
-            },
-            // 邮箱跳转
-            emailJump(name) {
-                let value = null
-                if (this.detailData.seeDisabled) {
-                    return;
-                }
-                if (name == 'cy') {
-                    if (!this.assemblyForm.cyId) {
-                        this.$message({
-                            message: '请先选择场站',
-                            type: 'warning'
-                        });
-                        return
-                    }
-                    value = this.assemblyForm.cyId
+                value = this.assemblyForm.cyId
+            }
+            if (name == 'carrier') {
+                if (!this.assemblyForm.carrierId) {
+                    this.$message({
+                        message: '请先选择船公司',
+                        type: 'warning'
+                    });
+                    return
                 }
-                if (name == 'carrier') {
-                    if (!this.assemblyForm.carrierId) {
-                        this.$message({
-                            message: '请先选择船公司',
-                            type: 'warning'
-                        });
-                        return
+                value = this.assemblyForm.carrierId
+            }
+            // 调详情获取邮箱
+            getBcorpsDetail(value).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")
                     }
-                    value = this.assemblyForm.carrierId
                 }
-                // 调详情获取邮箱
-                getBcorpsDetail(value).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) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            if (this.$store.getters.CorrespondenceUnitslos) {
+                this.$alert("往来单位已存在,请保存关闭再进行操作", "温馨提示", {
+                    confirmButtonText: "确定",
+                    type: "warning",
+                    callback: action => {
+                        console.log(action);
                     }
-                })
-            },
-            // 添加跳转
-            addJump(name) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                if (this.$store.getters.CorrespondenceUnitslos) {
-                    this.$alert("往来单位已存在,请保存关闭再进行操作", "温馨提示", {
-                        confirmButtonText: "确定",
-                        type: "warning",
-                        callback: action => {
-                            console.log(action);
-                        }
-                    });
-                    return
-                }
-                this.$router.$avueRouter.closeTag("/iosBasicData/bcorps/index");
-                this.$router.push({
-                    path: "/iosBasicData/bcorps/index",
-                    query: {
-                        corpType: corpTypeName
-                    },
-                })
-            },
+                });
+                return
+            }
+            this.$router.$avueRouter.closeTag("/iosBasicData/bcorps/index");
+            this.$router.push({
+                path: "/iosBasicData/bcorps/index",
+                query: {
+                    corpType: corpTypeName
+                },
+            })
+        },
+
+        // 接口数据请求🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
+        // 获取场站数据
+        cyBcorpslistByType(cnName) {
+            let corpTypeName = '场站'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.cyData = res.data.data.records
+            })
+        },
+        cyBcorpslistByType2(cnName) {
+            let corpTypeName = '场站'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.podCyData = res.data.data.records
+            })
+        },
+        // 获取场站下的联系人数据
+        cyBcorpsattnListfun() {
+            getBcorpsattnList(1, 20, {
+                pid: this.assemblyForm.cyId
+            }).then(res => {
+                this.cyContactsData = res.data.data.records
+            })
+        },
+        cyBcorpsattnListfun2() {
+            getBcorpsattnList(1, 20, {
+                pid: this.assemblyForm.podCyId
+            }).then(res => {
+                this.podCyCnNameData = res.data.data.records
+            })
+        },
+        foreignAgencyBcorpsListfun(cnName) {
+            let corpTypeName = '国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.foreignAgencyData = res.data.data.records
+            })
+        },
+        // 获取发货人数据 (往来单位 前四个代理)
+        hshipperBcorpsListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.hshipperData = res.data.data.records
+            })
+        },
+        // 获取收货人数据 (往来单位 前四个代理)
+        hconsigneeBcorpsListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.hconsigneeData = res.data.data.records
+            })
+        },
+        // 获取通知人数据 (往来单位 前四个代理)
+        hnotifyBcorpsListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.hnotifyData = res.data.data.records
+            })
+        },
+        // 获取第二通知人数据 (往来单位 前四个代理)
+        hnotify2BcorpsListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.hnotify2Data = res.data.data.records
+            })
+        },
+        // 收货地数据 (港口表)
+        placeReceiptBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.placeReceiptData = res.data.data.records
+            })
+        },
+        // 装货港数据
+        polBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.polData = res.data.data.records
+            })
+        },
+        // 卸货港数据
+        podBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.podData = res.data.data.records
+            })
+        },
+        // 目的地
+        destinationBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.destinationData = res.data.data.records
+            })
+        },
+        // 交货地
+        placeDeliveryBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.placeDeliveryData = res.data.data.records
+            })
+        },
+        // 中转港
+        potBportsListfun(enName) {
+            bportsList(1, 10, {
+                enName,
+                status: 0
+            }).then(res => {
+                this.potData = res.data.data.records
+            })
+        },
+        // 获取类别 COLOADER 数据
+        bcorpstypedefineListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.coloaderCnNameData = res.data.data.records
+            })
+        },
+        // 包装数据
+        packingUnitBpackagesListfun(cnName) {
+            console.log(cnName)
+            bpackagesList(1, 10, {
+                cnName,
+                status: 0,
+                whetherDg: 0
+            }).then(res => {
+                this.packingUnitData = res.data.data.records
+            })
+        },
+        // 商品 HS-CODE (货物列表)
+        commodityBcommodityListfun(cnName) {
+            bcommodityList(1, 10, {
+                cnName,
+                status: 0
+            }).then(res => {
+                this.commodityData = res.data.data.records
+            })
+        },
+        getHsCode() {
+            bcommodityList(1, 10, {
+                status: 0
+            }).then(res => {
+                this.commodityData = res.data.data.records
+            })
+        },
+        searchHsQuery(query) {
+            this.hsLoading = true;
+            setTimeout(() => {
 
-            // 接口数据请求🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
-            // 获取场站数据
-            cyBcorpslistByType(cnName) {
-                let corpTypeName = '场站'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.cyData = res.data.data.records
-                })
-            },
-            cyBcorpslistByType2(cnName) {
-                let corpTypeName = '场站'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.podCyData = res.data.data.records
-                })
-            },
-            // 获取场站下的联系人数据
-            cyBcorpsattnListfun() {
-                getBcorpsattnList(1, 20, {
-                    pid: this.assemblyForm.cyId
-                }).then(res => {
-                    this.cyContactsData = res.data.data.records
-                })
-            },
-            cyBcorpsattnListfun2() {
-                getBcorpsattnList(1, 20, {
-                    pid: this.assemblyForm.podCyId
-                }).then(res => {
-                    this.podCyCnNameData = res.data.data.records
-                })
-            },
-            foreignAgencyBcorpsListfun(cnName) {
-                let corpTypeName = '国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.foreignAgencyData = res.data.data.records
-                })
-            },
-            // 获取发货人数据 (往来单位 前四个代理)
-            hshipperBcorpsListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.hshipperData = res.data.data.records
-                })
-            },
-            // 获取收货人数据 (往来单位 前四个代理)
-            hconsigneeBcorpsListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.hconsigneeData = res.data.data.records
-                })
-            },
-            // 获取通知人数据 (往来单位 前四个代理)
-            hnotifyBcorpsListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.hnotifyData = res.data.data.records
-                })
-            },
-            // 获取第二通知人数据 (往来单位 前四个代理)
-            hnotify2BcorpsListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.hnotify2Data = res.data.data.records
-                })
-            },
-            // 收货地数据 (港口表)
-            placeReceiptBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.placeReceiptData = res.data.data.records
-                })
-            },
-            // 装货港数据
-            polBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.polData = res.data.data.records
-                })
-            },
-            // 卸货港数据
-            podBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.podData = res.data.data.records
-                })
-            },
-            // 目的地
-            destinationBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.destinationData = res.data.data.records
-                })
-            },
-            // 交货地
-            placeDeliveryBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.placeDeliveryData = res.data.data.records
-                })
-            },
-            // 中转港
-            potBportsListfun(enName) {
-                bportsList(1, 10, {
-                    enName,
-                    status: 0
-                }).then(res => {
-                    this.potData = res.data.data.records
-                })
-            },
-            // 获取类别 COLOADER 数据
-            bcorpstypedefineListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.coloaderCnNameData = res.data.data.records
-                })
-            },
-            // 包装数据
-            packingUnitBpackagesListfun(cnName) {
-                console.log(cnName)
-                bpackagesList(1, 10, {
-                    cnName,
-                    status: 0,
-                    whetherDg: 0
-                }).then(res => {
-                    this.packingUnitData = res.data.data.records
-                })
-            },
-            // 商品 HS-CODE (货物列表)
-            commodityBcommodityListfun(cnName) {
-                bcommodityList(1, 10, {
-                    cnName,
-                    status: 0
-                }).then(res => {
-                    this.commodityData = res.data.data.records
-                })
-            },
-            getHsCode() {
                 bcommodityList(1, 10, {
+                    hsCode: query,
                     status: 0
                 }).then(res => {
+                    console.log('模糊查询')
                     this.commodityData = res.data.data.records
                 })
-            },
-            searchHsQuery(query) {
-                this.hsLoading = true;
-                setTimeout(() => {
-
-                    bcommodityList(1, 10, {
-                        hsCode: query,
-                        status: 0
-                    }).then(res => {
-                        console.log('模糊查询')
-                        this.commodityData = res.data.data.records
-                    })
-                    this.hsLoading = false;
-                }, 200)
-            },
-            hsCodeChang(query) {
-                let obj = this.commodityData.find(e => e.hsCode == query)
-                if (obj) {
-                    console.log(11111)
-                    if (obj.hsCode == query) {
-                        this.$set(this.assemblyForm, 'commodityCnName', obj.enName)
-                        this.$set(this.assemblyForm, 'commodityEnName', obj.cnName)
-                    }
-                } else {
-                    console.log(2222)
-                    this.$set(this.assemblyForm, 'commodityCnName', '')
-                    this.$set(this.assemblyForm, 'commodityEnName', '')
+                this.hsLoading = false;
+            }, 200)
+        },
+        hsCodeChang(query) {
+            let obj = this.commodityData.find(e => e.hsCode == query)
+            if (obj) {
+                console.log(11111)
+                if (obj.hsCode == query) {
+                    this.$set(this.assemblyForm, 'commodityCnName', obj.enName)
+                    this.$set(this.assemblyForm, 'commodityEnName', obj.cnName)
                 }
-            },
-            // 获取船公司数据
-            carrierBcorpslistByTypefun(cnName) {
-                let corpTypeName = '船公司'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.carrierData = res.data.data.records
-                })
-            },
-            // 船名
-            vesselBvesselsListfun(cnName) {
-                getBvesselsList(1, 10, {
-                    cnName,
-                    status: 0
-                }).then(res => {
-                    this.vesselData = res.data.data.records
-                })
-            },
-            // 订舱代理
-            bookingAgentBcorpsListfun(cnName) {
-                let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
-                getBcorpslistByType(1, 10, {
-                    cnName,
-                    status: 0,
-                    corpTypeName
-                }).then(res => {
-                    this.bookingAgentData = res.data.data.records
-                })
-            },
-            // 航线数据
-            lineBlinesListfun(cnName) {
-                blinesList(1, 10, {
-                    cnName,
-                    status: 0
-                }).then(res => {
-                    this.lineData = res.data.data.records
-                })
-            },
-            // 危险品包装等级
-            dgPackingLevelWorkDicts() {
-                getWorkDicts('dangerous_goods_grade').then(res => {
-                    this.dgPackingLevelData = res.data.data
-                })
-            },
-
-        }
+            } else {
+                console.log(2222)
+                this.$set(this.assemblyForm, 'commodityCnName', '')
+                this.$set(this.assemblyForm, 'commodityEnName', '')
+            }
+        },
+        // 获取船公司数据
+        carrierBcorpslistByTypefun(cnName) {
+            let corpTypeName = '船公司'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.carrierData = res.data.data.records
+            })
+        },
+        // 船名
+        vesselBvesselsListfun(cnName) {
+            getBvesselsList(1, 10, {
+                cnName,
+                status: 0
+            }).then(res => {
+                this.vesselData = res.data.data.records
+            })
+        },
+        // 订舱代理
+        bookingAgentBcorpsListfun(cnName) {
+            let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
+            getBcorpslistByType(1, 10, {
+                cnName,
+                status: 0,
+                corpTypeName
+            }).then(res => {
+                this.bookingAgentData = res.data.data.records
+            })
+        },
+        // 航线数据
+        lineBlinesListfun(cnName) {
+            blinesList(1, 10, {
+                cnName,
+                status: 0
+            }).then(res => {
+                this.lineData = res.data.data.records
+            })
+        },
+        // 危险品包装等级
+        dgPackingLevelWorkDicts() {
+            getWorkDicts('dangerous_goods_grade').then(res => {
+                this.dgPackingLevelData = res.data.data
+            })
+        },
 
     }
+
+}
 </script>
 
 <style scoped>
-    ::v-deep.el-form-item {
-        margin-bottom: 2px;
-    }
+::v-deep.el-form-item {
+    margin-bottom: 2px;
+}
 
-    .addbuttonClass {
-        width: 30px;
-        height: 30px;
-        line-height: 27px;
-        color: #fff;
-        font-weight: 500;
-        font-size: 26px;
-        box-sizing: border-box;
-        border-radius: 4px;
-        background-color: #5995fc;
-        text-align: center;
-    }
+.addbuttonClass {
+    width: 30px;
+    height: 30px;
+    line-height: 27px;
+    color: #fff;
+    font-weight: 500;
+    font-size: 26px;
+    box-sizing: border-box;
+    border-radius: 4px;
+    background-color: #5995fc;
+    text-align: center;
+}
 </style>