正在显示
1 个修改的文件
包含
41 行增加
和
8 行删除
| @@ -765,9 +765,11 @@ Handling Information | @@ -765,9 +765,11 @@ Handling Information | ||
| 765 | <el-row style="margin-bottom: -5px"> | 765 | <el-row style="margin-bottom: -5px"> |
| 766 | <el-col style="width: 95%"> | 766 | <el-col style="width: 95%"> |
| 767 | <el-form-item> | 767 | <el-form-item> |
| 768 | - <el-input minlength="1" maxlength="20" onkeyup="this.value=this.value.toUpperCase()" | 768 | + <el-input type="textarea" |
| 769 | + :autosize="{ minRows: 2, maxRows: 4}" | ||
| 770 | + maxlength="80" onkeyup="this.value=this.value.toUpperCase()" | ||
| 769 | @keyup.native="form.rtd.rtd_goods_DES.replace(/[^A-Za-z0-9\s]/g,'')" | 771 | @keyup.native="form.rtd.rtd_goods_DES.replace(/[^A-Za-z0-9\s]/g,'')" |
| 770 | - v-model="form.rtd.rtd_goods_DES" auto-complete="off" placeholder="货物品名" size="mini"></el-input> | 772 | + v-model="form.rtd.rtd_goods_DES" auto-complete="off" placeholder="货物品名,一行一个支持4行.首行必须为货物描述信息" size="mini"></el-input> |
| 771 | </el-form-item> | 773 | </el-form-item> |
| 772 | </el-col> | 774 | </el-col> |
| 773 | </el-row> | 775 | </el-row> |
| @@ -2194,17 +2196,17 @@ Handling Information | @@ -2194,17 +2196,17 @@ Handling Information | ||
| 2194 | }, | 2196 | }, |
| 2195 | flt:{ | 2197 | flt:{ |
| 2196 | cariier:"HQ", | 2198 | cariier:"HQ", |
| 2197 | - day:'04', | 2199 | + day:'13', |
| 2198 | flightNumber:'405', | 2200 | flightNumber:'405', |
| 2199 | cariier2:"HQ", | 2201 | cariier2:"HQ", |
| 2200 | - day2:'04', | 2202 | + day2:'13', |
| 2201 | flightNumber2:'4055', | 2203 | flightNumber2:'4055', |
| 2202 | cariier3:"", | 2204 | cariier3:"", |
| 2203 | day3:'', | 2205 | day3:'', |
| 2204 | flightNumber3:'', | 2206 | flightNumber3:'', |
| 2205 | }, | 2207 | }, |
| 2206 | isu:{ | 2208 | isu:{ |
| 2207 | - isu_day_mounth_year:'2024-12-03', | 2209 | + isu_day_mounth_year:'2024-12-12', |
| 2208 | isu_place_or_airport_code:'ZHENGZHOU', | 2210 | isu_place_or_airport_code:'ZHENGZHOU', |
| 2209 | isu_signature:'CHINA', | 2211 | isu_signature:'CHINA', |
| 2210 | }, | 2212 | }, |
| @@ -2404,9 +2406,9 @@ Handling Information | @@ -2404,9 +2406,9 @@ Handling Information | ||
| 2404 | cvd_value_for_carriage:'NVD', | 2406 | cvd_value_for_carriage:'NVD', |
| 2405 | cvd_value_for_customs:'NCV', | 2407 | cvd_value_for_customs:'NCV', |
| 2406 | cvd_amount_of_insurance:'XXX', | 2408 | cvd_amount_of_insurance:'XXX', |
| 2407 | - cvd_charge_prepaid:'CC', | 2409 | + cvd_charge_prepaid:'PP', |
| 2408 | cvd_charge_code:'', | 2410 | cvd_charge_code:'', |
| 2409 | - cvd_currency_code:'CNY', | 2411 | + cvd_currency_code:'USD', |
| 2410 | }, | 2412 | }, |
| 2411 | hbs:{ | 2413 | hbs:{ |
| 2412 | hbs_origin:'CGO', | 2414 | hbs_origin:'CGO', |
| @@ -3061,7 +3063,7 @@ Handling Information | @@ -3061,7 +3063,7 @@ Handling Information | ||
| 3061 | K22: K22, | 3063 | K22: K22, |
| 3062 | P22: P22, | 3064 | P22: P22, |
| 3063 | U22: U22, | 3065 | U22: U22, |
| 3064 | - AF22: cleanString(AF22), | 3066 | + AF22: AF22, |
| 3065 | AF23: formattedAF23, | 3067 | AF23: formattedAF23, |
| 3066 | O34: cleanString(O34), | 3068 | O34: cleanString(O34), |
| 3067 | //signatureDate: signatureDate, | 3069 | //signatureDate: signatureDate, |
| @@ -3200,6 +3202,33 @@ Handling Information | @@ -3200,6 +3202,33 @@ Handling Information | ||
| 3200 | this.ssr_content = value; // 更新视图中的数据 | 3202 | this.ssr_content = value; // 更新视图中的数据 |
| 3201 | } | 3203 | } |
| 3202 | }, | 3204 | }, |
| 3205 | + goodDesContent:{ | ||
| 3206 | + get() { | ||
| 3207 | + return this.form.rtd.rtd_goods_DES; | ||
| 3208 | + }, | ||
| 3209 | + set(value) { | ||
| 3210 | + // 过滤掉所有非字母数字和中文字符以及换行符 | ||
| 3211 | + const filteredValue = value.replace(/[^A-Z0-9\n ]/g, ' ').toUpperCase(); | ||
| 3212 | + | ||
| 3213 | + | ||
| 3214 | + const lines = value.split('\n'); | ||
| 3215 | + if (lines.length > 4) { | ||
| 3216 | + this.$message.error('最多只能输入四行文本!'); | ||
| 3217 | + return; | ||
| 3218 | + } | ||
| 3219 | + | ||
| 3220 | + for (let line of lines) { | ||
| 3221 | + if (line.length > 20) { | ||
| 3222 | + this.$message.error('每行不能超过20个字符!'+ line + "当前字符数:" + line.length); | ||
| 3223 | + return; | ||
| 3224 | + } | ||
| 3225 | + } | ||
| 3226 | + | ||
| 3227 | + // 如果所有校验都通过了,更新 form.ssr.ssr_request_content | ||
| 3228 | + this.form.rtd.rtd_goods_DES = filteredValue; | ||
| 3229 | + // this.ssr_content = value; // 更新视图中的数据 | ||
| 3230 | + } | ||
| 3231 | + }, | ||
| 3203 | flightNumber: { | 3232 | flightNumber: { |
| 3204 | get() { | 3233 | get() { |
| 3205 | // 返回拼接后的完整航班号 | 3234 | // 返回拼接后的完整航班号 |
| @@ -3233,6 +3262,10 @@ Handling Information | @@ -3233,6 +3262,10 @@ Handling Information | ||
| 3233 | this.formattedSsrContent = newVal; // 触发计算属性的setter | 3262 | this.formattedSsrContent = newVal; // 触发计算属性的setter |
| 3234 | }, | 3263 | }, |
| 3235 | immediate: true // 立即执行监听器 | 3264 | immediate: true // 立即执行监听器 |
| 3265 | + }, | ||
| 3266 | + 'form.rtd.rtd_goods_DES': function(newVal, oldVal) { | ||
| 3267 | + // 这里可以处理变化时的逻辑 | ||
| 3268 | + this.goodDesContent = newVal; // 触发计算属性的setter | ||
| 3236 | } | 3269 | } |
| 3237 | } | 3270 | } |
| 3238 | } | 3271 | } |
-
请 注册 或 登录 后发表评论