jinhui.wang

航班维护页面bug修正

......@@ -223,30 +223,30 @@
</el-col>
<el-col :span="12">
<el-form-item label="高价可配重量" prop="HighAvailableWeight">
<el-form-item label="高价可配重量" prop="highAvailableWeight">
<el-input-number :disabled="true" placeholder="请输入高价可配重量" style="width:93%"
v-model="form.HighAvailableWeight" :precision="2"></el-input-number>
v-model="form.highAvailableWeight" :precision="2"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="低价可配重量" prop="LowAvailableWeight">
<el-form-item label="低价可配重量" prop="lowAvailableWeight">
<el-input-number :disabled="true" placeholder="请输入低价可配重量" style="width:93%"
v-model="form.LowAvailableWeight" :precision="2"></el-input-number>
v-model="form.lowAvailableWeight" :precision="2"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="高价已配重量" prop="HighAllocatedWeight">
<el-form-item label="高价已配重量" prop="highAllocatedWeight">
<el-input-number :disabled="true" placeholder="请输入高价已配重量" style="width:93%"
v-model="form.HighAllocatedWeight" :precision="2"></el-input-number>
v-model="form.highAllocatedWeight" :precision="2"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="低价已配重量" prop="LowAllocatedWeight">
<el-form-item label="低价已配重量" prop="lowAllocatedWeight">
<el-input-number :disabled="true" placeholder="请输入低价已配重量" style="width:93%"
v-model="form.LowAllocatedWeight" :precision="2"></el-input-number>
v-model="form.lowAllocatedWeight" :precision="2"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -529,8 +529,8 @@
this.form.id = null;
this.form.statusId = this.flightStatuslist[0].id;
this.form.alloctedWeight = 0; //已配重量
this.form.LowAllocatedWeight = 0; //低价已配重量
this.form.HighAllocatedWeight = 0; //高价已配重量
this.form.lowAllocatedWeight = 0; //低价已配重量
this.form.highAllocatedWeight = 0; //高价已配重量
//航班号
this.formdisabled.fltNo = false;
......@@ -559,22 +559,22 @@
//高价可配
if (this.form.highPriceWeightPercent > 0) {
this.$set(this.form, "lowPriceWeightPercent", 100-this.form.highPriceWeightPercent);
this.$set(this.form, "HighAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form
this.$set(this.form, "highAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form
.highPriceWeightPercent / 100));
// this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100)
} else {
this.$set(this.form, "HighAvailableWeight", 0);
this.$set(this.form, "highAvailableWeight", 0);
// this.form.HighAvailableWeight = 0;
}
//低价可配
if (this.form.lowPriceWeightPercent > 0) {
this.$set(this.form, "LowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form
.HighAvailableWeight);
//this.form.LowAvailableWeight = Weightall - this.form.HighAvailableWeight;
this.$set(this.form, "lowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form
.highAvailableWeight);
//this.form.lowAvailableWeight = Weightall - this.form.HighAvailableWeight;
} else {
this.$set(this.form, "LowAvailableWeight", 0);
// this.form.LowAvailableWeight = 0;
this.$set(this.form, "lowAvailableWeight", 0);
// this.form.lowAvailableWeight = 0;
}
}else{
......