Browse Source

货代bug,空运出口 2024-1-19

caojunjie 1 năm trước cách đây
mục cha
commit
75de93cc33

+ 253 - 372
src/views/iosBasicData/AirtransportExport/bills/assembly/EntrustmentLnformation.vue

@@ -8,30 +8,20 @@
                             <span slot="label">
                                <span style="color: #1e9fff">发货人</span>
                             </span>
-                            <div>
-                                <el-col :span="16">
-                                    <search-query :datalist="hshipperData"
-                                                  :selectValue="assemblyForm.hshipperCnName"
-                                                  :filterable="true"
-                                                  :clearable="true"
-                                                  :remote="true"
-                                                  :addIf="true"
-                                                  :tableIf="false"
-                                                  :disabled="detailData.seeDisabled"
-                                                  :forParameter="{key:'id',label:'cnName',value:'cnName'}"
-                                                  @addJump="addJump('hshipper')"
-                                                  @remoteMethod="remoteMethod($event,'hshipper')"
-                                                  @corpChange="corpChange($event,'hshipper')"
-                                                  @corpFocus="remoteMethod($event,'hshipper')">
-                                    </search-query>
-                                </el-col>
-                                <el-col :span="8">
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.hshipperCntyName"
-                                              size="small" autocomplete="off"
-                                              :disabled="detailData.seeDisabled"
-                                              clearable placeholder="国家" ></el-input>
-                                </el-col>
-                            </div>
+                            <search-query :datalist="hshipperData"
+                                          :selectValue="assemblyForm.hshipperCnName"
+                                          :filterable="true"
+                                          :clearable="true"
+                                          :remote="true"
+                                          :addIf="true"
+                                          :tableIf="false"
+                                          :disabled="detailData.seeDisabled"
+                                          :forParameter="{key:'id',label:'cnName',value:'cnName'}"
+                                          @addJump="addJump('hshipper')"
+                                          @remoteMethod="remoteMethod($event,'hshipper')"
+                                          @corpChange="corpChange($event,'hshipper')"
+                                          @corpFocus="remoteMethod($event,'hshipper')">
+                            </search-query>
                         </el-form-item>
                         <div style="margin-top: 4px">
                             <el-form-item label="" prop="hshipperDetails" >
@@ -47,7 +37,7 @@
                                <span style="color: #1e9fff">收货人</span>
                             </span>
                             <div>
-                                <el-col :span="16">
+                                <el-col :span="20">
                                     <search-query :datalist="hconsigneeData"
                                                   :selectValue="assemblyForm.hconsigneeCnName"
                                                   :filterable="true"
@@ -64,13 +54,6 @@
                                     </search-query>
                                 </el-col>
                                 <el-col :span="4">
-                                    <span style="padding-left: 10px"></span>
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.hconsigneeCntyName"
-                                              size="small" autocomplete="off"
-                                              :disabled="detailData.seeDisabled"
-                                              clearable placeholder="收货人" ></el-input>
-                                </el-col>
-                                <el-col :span="4">
                                     <span style="margin-left: 20px"></span>
                                     <span style="font-size: 12px;color: #1e9fff;cursor: pointer;"
                                           @click="notifybyfun">同通</span>
@@ -90,37 +73,20 @@
                             <span slot="label">
                                <span style="color: #1e9fff">通知人</span>
                             </span>
-                            <div>
-                                <el-col :span="16">
-                                    <search-query :datalist="hnotifyData"
-                                                  :selectValue="assemblyForm.hnotifyCnName"
-                                                  :filterable="true"
-                                                  :clearable="true"
-                                                  :remote="true"
-                                                  :disabled="detailData.seeDisabled"
-                                                  :addIf="true"
-                                                  :tableIf="false"
-                                                  :forParameter="{key:'id',label:'cnName',value:'cnName'}"
-                                                  @addJump="addJump('hconsignee')"
-                                                  @remoteMethod="remoteMethod($event,'hnotify')"
-                                                  @corpChange="corpChange($event,'hnotify')"
-                                                  @corpFocus="remoteMethod($event,'hnotify')">
-                                    </search-query>
-                                </el-col>
-                                <el-col :span="8">
-                                    <div style="display: flex;align-items: center;justify-content: space-between;padding-left: 10px">
-                                        <div style="flex: 4">
-                                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.hnotifyCntyName"
-                                                      size="small" autocomplete="off"
-                                                      :disabled="detailData.seeDisabled"
-                                                      clearable placeholder="通知人" ></el-input>
-                                        </div>
-                                        <div style="flex: 1;margin-left: 10px">
-                                            <div class="addbuttonClass" @click="hnotifyClick">+</div>
-                                        </div>
-                                    </div>
-                                </el-col>
-                            </div>
+                            <search-query :datalist="hnotifyData"
+                                          :selectValue="assemblyForm.hnotifyCnName"
+                                          :filterable="true"
+                                          :clearable="true"
+                                          :remote="true"
+                                          :disabled="detailData.seeDisabled"
+                                          :addIf="true"
+                                          :tableIf="false"
+                                          :forParameter="{key:'id',label:'cnName',value:'cnName'}"
+                                          @addJump="addJump('hconsignee')"
+                                          @remoteMethod="remoteMethod($event,'hnotify')"
+                                          @corpChange="corpChange($event,'hnotify')"
+                                          @corpFocus="remoteMethod($event,'hnotify')">
+                            </search-query>
                         </el-form-item>
                         <div>
                             <el-form-item label="" prop="hnotifyDetails" >
@@ -133,94 +99,95 @@
                         </div>
                     </el-row>
                     <el-row>
-                        <el-form-item label="收货地" prop="placeReceiptName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">收货地</span>
-                        </span>
+                        <el-form-item label="起运港" prop="departureCnName" >
+                            <span slot="label">
+                                <span style="color: #1e9fff">起运港</span>
+                            </span>
                             <el-row>
                                 <el-col :span="16">
-                                    <search-query :datalist="placeReceiptData"
-                                                  :selectValue="assemblyForm.placeReceiptName"
+                                    <search-query :datalist="departureData"
+                                                  :selectValue="assemblyForm.departureEnName"
                                                   :filterable="true"
                                                   :clearable="true"
                                                   :remote="true"
-                                                  :disabled="detailData.seeDisabled"
+                                                  :disabled="detailData.seeDisabled || generateBillsfalse"
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'enName',value:'enName'}"
-                                                  @remoteMethod="remoteMethod($event,'placeReceipt')"
-                                                  @corpChange="corpChange($event,'placeReceipt')"
-                                                  @corpFocus="remoteMethod($event,'placeReceipt')" >
+                                                  @remoteMethod="remoteMethod($event,'departure')"
+                                                  @corpChange="corpChange($event,'departure')"
+                                                  @corpFocus="remoteMethod($event,'departure')" >
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
                                     <span style="padding-left: 20px"></span>
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.placeReceiptNamePrint"
+                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.departureNamePrint"
                                               size="small" autocomplete="off"
-                                              :disabled="detailData.seeDisabled"
-                                              clearable placeholder="收货地" ></el-input>
+                                              :disabled="detailData.seeDisabled || generateBillsfalse"
+                                              clearable placeholder="起运港" ></el-input>
                                 </el-col>
                             </el-row>
                         </el-form-item>
-                        <el-form-item label="装货港" prop="polCnName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">装货港</span>
-                        </span>
+                        <el-form-item label="起运地" prop="departureAddrCnName" >
+                            <span slot="label">
+                                <span style="color: #1e9fff">起运地</span>
+                            </span>
                             <el-row>
                                 <el-col :span="16">
-                                    <search-query :datalist="polData"
-                                                  :selectValue="assemblyForm.polEnName"
+                                    <search-query :datalist="departureAddrData"
+                                                  :selectValue="assemblyForm.departureAddrEnName"
                                                   :filterable="true"
                                                   :clearable="true"
                                                   :remote="true"
                                                   :disabled="detailData.seeDisabled || generateBillsfalse"
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'enName',value:'enName'}"
-                                                  @remoteMethod="remoteMethod($event,'pol')"
-                                                  @corpChange="corpChange($event,'pol')"
-                                                  @corpFocus="remoteMethod($event,'pol')" >
+                                                  @remoteMethod="remoteMethod($event,'departureAddr')"
+                                                  @corpChange="corpChange($event,'departureAddr')"
+                                                  @corpFocus="remoteMethod($event,'departureAddr')" >
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
                                     <span style="padding-left: 20px"></span>
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.polNamePrint"
+                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.departureAddrNamePrint"
                                               size="small" autocomplete="off"
                                               :disabled="detailData.seeDisabled || generateBillsfalse"
-                                              clearable placeholder="装货港" ></el-input>
+                                              clearable placeholder="起运地" ></el-input>
                                 </el-col>
                             </el-row>
                         </el-form-item>
-                        <el-form-item label="卸货港" prop="podCnName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">卸货港</span>
-                        </span>
+
+                        <el-form-item label="目的港" prop="finalDestinationName" >
+                            <span slot="label">
+                                <span style="color: #1e9fff">目的港</span>
+                            </span>
                             <el-row>
                                 <el-col :span="16">
-                                    <search-query :datalist="podData"
-                                                  :selectValue="assemblyForm.podEnName"
+                                    <search-query :datalist="finalDestinationData"
+                                                  :selectValue="assemblyForm.finalDestinationName"
                                                   :filterable="true"
                                                   :clearable="true"
                                                   :remote="true"
-                                                  :disabled="detailData.seeDisabled"
+                                                  :disabled="detailData.seeDisabled || generateBillsfalse"
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'enName',value:'enName'}"
-                                                  @remoteMethod="remoteMethod($event,'pod')"
-                                                  @corpChange="corpChange($event,'pod')"
-                                                  @corpFocus="remoteMethod($event,'pod')" >
+                                                  @remoteMethod="remoteMethod($event,'finalDestination')"
+                                                  @corpChange="corpChange($event,'finalDestination')"
+                                                  @corpFocus="remoteMethod($event,'finalDestination')" >
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
                                     <span style="padding-left: 20px"></span>
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.podNamePrint"
+                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.finalDestinationNamePrint"
                                               size="small" autocomplete="off"
-                                              :disabled="detailData.seeDisabled"
-                                              clearable placeholder="卸货港" ></el-input>
+                                              :disabled="detailData.seeDisabled || generateBillsfalse"
+                                              clearable placeholder="目的港" ></el-input>
                                 </el-col>
                             </el-row>
                         </el-form-item>
                         <el-form-item label="目的地" prop="destinationName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">目的地</span>
-                        </span>
+                            <span slot="label">
+                                <span style="color: #1e9fff">目的地</span>
+                            </span>
                             <el-row>
                                 <el-col :span="16">
                                     <search-query :datalist="destinationData"
@@ -245,38 +212,11 @@
                                 </el-col>
                             </el-row>
                         </el-form-item>
-                        <el-form-item label="交货地" prop="placeDeliveryName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">交货地</span>
-                        </span>
-                            <el-row>
-                                <el-col :span="16">
-                                    <search-query :datalist="placeDeliveryData"
-                                                  :selectValue="assemblyForm.placeDeliveryName"
-                                                  :filterable="true"
-                                                  :clearable="true"
-                                                  :remote="true"
-                                                  :disabled="detailData.seeDisabled"
-                                                  :buttonIf="false"
-                                                  :forParameter="{key:'id',label:'enName',value:'enName'}"
-                                                  @remoteMethod="remoteMethod($event,'placeDelivery')"
-                                                  @corpChange="corpChange($event,'placeDelivery')"
-                                                  @corpFocus="remoteMethod($event,'placeDelivery')" >
-                                    </search-query>
-                                </el-col>
-                                <el-col :span="7">
-                                    <span style="padding-left: 20px"></span>
-                                    <el-input type="age" style="width: 100%;" v-model="assemblyForm.placeDeliveryNamePrint"
-                                              size="small" autocomplete="off"
-                                              :disabled="detailData.seeDisabled"
-                                              clearable placeholder="交货地" ></el-input>
-                                </el-col>
-                            </el-row>
-                        </el-form-item>
+
                         <el-form-item label="中转港" prop="potEnName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">中转港</span>
-                        </span>
+                            <span slot="label">
+                                <span style="color: #1e9fff">中转港</span>
+                            </span>
                             <el-row>
                                 <el-col :span="16">
                                     <search-query :datalist="potData"
@@ -318,43 +258,28 @@
                                           @blur="textareaBlur('marks')" ></el-input>
                             </div>
                             <div style="margin-top: 4px">
-                                <el-form-item label="HS CODE" prop="commodityCnName" >
-                                <span slot="label">
-                                    <span style="color: #1e9fff">HS CODE</span>
-                                </span>
-                                    <el-col :span="16">
-                                        <search-query :datalist="commodityData"
-                                                      :selectValue="assemblyForm.commodityCnName"
-                                                      :filterable="true"
-                                                      :clearable="true"
-                                                      :remote="true"
-                                                      :disabled="detailData.seeDisabled"
-                                                      :buttonIf="false"
-                                                      :forParameter="{key:'id',label:'cnName',value:'cnName'}"
-                                                      @remoteMethod="remoteMethod($event,'commodity')"
-                                                      @corpChange="corpChange($event,'commodity')"
-                                                      @corpFocus="remoteMethod($event,'commodity')">
-                                        </search-query>
-                                    </el-col>
-                                    <el-col :span="7">
-                                        <span style="padding-left: 20px"></span>
-                                        <el-input type="age" style="width: 100%;" v-model="assemblyForm.hscode"
-                                                  size="small" autocomplete="off"
+                                <el-form-item label="HS CODE" prop="commodityCnName" label-width="70px" >
+                                    <span slot="label">
+                                        <span style="color: #1e9fff">HS CODE</span>
+                                    </span>
+                                    <search-query :datalist="commodityData"
+                                                  :selectValue="assemblyForm.commodityCnName"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
                                                   :disabled="detailData.seeDisabled"
-                                                  clearable placeholder="商品 HS-CODE" ></el-input>
-                                    </el-col>
+                                                  :buttonIf="false"
+                                                  :forParameter="{key:'id',label:'cnName',value:'cnName'}"
+                                                  @remoteMethod="remoteMethod($event,'commodity')"
+                                                  @corpChange="corpChange($event,'commodity')"
+                                                  @corpFocus="remoteMethod($event,'commodity')">
+                                    </search-query>
                                 </el-form-item>
                             </div>
-                            <div>
-                                <el-input type="age" style="width: 100%;" v-model="assemblyForm.commodityEnName"
-                                          size="small" autocomplete="off"
-                                          :disabled="detailData.seeDisabled"
-                                          clearable placeholder="商品简称" ></el-input>
-                            </div>
                             <div style="margin-top: 4px">
-                                <el-form-item label="货描" prop="cargoType" label-width="40px" >
+                                <el-form-item label="货物描述" prop="cargoType" label-width="70px" >
                                 <span slot="label">
-                                    <span style="color: #1e9fff">货描</span>
+                                    <span style="color: #1e9fff">货物描述</span>
                                 </span>
                                     <!--<el-col :span="5">-->
                                     <!--    <el-checkbox size="medium" :true-label="1" :false-label="0" v-model="assemblyForm.isLargeCargo">大件货</el-checkbox>-->
@@ -388,17 +313,39 @@
                         </el-row>
                     </el-col>
                     <el-col :span="12">
-                        <el-form-item label="ETD" prop="etd" label-width="90px"
+                        <el-form-item label="航班日期" prop="etd" label-width="90px"
                                       :rules="[{required: true,message: '',trigger: 'blur' }]">
-                        <span slot="label">
-                             <span style="color: #1e9fff">ETD</span>
-                        </span>
+                            <span slot="label">
+                                <span style="color: #1e9fff">航班日期</span>
+                            </span>
                             <el-date-picker v-model="assemblyForm.etd" clearable style="width: 100%"
                                             type="date" size="small" :disabled="detailData.seeDisabled || generateBillsfalse"
                                             value-format="yyyy-MM-dd" :picker-options="etdPickerOptions"
                                             placeholder="选择日期">
                             </el-date-picker>
                         </el-form-item>
+                        <!--realityEtd-->
+                        <el-form-item label="发运日期" prop="realityEtd" label-width="90px" >
+                            <span slot="label">
+                                <span style="color: #1e9fff">发运日期</span>
+                            </span>
+                            <el-date-picker v-model="assemblyForm.realityEtd" clearable style="width: 100%"
+                                            type="date" size="small" :disabled="detailData.seeDisabled || generateBillsfalse"
+                                            value-format="yyyy-MM-dd"
+                                            placeholder="选择日期">
+                            </el-date-picker>
+                        </el-form-item>
+                        <el-form-item label="ETA" prop="eta" label-width="90px" >
+                            <span slot="label">
+                                <span style="color: #1e9fff">ETA</span>
+                            </span>
+                            <el-date-picker v-model="assemblyForm.eta" clearable style="width: 100%"
+                                            type="date" size="small" :disabled="detailData.seeDisabled || generateBillsfalse"
+                                            value-format="yyyy-MM-dd" :picker-options="etdPickerOptions"
+                                            placeholder="选择日期">
+                            </el-date-picker>
+                        </el-form-item>
+
                         <div>
                             <el-form-item label="船名" prop="vesselCnName" label-width="90px" >
                             <span slot="label">
@@ -436,9 +383,9 @@
                                       :disabled="detailData.seeDisabled"
                                       clearable placeholder="请选择客户约号" ></el-input>
                         </el-form-item>
-                        <el-form-item label="公司" prop="carrierCnName" >
+                        <el-form-item label="航空公司" prop="carrierCnName" >
                         <span slot="label">
-                            <span style="color: #4c9e44;cursor: pointer;text-decoration: underline" @click="emailJump()">公司</span>
+                            <span style="color: #4c9e44;cursor: pointer;text-decoration: underline" @click="emailJump()">航空公司</span>
                         </span>
                             <search-query :datalist="carrierData"
                                           :selectValue="assemblyForm.carrierCnName"
@@ -488,6 +435,45 @@
                             </el-col>
                         </el-form-item>
                         <div>
+                            <el-col :span="8">
+                                <el-form-item label="长度" prop="length" label-width="50px"
+                                              :rules="[{required: true,message: ' ',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">长度</span>
+                                </span>
+                                    <el-input-number ref="quantityRef" style="width: 100%;" v-model="assemblyForm.length"
+                                              size="small" autocomplete="off" min="1"
+                                              :disabled="detailData.seeDisabled" :controls="false"
+                                              @focus="quantityFocus"
+                                              clearable placeholder="长度" ></el-input-number>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="8">
+                                <el-form-item label="宽度" prop="width" label-width="50px"
+                                              :rules="[{required: true,message: ' ',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">宽度</span>
+                                </span>
+                                    <el-input-number ref="quantityRef" style="width: 100%;" v-model="assemblyForm.width"
+                                                     size="small" autocomplete="off" min="1"
+                                                     :disabled="detailData.seeDisabled" :controls="false"
+                                                     @focus="quantityFocus"
+                                                     clearable placeholder="宽度" ></el-input-number>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="8">
+                                <el-form-item label="高度" prop="height" label-width="50px"
+                                              :rules="[{required: true,message: ' ',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">宽度</span>
+                                </span>
+                                    <el-input-number ref="quantityRef" style="width: 100%;" v-model="assemblyForm.height"
+                                                     size="small" autocomplete="off" min="1"
+                                                     :disabled="detailData.seeDisabled" :controls="false"
+                                                     @focus="quantityFocus"
+                                                     clearable placeholder="宽度" ></el-input-number>
+                                </el-form-item>
+                            </el-col>
                             <el-col :span="12">
                                 <el-form-item label="件数" prop="quantity" label-width="80px"
                                               :rules="[{required: true,message: '',trigger: 'blur' }]" >
@@ -549,15 +535,74 @@
                                               clearable placeholder="请选择尺码/体积" ></el-input>
                                 </el-form-item>
                             </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="货物价值" prop="goodsValue" label-width="80px"
+                                              :rules="[{required: true,message: '',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">货物价值</span>
+                                </span>
+                                    <el-input type="number" step="0.01" style="width: 106%;"
+                                              v-model="assemblyForm.goodsValue"
+                                              size="small" autocomplete="off"
+                                              :disabled="detailData.seeDisabled"
+                                              clearable placeholder="请输入货物价值" ></el-input>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="计费重里" prop="billingWeight" label-width="80px"
+                                              :rules="[{required: true,message: '',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">计费重里</span>
+                                </span>
+                                    <el-input type="number" step="0.01" style="width: 106%;"
+                                              v-model="assemblyForm.billingWeight"
+                                              size="small" autocomplete="off"
+                                              :disabled="detailData.seeDisabled"
+                                              clearable placeholder="请输入计费重里" ></el-input>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="计量单位" prop="unit" label-width="80px"
+                                              :rules="[{required: true,message: '',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">计量单位</span>
+                                </span>
+                                    <search-query :datalist="unitData"
+                                                  :selectValue="assemblyForm.unit"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
+                                                  :buttonIf="false"
+                                                  :forParameter="{key:'id',label:'code',value:'code',disabled:'status'}"
+                                                  @corpFocus="getBunitsPagefun"
+                                                  @corpChange="corpChange($event,'unit')">
+                                    </search-query>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="运价等级" prop="freightRateGrade" label-width="80px"
+                                              :rules="[{required: true,message: '',trigger: 'blur' }]" >
+                                <span slot="label">
+                                    <span style="color: #1e9fff">运价等级</span>
+                                </span>
+                                    <search-query :datalist="freightRateGradeData"
+                                                  :selectValue="assemblyForm.freightRateGrade"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
+                                                  :buttonIf="false"
+                                                  :forParameter="{key:'id',label:'code',value:'code',disabled:'status'}"
+                                                  @corpFocus="getBunitsPagefun"
+                                                  @corpChange="corpChange($event,'freightRateGrade')">
+                                    </search-query>
+                                </el-form-item>
+                            </el-col>
+
+
+
                         </div>
                     </el-col>
-                    <el-col :span="24">
-                        <precontainers :assemblyForm="assemblyForm"
-                                       :seeDisabled="detailData.seeDisabled"
-                                       :pid="assemblyForm.id"
-                                       @billsDetailfun="billsDetailfun" >
-                        </precontainers>
-                    </el-col>
+
                 </el-col>
             </el-row>
 
@@ -624,18 +669,6 @@
             </el-row>
             <el-row>
                 <el-col :span="6">
-                    <el-form-item label="FORWARDING" prop="bookingRemarks" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">FORWARDING</span>
-                        </span>
-                        <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.forwarding"
-                                  size="small" autocomplete="off"
-                                  :disabled="detailData.seeDisabled" rows="3"
-                                  clearable placeholder="FORWARDING"
-                                  @blur="textareaBlur('FORWARDING')" ></el-input>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
                     <el-form-item label="订舱备注" prop="bookingRemarks" >
                         <span slot="label">
                             <span style="color: #1e9fff">订舱备注</span>
@@ -648,18 +681,6 @@
                     </el-form-item>
                 </el-col>
                 <el-col :span="6">
-                    <el-form-item label="SI备注" prop="siRemarks" >
-                        <span slot="label">
-                           <span style="color: #1e9fff">SI备注</span>
-                        </span>
-                        <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.siRemarks"
-                                  size="small" autocomplete="off"
-                                  :disabled="detailData.seeDisabled" rows="3"
-                                  clearable placeholder="SI备注"
-                                  @blur="textareaBlur('siRemarks')" ></el-input>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
                     <el-form-item label="备注" prop="remarks" >
                         <span slot="label">
                             <span style="color: #1e9fff">备注</span>
@@ -676,64 +697,10 @@
 
 
         <el-dialog
-            title="第二通知人"
-            :visible.sync="hnotify2Visible"
-            width="50%"
-            append-to-body
-            :before-close="hnotify2HandleClose">
-            <div>
-                <el-form :model="assemblyForm" ref="form" label-width="60px">
-                    <el-row :gutter="20">
-                        <el-col :span="12">
-                            <el-form-item label="通知人" prop="hnotify2CnName" >
-                                <search-query :datalist="hnotify2Data"
-                                              :selectValue="assemblyForm.hnotify2CnName"
-                                              :filterable="true"
-                                              :clearable="true"
-                                              :remote="true"
-                                              :disabled="detailData.seeDisabled"
-                                              :buttonIf="false"
-                                              :forParameter="{key:'id',label:'cnName',value:'cnName'}"
-                                              @remoteMethod="remoteMethod($event,'hnotify2')"
-                                              @corpChange="corpChange($event,'hnotify2')"
-                                              @corpFocus="remoteMethod($event,'hnotify2')" >
-                                </search-query>
-                            </el-form-item>
-                        </el-col>
-                        <el-col :span="12">
-                            <el-form-item label="国家" prop="hnotify2CntyName" >
-                                <el-input type="age" style="width: 100%;" v-model="assemblyForm.hnotify2CntyName"
-                                          size="small" autocomplete="off"
-                                          :disabled="detailData.seeDisabled"
-                                          clearable placeholder="国家" ></el-input>
-                            </el-form-item>
-                        </el-col>
-                        <el-col :span="24">
-                            <el-form-item label="提单描述" prop="hnotify2Details" >
-                                <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.hnotify2Details"
-                                          size="small" autocomplete="off"
-                                          :disabled="detailData.seeDisabled" rows="4"
-                                          clearable placeholder="通知人提单描述"
-                                          @blur="textareaBlur('hnotify2Details')" ></el-input>
-                            </el-form-item>
-                        </el-col>
-
-                    </el-row>
-
-                </el-form>
-            </div>
-            <span slot="footer" class="dialog-footer">
-                <el-button type="danger" @click="hnotify2Cancellation('清除')">清 除</el-button>
-                <el-button type="primary" @click="hnotify2Visible = false">确 定</el-button>
-            </span>
-        </el-dialog>
-
-        <el-dialog
             title="危险品"
             :visible.sync="dgVisible"
             width="50%"
-            append-to-body
-            :before-close="hnotify2HandleClose">
+            append-to-body>
             <div>
                 <el-form :model="assemblyForm" ref="form" label-width="120px">
                     <el-row :gutter="20">
@@ -894,20 +861,14 @@ import {NdayDate} from "@/util/date";
                 hconsigneeData:[],
                 // 通知人
                 hnotifyData:[],
-                // 第二通知人
-                hnotify2Data:[],
-                // 通知人弹窗开启关闭
-                hnotify2Visible:false,
-                // 收货地
-                placeReceiptData:[],
-                // 装货港
-                polData:[],
-                // 卸货港
-                podData:[],
+                // 起运港
+                departureData:[],
+                // 起运地
+                departureAddrData:[],
                 // 目的地
                 destinationData:[],
-                // 交货地
-                placeDeliveryData:[],
+                // 目的港
+                finalDestinationData:[],
                 // 中转港
                 potData:[],
                 // 商品 HS-CODE
@@ -929,7 +890,7 @@ import {NdayDate} from "@/util/date";
                 ],
                 // 危险品弹窗
                 dgVisible:false,
-                // 公司数据
+                // 航空公司数据
                 carrierData:[],
                 // 船名
                 vesselData:[],
@@ -946,28 +907,8 @@ import {NdayDate} from "@/util/date";
             }
         },
         created() {
-            // // 往来单位
-            // 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()
         },
         methods:{
             // 件数聚焦
@@ -992,8 +933,8 @@ import {NdayDate} from "@/util/date";
             },
             // 远程搜索
             remoteMethod(value,name){
-                let arr = ['hshipper','hconsignee','hnotify','hnotify2','bookingAgent']
-                let portArr = ['placeReceipt','pol','pod','destination','placeDelivery','pot']
+                let arr = ['hshipper','hconsignee','hnotify','bookingAgent']
+                let portArr = ['departure','departureAddr','destination','finalDestination','pot']
                 if (arr.indexOf(name) != -1) {
                     this[name + 'BcorpsListfun'](value)
                 }
@@ -1013,7 +954,7 @@ import {NdayDate} from "@/util/date";
                 else if (name == 'vessel') {
                     this.vesselBvesselsListfun(value)
                 }
-                // 公司
+                // 航空公司
                 else if (name == 'carrier') {
                     this.carrierBcorpslistByTypefun(value)
                 }
@@ -1029,9 +970,9 @@ import {NdayDate} from "@/util/date";
             },
             // 选择框的回调
             corpChange(value,name) {
-                let arr = ['hshipper','hconsignee','hnotify','hnotify2']
-                let portArr = ['placeReceipt','destination','placeDelivery']
-                let cnPorArr = ['pol','pod','pot']
+                let arr = ['hshipper','hconsignee','hnotify']
+                let portArr = ['destination','finalDestination']
+                let cnPorArr = ['departure','departureAddr','pot']
                 if (arr.indexOf(name) != -1) {
                     for(let item of this[name + 'Data']) {
                         if (item.cnName == value) {
@@ -1056,17 +997,6 @@ import {NdayDate} from "@/util/date";
                             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.polCnName)
-                            }
-                            // 选择卸货港带出目的地
-                            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)
-                            }
                         }
                     }
                 }
@@ -1101,7 +1031,7 @@ import {NdayDate} from "@/util/date";
                         }
                     }
                 }
-                // 公司
+                // 航空公司
                 else if (name == 'carrier') {
                     if (!value) {
                         this.$set(this.assemblyForm,'carrierId','')
@@ -1171,37 +1101,6 @@ import {NdayDate} from "@/util/date";
                     this.$set(this.assemblyForm,name,value)
                 }
             },
-            // 通知人添加第二个通知人弹窗
-            hnotifyClick(){
-                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){
-                this.$confirm('确认关闭?')
-                    .then(_ => {
-                        done();
-                    })
-                    .catch(_ => {});
-            },
             // 危险品弹窗开启
             DangerousGoodsAdd(){
                 if (this.assemblyForm.cargoType == 'danger'){
@@ -1254,7 +1153,7 @@ import {NdayDate} from "@/util/date";
                         type: 'warning'
                     });
                 }
-                let arr = ['hshipperDetails','hconsigneeDetails','hnotifyDetails','marks','commodityDescr','hnotify2Details']
+                let arr = ['hshipperDetails','hconsigneeDetails','hnotifyDetails','marks','commodityDescr']
                 if (arr.indexOf(name) != -1) {
                     console.log(this.assemblyForm[name],1133)
                     this.assemblyForm[name] = this.assemblyForm[name].toUpperCase()
@@ -1275,7 +1174,7 @@ import {NdayDate} from "@/util/date";
             emailJump(){
                 if (!this.assemblyForm.carrierId) {
                     this.$message({
-                        message: '请先选择公司',
+                        message: '请先选择航空公司',
                         type: 'warning'
                     });
                     return
@@ -1344,38 +1243,19 @@ import {NdayDate} from "@/util/date";
                     })
                 })
             },
-            // 获取第二通知人数据 (往来单位 前四个代理)
-            hnotify2BcorpsListfun(cnName){
-                let corpType = '1712285382575398914,1712285645314990082,1712285842321448962,1712286433378574338'
-                getBcorpslistByType(1,10,{cnName,corpType}).then(res=>{
-                    this.hnotify2Data = res.data.data.records.map(item=>{
-                        item.cnName = item.cnName + ' - ' + item.code
-                        return item
-                    })
-                })
-            },
-            // 收货地数据 (港口表)
-            placeReceiptBportsListfun(enName){
-                bportsList(1,10,{enName}).then(res=>{
-                    this.placeReceiptData = res.data.data.records.map(item=>{
-                        item.enName = item.enName + ' - ' + item.code
-                        return item
-                    })
-                })
-            },
-            // 装货港数据
-            polBportsListfun(enName){
+            // 起运港数据
+            departureBportsListfun(enName){
                 bportsList(1,10,{enName}).then(res=>{
-                    this.polData = res.data.data.records.map(item=>{
+                    this.departureData = res.data.data.records.map(item=>{
                         item.enName = item.enName + ' - ' + item.code
                         return item
                     })
                 })
             },
-            // 卸货港数据
-            podBportsListfun(enName){
+            // 起运地数据
+            departureAddrBportsListfun(enName){
                 bportsList(1,10,{enName}).then(res=>{
-                    this.podData = res.data.data.records.map(item=>{
+                    this.departureAddrData = res.data.data.records.map(item=>{
                         item.enName = item.enName + ' - ' + item.code
                         return item
                     })
@@ -1390,15 +1270,16 @@ import {NdayDate} from "@/util/date";
                     })
                 })
             },
-            // 交货地
-            placeDeliveryBportsListfun(enName){
+            // 目的港
+            finalDestinationBportsListfun(enName){
                 bportsList(1,10,{enName}).then(res=>{
-                    this.placeDeliveryData = res.data.data.records.map(item=>{
+                    this.finalDestinationData = res.data.data.records.map(item=>{
                         item.enName = item.enName + ' - ' + item.code
                         return item
                     })
                 })
             },
+
             // 中转港
             potBportsListfun(enName){
                 bportsList(1,10,{enName}).then(res=>{
@@ -1430,7 +1311,7 @@ import {NdayDate} from "@/util/date";
                     this.commodityData = res.data.data.records
                 })
             },
-            // 获取公司数据
+            // 获取航空公司数据
             carrierBcorpslistByTypefun(cnName){
                 let corpType = '1712286570540703745'
                 getBcorpslistByType(1,10,{cnName,corpType}).then(res=>{

+ 0 - 62
src/views/iosBasicData/AirtransportExport/bills/assembly/formbottom.vue

@@ -117,38 +117,6 @@
                     </el-form-item>
                 </el-col>
                 <el-col :span="6">
-                    <el-form-item label="截单时间" prop="cyTrailerTime" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">截单时间</span>
-                        </span>
-                        <el-date-picker
-                            v-model="assemblyForm.cyTrailerTime"
-                            type="date"
-                            style="width: 100%;"
-                            value-format="yyyy-MM-dd HH:mm"
-                            size="small"
-                            :disabled="detailData.seeDisabled"
-                            placeholder="选择截单时间">
-                        </el-date-picker>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
-                    <el-form-item label="截港时间" prop="cyReturnTime" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">截港时间</span>
-                        </span>
-                        <el-date-picker
-                            v-model="assemblyForm.cyReturnTime"
-                            type="date"
-                            style="width: 100%;"
-                            value-format="yyyy-MM-dd HH:mm"
-                            size="small"
-                            :disabled="detailData.seeDisabled"
-                            placeholder="选择截港时间">
-                        </el-date-picker>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
                     <el-form-item label="签单方式" prop="issueType" >
                         <span slot="label">
                             <span style="color: #1e9fff">签单方式</span>
@@ -283,22 +251,6 @@
                         </el-date-picker>
                     </el-form-item>
                 </el-col>
-                <el-col :span="6">
-                    <el-form-item label="退舱日期" prop="bookingWithdrawTime" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">退舱日期</span>
-                        </span>
-                        <el-date-picker
-                            v-model="assemblyForm.bookingWithdrawTime"
-                            type="date"
-                            style="width: 100%;"
-                            value-format="yyyy-MM-dd HH:mm"
-                            size="small"
-                            :disabled="detailData.seeDisabled"
-                            placeholder="退舱日期">
-                        </el-date-picker>
-                    </el-form-item>
-                </el-col>
                 <el-col span="6">
                     <el-form-item label="签单地点" prop="issueAt" >
                         <span slot="label">
@@ -325,26 +277,12 @@
             </el-row>
             <el-row>
                 <el-col :span="6">
-                    <el-checkbox size="medium" :true-label="1" :false-label="0" :disabled="detailData.seeDisabled" v-model="assemblyForm.isLargeCargo">大件货</el-checkbox>
-                </el-col>
-                <el-col :span="6">
                     <div>
                         <el-checkbox size="medium" :true-label="1" :false-label="0" :disabled="detailData.seeDisabled" v-model="assemblyForm.isNeedLand">陆运</el-checkbox>
                         <el-checkbox size="medium" :true-label="1" :false-label="0" :disabled="detailData.seeDisabled" v-model="assemblyForm.isNeedDeclare">需报关</el-checkbox>
                         <el-checkbox size="medium" :true-label="1" :false-label="0" :disabled="detailData.seeDisabled" v-model="assemblyForm.isNeedIq">需三检</el-checkbox>
                     </div>
                 </el-col>
-                <el-col :span="6">
-                    <el-form-item label="箱数或件数大写" prop="quantityPackingDescr" label-width="100px">
-                        <span slot="label">
-                            <span style="color: #1e9fff">箱数或件数大写</span>
-                        </span>
-                        <el-input type="age" style="width: 100%;" v-model="assemblyForm.quantityPackingDescr"
-                                  size="small" autocomplete="off"
-                                  :disabled="true"
-                                  clearable placeholder="商品包装件数英文" ></el-input>
-                    </el-form-item>
-                </el-col>
             </el-row>
         </el-form>
 

+ 0 - 36
src/views/iosBasicData/AirtransportExport/bills/assembly/mbinformation.vue

@@ -174,15 +174,6 @@
                             </el-form-item>
                         </el-col>
                     </el-row>
-                    <el-form-item label="SI备注" prop="siRemarks" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">SI备注</span>
-                        </span>
-                        <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.siRemarks"
-                                  size="small" autocomplete="off"
-                                  :disabled="detailData.seeDisabled" rows="3"
-                                  clearable placeholder="SI备注" ></el-input>
-                    </el-form-item>
 
                 </el-col>
             </el-row>
@@ -269,33 +260,6 @@
                         </el-form-item>
                     </div>
                 </el-col>
-                <el-col :span="6">
-                    <el-form-item label="第二通知人" prop="mnotify2CnName" >
-                        <span slot="label">
-                            <span style="color: #1e9fff">第二通知人</span>
-                        </span>
-                        <search-query :datalist="mnotify2Data"
-                                      :selectValue="assemblyForm.mnotify2CnName"
-                                      :filterable="true"
-                                      :clearable="true"
-                                      :remote="true"
-                                      :disabled="detailData.seeDisabled"
-                                      :buttonIf="false"
-                                      :forParameter="{key:'id',label:'cnName',value:'cnName'}"
-                                      @remoteMethod="remoteMethod($event,'mnotify2')"
-                                      @corpChange="corpChange($event,'mnotify2')"
-                                      @corpFocus="remoteMethod($event,'mnotify2')" >
-                        </search-query>
-                    </el-form-item>
-                    <div style="margin-top: 10px">
-                        <el-form-item label="" prop="mnotify2Details" >
-                            <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.mnotify2Details"
-                                      size="small" autocomplete="off"
-                                      :disabled="detailData.seeDisabled" rows="4"
-                                      clearable placeholder="第二通知人提单描述" ></el-input>
-                        </el-form-item>
-                    </div>
-                </el-col>
             </el-row>
         </el-form>
     </div>

+ 67 - 200
src/views/iosBasicData/AirtransportExport/bills/billsDetails.vue

@@ -8,25 +8,6 @@
                 </el-button>
             </div>
             <div class="add-customer-btn">
-                <!--<el-popover-->
-                <!--    placement="bottom-end"-->
-                <!--    width="100"-->
-                <!--    trigger="hover">-->
-                <!--    <div>-->
-
-                <!--    </div>-->
-
-                <el-dropdown style="line-height: 0">
-                    <el-button size="small" type="success" style="margin-right: 8px"
-                               :loading="saveLoading" :disabled="!form.id" >
-                        发送 EDI<i class="el-icon-arrow-down el-icon--right"></i>
-                    </el-button>
-                    <el-dropdown-menu slot="dropdown">
-                        <el-dropdown-item v-for="item in ediData" :key="item.id"
-                                          @click.native="editypesSendingEdifun(item)">{{item.cnName}}
-                        </el-dropdown-item>
-                    </el-dropdown-menu>
-                </el-dropdown>
 
                 <el-button size="small" style="margin-right: 8px"
                            :loading="saveLoading" @click="previewDialogfun" >预 览
@@ -105,7 +86,7 @@
                                                                   clearable :placeholder="'请输入' + item[0].label" ></el-input>
                                                     </el-form-item>
                                                 </el-col>
-                                                <el-col :span="item[1].span?item[1].span:12">
+                                                <el-col v-if="item[1]" :span="item[1].span?item[1].span:12">
                                                     <el-form-item :label="item[1].label" :prop="item[1].prop" :rules="item[1].rules"
                                                                   :label-width="item[1].labelWidth">
                                                     <span slot="label" v-if="item[1].label">
@@ -223,21 +204,12 @@
                                                              @billsDetailfun="billsDetailfun(form.id)">
                                     </entrustment-lnformation>
                                 </el-tab-pane>
-                                <!--<el-tab-pane label="配箱处理" name="second">-->
-                                <!--    <DistributionBox :assemblyForm="form" :detailData="detailData"-->
-                                <!--                     :pleasereviewType="pleasereviewType"-->
-                                <!--                     @billsDetailfun="billsDetailfun(form.id)">-->
-                                <!--    </DistributionBox>-->
-                                <!--</el-tab-pane>-->
                                 <el-tab-pane label="MB/L信息" name="third">
                                     <mbinformation :assemblyForm="form" :detailData="detailData"></mbinformation>
                                 </el-tab-pane>
                                 <el-tab-pane label="报表管理" name="fourth">
                                     <reports :id="form.id" :assemblyForm="form" :disabled="detailData.seeDisabled" businessValue="KYCK"></reports>
                                 </el-tab-pane>
-                                <el-tab-pane label="EDI CODE" name="sixth">
-                                    <edicode :assemblyForm="form" :detailData="detailData"></edicode>
-                                </el-tab-pane>
                                 <el-tab-pane label="文件中心" name="seventh">
                                     <filescenter :assemblyForm="form" :detailData="detailData"></filescenter>
                                 </el-tab-pane>
@@ -340,7 +312,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
         },
         data() {
             return {
-                ediData:[], // edi 列表数据
                 previewDialog:false, // 预览报表弹窗开启
                 generateBillsfalse:false, // 如果生成账单就禁用
                 pleasereviewType:false, // 如果请核就禁用
@@ -357,7 +328,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     operatorId:JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
                     businessType:'AE', // 业务类型 默认 海运出口
                     billType:'DD', // 单据类型 默认 直单
-                    accDeptName:'',// 核算部门 默认登录人的部门
                     issueType:'正本', // 签单方式 默认 正本
                     mpaymode:'PP', // 主单付费方式 默认PP
                     hpaymode:'PP', // 分单付费方式 默认 PP
@@ -526,12 +496,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                             },
                         ],
                         {
-                            label: "booking NO", // 订舱号
-                            text:"booking NO",
-                            prop: "bookingNo",
-                            disabled:false,
-                        },
-                        {
                             label: "外提单号", // Co-Loader 中文名称  往来单位 类别
                             text:"外提单号",
                             prop: "refno",
@@ -551,43 +515,25 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                                 disabled:true,
                             },
                         ],
-                        [
-                            {
-                                label: "OP",  // 操作id 用户管理下拉 模糊搜索
-                                text:"OP",
-                                prop: "operatorName",
-                                type:'select',
-                                dicData:[],
-                                disabled:false,
-                                forParameter:{
-                                    key:'id',
-                                    label:'name',
-                                    value:'name',
-                                },
-                                rules: [{
-                                    required: true,
-                                    message: " ",
-                                    trigger: "blur"
-                                }]
-                            },
-                            {
-                                label: "核算部门", // 核算部门Id accDept 核算部门 accDeptName 调机构管理接口
-                                text:"核算部门",
-                                prop: "accDeptName",
-                                type:'tree',
-                                dicData:[],
-                                disabled:false,
-                                forParameter:{
-                                    label: "title",
-                                    children:'children'
-                                },
-                                rules: [{
-                                    required: true,
-                                    message: " ",
-                                    trigger: "blur"
-                                }]
+                        {
+                            label: "OP",  // 操作id 用户管理下拉 模糊搜索
+                            text:"OP",
+                            prop: "operatorName",
+                            type:'select',
+                            dicData:[],
+                            disabled:false,
+                            buttonIf:false,
+                            forParameter:{
+                                key:'id',
+                                label:'name',
+                                value:'name',
                             },
-                        ],
+                            rules: [{
+                                required: true,
+                                message: " ",
+                                trigger: "blur"
+                            }]
+                        },
 
                     ]
                 },
@@ -609,10 +555,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                         value:'mblno',
                     },
                     {
-                        name:'booking NO',
-                        value:'bookingNo',
-                    },
-                    {
                         name:'外提单号',
                         value:'refno',
                     },
@@ -629,10 +571,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                         value:'etd',
                     },
                     {
-                        name:'装货港',
-                        value:'polCnName',
-                    },
-                    {
                         name:'目的港',
                         value:'destinationNamePrint',
                     },
@@ -704,33 +642,14 @@ import {editypesList} from "@/api/iosBasicData/editypes";
             this.saberUserInfo = JSON.parse(localStorage.getItem('saber-userInfo')).content
             // 判断是否员id, 有id 就不显示
             if (!this.form.id) {
-                this.deptGetDetailPolfun() // 收货地 装货港 当前登录人的默认
+                this.deptGetDetailPolfun() // 收货地 起运港 当前登录人的默认
                 this.userGetListfun(undefined,true) // 获取用户管理数据
             }
             this.ownDeptLazyTreefun() // 获取公司数据
-            this.getLazylistfun() // 获取审核数据
             this.mpaymodeWorkDictsfun() // 获取 付款方式字典
             this.srcTypeWorkDictsfun()
-            // 获取EDI 数据
-            this.editypesListfun()
         },
         methods:{
-            // 获取EDI列表数据
-            editypesListfun(){
-                editypesList(1,30).then(res=>{
-                    this.ediData = res.data.data.records
-                })
-            },
-            // 发送edi
-            editypesSendingEdifun(row){
-                row.billId = this.form.id
-                this.saveLoading = true
-                editypesSendingEdi(row).then(res=>{
-                    this.saveLoading = false
-                    this.$message.success('操作成功,请去文件中心查看')
-                    this.billsDetailfun(this.form.id) // 详情接口
-                })
-            },
             // 报表弹窗
             previewDialogfun(){
                 this.previewDialog = true
@@ -739,27 +658,27 @@ import {editypesList} from "@/api/iosBasicData/editypes";
             choceScheduleFun() {
                 this.checkScheduleDialog = false
             },
-            // 收货地 装货港 当前登录人的默认
+            // 收货地 起运港 当前登录人的默认
             deptGetDetailPolfun(){
                 deptGetDetailPol(this.saberUserInfo.dept_id).then(res=>{
                     // 收货地
-                    this.form.placeReceiptName = res.data.data.polEnName
-                    this.form.placeReceiptId = res.data.data.polId
-                    this.form.placeReceiptNamePrint = res.data.data.polEnName
-                    // 装货
-                    this.form.polCnName = res.data.data.polCnName
-                    this.form.polEnName = res.data.data.polEnName
-                    this.form.polId = res.data.data.polId
-                    this.form.polNamePrint = res.data.data.polEnName
-                    // 签单地点 默认 装货
-                    this.$set(this.form,'issueAt',this.form.polEnName)
-                    // 主单单付费地点 默认  如果主单付费方式 为PP 取装货港 如果主单付费地点为CC 取卸货港
+                    this.form.placeReceiptName = res.data.data.departureEnName
+                    this.form.placeReceiptId = res.data.data.departureId
+                    this.form.placeReceiptNamePrint = res.data.data.departureEnName
+                    // 起运
+                    this.form.departureCnName = res.data.data.departureCnName
+                    this.form.departureEnName = res.data.data.departureEnName
+                    this.form.departureId = res.data.data.departureId
+                    this.form.departureNamePrint = res.data.data.departureEnName
+                    // 签单地点 默认 起运
+                    this.$set(this.form,'issueAt',this.form.departureEnName)
+                    // 主单单付费地点 默认  如果主单付费方式 为PP 取起运港 如果主单付费地点为CC 取卸货港
                     if (this.form.mpaymode == 'PP') {
-                        this.$set(this.form,'mpayplace',this.form.polEnName)
+                        this.$set(this.form,'mpayplace',this.form.departureEnName)
                     }
-                    // 分单单付费地点 默认  如果分单付费方式 为PP 取装货港 如果分单付费地点为CC 取卸货港
+                    // 分单单付费地点 默认  如果分单付费方式 为PP 取起运港 如果分单付费地点为CC 取卸货港
                     if (this.form.hpaymode == 'PP') {
-                        this.$set(this.form,'hpayplace',this.form.polEnName)
+                        this.$set(this.form,'hpayplace',this.form.departureEnName)
                     }
                 })
             },
@@ -767,15 +686,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
             userGetListfun(account = undefined,type = false,){
                 userGetList(1,10,{account}).then(res=>{
                     this.columnforfun('operatorName').dicData = res.data.data.records
-                    if (type) {
-                        // 核算部门 默认登录人的部门
-                        for (let item of this.columnforfun('operatorName').dicData) {
-                            if (item.name == this.form.operatorName) {
-                                this.$set(this.form,'accDeptName',item.deptName)
-                                this.$set(this.form,'accDeptId',item.deptId)
-                            }
-                        }
-                    }
 
                 })
             },
@@ -789,12 +699,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     console.log(this.columnforfun('hpaymode'),792)
                 })
             },
-            // 获取核算部分数据 // 机构管理接口
-            getLazylistfun(){
-                getDeptTree().then(res=>{
-                    this.columnforfun('accDeptName').dicData = res.data.data
-                })
-            },
             // 获取客户名称数据 往来单位数据
             getBcorpsListfun(cnName){
                 getBcorpsList(1,10,{cnName}).then(res=>{
@@ -883,8 +787,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
             remoteMethod(value,name) {
                 if (name == 'operatorName') {
                     this.userGetListfun(value)
-                }else if (name == 'accDeptName') {
-                    this.getLazylistfun(value)
                 }else if (name == 'corpCnName') {
                     this.getBcorpsListfun(value)
                 }else if (name == 'mPayplace') {
@@ -923,15 +825,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                         }
                     }
                 }
-                else if (name == 'accDeptName') {
-                    // OP 下拉赋值 用户管理列表
-                    for(let item of this.columnforfun('accDeptName').dicData) {
-                        if (item.title == value) {
-                            this.form.accDeptName = item.title
-                            this.form.accDeptId = item.id
-                        }
-                    }
-                }
                 else if (name == 'corpCnName') {
                     if (value) {
                         this.columnforfun('corpAttnName').disabled = false
@@ -1053,20 +946,10 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                 else if (name == 'mpaymode') {
                     // 主单付费方式
                     this.form[name] = value
-                    if (value == 'PP') {
-                        this.$set(this.form,'mpayplace',this.form.polEnName?this.form.polEnName.split(' - ')[0]:'')
-                    }else {
-                        this.$set(this.form,'mpayplace',this.form.podEnName?this.form.podEnName.split(' - ')[0]:'')
-                    }
                 }
                 else if (name == 'hpaymode') {
                     // 分单付费方式
                     this.form[name] = value
-                    if (value == 'PP') {
-                        this.$set(this.form,'hpayplace',this.form.polEnName.split(' - ')[0])
-                    }else {
-                        this.$set(this.form,'hpayplace',this.form.podEnName.split(' - ')[0])
-                    }
                 }
                 else {
                     this.form[name] = value
@@ -1305,14 +1188,13 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     row.hblno = this.form.hblno // HB/L NO
                     row.etd = this.form.etd // 开船日期
                     row.eta = this.form.eta // 到港日期
-                    row.polId = this.form.polId // 装货港 id
-                    row.polCode = this.form.polCode // 装货港代码
-                    row.polCnName = this.form.polCnName // 装货港中文名称
-                    row.polEnName = this.form.polEnName // 装货港英文名称
+                    row.departureId = this.form.departureId // 起运港 id
+                    row.departureCode = this.form.departureCode // 起运港代码
+                    row.departureCnName = this.form.departureCnName // 起运港中文名称
+                    row.departureEnName = this.form.departureEnName // 起运港英文名称
                     row.podId = this.form.podId // 卸货港 id
                     row.podCode = this.form.podCode // 卸货港代码
                     row.podCnName = this.form.podCnName // 卸货港中文名称
-                    row.podEnName = this.form.podEnName // 卸货港英文名称
                     row.corpArgreementNo = this.form.corpArgreementNo // 客户约号
                     // 数量 * 单价 = 净额
                     // 总税率 = 税率 + 附件税率
@@ -1352,14 +1234,13 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     row.hblno = this.form.hblno // HB/L NO
                     row.etd = this.form.etd // 开船日期
                     row.eta = this.form.eta // 到港日期
-                    row.polId = this.form.polId // 装货港 id
-                    row.polCode = this.form.polCode // 装货港代码
-                    row.polCnName = this.form.polCnName // 装货港中文名称
-                    row.polEnName = this.form.polEnName // 装货港英文名称
+                    row.departureId = this.form.departureId // 起运港 id
+                    row.departureCode = this.form.departureCode // 起运港代码
+                    row.departureCnName = this.form.departureCnName // 起运港中文名称
+                    row.departureEnName = this.form.departureEnName // 起运港英文名称
                     row.podId = this.form.podId // 卸货港 id
                     row.podCode = this.form.podCode // 卸货港代码
                     row.podCnName = this.form.podCnName // 卸货港中文名称
-                    row.podEnName = this.form.podEnName // 卸货港英文名称
                     row.corpArgreementNo = this.form.corpArgreementNo // 客户约号
                     // 数量 * 单价 = 净额
                     // 总税率 = 税率 + 附件税率
@@ -1409,7 +1290,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                             this.columnforfun('corpCnName').disabled = true
                             this.columnforfun('srcType').disabled = true
                             this.columnforfun('mblno').disabled = true
-                            this.columnforfun('bookingNo').disabled = true
                             this.columnforfun('refno').disabled = true
                             this.generateBillsfalse = true
                         }
@@ -1434,7 +1314,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                             this.columnforfun('corpCnName').disabled = true
                             this.columnforfun('srcType').disabled = true
                             this.columnforfun('mblno').disabled = true
-                            this.columnforfun('bookingNo').disabled = true
                             this.columnforfun('refno').disabled = true
                         }
                         if (item.curCode == 'CNY') {
@@ -1470,7 +1349,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     this.columnforfun('corpCnName').disabled = true
                     this.columnforfun('srcType').disabled = true
                     this.columnforfun('mblno').disabled = true
-                    this.columnforfun('bookingNo').disabled = true
                     this.columnforfun('refno').disabled = true
                     this.generateBillsfalse = true
                     this.pleasereviewType = true // 请核禁用
@@ -1479,7 +1357,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     this.columnforfun('corpCnName').disabled = false
                     this.columnforfun('srcType').disabled = false
                     this.columnforfun('mblno').disabled = false
-                    this.columnforfun('bookingNo').disabled = false
                     this.columnforfun('refno').disabled = false
                     this.generateBillsfalse = false
                     this.pleasereviewType = false
@@ -1504,7 +1381,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                         this.columnforfun('corpCnName').disabled = true
                         this.columnforfun('srcType').disabled = true
                         this.columnforfun('mblno').disabled = true
-                        this.columnforfun('bookingNo').disabled = true
                         this.columnforfun('refno').disabled = true
                         this.generateBillsfalse = true
                     }
@@ -1529,7 +1405,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                         this.columnforfun('corpCnName').disabled = true
                         this.columnforfun('srcType').disabled = true
                         this.columnforfun('mblno').disabled = true
-                        this.columnforfun('bookingNo').disabled = true
                         this.columnforfun('refno').disabled = true
                     }
                     if (item.curCode == 'CNY') {
@@ -1590,10 +1465,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                 if (this.form.hnotifyCnName) {
                     this.form.hnotifyCnName = this.form.hnotifyCnName.split(' - ')[0]
                 }
-                // 第二通知人
-                if (this.form.hnotify2CnName) {
-                    this.form.hnotify2CnName = this.form.hnotify2CnName.split(' - ')[0]
-                }
                 // COLOADER
                 if (this.form.coloaderCnName) {
                     this.form.coloaderCnName = this.form.coloaderCnName.split(' - ')[0]
@@ -1607,25 +1478,25 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     this.form.placeReceiptName = this.form.placeReceiptName.split(' - ')[0]
                     this.form.placeReceiptNamePrint = this.form.placeReceiptNamePrint.split(' - ')[0]
                 }
-                // 装货
-                if (this.form.polEnName) {
-                    this.form.polEnName = this.form.polEnName.split(' - ')[0]
-                    this.form.polNamePrint = this.form.polNamePrint.split(' - ')[0]
+                // 起运
+                if (this.form.departureEnName) {
+                    this.form.departureEnName = this.form.departureEnName.split(' - ')[0]
+                    this.form.departureNamePrint = this.form.departureNamePrint.split(' - ')[0]
                 }
-                // 卸货港
-                if (this.form.podEnName) {
-                    this.form.podEnName = this.form.podEnName.split(' - ')[0]
-                    this.form.podNamePrint = this.form.podNamePrint.split(' - ')[0]
+                // 起运地
+                if (this.form.departureAddrEnName) {
+                    this.form.departureAddrEnName = this.form.departureAddrEnName.split(' - ')[0]
+                    this.form.departureAddrNamePrint = this.form.departureAddrNamePrint.split(' - ')[0]
                 }
                 // 目的地
                 if (this.form.destinationName) {
                     this.form.destinationName = this.form.destinationName.split(' - ')[0]
                     this.form.destinationNamePrint = this.form.destinationNamePrint.split(' - ')[0]
                 }
-                // 交货
-                if (this.form.placeDeliveryName) {
-                    this.form.placeDeliveryName = this.form.placeDeliveryName.split(' - ')[0]
-                    this.form.placeDeliveryNamePrint = this.form.placeDeliveryNamePrint.split(' - ')[0]
+                // 目的
+                if (this.form.finalDestinationName) {
+                    this.form.finalDestinationName = this.form.finalDestinationName.split(' - ')[0]
+                    this.form.finalDestinationNamePrint = this.form.finalDestinationNamePrint.split(' - ')[0]
                 }
                 // 中转港
                 if (this.form.potEnName) {
@@ -1656,10 +1527,6 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                 if (this.form.hnotifyCnName) {
                     this.form.hnotifyCnName = this.form.hnotifyCnName + ' - ' + this.form.hnotifyCode
                 }
-                // 第二通知人
-                if (this.form.hnotify2CnName) {
-                    this.form.hnotify2CnName = this.form.hnotify2CnName + ' - ' + this.form.hnotify2Code
-                }
                 // COLOADER
                 if (this.form.coloaderCnName) {
                     let corpType = '1712285382575398914,1712285645314990082,1712285842321448962,1712286433378574338'
@@ -1680,25 +1547,25 @@ import {editypesList} from "@/api/iosBasicData/editypes";
                     this.form.placeReceiptName = this.form.placeReceiptName + ' - ' + this.form.placeReceiptCode
                     this.form.placeReceiptNamePrint = this.form.placeReceiptNamePrint + ' - ' + this.form.placeReceiptCode
                 }
-                // 装货
-                if (this.form.polEnName) {
-                    this.form.polEnName = this.form.polEnName + ' - ' + this.form.polCode
-                    this.form.polNamePrint = this.form.polNamePrint + ' - ' + this.form.polCode
+                // 起运
+                if (this.form.departureEnName) {
+                    this.form.departureEnName = this.form.departureEnName + ' - ' + this.form.departureCode
+                    this.form.departureNamePrint = this.form.departureNamePrint + ' - ' + this.form.departureCode
                 }
-                // 卸货港
-                if (this.form.podEnName) {
-                    this.form.podEnName = this.form.podEnName + ' - ' + this.form.podCode
-                    this.form.podNamePrint = this.form.podNamePrint + ' - ' + this.form.podCode
+                // 起运地
+                if (this.form.departureAddrEnName) {
+                    this.form.departureAddrEnName = this.form.departureAddrEnName + ' - ' + this.form.departureAddrCode
+                    this.form.departureAddrNamePrint = this.form.departureAddrNamePrint + ' - ' + this.form.departureAddrCode
                 }
                 // 目的地
                 if (this.form.destinationName) {
                     this.form.destinationName = this.form.destinationName + ' - ' + this.form.destinationCode
                     this.form.destinationNamePrint = this.form.destinationNamePrint + ' - ' + this.form.destinationCode
                 }
-                // 交货地
-                if (this.form.placeDeliveryName) {
-                    this.form.placeDeliveryName = this.form.placeDeliveryName + ' - ' + this.form.placeDeliveryCode
-                    this.form.placeDeliveryNamePrint = this.form.placeDeliveryNamePrint + ' - ' + this.form.placeDeliveryCode
+                // 目的港
+                if (this.form.finalDestinationName) {
+                    this.form.finalDestinationName = this.form.finalDestinationName + ' - ' + this.form.finalDestinationCode
+                    this.form.finalDestinationNamePrint = this.form.finalDestinationNamePrint + ' - ' + this.form.finalDestinationCode
                 }
                 // 中转港
                 if (this.form.potEnName) {

+ 1 - 32
src/views/iosBasicData/AirtransportExport/bills/index.vue

@@ -319,50 +319,35 @@
               </template>
 
               <template slot="menuLeft">
-                  <el-button type="primary" size="small" icon="el-icon-plus" @click="addbtnfun()">新建业务
+                  <el-button type="primary" size="small" @click="addbtnfun()">新建业务
                   </el-button>
                   <el-button type="primary"
                              size="small"
-                             icon="el-icon-delete"
                              plain @click="CopyDocumentsfun">复制单据
                   </el-button>
                   <el-button type="success"
                              size="small"
-                             icon="el-icon-plus"
                              plain
                              @click="increaseMawb">分单->主单
                   </el-button>
                   <el-button type="warning"
                              size="small"
-                             icon="el-icon-delete"
                              plain
                              v-if="query.billStatus == 0"
                              @click="Disembarkingfun">退 舱
                   </el-button>
                   <el-button type="primary"
                              size="small"
-                             icon="el-icon-delete"
                              plain
                              v-if="query.billStatus == 1"
                              @click="revokeWithdrawalfun" >撤销退舱
                   </el-button>
                   <el-button type="danger"
                              size="small"
-                             icon="el-icon-delete"
                              plain
                              v-if="query.billStatus != 3"
                              @click="handleDelete">删 除
                   </el-button>
-                  <el-dropdown style="line-height: 0">
-                      <el-button size="small" type="success" style="margin-right: 8px" :disabled="selectionList.length == 0" >
-                          发送 EDI<i class="el-icon-arrow-down el-icon--right"></i>
-                      </el-button>
-                      <el-dropdown-menu slot="dropdown">
-                          <el-dropdown-item v-for="item in ediData" :key="item.id"
-                                            @click.native="editypesSendingEdifun(item)" >{{item.cnName}}
-                          </el-dropdown-item>
-                      </el-dropdown-menu>
-                  </el-dropdown>
                   <div style="margin-top: 10px">
                       <el-tabs type="card" v-model="query.billStatus" @tab-click="handleClick">
                           <el-tab-pane label="接单" name="0">
@@ -473,7 +458,6 @@ import { getDeptTree } from "@/api/system/dept";
     components:{TreeSelect, SearchQuery, feesTemplateItems, billsDetails,SplitList},
     data() {
       return {
-          ediData:[], // 获取的 edi 数据
           // 展开和收回
           fold:false,
           maxShow:3,
@@ -1129,23 +1113,8 @@ import { getDeptTree } from "@/api/system/dept";
           this.accountStatusWorkDictsfun()
           this.getWorkDictsfun() // 获取签单方式字典数据
           this.statusWorkDictsfun() // 业务审核类型
-          this.editypesListfun() // edi 数据获取
       },
       methods: {
-          // 发送EDI
-          editypesSendingEdifun(row){
-              row.billId = this.ids
-              editypesSendingEdi(row).then(res=>{
-                  this.$message.success('发送EDI成功')
-                  this.onLoad(this.page)
-              })
-          },
-          // 获取EDI列表数据
-          editypesListfun(){
-              editypesList(1,30,{type:'KYCK'}).then(res=>{
-                  this.ediData = res.data.data.records
-              })
-          },
         // 展开和收起
           shiftCollapsiable(){
               this.fold = !this.fold