Elements-SY

modify

...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
80 :rows="4" 80 :rows="4"
81 placeholder="始发站之间用回车符分隔" 81 placeholder="始发站之间用回车符分隔"
82 style="width: 500px" 82 style="width: 500px"
83 + @blur="location({ index, item, $event })"
83 > 84 >
84 </el-input> 85 </el-input>
85 <el-input 86 <el-input
...@@ -90,6 +91,7 @@ ...@@ -90,6 +91,7 @@
90 :rows="4" 91 :rows="4"
91 placeholder="始发站之间用回车符分隔" 92 placeholder="始发站之间用回车符分隔"
92 style="width: 500px" 93 style="width: 500px"
94 + @blur="notLocation({ index, item, $event })"
93 > 95 >
94 </el-input> 96 </el-input>
95 </el-col> 97 </el-col>
...@@ -116,6 +118,7 @@ ...@@ -116,6 +118,7 @@
116 :rows="4" 118 :rows="4"
117 placeholder="目的站之间用回车符分隔" 119 placeholder="目的站之间用回车符分隔"
118 style="width: 500px" 120 style="width: 500px"
121 + @blur="destinationSite({ index, item, $event })"
119 > 122 >
120 </el-input> 123 </el-input>
121 <el-input 124 <el-input
...@@ -126,6 +129,9 @@ ...@@ -126,6 +129,9 @@
126 :rows="4" 129 :rows="4"
127 placeholder="目的站之间用回车符分隔" 130 placeholder="目的站之间用回车符分隔"
128 style="width: 500px" 131 style="width: 500px"
132 + @blur="
133 + notDestinationSite({ index, item, $event })
134 + "
129 > 135 >
130 </el-input> 136 </el-input>
131 </el-col> 137 </el-col>
...@@ -140,6 +146,7 @@ ...@@ -140,6 +146,7 @@
140 v-model="item.includeUrsa" 146 v-model="item.includeUrsa"
141 :rows="4" 147 :rows="4"
142 placeholder="URSA之间用分号分隔,例:F1_;F2_;F3_" 148 placeholder="URSA之间用分号分隔,例:F1_;F2_;F3_"
149 + @blur="includeUrsa({ index, item, $event })"
143 > 150 >
144 </el-input> 151 </el-input>
145 </el-form-item> 152 </el-form-item>
...@@ -152,6 +159,7 @@ ...@@ -152,6 +159,7 @@
152 v-model="item.notIncludeUrsa" 159 v-model="item.notIncludeUrsa"
153 :rows="4" 160 :rows="4"
154 placeholder="URSA之间用分号分隔,例:F1;F2;F3" 161 placeholder="URSA之间用分号分隔,例:F1;F2;F3"
162 + @blur="notIncludeUrsa({ index, item, $event })"
155 > 163 >
156 </el-input> 164 </el-input>
157 </el-form-item> 165 </el-form-item>
...@@ -166,6 +174,7 @@ ...@@ -166,6 +174,7 @@
166 class="numberInput" 174 class="numberInput"
167 v-model.trim="item.minNumOfPieces" 175 v-model.trim="item.minNumOfPieces"
168 placeholder="最少件数" 176 placeholder="最少件数"
177 + @blur="minNumOfPieces({ index, item, $event })"
169 > 178 >
170 </el-input> 179 </el-input>
171 <span 180 <span
...@@ -182,6 +191,7 @@ ...@@ -182,6 +191,7 @@
182 class="numberInput" 191 class="numberInput"
183 v-model.trim="item.maxNumOfPieces" 192 v-model.trim="item.maxNumOfPieces"
184 placeholder="最多件数" 193 placeholder="最多件数"
194 + @blur="maxNumOfPieces({ index, item, $event })"
185 > 195 >
186 </el-input> 196 </el-input>
187 </el-col> 197 </el-col>
...@@ -195,6 +205,7 @@ ...@@ -195,6 +205,7 @@
195 class="numberInput" 205 class="numberInput"
196 v-model.trim="item.minWeight" 206 v-model.trim="item.minWeight"
197 placeholder="最小重量" 207 placeholder="最小重量"
208 + @blur="minWeight({ index, item, $event })"
198 > 209 >
199 </el-input> 210 </el-input>
200 <span 211 <span
...@@ -211,6 +222,7 @@ ...@@ -211,6 +222,7 @@
211 class="numberInput" 222 class="numberInput"
212 v-model.trim="item.maxWeight" 223 v-model.trim="item.maxWeight"
213 placeholder="最大重量" 224 placeholder="最大重量"
225 + @blur="maxWeight({ index, item, $event })"
214 > 226 >
215 </el-input> 227 </el-input>
216 </el-col> 228 </el-col>
...@@ -606,6 +618,46 @@ export default { ...@@ -606,6 +618,46 @@ export default {
606 deleteSubmit(item, index) { 618 deleteSubmit(item, index) {
607 this.$emit("delete", item, index); 619 this.$emit("delete", item, index);
608 }, 620 },
621 + // 包含始发站失焦事件
622 + location(item) {
623 + this.$emit("locationBur", item);
624 + },
625 + // 不包含始发站失焦事件
626 + notLocation(item) {
627 + this.$emit("notLocationBur", item);
628 + },
629 + // 包含目的站失焦事件
630 + destinationSite(item) {
631 + this.$emit("destinationSiteBur", item);
632 + },
633 + // 不包含目的站失焦事件
634 + notDestinationSite(item) {
635 + this.$emit("notDestinationSiteBur", item);
636 + },
637 + // URSA包含失焦事件
638 + includeUrsa(item) {
639 + this.$emit("includeUrsaBur", item);
640 + },
641 + // URSA不包含失焦事件
642 + notIncludeUrsa(item) {
643 + this.$emit("notIncludeUrsaBur", item);
644 + },
645 + // 最少件数失焦事件
646 + minNumOfPieces(item) {
647 + this.$emit("minNumOfPiecesBur", item);
648 + },
649 + // 最多件数失焦事件
650 + maxNumOfPiecesBur(item) {
651 + this.$emit("maxNumOfPiecesBur", item);
652 + },
653 + // 最小重量失焦事件
654 + minWeight(item) {
655 + this.$emit("minWeightBur", item);
656 + },
657 + // 最大重量失焦事件
658 + maxWeight(item) {
659 + this.$emit("maxWeightBur", item);
660 + },
609 }, 661 },
610 }; 662 };
611 </script> 663 </script>
......
...@@ -36,12 +36,20 @@ ...@@ -36,12 +36,20 @@
36 :subCategory="subCategory" 36 :subCategory="subCategory"
37 :status="getRouter" 37 :status="getRouter"
38 :loading="loading" 38 :loading="loading"
39 - @location="changeLocation"
40 - @destinationSite="changeDestinationSite"
41 @addRlue="addRlue" 39 @addRlue="addRlue"
42 @save="saveSubmit" 40 @save="saveSubmit"
43 @onOff="onOffSubmit" 41 @onOff="onOffSubmit"
44 @delete="deleteSubmit" 42 @delete="deleteSubmit"
43 + @locationBur="locationBur"
44 + @notLocationBur="notLocationBur"
45 + @destinationSiteBur="destinationSiteBur"
46 + @notDestinationSiteBur="notDestinationSiteBur"
47 + @includeUrsaBur="includeUrsaBur"
48 + @notIncludeUrsaBur="notIncludeUrsaBur"
49 + @minNumOfPiecesBur="minNumOfPiecesBur"
50 + @maxNumOfPiecesBur="maxNumOfPiecesBur"
51 + @minWeightBur="minWeightBur"
52 + @maxWeightBur="maxWeightBur"
45 > 53 >
46 </route-info> 54 </route-info>
47 </el-col> 55 </el-col>
......
...@@ -766,13 +766,45 @@ export default { ...@@ -766,13 +766,45 @@ export default {
766 blurEvent({ originOfFlightNo }) { 766 blurEvent({ originOfFlightNo }) {
767 this.queryForm.originOfFlightNo = this.upCase(originOfFlightNo); 767 this.queryForm.originOfFlightNo = this.upCase(originOfFlightNo);
768 }, 768 },
769 - // 始发站 769 + // 包含始发站失焦事件
770 - changeLocation(val) { 770 + locationBur(item) {
771 - // console.log("始发站:", val); 771 + console.log("locationBur", item);
772 }, 772 },
773 - // 目的站 773 + // 不包含始发站失焦事件
774 - changeDestinationSite(val) { 774 + notLocationBur(item) {
775 - // console.log("目的站:", val); 775 + console.log("notLocationBur", item);
776 + },
777 + // 包含目的站失焦事件
778 + destinationSiteBur(item) {
779 + console.log("destinationSiteBur", item);
780 + },
781 + // 不包含目的站失焦事件
782 + notDestinationSiteBur(item) {
783 + console.log("notDestinationSiteBur", item);
784 + },
785 + // URSA包含失焦事件
786 + includeUrsaBur(item) {
787 + console.log("includeUrsaBur", item);
788 + },
789 + // URSA不包含失焦事件
790 + notIncludeUrsaBur(item) {
791 + console.log("notIncludeUrsaBur", item);
792 + },
793 + // 最少件数失焦事件
794 + minNumOfPiecesBur(item) {
795 + console.log("minNumOfPiecesBur", item);
796 + },
797 + // 最多件数失焦事件
798 + maxNumOfPiecesBur(item) {
799 + console.log("maxNumOfPiecesBur", item);
800 + },
801 + // 最小重量失焦事件
802 + minWeightBur(item) {
803 + console.log("minWeightBur", item);
804 + },
805 + // 最大重量失焦事件
806 + maxWeightBur(item) {
807 + console.log("maxWeightBur", item);
776 }, 808 },
777 }, 809 },
778 }; 810 };
......
...@@ -511,7 +511,7 @@ export default { ...@@ -511,7 +511,7 @@ export default {
511 { 511 {
512 id: this.id, 512 id: this.id,
513 flightNo: "", // 航班号 513 flightNo: "", // 航班号
514 - calculateDay: "", // 航班日期//+1 -1 514 + calculateDay: "", // 航班日期 +1 -1
515 flightRoute: "", // 航线 515 flightRoute: "", // 航线
516 routeList: [], // 航线列表 516 routeList: [], // 航线列表
517 permitOverweight: "N" ? false : true, // 爆仓是否继续配舱 Y-是,N-否 517 permitOverweight: "N" ? false : true, // 爆仓是否继续配舱 Y-是,N-否
...@@ -521,6 +521,7 @@ export default { ...@@ -521,6 +521,7 @@ export default {
521 ]; 521 ];
522 } 522 }
523 }, 523 },
524 + mounted() {},
524 methods: { 525 methods: {
525 // ET86新增 526 // ET86新增
526 postAdd(params) { 527 postAdd(params) {
...@@ -562,7 +563,7 @@ export default { ...@@ -562,7 +563,7 @@ export default {
562 this.tableData = data.list.flightRankDtoList; 563 this.tableData = data.list.flightRankDtoList;
563 Object.keys(data.list.fltRuleDto).map((key) => { 564 Object.keys(data.list.fltRuleDto).map((key) => {
564 if (key == "multiHs") { 565 if (key == "multiHs") {
565 - // N为单品名,Y为多品名 566 + // Y为单品名,N为多品名
566 if (data.list.fltRuleDto[key] == "Y") { 567 if (data.list.fltRuleDto[key] == "Y") {
567 data.list.fltRuleDto[key] = true; 568 data.list.fltRuleDto[key] = true;
568 } else { 569 } else {
...@@ -622,7 +623,7 @@ export default { ...@@ -622,7 +623,7 @@ export default {
622 } 623 }
623 this.cargoType = res.data.cargoType; // 申报类别 624 this.cargoType = res.data.cargoType; // 申报类别
624 if (res.data.serviceCode.length) { 625 if (res.data.serviceCode.length) {
625 - this.getObj(res.data); 626 + this.getObj(res.data); // 获取serviceCode字典
626 } 627 }
627 }) 628 })
628 .catch(() => {}); 629 .catch(() => {});
...@@ -657,7 +658,7 @@ export default { ...@@ -657,7 +658,7 @@ export default {
657 }, 658 },
658 // 航班号input 聚焦事件 659 // 航班号input 聚焦事件
659 inputFlightNoFocus({ $index, row }) { 660 inputFlightNoFocus({ $index, row }) {
660 - this.currentFlightNo = row.flightNo.trim(); 661 + this.currentFlightNo = row.flightNo.trim(); // 当前航班号
661 this.currentIndex = $index; 662 this.currentIndex = $index;
662 }, 663 },
663 // 失焦查询 664 // 失焦查询
...@@ -692,7 +693,7 @@ export default { ...@@ -692,7 +693,7 @@ export default {
692 this.getQueryRouteByFltNo(params); // 航线查询 693 this.getQueryRouteByFltNo(params); // 航线查询
693 } 694 }
694 // 航班号为空时 695 // 航班号为空时
695 - if(params.fltNo.length == 0) { 696 + if (params.fltNo.length == 0) {
696 this.tableData[this.currentIndex].flightRoute = ""; 697 this.tableData[this.currentIndex].flightRoute = "";
697 this.tableData[this.currentIndex].routeList = []; 698 this.tableData[this.currentIndex].routeList = [];
698 this.msgError("请输入航班号"); 699 this.msgError("请输入航班号");
...@@ -811,7 +812,7 @@ export default { ...@@ -811,7 +812,7 @@ export default {
811 this.msgError("ET86配舱航班顺位中存在重复设置"); 812 this.msgError("ET86配舱航班顺位中存在重复设置");
812 return; 813 return;
813 } 814 }
814 - queryParmas.fltRuleDto.multiHs = this.queryForm.multiHs ? "Y" : "N"; // N为单品名,Y为多品名 815 + queryParmas.fltRuleDto.multiHs = this.queryForm.multiHs ? "Y" : "N"; // Y为单品名,N为多品名
815 if (this.validateForm && this.$route.query.name == "add") { 816 if (this.validateForm && this.$route.query.name == "add") {
816 this.postAdd(queryParmas); // 新增 817 this.postAdd(queryParmas); // 新增
817 } else { 818 } else {
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
50 target.dispatchEvent(new Event("input")); 50 target.dispatchEvent(new Event("input"));
51 } 51 }
52 }, 800), 52 }, 800),
53 - // 获取字典 53 + // 获取serviceCode字典
54 getObj({ serviceCode }) { 54 getObj({ serviceCode }) {
55 let service_Code = []; 55 let service_Code = [];
56 serviceCode.map((item) => { 56 serviceCode.map((item) => {
......
...@@ -369,7 +369,6 @@ export default { ...@@ -369,7 +369,6 @@ export default {
369 // }, 369 // },
370 //删除按钮 370 //删除按钮
371 delDict(val) { 371 delDict(val) {
372 - console.log(val)
373 if (this.tableName == 'serviceCode') { 372 if (this.tableName == 'serviceCode') {
374 this.serviceCodeCihildDel([val.id]) 373 this.serviceCodeCihildDel([val.id])
375 } else if (this.tableName === '虚拟航班') { 374 } else if (this.tableName === '虚拟航班') {
......