Showing
4 changed files
with
39 additions
and
31 deletions
| ... | @@ -2,8 +2,8 @@ | ... | @@ -2,8 +2,8 @@ |
| 2 | <div class="app-container"> | 2 | <div class="app-container"> |
| 3 | <el-form :model="queryParams" ref="queryForm" :inline="true"> | 3 | <el-form :model="queryParams" ref="queryForm" :inline="true"> |
| 4 | 4 | ||
| 5 | - <el-form-item label="原航班"> | 5 | + <el-form-item label="ACCS原航班"> |
| 6 | - <el-input type="text" v-model="upCase" placeholder="请输入原航班" clearable class="formItem"></el-input> | 6 | + <el-input type="text" v-model="upCase" placeholder="请输入ACCS原航班" clearable class="formItem"></el-input> |
| 7 | <!-- <el-input v-model="upCase" placeholder="请输入原航班" clearable size="small" /> --> | 7 | <!-- <el-input v-model="upCase" placeholder="请输入原航班" clearable size="small" /> --> |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | <el-form-item label="状态" prop="status"> | 9 | <el-form-item label="状态" prop="status"> |
| ... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
| 14 | </el-form-item> | 14 | </el-form-item> |
| 15 | 15 | ||
| 16 | <el-form-item> | 16 | <el-form-item> |
| 17 | - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询原航班配置</el-button> | 17 | + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询ACCS原航班配置</el-button> |
| 18 | </el-form-item> | 18 | </el-form-item> |
| 19 | <br /> | 19 | <br /> |
| 20 | <el-form-item label="日期" prop="flightDate"> | 20 | <el-form-item label="日期" prop="flightDate"> |
| ... | @@ -26,7 +26,7 @@ | ... | @@ -26,7 +26,7 @@ |
| 26 | <el-form-item> | 26 | <el-form-item> |
| 27 | <el-button type="primary" icon="el-icon-search" size="mini" @click="findSourceFlightAndFlightDate">查询实际配载航班 | 27 | <el-button type="primary" icon="el-icon-search" size="mini" @click="findSourceFlightAndFlightDate">查询实际配载航班 |
| 28 | </el-button>  | 28 | </el-button>  |
| 29 | - <span style="color: red;">注:原航班+日期查询该日期的航班实际情况</span> | 29 | + <span style="color: red;">注:ACCS原航班+日期查询该日期的航班实际情况</span> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | <br /> | 31 | <br /> |
| 32 | <el-form-item> | 32 | <el-form-item> |
| ... | @@ -42,7 +42,7 @@ | ... | @@ -42,7 +42,7 @@ |
| 42 | <el-table-column type="index" label="序号" align="center"> | 42 | <el-table-column type="index" label="序号" align="center"> |
| 43 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> | 43 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> |
| 44 | </el-table-column> | 44 | </el-table-column> |
| 45 | - <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> | 45 | + <el-table-column label="ACCS原航班" align="center" prop="sourceFlightNo" /> |
| 46 | <el-table-column label="配载航班排序" align="center" prop="flightRank" width="280" /> | 46 | <el-table-column label="配载航班排序" align="center" prop="flightRank" width="280" /> |
| 47 | <!-- <el-table-column label="优先级" align="center" prop="priority" /> --> | 47 | <!-- <el-table-column label="优先级" align="center" prop="priority" /> --> |
| 48 | <el-table-column label="周期" align="center" prop="dayOfWeek" width="180" /> | 48 | <el-table-column label="周期" align="center" prop="dayOfWeek" width="180" /> |
| ... | @@ -74,7 +74,7 @@ | ... | @@ -74,7 +74,7 @@ |
| 74 | <el-table-column type="index" label="序号" align="center"> | 74 | <el-table-column type="index" label="序号" align="center"> |
| 75 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> | 75 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> |
| 76 | </el-table-column> | 76 | </el-table-column> |
| 77 | - <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> | 77 | + <el-table-column label="ACCS原航班" align="center" prop="sourceFlightNo" /> |
| 78 | <el-table-column label="实际配载航班" align="center" prop="actualFlight" width="280" /> | 78 | <el-table-column label="实际配载航班" align="center" prop="actualFlight" width="280" /> |
| 79 | <el-table-column label="航班日期" align="center" prop="flightDate" /> | 79 | <el-table-column label="航班日期" align="center" prop="flightDate" /> |
| 80 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200"> | 80 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
| ... | @@ -95,8 +95,8 @@ | ... | @@ -95,8 +95,8 @@ |
| 95 | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> | 95 | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| 96 | <el-row> | 96 | <el-row> |
| 97 | <el-col :span="10"> | 97 | <el-col :span="10"> |
| 98 | - <el-form-item label="原航班" prop="sourceFlightNo"> | 98 | + <el-form-item label="ACCS原航班" prop="sourceFlightNo"> |
| 99 | - <el-input v-model="form.sourceFlightNo" placeholder="请输入原航班号" /> | 99 | + <el-input v-model="form.sourceFlightNo" placeholder="请输入ACCS原航班号" /> |
| 100 | </el-form-item> | 100 | </el-form-item> |
| 101 | </el-col> | 101 | </el-col> |
| 102 | </el-row> | 102 | </el-row> |
| ... | @@ -219,7 +219,7 @@ | ... | @@ -219,7 +219,7 @@ |
| 219 | rules: { | 219 | rules: { |
| 220 | sourceFlightNo: [{ | 220 | sourceFlightNo: [{ |
| 221 | required: true, | 221 | required: true, |
| 222 | - message: "原航班号不能为空", | 222 | + message: "ACCS原航班号不能为空", |
| 223 | trigger: "blur" | 223 | trigger: "blur" |
| 224 | }], | 224 | }], |
| 225 | flightRank: [{ | 225 | flightRank: [{ |
| ... | @@ -269,7 +269,7 @@ | ... | @@ -269,7 +269,7 @@ |
| 269 | handleAdd() { | 269 | handleAdd() { |
| 270 | this.form = {}; | 270 | this.form = {}; |
| 271 | this.open = true; | 271 | this.open = true; |
| 272 | - this.title = "添加原航班顺位规则"; | 272 | + this.title = "添加ACCS原航班顺位规则"; |
| 273 | this.form.id = -1; | 273 | this.form.id = -1; |
| 274 | this.dayOfWeek = []; | 274 | this.dayOfWeek = []; |
| 275 | 275 | ||
| ... | @@ -280,7 +280,7 @@ | ... | @@ -280,7 +280,7 @@ |
| 280 | this.form = {}; | 280 | this.form = {}; |
| 281 | this.dayOfWeek = []; | 281 | this.dayOfWeek = []; |
| 282 | this.open = true; | 282 | this.open = true; |
| 283 | - this.title = "修改原航班顺位规则"; | 283 | + this.title = "修改ACCS原航班顺位规则"; |
| 284 | this.form = JSON.parse(JSON.stringify(row)); | 284 | this.form = JSON.parse(JSON.stringify(row)); |
| 285 | this.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; | 285 | this.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; |
| 286 | //this.form.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; | 286 | //this.form.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; |
| ... | @@ -362,7 +362,7 @@ | ... | @@ -362,7 +362,7 @@ |
| 362 | //校验原航班号非空 | 362 | //校验原航班号非空 |
| 363 | if (this.queryParams.sourceFlightNo === null || this.queryParams.sourceFlightNo === undefined || this | 363 | if (this.queryParams.sourceFlightNo === null || this.queryParams.sourceFlightNo === undefined || this |
| 364 | .queryParams.sourceFlightNo.trim() === '') { | 364 | .queryParams.sourceFlightNo.trim() === '') { |
| 365 | - this.$message.warning("原航班号为空"); | 365 | + this.$message.warning("ACCS原航班号为空"); |
| 366 | return | 366 | return |
| 367 | } | 367 | } |
| 368 | //校验原日期非空 | 368 | //校验原日期非空 | ... | ... |
| ... | @@ -210,14 +210,14 @@ | ... | @@ -210,14 +210,14 @@ |
| 210 | 210 | ||
| 211 | <el-col :span="12"> | 211 | <el-col :span="12"> |
| 212 | <el-form-item label="高价百分比" prop="highPriceWeightPercent"> | 212 | <el-form-item label="高价百分比" prop="highPriceWeightPercent"> |
| 213 | - <el-input-number @change="LowHighAvailable" placeholder="请输入高价百分比" style="width:93%" | 213 | + <el-input-number :disabled="ishighPriceWeightPercent" @change="LowHighAvailable" placeholder="请输入高价百分比" style="width:93%" |
| 214 | v-model="form.highPriceWeightPercent" :precision="2"></el-input-number> | 214 | v-model="form.highPriceWeightPercent" :precision="2"></el-input-number> |
| 215 | </el-form-item> | 215 | </el-form-item> |
| 216 | </el-col> | 216 | </el-col> |
| 217 | 217 | ||
| 218 | <el-col :span="12"> | 218 | <el-col :span="12"> |
| 219 | <el-form-item label="低价百分比" prop="lowPriceWeightPercent"> | 219 | <el-form-item label="低价百分比" prop="lowPriceWeightPercent"> |
| 220 | - <el-input-number @change="LowHighAvailable" placeholder="请输入低价百分比" style="width:93%" | 220 | + <el-input-number :disabled="true" placeholder="请输入低价百分比" style="width:93%" |
| 221 | v-model="form.lowPriceWeightPercent" :precision="2"></el-input-number> | 221 | v-model="form.lowPriceWeightPercent" :precision="2"></el-input-number> |
| 222 | </el-form-item> | 222 | </el-form-item> |
| 223 | </el-col> | 223 | </el-col> |
| ... | @@ -236,7 +236,7 @@ | ... | @@ -236,7 +236,7 @@ |
| 236 | </el-form-item> | 236 | </el-form-item> |
| 237 | </el-col> | 237 | </el-col> |
| 238 | 238 | ||
| 239 | - | 239 | + |
| 240 | <el-col :span="12"> | 240 | <el-col :span="12"> |
| 241 | <el-form-item label="高价已配重量" prop="HighAllocatedWeight"> | 241 | <el-form-item label="高价已配重量" prop="HighAllocatedWeight"> |
| 242 | <el-input-number :disabled="true" placeholder="请输入高价已配重量" style="width:93%" | 242 | <el-input-number :disabled="true" placeholder="请输入高价已配重量" style="width:93%" |
| ... | @@ -251,10 +251,10 @@ | ... | @@ -251,10 +251,10 @@ |
| 251 | </el-col> | 251 | </el-col> |
| 252 | <el-col :span="12"> | 252 | <el-col :span="12"> |
| 253 | <el-form-item label="已配总重量" prop="alloctedWeight"> | 253 | <el-form-item label="已配总重量" prop="alloctedWeight"> |
| 254 | - | 254 | + |
| 255 | <el-input-number :disabled="true" placeholder="请输入已配总重量" style="width:93%" v-model="form.alloctedWeight" | 255 | <el-input-number :disabled="true" placeholder="请输入已配总重量" style="width:93%" v-model="form.alloctedWeight" |
| 256 | :precision="2"></el-input-number> | 256 | :precision="2"></el-input-number> |
| 257 | - | 257 | + |
| 258 | </el-form-item> | 258 | </el-form-item> |
| 259 | </el-col> | 259 | </el-col> |
| 260 | 260 | ||
| ... | @@ -284,6 +284,8 @@ | ... | @@ -284,6 +284,8 @@ |
| 284 | name: "findAllFltData", | 284 | name: "findAllFltData", |
| 285 | data() { | 285 | data() { |
| 286 | return { | 286 | return { |
| 287 | + //高价百分比是否打开 | ||
| 288 | + ishighPriceWeightPercent:true, | ||
| 287 | //form属性禁用状态 | 289 | //form属性禁用状态 |
| 288 | formdisabled: { | 290 | formdisabled: { |
| 289 | //航班号 | 291 | //航班号 |
| ... | @@ -358,12 +360,12 @@ | ... | @@ -358,12 +360,12 @@ |
| 358 | rules: { | 360 | rules: { |
| 359 | fltNo: [{ | 361 | fltNo: [{ |
| 360 | required: true, | 362 | required: true, |
| 361 | - message: "原航班号不能为空", | 363 | + message: "ACCS原航班号不能为空", |
| 362 | trigger: "blur" | 364 | trigger: "blur" |
| 363 | }], | 365 | }], |
| 364 | fltDate: [{ | 366 | fltDate: [{ |
| 365 | required: true, | 367 | required: true, |
| 366 | - message: "航班日期不能为空", | 368 | + message: "ACCS航班日期不能为空", |
| 367 | trigger: "blur" | 369 | trigger: "blur" |
| 368 | }], | 370 | }], |
| 369 | kindId: [{ | 371 | kindId: [{ |
| ... | @@ -392,7 +394,7 @@ | ... | @@ -392,7 +394,7 @@ |
| 392 | findFltCommonConf(this.form).then(response => { | 394 | findFltCommonConf(this.form).then(response => { |
| 393 | if (response.code == 200) { | 395 | if (response.code == 200) { |
| 394 | //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 | 396 | //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 |
| 395 | - if (response.data.extraWeightPercent != null && response.data.extraWeightPercent != undefined) { | 397 | + if (response.data!=null && response.data.extraWeightPercent != null && response.data.extraWeightPercent != undefined) { |
| 396 | this.$set(this.form, "extraWeightPercent", response.data.extraWeightPercent); | 398 | this.$set(this.form, "extraWeightPercent", response.data.extraWeightPercent); |
| 397 | // this.form.extraWeightPercent=response.data.extraWeightPercent; | 399 | // this.form.extraWeightPercent=response.data.extraWeightPercent; |
| 398 | } else { | 400 | } else { |
| ... | @@ -400,28 +402,29 @@ | ... | @@ -400,28 +402,29 @@ |
| 400 | //this.form.extraWeightPercent=response.data.extraWeightPercent=0; | 402 | //this.form.extraWeightPercent=response.data.extraWeightPercent=0; |
| 401 | } | 403 | } |
| 402 | //是否开启高低价:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否开启高低价’ 为是,不可编辑 | 404 | //是否开启高低价:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否开启高低价’ 为是,不可编辑 |
| 403 | - if (response.data.highLowPriceFlg != null && response.data.highLowPriceFlg != undefined) { | 405 | + if (response.data!=null &&response.data.highLowPriceFlg != null && response.data.highLowPriceFlg != undefined) { |
| 404 | this.form.highLowPriceFlg = response.data.highLowPriceFlg === 1 ? true : false; | 406 | this.form.highLowPriceFlg = response.data.highLowPriceFlg === 1 ? true : false; |
| 405 | } else { | 407 | } else { |
| 406 | - this.form.highLowPriceFlg = true; | 408 | + this.$set(this.form, "highLowPriceFlg", true); |
| 409 | + //this.form.highLowPriceFlg = true; | ||
| 407 | } | 410 | } |
| 408 | //是否预审:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否预审’ 为否,不可编辑; | 411 | //是否预审:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否预审’ 为否,不可编辑; |
| 409 | - if (response.data.isNeedRequired != null && response.data.isNeedRequired != undefined) { | 412 | + if (response.data!=null &&response.data.isNeedRequired != null && response.data.isNeedRequired != undefined) { |
| 410 | this.form.isNeedRequired = response.data.isNeedRequired === 1 ? true : false; | 413 | this.form.isNeedRequired = response.data.isNeedRequired === 1 ? true : false; |
| 411 | } else { | 414 | } else { |
| 412 | this.form.isNeedRequired = false; | 415 | this.form.isNeedRequired = false; |
| 413 | } | 416 | } |
| 414 | //高/低价百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘高价百分比’60%,‘低价百分比’40%,不可编辑 | 417 | //高/低价百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘高价百分比’60%,‘低价百分比’40%,不可编辑 |
| 415 | - if (response.data.highPriceWeightPercent != null && response.data.highPriceWeightPercent != | 418 | + if (response.data!=null &&response.data.highPriceWeightPercent != null && response.data.highPriceWeightPercent != |
| 416 | undefined) { | 419 | undefined) { |
| 417 | this.form.highPriceWeightPercent = response.data.highPriceWeightPercent; | 420 | this.form.highPriceWeightPercent = response.data.highPriceWeightPercent; |
| 418 | } else { | 421 | } else { |
| 419 | - this.form.highPriceWeightPercent = response.data.highPriceWeightPercent = 60; | 422 | + this.form.highPriceWeightPercent = 60; |
| 420 | } | 423 | } |
| 421 | - if (response.data.lowPriceWeightPercent != null && response.data.lowPriceWeightPercent != undefined) { | 424 | + if (response.data!=null &&response.data.lowPriceWeightPercent != null && response.data.lowPriceWeightPercent != undefined) { |
| 422 | this.form.lowPriceWeightPercent = response.data.lowPriceWeightPercent; | 425 | this.form.lowPriceWeightPercent = response.data.lowPriceWeightPercent; |
| 423 | } else { | 426 | } else { |
| 424 | - this.form.lowPriceWeightPercent = response.data.lowPriceWeightPercent = 40; | 427 | + this.form.lowPriceWeightPercent = 40; |
| 425 | } | 428 | } |
| 426 | this.LowHighAvailable(); | 429 | this.LowHighAvailable(); |
| 427 | } else { | 430 | } else { |
| ... | @@ -546,7 +549,8 @@ | ... | @@ -546,7 +549,8 @@ |
| 546 | LowHighAvailable() { | 549 | LowHighAvailable() { |
| 547 | 550 | ||
| 548 | //判断是否开启高地价 | 551 | //判断是否开启高地价 |
| 549 | - if (this.form.highLowPriceFlg) { | 552 | + if (this.form.highLowPriceFlg) { |
| 553 | + this.ishighPriceWeightPercent=false; | ||
| 550 | let Weight = 0; | 554 | let Weight = 0; |
| 551 | //计算实际重量 | 555 | //计算实际重量 |
| 552 | if (this.form.highPriceWeightPercent > 0 || this.form.lowPriceWeightPercent > 0) { | 556 | if (this.form.highPriceWeightPercent > 0 || this.form.lowPriceWeightPercent > 0) { |
| ... | @@ -554,6 +558,7 @@ | ... | @@ -554,6 +558,7 @@ |
| 554 | } | 558 | } |
| 555 | //高价可配 | 559 | //高价可配 |
| 556 | if (this.form.highPriceWeightPercent > 0) { | 560 | if (this.form.highPriceWeightPercent > 0) { |
| 561 | + this.$set(this.form, "lowPriceWeightPercent", 100-this.form.highPriceWeightPercent); | ||
| 557 | this.$set(this.form, "HighAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form | 562 | this.$set(this.form, "HighAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form |
| 558 | .highPriceWeightPercent / 100)); | 563 | .highPriceWeightPercent / 100)); |
| 559 | // this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100) | 564 | // this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100) |
| ... | @@ -572,6 +577,8 @@ | ... | @@ -572,6 +577,8 @@ |
| 572 | // this.form.LowAvailableWeight = 0; | 577 | // this.form.LowAvailableWeight = 0; |
| 573 | } | 578 | } |
| 574 | 579 | ||
| 580 | + }else{ | ||
| 581 | + this.ishighPriceWeightPercent=true; | ||
| 575 | } | 582 | } |
| 576 | 583 | ||
| 577 | }, | 584 | }, |
| ... | @@ -654,8 +661,7 @@ | ... | @@ -654,8 +661,7 @@ |
| 654 | let formdata = JSON.parse(JSON.stringify(this.form)); | 661 | let formdata = JSON.parse(JSON.stringify(this.form)); |
| 655 | 662 | ||
| 656 | //高价百分比和低价百分比和不可以大于100 | 663 | //高价百分比和低价百分比和不可以大于100 |
| 657 | - if (this.form.highLowPriceFlg && formdata.highPriceWeightPercent + formdata.lowPriceWeightPercent != | 664 | + if (this.form.highLowPriceFlg && (formdata.highPriceWeightPercent>100||formdata.highPriceWeightPercent<0) ) { |
| 658 | - 100) { | ||
| 659 | this.$message.warning("请正确填写高低价百分比"); | 665 | this.$message.warning("请正确填写高低价百分比"); |
| 660 | return; | 666 | return; |
| 661 | } | 667 | } |
| ... | @@ -713,6 +719,7 @@ | ... | @@ -713,6 +719,7 @@ |
| 713 | this.queryParams.start = 0; | 719 | this.queryParams.start = 0; |
| 714 | this.findAllFltData(); | 720 | this.findAllFltData(); |
| 715 | }, | 721 | }, |
| 722 | + | ||
| 716 | } | 723 | } |
| 717 | }; | 724 | }; |
| 718 | </script> | 725 | </script> | ... | ... |
| ... | @@ -340,6 +340,7 @@ | ... | @@ -340,6 +340,7 @@ |
| 340 | :key="item.name" | 340 | :key="item.name" |
| 341 | header-align="center" | 341 | header-align="center" |
| 342 | align="center" | 342 | align="center" |
| 343 | + :show-overflow-tooltip="true" | ||
| 343 | :width="item.value=='bigPretrialOpinion'?'300':'170'" | 344 | :width="item.value=='bigPretrialOpinion'?'300':'170'" |
| 344 | :formatter="formatter" | 345 | :formatter="formatter" |
| 345 | sortable | 346 | sortable | ... | ... |
-
Please register or login to post a comment