Browse Source

货代海运出口下拉换成聚焦掉调接口10.26

caojunjie 1 year ago
parent
commit
c43349177d

+ 6 - 1
src/components/iosbasic-data/searchquery.vue

@@ -8,7 +8,8 @@
                            :remote="remote" :remote-method="remoteMethod"
                            :multiple="multiple" :collapse-tags="collapseTags"
                            :disabled="disabled"
-                           @change="corpChange" >
+                           @change="corpChange"
+                           @focus="corpFocus">
                     <el-option
                         v-for="item in datalist"
                         :key="item[forParameter.key]"
@@ -127,6 +128,10 @@
             },
         },
         methods:{
+            // 聚焦事件
+            corpFocus(){
+                this.$emit('corpFocus')
+            },
             // 下拉change
             corpChange(value) {
                 this.$emit('corpChange',value)

+ 1 - 20
src/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/containers.vue

@@ -12,11 +12,7 @@
                @row-update="rowUpdate"
                @row-save="rowSave"
                @row-del="rowDel"
-               @search-change="searchChange"
-               @search-reset="searchReset"
                @selection-change="selectionChange"
-               @current-change="currentChange"
-               @size-change="sizeChange"
                @refresh-change="refreshChange">
       <template slot="menuLeft">
         <div style="display: flex;align-items: center;justify-content: space-between">
@@ -378,16 +374,7 @@ import fa from "element-ui/src/locale/lang/fa";
         }
         done();
       },
-      searchReset() {
-        this.query = {};
-        this.onLoad(this.page);
-      },
-      searchChange(params, done) {
-        this.query = params;
-        this.page.currentPage = 1;
-        this.onLoad(this.page, params);
-        done();
-      },
+      // 当选择项发生变化时会触发该事件
       selectionChange(list) {
           let arr = []
           if (list.length > 1) {
@@ -404,12 +391,6 @@ import fa from "element-ui/src/locale/lang/fa";
         this.selectionList = [];
         this.$refs.crud.toggleSelection();
       },
-      currentChange(currentPage){
-        this.page.currentPage = currentPage;
-      },
-      sizeChange(pageSize){
-        this.page.pageSize = pageSize;
-      },
       refreshChange() {
           console.log('刷新')
         // this.onLoad(this.page, this.query);

+ 57 - 40
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation.vue

@@ -16,7 +16,8 @@
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                                   @remoteMethod="remoteMethod($event,'hShipper')"
-                                                  @corpChange="corpChange($event,'hShipper')" >
+                                                  @corpChange="corpChange($event,'hShipper')"
+                                                  @corpFocus="remoteMethod($event,'hShipper')">
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
@@ -48,7 +49,8 @@
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                                   @remoteMethod="remoteMethod($event,'hConsignee')"
-                                                  @corpChange="corpChange($event,'hConsignee')" >
+                                                  @corpChange="corpChange($event,'hConsignee')"
+                                                  @corpFocus="remoteMethod($event,'hConsignee')">
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
@@ -80,7 +82,8 @@
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                                   @remoteMethod="remoteMethod($event,'hNotify')"
-                                                  @corpChange="corpChange($event,'hNotify')" >
+                                                  @corpChange="corpChange($event,'hNotify')"
+                                                  @corpFocus="remoteMethod($event,'hNotify')">
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
@@ -131,7 +134,8 @@
                                                   :buttonIf="false"
                                                   :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                                   @remoteMethod="remoteMethod($event,'commodity')"
-                                                  @corpChange="corpChange($event,'commodity')" >
+                                                  @corpChange="corpChange($event,'commodity')"
+                                                  @corpFocus="remoteMethod($event,'commodity')">
                                     </search-query>
                                 </el-col>
                                 <el-col :span="7">
@@ -160,7 +164,8 @@
                                                   :disabled="detailData.seeDisabled"
                                                   :buttonIf="false"
                                                   @remoteMethod="remoteMethod($event,'cargoType')"
-                                                  @corpChange="corpChange($event,'cargoType')" >
+                                                  @corpChange="corpChange($event,'cargoType')"
+                                                  @corpFocus="remoteMethod($event,'cargoType')" >
                                     </search-query>
                                 </el-col>
                                 <el-col :span="5">
@@ -197,7 +202,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'carrier')"
-                                      @corpChange="corpChange($event,'carrier')" >
+                                      @corpChange="corpChange($event,'carrier')"
+                                      @corpFocus="remoteMethod($event,'carrier')" >
                         </search-query>
                     </el-form-item>
                     <el-form-item label="船公司约号" prop="carrierArgreementNo" >
@@ -217,7 +223,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="remoteMethod($event,'vessel')"
-                                          @corpChange="corpChange($event,'vessel')" >
+                                          @corpChange="corpChange($event,'vessel')"
+                                          @corpFocus="remoteMethod($event,'vessel')" >
                             </search-query>
                         </el-form-item>
                         <el-form-item label="航次" prop="voyageNo" label-width="80px"  >
@@ -275,7 +282,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'packingUnit')"
-                                              @corpChange="corpChange($event,'packingUnit')" >
+                                              @corpChange="corpChange($event,'packingUnit')"
+                                              @corpFocus="remoteMethod($event,'packingUnit')" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -315,7 +323,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'placeReceipt')"
-                                              @corpChange="corpChange($event,'placeReceipt')" >
+                                              @corpChange="corpChange($event,'placeReceipt')"
+                                              @corpFocus="remoteMethod($event,'placeReceipt')" >
                                 </search-query>
                             </el-col>
                             <el-col :span="7">
@@ -339,7 +348,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'pol')"
-                                              @corpChange="corpChange($event,'pol')" >
+                                              @corpChange="corpChange($event,'pol')"
+                                              @corpFocus="remoteMethod($event,'pol')" >
                                 </search-query>
                             </el-col>
                             <el-col :span="7">
@@ -363,7 +373,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'pod')"
-                                              @corpChange="corpChange($event,'pod')" >
+                                              @corpChange="corpChange($event,'pod')"
+                                              @corpFocus="remoteMethod($event,'pod')" >
                                 </search-query>
                             </el-col>
                             <el-col :span="7">
@@ -387,7 +398,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'destination')"
-                                              @corpChange="corpChange($event,'destination')" >
+                                              @corpChange="corpChange($event,'destination')"
+                                              @corpFocus="remoteMethod($event,'destination')" >
                                 </search-query>
                             </el-col>
                             <el-col :span="7">
@@ -411,7 +423,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'placeDelivery')"
-                                              @corpChange="corpChange($event,'placeDelivery')" >
+                                              @corpChange="corpChange($event,'placeDelivery')"
+                                              @corpFocus="remoteMethod($event,'placeDelivery')" >
                                 </search-query>
                             </el-col>
                             <el-col :span="7">
@@ -454,7 +467,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="remoteMethod($event,'bookingAgent')"
-                                          @corpChange="corpChange($event,'bookingAgent')" >
+                                          @corpChange="corpChange($event,'bookingAgent')"
+                                          @corpFocus="remoteMethod($event,'bookingAgent')">
                             </search-query>
                         </el-col>
                         <el-col :span="16">
@@ -484,7 +498,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'line')"
-                                              @corpChange="corpChange($event,'line')" >
+                                              @corpChange="corpChange($event,'line')"
+                                              @corpFocus="remoteMethod($event,'line')" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -520,7 +535,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'hNotify2')"
-                                              @corpChange="corpChange($event,'hNotify2')" >
+                                              @corpChange="corpChange($event,'hNotify2')"
+                                              @corpFocus="remoteMethod($event,'hNotify2')" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -710,28 +726,28 @@ import {blinesList} from "@/api/iosBasicData/blines";
             }
         },
         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()
+            // // 往来单位
+            // 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:{
             // 详情接口
@@ -875,8 +891,9 @@ import {blinesList} from "@/api/iosBasicData/blines";
                         }
                     }
                 }
-
-                else {}
+                else {
+                    this.$set(this.assemblyForm,'cargoType',value)
+                }
             },
             // 通知人添加第二个通知人弹窗
             hNotifyClick(){

+ 9 - 40
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue

@@ -11,13 +11,8 @@
                @row-update="rowUpdate"
                @row-save="rowSave"
                @row-del="rowDel"
-               @search-change="searchChange"
-               @search-reset="searchReset"
                @selection-change="selectionChange"
-               @current-change="currentChange"
-               @size-change="sizeChange"
-               @refresh-change="refreshChange"
-               @on-load="onLoad">
+               @refresh-change="refreshChange">
       <template slot="menuLeft">
         <el-button type="danger"
                    size="small"
@@ -36,7 +31,8 @@
                           :buttonIf="false"
                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                           @remoteMethod="remoteMethod($event,'cntrTypeCode')"
-                          @corpChange="corpChange($event,row)" >
+                          @corpChange="corpChange($event,row)"
+                          @corpFocus="remoteMethod($event,'cntrTypeCode')" >
             </search-query>
         </template>
     </avue-crud>
@@ -62,7 +58,7 @@
           cntrTypeCodeData:[],
         form: {},
         query: {},
-        loading: true,
+        loading: false,
         page: {
           pageSize: 10,
           currentPage: 1,
@@ -243,7 +239,7 @@
       }
     },
       created() {
-          this.bcntrtypesListfun()
+          // this.bcntrtypesListfun()
       },
       methods: {
         // 选择框的回调
@@ -269,7 +265,6 @@
       rowSave(row, done, loading) {
           row.pid = this.pid
         precontainersSubmit(row).then(() => {
-          this.onLoad(this.page);
           this.$message({
             type: "success",
             message: "操作成功!"
@@ -289,7 +284,6 @@
                   type: "warning"
               }).then(()=>{
                   precontainersSubmit(row).then(()=>{
-                      this.onLoad(this.page);
                       this.$message({
                           type: "success",
                           message: "操作成功!"
@@ -325,11 +319,11 @@
             return precontainersRemove(row.id);
           })
           .then(() => {
-            this.onLoad(this.page);
             this.$message({
               type: "success",
               message: "操作成功!"
             });
+            this.$emit('billsDetailfun')
           });
       },
       handleDelete() {
@@ -346,11 +340,11 @@
             return precontainersRemove(this.ids);
           })
           .then(() => {
-            this.onLoad(this.page);
             this.$message({
               type: "success",
               message: "操作成功!"
             });
+            this.$emit('billsDetailfun')
             this.$refs.crud.toggleSelection();
           });
       },
@@ -362,16 +356,6 @@
         }
         done();
       },
-      searchReset() {
-        this.query = {};
-        this.onLoad(this.page);
-      },
-      searchChange(params, done) {
-        this.query = params;
-        this.page.currentPage = 1;
-        this.onLoad(this.page, params);
-        done();
-      },
       selectionChange(list) {
         this.selectionList = list;
       },
@@ -379,25 +363,10 @@
         this.selectionList = [];
         this.$refs.crud.toggleSelection();
       },
-      currentChange(currentPage){
-        this.page.currentPage = currentPage;
-      },
-      sizeChange(pageSize){
-        this.page.pageSize = pageSize;
-      },
       refreshChange() {
-        this.onLoad(this.page, this.query);
+          console.log('刷新')
       },
-      onLoad(page, params = {}) {
-        this.loading = true;
-        precontainersList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
-          const data = res.data.data;
-          this.page.total = data.total;
-          this.data = data.records;
-          this.loading = false;
-          this.selectionClear();
-        });
-      }
+
     }
   };
 </script>

+ 107 - 47
src/views/iosBasicData/SeafreightExportF/bills/assembly/feecenter.vue

@@ -1,13 +1,75 @@
 <template>
     <div>
-        <!--<div>-->
-        <!--    <el-form :model="assemblyForm" ref="form" label-width="90px" class="demo-ruleForm">-->
-        <!--        <el-row>-->
-        <!--            <el-col :span="6">-->
-        <!--            </el-col>-->
-        <!--        </el-row>-->
-        <!--    </el-form>-->
-        <!--</div>-->
+        <div>
+            <el-form :model="assemblyForm" ref="form" label-width="90px" class="demo-ruleForm">
+                <el-row :gutter="20">
+                    <el-col :span="6">
+                        <el-form-item label="客户名称" prop="corpCnName" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.corpCnName"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="客户名称" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="MB/L NO" prop="mblno" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.mblno"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="MB/L NO" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="HB/L NO" prop="hblno" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.hblno"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="MB/L NO" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="船名" prop="vesselCnName" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.vesselCnName"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="船名" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="航次" prop="voyageNo" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.voyageNo"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="航次" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="ETD" prop="etd" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.etd"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="ETD" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="箱型" prop="cntrTypeCode" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.cntrTypeCode"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="箱型" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="6">
+                        <el-form-item label="箱量" prop="quantity" >
+                            <el-input type="age" style="width: 100%;" v-model="assemblyForm.quantity"
+                                      size="small" autocomplete="off"
+                                      disabled
+                                      clearable placeholder="箱量" ></el-input>
+                        </el-form-item>
+                    </el-col>
+                </el-row>
+            </el-form>
+        </div>
 
 
         <el-card class="box-card">
@@ -26,19 +88,19 @@
                         inactive-color="#949494">
                     </el-switch>
                 </el-col>
-                <el-col :span="6">
-                    <div class="disabledBox">
-                        <span style="font-size: 14px;margin-right: 5px">签单方式</span>
-                        <el-select v-model="value" placeholder="请选择" size="small" >
-                            <el-option
-                                v-for="item in issuetypefData"
-                                :key="item.dictKey"
-                                :label="item.dictValue"
-                                :value="item.dictValue">
-                            </el-option>
-                        </el-select>
-                    </div>
-                </el-col>
+                <!--<el-col :span="6">-->
+                <!--    <div class="disabledBox">-->
+                <!--        <span style="font-size: 14px;margin-right: 5px">签单方式</span>-->
+                <!--        <el-select v-model="value" placeholder="请选择" size="small" >-->
+                <!--            <el-option-->
+                <!--                v-for="item in issuetypefData"-->
+                <!--                :key="item.dictKey"-->
+                <!--                :label="item.dictValue"-->
+                <!--                :value="item.dictValue">-->
+                <!--            </el-option>-->
+                <!--        </el-select>-->
+                <!--    </div>-->
+                <!--</el-col>-->
                 <el-col :span="8">
                     <el-button type="success" plain size="small">应收账单</el-button>
                     <el-button type="primary" plain size="small">应付账单</el-button>
@@ -74,7 +136,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="getBcorpsListfun($event,'corpCnName')"
-                                          @corpChange="corpChange($event,'corpCnName',row)" >
+                                          @corpChange="corpChange($event,'corpCnName',row)"
+                                          @corpFocus="getRateListfun($event,'corpCnName')" >
                             </search-query>
                             <span v-else>{{row.corpCnName}}</span>
                         </template>
@@ -92,7 +155,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="bfeesListfun($event,'feeCnName')"
-                                          @corpChange="corpChange($event,'feeCnName',row)" >
+                                          @corpChange="corpChange($event,'feeCnName',row)"
+                                          @corpFocus="getRateListfun($event,'feeCnName')" >
                             </search-query>
                             <span v-else>{{row.feeCnName}}</span>
                         </template>
@@ -125,7 +189,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="bfeesListfun($event,'unitNo')"
-                                          @corpChange="corpChange($event,'unitNo',row)" >
+                                          @corpChange="corpChange($event,'unitNo',row)"
+                                          @corpFocus="getRateListfun($event,'unitNo')" >
                             </search-query>
                             <span v-else>{{row.unitNo}}</span>
                         </template>
@@ -161,7 +226,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="getRateListfun($event,'curCode')"
-                                          @corpChange="corpChange($event,'curCode',row)" >
+                                          @corpChange="corpChange($event,'curCode',row)"
+                                          @corpFocus="getRateListfun($event,'curCode')" >
                             </search-query>
                             <span v-else>{{row.curCode}}</span>
                         </template>
@@ -226,19 +292,6 @@
                         inactive-color="#949494">
                     </el-switch>
                 </el-col>
-                <el-col :span="6">
-                    <div class="disabledBox">
-                        <!--<span style="font-size: 14px;margin-right: 5px">箱量</span>-->
-                        <!--<el-select v-model="value" placeholder="请选择" size="small" >-->
-                        <!--    <el-option-->
-                        <!--        v-for="item in issuetypefData"-->
-                        <!--        :key="item.dictKey"-->
-                        <!--        :label="item.dictValue"-->
-                        <!--        :value="item.dictValue">-->
-                        <!--    </el-option>-->
-                        <!--</el-select>-->
-                    </div>
-                </el-col>
                 <el-col :span="8">
                     <el-button type="success" plain size="small">应付模板</el-button>
                 </el-col>
@@ -269,7 +322,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="getBcorpsListfun($event,'corpCnName')"
-                                          @corpChange="corpChange($event,'corpCnName',row)" >
+                                          @corpChange="corpChange($event,'corpCnName',row)"
+                                          @corpFocus="getRateListfun($event,'corpCnName')"  >
                             </search-query>
                             <span v-else>{{row.corpCnName}}</span>
                         </template>
@@ -287,7 +341,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="bfeesListfun($event,'feeCnName')"
-                                          @corpChange="corpChange($event,'feeCnName',row)" >
+                                          @corpChange="corpChange($event,'feeCnName',row)"
+                                          @corpFocus="getRateListfun($event,'feeCnName')" >
                             </search-query>
                             <span v-else>{{row.feeCnName}}</span>
                         </template>
@@ -320,7 +375,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="bfeesListfun($event,'unitNo')"
-                                          @corpChange="corpChange($event,'unitNo',row)" >
+                                          @corpChange="corpChange($event,'unitNo',row)"
+                                          @corpFocus="getRateListfun($event,'unitNo')" >
                             </search-query>
                             <span v-else>{{row.unitNo}}</span>
                         </template>
@@ -356,7 +412,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="getRateListfun($event,'curCode')"
-                                          @corpChange="corpChange($event,'curCode',row)" >
+                                          @corpChange="corpChange($event,'curCode',row)"
+                                          @corpFocus="getRateListfun($event,'curCode')">
                             </search-query>
                             <span v-else>{{row.curCode}}</span>
                         </template>
@@ -517,11 +574,11 @@
             }
         },
         created() {
-            this.getBcorpsListfun()
-            this.bfeesListfun()
-            this.getBunitsListfun()
-            this.getRateListfun()
-            this.getWorkDictsfun()
+            // this.getBcorpsListfun()
+            // this.bfeesListfun()
+            // this.getBunitsListfun()
+            // this.getRateListfun()
+            // this.getWorkDictsfun()
         },
         methods:{
             // 应收新增
@@ -788,4 +845,7 @@
         font-weight: 500;
         margin: 3px 0;
     }
+    ::v-deep.el-form-item {
+        margin-bottom: 4px;
+    }
 </style>

+ 10 - 4
src/views/iosBasicData/SeafreightExportF/bills/assembly/formbottom.vue

@@ -14,7 +14,8 @@
                                           :buttonIf="false"
                                           :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                           @remoteMethod="remoteMethod($event,'cy')"
-                                          @corpChange="corpChange($event,'cy')" >
+                                          @corpChange="corpChange($event,'cy')"
+                                          @corpFocus="remoteMethod($event, 'cy')" >
                             </search-query>
                         </el-form-item>
                     </el-col>
@@ -110,7 +111,8 @@
                                       :disabled="detailData.seeDisabled"
                                       :buttonIf="false"
                                       @remoteMethod="remoteMethod($event,'serviceTerms')"
-                                      @corpChange="corpChange($event,'serviceTerms')" >
+                                      @corpChange="corpChange($event,'serviceTerms')"
+                                      @corpFocus="remoteMethod($event, 'serviceTerms')" >
                         </search-query>
                     </el-form-item>
                 </el-col>
@@ -175,7 +177,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,`inttra${inttraTitle}`)"
-                                              @corpChange="corpChange($event,`inttra${inttraTitle}`)" >
+                                              @corpChange="corpChange($event,`inttra${inttraTitle}`)"
+                                              @corpFocus="remoteMethod($event,`inttra${inttraTitle}`)" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -254,13 +257,16 @@
             }
         },
         created() {
-            this.cyBcorpslistByType()
+            // this.cyBcorpslistByType()
         },
         methods:{
             // 远程搜索
             remoteMethod(value,name){
+                let inttraArr = ['inttraDoorTo','inttraToDoor']
                 if (name == 'cy') {
                     this.cyBcorpslistByType(value)
+                }else if (inttraArr.indexOf(name) != -1) {
+                    this.inttraBcorpslistByType(value)
                 }else {}
             },
             // 选择框的回调

+ 29 - 21
src/views/iosBasicData/SeafreightExportF/bills/assembly/mbinformation.vue

@@ -21,7 +21,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'vessel')"
-                                              @corpChange="corpChange($event,'vessel')" >
+                                              @corpChange="corpChange($event,'vessel')"
+                                              @corpFocus="remoteMethod($event,'vessel')" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -44,7 +45,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'carrier')"
-                                      @corpChange="corpChange($event,'carrier')" >
+                                      @corpChange="corpChange($event,'carrier')"
+                                      @corpFocus="remoteMethod($event,'carrier')" >
                         </search-query>
                     </el-form-item>
                     <el-form-item label="订舱代理" prop="bookingAgentCnName" >
@@ -57,7 +59,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'bookingAgent')"
-                                      @corpChange="corpChange($event,'bookingAgent')" >
+                                      @corpChange="corpChange($event,'bookingAgent')"
+                                      @corpFocus="remoteMethod($event,'bookingAgent')" >
                         </search-query>
                     </el-form-item>
                     <el-form-item label="订舱备注" prop="bookingRemarks" >
@@ -118,7 +121,8 @@
                                               :buttonIf="false"
                                               :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                               @remoteMethod="remoteMethod($event,'line')"
-                                              @corpChange="corpChange($event,'line')" >
+                                              @corpChange="corpChange($event,'line')"
+                                              @corpFocus="remoteMethod($event,'line')" >
                                 </search-query>
                             </el-form-item>
                         </el-col>
@@ -155,7 +159,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'mShipper')"
-                                      @corpChange="corpChange($event,'mShipper')" >
+                                      @corpChange="corpChange($event,'mShipper')"
+                                      @corpFocus="remoteMethod($event,'mShipper')" >
                         </search-query>
                     </el-form-item>
                     <div style="margin-top: 10px">
@@ -178,7 +183,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'mConsignee')"
-                                      @corpChange="corpChange($event,'mConsignee')" >
+                                      @corpChange="corpChange($event,'mConsignee')"
+                                      @corpFocus="remoteMethod($event,'mConsignee')" >
                         </search-query>
                     </el-form-item>
                     <div style="margin-top: 10px">
@@ -201,7 +207,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'mNotify')"
-                                      @corpChange="corpChange($event,'mNotify')" >
+                                      @corpChange="corpChange($event,'mNotify')"
+                                      @corpFocus="remoteMethod($event,'mNotify')" >
                         </search-query>
                     </el-form-item>
                     <div style="margin-top: 10px">
@@ -224,7 +231,8 @@
                                       :buttonIf="false"
                                       :forParameter="{key:'id',label:'cnName',value:'cnName'}"
                                       @remoteMethod="remoteMethod($event,'mNotify2')"
-                                      @corpChange="corpChange($event,'mNotify2')" >
+                                      @corpChange="corpChange($event,'mNotify2')"
+                                      @corpFocus="remoteMethod($event,'mNotify2')" >
                         </search-query>
                     </el-form-item>
                     <div style="margin-top: 10px">
@@ -261,7 +269,7 @@
             return {
                 vesselData:[], // 船名数据
                 carrierData:[], // 船公司
-                lineCnNameData:[], // 航线
+                lineData:[], // 航线
                 bookingAgentData:[], // 订舱代理
 
                 // MB/L 发货人
@@ -275,18 +283,18 @@
             }
         },
         created() {
-            this.vesselBvesselsListfun()
-            this.carrierBcorpsListfun()
-            this.lineblinesListfun()
-            this.bookingAgentBcorpsListfun()
-            // MB/L 发货人
-            this.mShipperBcorpsListfun()
-            // MB/L 收货人
-            this.mConsigneeBcorpsListfun()
-            // MB/L 通知人
-            this.mNotifyBcorpsListfun()
-            // MB/L 第二通知人
-            this.mNotify2BcorpsListfun()
+            // this.vesselBvesselsListfun()
+            // this.carrierBcorpsListfun()
+            // this.lineblinesListfun()
+            // this.bookingAgentBcorpsListfun()
+            // // MB/L 发货人
+            // this.mShipperBcorpsListfun()
+            // // MB/L 收货人
+            // this.mConsigneeBcorpsListfun()
+            // // MB/L 通知人
+            // this.mNotifyBcorpsListfun()
+            // // MB/L 第二通知人
+            // this.mNotify2BcorpsListfun()
         },
         methods:{
             /* 远程模糊查询操作用户 */

+ 29 - 17
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -48,7 +48,8 @@
                                                                   :buttonIf="false"
                                                                   :forParameter="item[0].forParameter"
                                                                   @remoteMethod="remoteMethod($event,item[0].prop)"
-                                                                  @corpChange="corpChange($event,item[0].prop)" >
+                                                                  @corpChange="corpChange($event,item[0].prop)"
+                                                                  @corpFocus="remoteMethod($event,item[0].prop)" >
                                                     </search-query>
                                                     <el-input v-else type="age" style="width: 100%;" v-model="form[item[0].prop]"
                                                               size="small" autocomplete="off"
@@ -77,7 +78,8 @@
                                                                   :buttonIf="false"
                                                                   :forParameter="item[1].forParameter"
                                                                   @remoteMethod="remoteMethod($event,item[1].prop)"
-                                                                  @corpChange="corpChange($event,item[1].prop)" >
+                                                                  @corpChange="corpChange($event,item[1].prop)"
+                                                                  @corpFocus="remoteMethod($event,item[1].prop)" >
                                                     </search-query>
                                                     <el-input v-else type="age" style="width: 100%;" v-model="form[item[1].prop]"
                                                               size="small" autocomplete="off"
@@ -100,7 +102,8 @@
                                                                   :buttonIf="false"
                                                                   :forParameter="item[1].forParameter"
                                                                   @remoteMethod="remoteMethod($event,item[2].prop)"
-                                                                  @corpChange="corpChange($event,item[2].prop)" >
+                                                                  @corpChange="corpChange($event,item[2].prop)"
+                                                                  @corpFocus="remoteMethod($event,item[2].prop)" >
                                                     </search-query>
                                                     <el-input v-else type="age" style="width: 100%;" v-model="form[item[2].prop]"
                                                               size="small" autocomplete="off"
@@ -124,7 +127,8 @@
                                                                   :buttonIf="item.buttonIf"
                                                                   :forParameter="item.forParameter"
                                                                   @remoteMethod="remoteMethod($event,item.prop)"
-                                                                  @corpChange="corpChange($event,item.prop)" >
+                                                                  @corpChange="corpChange($event,item.prop)"
+                                                                  @corpFocus="remoteMethod($event,item.prop)">
                                                         <bcorps v-if="item.slot == 'bcorps'"></bcorps>
                                                         <bcorpstypedefine v-if="item.slot == 'bcorpstypedefine'"></bcorpstypedefine>
                                                     </search-query>
@@ -462,7 +466,7 @@ import {billsDetail, billsGetBillNo, billsListAll, billsSubmit} from '@/api/iosB
                             },
                             {
                                 label: "",  // MB/L 付款方式 PP=预付, CC=到付, FPA, Other
-                                prop: "cntrTypeCode",
+                                prop: "hpaymode",
                                 type:'select',
                                 labelWidth:'10px',
                                 disabled:false,
@@ -582,18 +586,18 @@ import {billsDetail, billsGetBillNo, billsListAll, billsSubmit} from '@/api/iosB
             }
         },
         created() {
-            this.userGetListfun(1,10)
-            this.getLazylistfun()
-            this.getBcorpsListfun()
-            this.getBlocationsListfun()
-            this.getWorkDictsfun()
-            this.ownDeptLazyTreefun()
-            this.bcorpstypedefineListfun()
+            // this.userGetListfun()
+            // this.getLazylistfun()
+            // this.getBcorpsListfun()
+            // this.getBlocationsListfun()
+            // this.getWorkDictsfun()
+            // this.ownDeptLazyTreefun()
+            // this.bcorpstypedefineListfun()
         },
         methods:{
             // 获取用户管理数据
-            userGetListfun(current,size,account){
-                userGetList(current,size,{account}).then(res=>{
+            userGetListfun(account){
+                userGetList(1,10,{account}).then(res=>{
                     this.columnforfun('operatorName').dicData = res.data.data.records
                 })
             },
@@ -668,7 +672,7 @@ import {billsDetail, billsGetBillNo, billsListAll, billsSubmit} from '@/api/iosB
             /* 远程模糊查询操作用户 */
             remoteMethod(value,name) {
                 if (name == 'operatorName') {
-                    this.userGetListfun(1,10,value)
+                    this.userGetListfun(value)
                 }else if (name == 'accDeptName') {
                     this.getLazylistfun(value)
                 }else if (name == 'corpCnName') {
@@ -687,7 +691,10 @@ import {billsDetail, billsGetBillNo, billsListAll, billsSubmit} from '@/api/iosB
                     }
                 }else if (name == 'coloaderCnName') {
                     this.bcorpstypedefineListfun(value)
-                } else {
+                } else if (name == 'issueType') {
+                    // 签单方式
+                    this.getWorkDictsfun()
+                }else {
 
                 }
 
@@ -863,7 +870,12 @@ import {billsDetail, billsGetBillNo, billsListAll, billsSubmit} from '@/api/iosB
                 this.form.billNoFormat = 'HYCK'
                 this.form.businessTypeId = '1714186930489712641'
                 billsSubmit(this.form).then(res=>{
-                    console.log(res)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!"
+                    });
+                    this.detailData.seeDisabled = true
+                    this.billsDetailfun(this.form.id)
                 })
             },
             // 详情接口