Showing
3 changed files
with
30 additions
and
12 deletions
| ... | @@ -97,7 +97,6 @@ | ... | @@ -97,7 +97,6 @@ |
| 97 | <div class="form-item-error-block"> | 97 | <div class="form-item-error-block"> |
| 98 | <span | 98 | <span |
| 99 | class="el-form-item__error" | 99 | class="el-form-item__error" |
| 100 | - v-text="item.locationError" | ||
| 101 | ></span> | 100 | ></span> |
| 102 | </div> | 101 | </div> |
| 103 | </el-col> | 102 | </el-col> |
| ... | @@ -145,7 +144,6 @@ | ... | @@ -145,7 +144,6 @@ |
| 145 | <div class="form-item-error-block"> | 144 | <div class="form-item-error-block"> |
| 146 | <span | 145 | <span |
| 147 | class="el-form-item__error" | 146 | class="el-form-item__error" |
| 148 | - v-text="item.destinationSiteError" | ||
| 149 | ></span> | 147 | ></span> |
| 150 | </div> | 148 | </div> |
| 151 | </el-col> | 149 | </el-col> |
| ... | @@ -165,7 +163,6 @@ | ... | @@ -165,7 +163,6 @@ |
| 165 | </el-input> | 163 | </el-input> |
| 166 | <span | 164 | <span |
| 167 | class="el-form-item__error" | 165 | class="el-form-item__error" |
| 168 | - v-text="item.ursaError" | ||
| 169 | ></span> | 166 | ></span> |
| 170 | </el-form-item> | 167 | </el-form-item> |
| 171 | </el-col> | 168 | </el-col> |
| ... | @@ -183,7 +180,6 @@ | ... | @@ -183,7 +180,6 @@ |
| 183 | <div class="form-item-error-block"> | 180 | <div class="form-item-error-block"> |
| 184 | <span | 181 | <span |
| 185 | class="el-form-item__error" | 182 | class="el-form-item__error" |
| 186 | - v-text="item.notUrsaError" | ||
| 187 | ></span> | 183 | ></span> |
| 188 | </div> | 184 | </div> |
| 189 | </el-form-item> | 185 | </el-form-item> |
| ... | @@ -468,7 +464,6 @@ | ... | @@ -468,7 +464,6 @@ |
| 468 | </div> | 464 | </div> |
| 469 | </template> | 465 | </template> |
| 470 | <script> | 466 | <script> |
| 471 | -// import { inputBlurValidate } from "@/utils/mixins"; | ||
| 472 | export default { | 467 | export default { |
| 473 | name: "routeInfo", | 468 | name: "routeInfo", |
| 474 | props: { | 469 | props: { |
| ... | @@ -518,7 +513,6 @@ export default { | ... | @@ -518,7 +513,6 @@ export default { |
| 518 | default: false, | 513 | default: false, |
| 519 | }, | 514 | }, |
| 520 | }, | 515 | }, |
| 521 | - // mixins: [inputBlurValidate], | ||
| 522 | data() { | 516 | data() { |
| 523 | return { | 517 | return { |
| 524 | activeNames: [0], // 展开指定项 | 518 | activeNames: [0], // 展开指定项 | ... | ... |
| ... | @@ -208,7 +208,7 @@ export default { | ... | @@ -208,7 +208,7 @@ export default { |
| 208 | } | 208 | } |
| 209 | } | 209 | } |
| 210 | if (parmas.minNumOfPieces || parmas.maxNumOfPieces) { | 210 | if (parmas.minNumOfPieces || parmas.maxNumOfPieces) { |
| 211 | - if (!/^\d+$/.test(parmas.minNumOfPieces || parmas.maxNumOfPieces)) { | 211 | + if (!/^[1-9]\d*$/.test(parmas.minNumOfPieces || parmas.maxNumOfPieces)) { |
| 212 | this.msgWarning("请输入有效件数"); | 212 | this.msgWarning("请输入有效件数"); |
| 213 | return; | 213 | return; |
| 214 | } | 214 | } |
| ... | @@ -225,10 +225,7 @@ export default { | ... | @@ -225,10 +225,7 @@ export default { |
| 225 | return; | 225 | return; |
| 226 | } | 226 | } |
| 227 | } | 227 | } |
| 228 | - /* | 228 | + // 日期级别:航班顺位只取日期级别下的航线优先级顺位 |
| 229 | - 日期级别: | ||
| 230 | - 处理routeSpecifyDateSeq | ||
| 231 | - */ | ||
| 232 | if (item.createTime && this.queryForm.flightDate) { | 229 | if (item.createTime && this.queryForm.flightDate) { |
| 233 | let routeSpecifyDate = this.routeSpecifyDateSeq.filter( | 230 | let routeSpecifyDate = this.routeSpecifyDateSeq.filter( |
| 234 | (item) => item.etesRule == "N" | 231 | (item) => item.etesRule == "N" | ... | ... |
| ... | @@ -708,6 +708,7 @@ export default { | ... | @@ -708,6 +708,7 @@ export default { |
| 708 | this.routeList.map((item) => { | 708 | this.routeList.map((item) => { |
| 709 | routes.push(item.route); | 709 | routes.push(item.route); |
| 710 | }); | 710 | }); |
| 711 | + // 与routesStr不同的是,routeSpecifyDateSeq属性值作为传参使用 | ||
| 711 | routeRuleForm.routeSpecifyDateSeq = routes.join(";"); | 712 | routeRuleForm.routeSpecifyDateSeq = routes.join(";"); |
| 712 | } | 713 | } |
| 713 | }, | 714 | }, |
| ... | @@ -939,9 +940,22 @@ export default { | ... | @@ -939,9 +940,22 @@ export default { |
| 939 | }; | 940 | }; |
| 940 | // this.validateParmas(validateData); | 941 | // this.validateParmas(validateData); |
| 941 | }, | 942 | }, |
| 942 | - // 最少件数失焦事件 | 943 | + // 最少件数失焦事件:件数和重量可以拿ET86维度规则设置的校验逻辑使用 |
| 943 | minNumOfPiecesBur({ index, item }) { | 944 | minNumOfPiecesBur({ index, item }) { |
| 944 | // console.log("minNumOfPiecesBur", index, item); | 945 | // console.log("minNumOfPiecesBur", index, item); |
| 946 | + const validateData = { | ||
| 947 | + reg: /^[1-9]\d*$/, | ||
| 948 | + index: index, | ||
| 949 | + ursaMark: false, | ||
| 950 | + minNumOfPieces: item.minNumOfPieces, | ||
| 951 | + maxNumOfPieces: item.maxNumOfPieces, | ||
| 952 | + errorMsgAttr: "pieceError", | ||
| 953 | + validateForm: false, // form表单节流阀 | ||
| 954 | + errorMsg: { | ||
| 955 | + invalid: "请输入有效件数", | ||
| 956 | + error: "最小件数不得大于最大件数", | ||
| 957 | + }, | ||
| 958 | + }; | ||
| 945 | }, | 959 | }, |
| 946 | // 最多件数失焦事件 | 960 | // 最多件数失焦事件 |
| 947 | maxNumOfPiecesBur({ index, item }) { | 961 | maxNumOfPiecesBur({ index, item }) { |
| ... | @@ -950,6 +964,19 @@ export default { | ... | @@ -950,6 +964,19 @@ export default { |
| 950 | // 最小重量失焦事件 | 964 | // 最小重量失焦事件 |
| 951 | minWeightBur({ index, item }) { | 965 | minWeightBur({ index, item }) { |
| 952 | // console.log("minWeightBur", index, item); | 966 | // console.log("minWeightBur", index, item); |
| 967 | + const validateData = { | ||
| 968 | + reg: /^(0|[1-9]\d*)(.\d{1,5})?$/, | ||
| 969 | + index: index, | ||
| 970 | + ursaMark: false, | ||
| 971 | + minWeight: item.minWeight, | ||
| 972 | + maxWeight: item.maxWeight, | ||
| 973 | + errorMsgAttr: "weightError", | ||
| 974 | + validateForm: false, // form表单节流阀 | ||
| 975 | + errorMsg: { | ||
| 976 | + invalid: "请输入有效重量,小数保留5位", | ||
| 977 | + error: "最小重量不得大于最大重量", | ||
| 978 | + }, | ||
| 979 | + }; | ||
| 953 | }, | 980 | }, |
| 954 | // 最大重量失焦事件 | 981 | // 最大重量失焦事件 |
| 955 | maxWeightBur({ index, item }) { | 982 | maxWeightBur({ index, item }) { | ... | ... |
-
Please register or login to post a comment