Showing
5 changed files
with
63 additions
and
4 deletions
| ... | @@ -6,7 +6,7 @@ VUE_APP_BASE_ENV = "dev" | ... | @@ -6,7 +6,7 @@ VUE_APP_BASE_ENV = "dev" |
| 6 | VUE_APP_Version = '1.0.0' | 6 | VUE_APP_Version = '1.0.0' |
| 7 | 7 | ||
| 8 | # FedEx 在线申报工具/开发环境 | 8 | # FedEx 在线申报工具/开发环境 |
| 9 | -VUE_APP_BASE_API = 'http://101.132.100.41:7008/EcomExp' | 9 | +VUE_APP_BASE_API = 'http://101.132.100.41:7001/EcomExp' |
| 10 | 10 | ||
| 11 | VUE_APP_BASE_ROUTE = '/EcomDev' | 11 | VUE_APP_BASE_ROUTE = '/EcomDev' |
| 12 | 12 | ... | ... |
| ... | @@ -43,3 +43,11 @@ export function searchOrderNo(data) { | ... | @@ -43,3 +43,11 @@ export function searchOrderNo(data) { |
| 43 | params: data, | 43 | params: data, |
| 44 | }); | 44 | }); |
| 45 | } | 45 | } |
| 46 | + | ||
| 47 | +// /mockReceipt/getListInfo/{logisticsNo} | ||
| 48 | +export function getListInfo(logisticsNo) { | ||
| 49 | + return request({ | ||
| 50 | + url: "/bus-customer/mockReceipt/getListInfo/" + logisticsNo, | ||
| 51 | + method: "get", | ||
| 52 | + }); | ||
| 53 | +} | ... | ... |
| ... | @@ -15,6 +15,7 @@ | ... | @@ -15,6 +15,7 @@ |
| 15 | class="fedexFormStyle" | 15 | class="fedexFormStyle" |
| 16 | ref="formData" | 16 | ref="formData" |
| 17 | :model="formData" | 17 | :model="formData" |
| 18 | + :rules="rules" | ||
| 18 | label-position="top" | 19 | label-position="top" |
| 19 | size="small" | 20 | size="small" |
| 20 | > | 21 | > |
| ... | @@ -103,7 +104,22 @@ export default { | ... | @@ -103,7 +104,22 @@ export default { |
| 103 | operatorCode: "", | 104 | operatorCode: "", |
| 104 | domesticTrafNo: "", | 105 | domesticTrafNo: "", |
| 105 | }, | 106 | }, |
| 106 | - | 107 | + rules: { |
| 108 | + operatorCode: [ | ||
| 109 | + { | ||
| 110 | + required: true, | ||
| 111 | + trigger: "blur", | ||
| 112 | + message: "监管场所不能为空!", | ||
| 113 | + }, | ||
| 114 | + ], | ||
| 115 | + domesticTrafNo: [ | ||
| 116 | + { | ||
| 117 | + required: true, | ||
| 118 | + trigger: "blur", | ||
| 119 | + message: "境内运输工具编码不能为空!", | ||
| 120 | + }, | ||
| 121 | + ], | ||
| 122 | + }, | ||
| 107 | loadings: { | 123 | loadings: { |
| 108 | dialogLoading: false, | 124 | dialogLoading: false, |
| 109 | submitLoading: false, | 125 | submitLoading: false, | ... | ... |
| ... | @@ -133,7 +133,7 @@ | ... | @@ -133,7 +133,7 @@ |
| 133 | <div style="color: #777777; margin-bottom: 10px">回执文本</div> | 133 | <div style="color: #777777; margin-bottom: 10px">回执文本</div> |
| 134 | <el-input | 134 | <el-input |
| 135 | type="textarea" | 135 | type="textarea" |
| 136 | - :rows="4" | 136 | + :rows="12" |
| 137 | class="inputShadow" | 137 | class="inputShadow" |
| 138 | resize="none" | 138 | resize="none" |
| 139 | :readonly="true" | 139 | :readonly="true" |
| ... | @@ -161,6 +161,7 @@ import { | ... | @@ -161,6 +161,7 @@ import { |
| 161 | searchOrderNo, | 161 | searchOrderNo, |
| 162 | generateReceiptXml, | 162 | generateReceiptXml, |
| 163 | addInfo, | 163 | addInfo, |
| 164 | + getListInfo, | ||
| 164 | } from "@/api/receiptManagement-api.js"; | 165 | } from "@/api/receiptManagement-api.js"; |
| 165 | export default { | 166 | export default { |
| 166 | props: { | 167 | props: { |
| ... | @@ -192,6 +193,9 @@ export default { | ... | @@ -192,6 +193,9 @@ export default { |
| 192 | if (val) { | 193 | if (val) { |
| 193 | this.formData.logisticsNo = this.logisticsNo; | 194 | this.formData.logisticsNo = this.logisticsNo; |
| 194 | this.formData.receiptType = "list"; | 195 | this.formData.receiptType = "list"; |
| 196 | + setTimeout(() => { | ||
| 197 | + this.getOtherInfo(this.logisticsNo); | ||
| 198 | + }, 100); | ||
| 195 | } | 199 | } |
| 196 | }, | 200 | }, |
| 197 | }, | 201 | }, |
| ... | @@ -260,6 +264,8 @@ export default { | ... | @@ -260,6 +264,8 @@ export default { |
| 260 | } | 264 | } |
| 261 | if (!this.formData.logisticsNo) { | 265 | if (!this.formData.logisticsNo) { |
| 262 | return; | 266 | return; |
| 267 | + } else { | ||
| 268 | + this.getOtherInfo(this.formData.logisticsNo); | ||
| 263 | } | 269 | } |
| 264 | if (!this.formData.receiptStatus) { | 270 | if (!this.formData.receiptStatus) { |
| 265 | return; | 271 | return; |
| ... | @@ -302,6 +308,20 @@ export default { | ... | @@ -302,6 +308,20 @@ export default { |
| 302 | }); | 308 | }); |
| 303 | this.receiptXml(); | 309 | this.receiptXml(); |
| 304 | }, | 310 | }, |
| 311 | + getOtherInfo(e) { | ||
| 312 | + getListInfo(e).then((res) => { | ||
| 313 | + console.log(res); | ||
| 314 | + if (res.code === "200") { | ||
| 315 | + this.formData.preNo = res.data.preNo; | ||
| 316 | + this.formData.invtNo = res.data.invtNo; | ||
| 317 | + // this.$set(this.formData, "preNo", res.data.preNo); | ||
| 318 | + // this.$set(this.formData, "invtNo", res.data.invtNo); | ||
| 319 | + this.$forceUpdate(); | ||
| 320 | + } else { | ||
| 321 | + this.alertWarningMsg(res.message); | ||
| 322 | + } | ||
| 323 | + }); | ||
| 324 | + }, | ||
| 305 | //数据保存 | 325 | //数据保存 |
| 306 | submit() { | 326 | submit() { |
| 307 | let obj = { | 327 | let obj = { | ... | ... |
| ... | @@ -133,7 +133,7 @@ | ... | @@ -133,7 +133,7 @@ |
| 133 | <div style="color: #777777; margin-bottom: 10px">回执文本</div> | 133 | <div style="color: #777777; margin-bottom: 10px">回执文本</div> |
| 134 | <el-input | 134 | <el-input |
| 135 | type="textarea" | 135 | type="textarea" |
| 136 | - :rows="4" | 136 | + :rows="12" |
| 137 | class="inputShadow" | 137 | class="inputShadow" |
| 138 | resize="none" | 138 | resize="none" |
| 139 | :readonly="true" | 139 | :readonly="true" |
| ... | @@ -161,6 +161,7 @@ import { | ... | @@ -161,6 +161,7 @@ import { |
| 161 | searchOrderNo, | 161 | searchOrderNo, |
| 162 | generateReceiptXml, | 162 | generateReceiptXml, |
| 163 | addInfo, | 163 | addInfo, |
| 164 | + getListInfo, | ||
| 164 | } from "@/api/receiptManagement-api.js"; | 165 | } from "@/api/receiptManagement-api.js"; |
| 165 | export default { | 166 | export default { |
| 166 | props: { | 167 | props: { |
| ... | @@ -246,6 +247,8 @@ export default { | ... | @@ -246,6 +247,8 @@ export default { |
| 246 | } | 247 | } |
| 247 | if (!this.formData.logisticsNo) { | 248 | if (!this.formData.logisticsNo) { |
| 248 | return; | 249 | return; |
| 250 | + } else { | ||
| 251 | + this.getOtherInfo(this.formData.logisticsNo); | ||
| 249 | } | 252 | } |
| 250 | if (!this.formData.receiptStatus) { | 253 | if (!this.formData.receiptStatus) { |
| 251 | return; | 254 | return; |
| ... | @@ -288,6 +291,18 @@ export default { | ... | @@ -288,6 +291,18 @@ export default { |
| 288 | }); | 291 | }); |
| 289 | this.receiptXml(); | 292 | this.receiptXml(); |
| 290 | }, | 293 | }, |
| 294 | + getOtherInfo(e) { | ||
| 295 | + getListInfo(e).then((res) => { | ||
| 296 | + console.log(res); | ||
| 297 | + if (res.code === "200") { | ||
| 298 | + this.formData.preNo = res.data.preNo; | ||
| 299 | + this.formData.invtNo = res.data.invtNo; | ||
| 300 | + this.$forceUpdate(); | ||
| 301 | + } else { | ||
| 302 | + this.alertWarningMsg(res.message); | ||
| 303 | + } | ||
| 304 | + }); | ||
| 305 | + }, | ||
| 291 | //数据保存 | 306 | //数据保存 |
| 292 | submit() { | 307 | submit() { |
| 293 | let obj = { | 308 | let obj = { | ... | ... |
-
Please register or login to post a comment