Showing
2 changed files
with
43 additions
and
38 deletions
| ... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
| 14 | ></el-input> | 14 | ></el-input> |
| 15 | </el-form-item> | 15 | </el-form-item> |
| 16 | <el-form-item label="状态"> | 16 | <el-form-item label="状态"> |
| 17 | - <el-select v-model="queryParams.status" placeholder="状态" clearable > | 17 | + <el-select v-model="queryParams.status" placeholder="状态"> |
| 18 | <el-option label="有效" value="1"></el-option> | 18 | <el-option label="有效" value="1"></el-option> |
| 19 | <el-option label="停用" value="3"></el-option> | 19 | <el-option label="停用" value="3"></el-option> |
| 20 | </el-select> | 20 | </el-select> | ... | ... |
| ... | @@ -12,17 +12,18 @@ | ... | @@ -12,17 +12,18 @@ |
| 12 | <el-input | 12 | <el-input |
| 13 | v-model.trim="form.purposeOfFlightNo" | 13 | v-model.trim="form.purposeOfFlightNo" |
| 14 | style="width: 30%" | 14 | style="width: 30%" |
| 15 | + :disabled="nameDisabled" | ||
| 15 | ></el-input> | 16 | ></el-input> |
| 16 | </el-form-item> | 17 | </el-form-item> |
| 17 | 18 | ||
| 18 | - <el-form-item style="width: 40%"> | 19 | + <el-form-item > |
| 19 | <el-alert | 20 | <el-alert |
| 20 | title="提示:站点之间用回车符分隔" | 21 | title="提示:站点之间用回车符分隔" |
| 21 | type="warning" | 22 | type="warning" |
| 22 | show-icon | 23 | show-icon |
| 23 | size="small" | 24 | size="small" |
| 24 | :closable="false" | 25 | :closable="false" |
| 25 | - style="height: 30px" | 26 | + style="height: 30px;width:fit-content" |
| 26 | > | 27 | > |
| 27 | </el-alert> | 28 | </el-alert> |
| 28 | </el-form-item> | 29 | </el-form-item> |
| ... | @@ -32,7 +33,7 @@ | ... | @@ -32,7 +33,7 @@ |
| 32 | <!-- <el-alert title="提示:站点之间用回车符分隔" type="info" show-icon size="small" :closable="false" style="height:30px; margin-buttom"> </el-alert> --> | 33 | <!-- <el-alert title="提示:站点之间用回车符分隔" type="info" show-icon size="small" :closable="false" style="height:30px; margin-buttom"> </el-alert> --> |
| 33 | <el-input | 34 | <el-input |
| 34 | type="textarea" | 35 | type="textarea" |
| 35 | - v-model.trim="form.location" | 36 | + v-model="form.location" |
| 36 | :rows="6" | 37 | :rows="6" |
| 37 | resize="none" | 38 | resize="none" |
| 38 | ></el-input> | 39 | ></el-input> |
| ... | @@ -42,7 +43,7 @@ | ... | @@ -42,7 +43,7 @@ |
| 42 | <el-form-item label="站点不包含"> | 43 | <el-form-item label="站点不包含"> |
| 43 | <el-input | 44 | <el-input |
| 44 | type="textarea" | 45 | type="textarea" |
| 45 | - v-model.trim="form.notLocation" | 46 | + v-model="form.notLocation" |
| 46 | :rows="6" | 47 | :rows="6" |
| 47 | resize="none" | 48 | resize="none" |
| 48 | ></el-input> | 49 | ></el-input> |
| ... | @@ -50,14 +51,14 @@ | ... | @@ -50,14 +51,14 @@ |
| 50 | </el-col> | 51 | </el-col> |
| 51 | </el-row> | 52 | </el-row> |
| 52 | 53 | ||
| 53 | - <el-form-item style="width: 40%"> | 54 | + <el-form-item > |
| 54 | <el-alert | 55 | <el-alert |
| 55 | title="提示:URSA之间用分号分隔,例:F2;F3;P_" | 56 | title="提示:URSA之间用分号分隔,例:F2;F3;P_" |
| 56 | type="warning" | 57 | type="warning" |
| 57 | show-icon | 58 | show-icon |
| 58 | size="small" | 59 | size="small" |
| 59 | :closable="false" | 60 | :closable="false" |
| 60 | - style="height: 30px" | 61 | + style="height: 30px;width:fit-content" |
| 61 | > | 62 | > |
| 62 | </el-alert> | 63 | </el-alert> |
| 63 | </el-form-item> | 64 | </el-form-item> |
| ... | @@ -247,6 +248,7 @@ export default { | ... | @@ -247,6 +248,7 @@ export default { |
| 247 | serviceCode: [], | 248 | serviceCode: [], |
| 248 | subCategory: [], | 249 | subCategory: [], |
| 249 | disable: false, | 250 | disable: false, |
| 251 | + nameDisabled:false, | ||
| 250 | btnLoading: false, | 252 | btnLoading: false, |
| 251 | loading: true, | 253 | loading: true, |
| 252 | }; | 254 | }; |
| ... | @@ -322,7 +324,9 @@ export default { | ... | @@ -322,7 +324,9 @@ export default { |
| 322 | let dict = response.data; | 324 | let dict = response.data; |
| 323 | this.cargoType = dict.cargoType; | 325 | this.cargoType = dict.cargoType; |
| 324 | this.cargoStatus = dict.cargoStatus; | 326 | this.cargoStatus = dict.cargoStatus; |
| 325 | - this.serviceCode = dict.serviceCode.sort((a, b) => a.englishName.localeCompare(b.englishName)); | 327 | + this.serviceCode = dict.serviceCode.sort((a, b) => |
| 328 | + a.englishName.localeCompare(b.englishName) | ||
| 329 | + ); | ||
| 326 | this.subCategory = dict.subCategory; | 330 | this.subCategory = dict.subCategory; |
| 327 | }); | 331 | }); |
| 328 | if (handle === "detail") { | 332 | if (handle === "detail") { |
| ... | @@ -330,6 +334,7 @@ export default { | ... | @@ -330,6 +334,7 @@ export default { |
| 330 | } | 334 | } |
| 331 | 335 | ||
| 332 | if (handle != "add") { | 336 | if (handle != "add") { |
| 337 | + this.nameDisabled = true; | ||
| 333 | let id = this.$route.params.id; | 338 | let id = this.$route.params.id; |
| 334 | 339 | ||
| 335 | if (isNaN(Number(id))) { | 340 | if (isNaN(Number(id))) { |
| ... | @@ -340,22 +345,22 @@ export default { | ... | @@ -340,22 +345,22 @@ export default { |
| 340 | message: response.msg, | 345 | message: response.msg, |
| 341 | type: "error", | 346 | type: "error", |
| 342 | }); | 347 | }); |
| 343 | - reuturn; | 348 | + } else { |
| 349 | + let info = response.data; | ||
| 350 | + info.typeOfGoods = info.typeOfGoods | ||
| 351 | + ? info.typeOfGoods.split(";") | ||
| 352 | + : []; | ||
| 353 | + info.declarationCategory = info.declarationCategory | ||
| 354 | + ? info.declarationCategory.split(";") | ||
| 355 | + : []; | ||
| 356 | + info.serviceCode = info.serviceCode | ||
| 357 | + ? info.serviceCode.split(";") | ||
| 358 | + : []; | ||
| 359 | + info.subCategory = info.subCategory | ||
| 360 | + ? info.subCategory.split(";") | ||
| 361 | + : []; | ||
| 362 | + this.form = info; | ||
| 344 | } | 363 | } |
| 345 | - let info = response.data; | ||
| 346 | - info.typeOfGoods = info.typeOfGoods | ||
| 347 | - ? info.typeOfGoods.split(";") | ||
| 348 | - : []; | ||
| 349 | - info.declarationCategory = info.declarationCategory | ||
| 350 | - ? info.declarationCategory.split(";") | ||
| 351 | - : []; | ||
| 352 | - info.serviceCode = info.serviceCode | ||
| 353 | - ? info.serviceCode.split(";") | ||
| 354 | - : []; | ||
| 355 | - info.subCategory = info.subCategory | ||
| 356 | - ? info.subCategory.split(";") | ||
| 357 | - : []; | ||
| 358 | - this.form = info; | ||
| 359 | this.loading = false; | 364 | this.loading = false; |
| 360 | }); | 365 | }); |
| 361 | } else { | 366 | } else { |
| ... | @@ -367,22 +372,22 @@ export default { | ... | @@ -367,22 +372,22 @@ export default { |
| 367 | message: response.msg, | 372 | message: response.msg, |
| 368 | type: "error", | 373 | type: "error", |
| 369 | }); | 374 | }); |
| 370 | - reuturn; | 375 | + } else { |
| 376 | + let info = response.data.list; | ||
| 377 | + info.typeOfGoods = info.typeOfGoods | ||
| 378 | + ? info.typeOfGoods.split(";") | ||
| 379 | + : []; | ||
| 380 | + info.declarationCategory = info.declarationCategory | ||
| 381 | + ? info.declarationCategory.split(";") | ||
| 382 | + : []; | ||
| 383 | + info.serviceCode = info.serviceCode | ||
| 384 | + ? info.serviceCode.split(";") | ||
| 385 | + : []; | ||
| 386 | + info.subCategory = info.subCategory | ||
| 387 | + ? info.subCategory.split(";") | ||
| 388 | + : []; | ||
| 389 | + this.form = info; | ||
| 371 | } | 390 | } |
| 372 | - let info = response.data.list; | ||
| 373 | - info.typeOfGoods = info.typeOfGoods | ||
| 374 | - ? info.typeOfGoods.split(";") | ||
| 375 | - : []; | ||
| 376 | - info.declarationCategory = info.declarationCategory | ||
| 377 | - ? info.declarationCategory.split(";") | ||
| 378 | - : []; | ||
| 379 | - info.serviceCode = info.serviceCode | ||
| 380 | - ? info.serviceCode.split(";") | ||
| 381 | - : []; | ||
| 382 | - info.subCategory = info.subCategory | ||
| 383 | - ? info.subCategory.split(";") | ||
| 384 | - : []; | ||
| 385 | - this.form = info; | ||
| 386 | this.loading = false; | 391 | this.loading = false; |
| 387 | }); | 392 | }); |
| 388 | } | 393 | } | ... | ... |
-
Please register or login to post a comment