正在显示
1 个修改的文件
包含
48 行增加
和
6 行删除
| @@ -346,9 +346,7 @@ | @@ -346,9 +346,7 @@ | ||
| 346 | <el-row> | 346 | <el-row> |
| 347 | <el-col style="width: 95%"> | 347 | <el-col style="width: 95%"> |
| 348 | <el-form-item> | 348 | <el-form-item> |
| 349 | - <el-input minlength="3" maxlength="3" onkeyup="this.value=this.value.toUpperCase()" | ||
| 350 | - @keyup.native="form.rtg.destinationAirport.replace(/[^A-Za-z]/g,'')" | ||
| 351 | - @input.native="value => form.rtg.destinationAirport.replace(/[^A-Za-z]/g,'').toUpperCase()" | 349 | + <el-input minlength="3" maxlength="3" onkeyup="this.value=this.value.replace(/[^A-Za-z]/g,'').toUpperCase()" |
| 352 | v-model="form.rtg.destinationAirport" auto-complete="off" placeholder="到达站" size="mini"></el-input> | 350 | v-model="form.rtg.destinationAirport" auto-complete="off" placeholder="到达站" size="mini"></el-input> |
| 353 | </el-form-item> | 351 | </el-form-item> |
| 354 | </el-col> | 352 | </el-col> |
| @@ -511,7 +509,13 @@ Handling Information | @@ -511,7 +509,13 @@ Handling Information | ||
| 511 | <el-row style="margin-bottom: -2px"> | 509 | <el-row style="margin-bottom: -2px"> |
| 512 | <el-col style="width: 100%"> | 510 | <el-col style="width: 100%"> |
| 513 | <el-form-item> | 511 | <el-form-item> |
| 514 | - <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4}" | 512 | +<!-- 每行65个字符--> |
| 513 | + <el-input | ||
| 514 | + v-model="ssr_content" | ||
| 515 | + show-word-limit | ||
| 516 | + maxlength="195" | ||
| 517 | + type="textarea" | ||
| 518 | + :autosize="{ minRows: 2, maxRows: 4}" | ||
| 515 | auto-complete="off" placeholder="被通知人信息" size="mini"></el-input> | 519 | auto-complete="off" placeholder="被通知人信息" size="mini"></el-input> |
| 516 | </el-form-item> | 520 | </el-form-item> |
| 517 | </el-col> | 521 | </el-col> |
| @@ -1437,7 +1441,9 @@ Handling Information | @@ -1437,7 +1441,9 @@ Handling Information | ||
| 1437 | <el-row style="margin-bottom: -2px"> | 1441 | <el-row style="margin-bottom: -2px"> |
| 1438 | <el-col style="width: 100%"> | 1442 | <el-col style="width: 100%"> |
| 1439 | <el-form-item> | 1443 | <el-form-item> |
| 1440 | - <el-input disabled type="textarea" :autosize="{ minRows: 2, maxRows: 4}" | 1444 | + <el-input disabled |
| 1445 | + maxlength="195" | ||
| 1446 | + type="textarea" :autosize="{ minRows: 2, maxRows: 4}" | ||
| 1441 | auto-complete="off" placeholder="处理信息" size="mini"></el-input> | 1447 | auto-complete="off" placeholder="处理信息" size="mini"></el-input> |
| 1442 | </el-form-item> | 1448 | </el-form-item> |
| 1443 | </el-col> | 1449 | </el-col> |
| @@ -2101,6 +2107,7 @@ Handling Information | @@ -2101,6 +2107,7 @@ Handling Information | ||
| 2101 | cer_signature:'' | 2107 | cer_signature:'' |
| 2102 | } | 2108 | } |
| 2103 | }, | 2109 | }, |
| 2110 | + ssr_content:"", | ||
| 2104 | cne_contact:{ | 2111 | cne_contact:{ |
| 2105 | contact_id:'TE', | 2112 | contact_id:'TE', |
| 2106 | contact_number:'', | 2113 | contact_number:'', |
| @@ -2500,7 +2507,6 @@ Handling Information | @@ -2500,7 +2507,6 @@ Handling Information | ||
| 2500 | //新增主运单 | 2507 | //新增主运单 |
| 2501 | addFwb() { | 2508 | addFwb() { |
| 2502 | this.form.rtg.destinationCarrier=this.form.flt.cariier; | 2509 | this.form.rtg.destinationCarrier=this.form.flt.cariier; |
| 2503 | - alert(this.form.rtd.dimensions) | ||
| 2504 | // this.form.rtg.destinationAirport=this.form.bill.destinationAirport; | 2510 | // this.form.rtg.destinationAirport=this.form.bill.destinationAirport; |
| 2505 | this.form.rtd.rtd_gross_weight=this.form.bill.quantity_weight; | 2511 | this.form.rtd.rtd_gross_weight=this.form.bill.quantity_weight; |
| 2506 | this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs; | 2512 | this.form.rtd.rtd_number_pieces=this.form.bill.quantity_picecs; |
| @@ -2737,6 +2743,42 @@ Handling Information | @@ -2737,6 +2743,42 @@ Handling Information | ||
| 2737 | this.getAWBH(); | 2743 | this.getAWBH(); |
| 2738 | } | 2744 | } |
| 2739 | } | 2745 | } |
| 2746 | + }, | ||
| 2747 | + computed:{ | ||
| 2748 | + formattedSsrContent: { | ||
| 2749 | + get() { | ||
| 2750 | + return this.ssr_content; | ||
| 2751 | + }, | ||
| 2752 | + set(value) { | ||
| 2753 | + // 过滤掉所有非字母数字和中文字符以及换行符 | ||
| 2754 | + const filteredValue = value.replace(/[^A-Z1-9\n ]/g, ''); | ||
| 2755 | + | ||
| 2756 | + const lines = value.split('\n'); | ||
| 2757 | + if (lines.length > 3) { | ||
| 2758 | + this.$message.error('最多只能输入三行文本!'); | ||
| 2759 | + return; | ||
| 2760 | + } | ||
| 2761 | + | ||
| 2762 | + for (let line of lines) { | ||
| 2763 | + if (line.length > 65) { | ||
| 2764 | + this.$message.error('每行不能超过65个字符!'); | ||
| 2765 | + return; | ||
| 2766 | + } | ||
| 2767 | + } | ||
| 2768 | + | ||
| 2769 | + // 如果所有校验都通过了,更新 form.ssr.ssr_request_content | ||
| 2770 | + this.form.ssr.ssr_request_content = lines; | ||
| 2771 | + this.ssr_content = value; // 更新视图中的数据 | ||
| 2772 | + } | ||
| 2773 | + } | ||
| 2774 | + }, | ||
| 2775 | + watch:{ | ||
| 2776 | + ssr_content: { | ||
| 2777 | + handler(newVal) { | ||
| 2778 | + this.formattedSsrContent = newVal; // 触发计算属性的setter | ||
| 2779 | + }, | ||
| 2780 | + immediate: true // 立即执行监听器 | ||
| 2781 | + } | ||
| 2740 | } | 2782 | } |
| 2741 | } | 2783 | } |
| 2742 | </script> | 2784 | </script> |
-
请 注册 或 登录 后发表评论