jinhui.wang

删除配舱设置预审设置

......@@ -13,12 +13,6 @@
:disabled="nameDisabled"></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="航班预审" prop="isNeedRequired">
<el-switch v-model="isNeedRequired" :active-value="1" :inactive-value="0">
</el-switch>
</el-form-item>
</el-col> -->
</el-row>
<el-form-item>
<el-row :gutter="20">
......@@ -196,7 +190,6 @@ export default {
handlingCode: [],
subCategory: [],
isLocation: "1",
isNeedRequired: 0,
disable: false,
nameDisabled: false,
btnLoading: false,
......@@ -229,7 +222,6 @@ export default {
this.form = JSON.parse(
sessionStorage.getItem("flightInfo" + this.$route.params.id)
);
this.isNeedRequired = this.form.isNeedRequired;
if (this.form.notLocation != null || this.form.notLocation == "") {
this.isLocation = "2";
} else {
......@@ -266,7 +258,6 @@ export default {
} else {
this.isLocation = "1";
}
this.isNeedRequired = info.isNeedRequired;
}
this.loading = false;
}).catch(() => {
......@@ -301,9 +292,6 @@ export default {
} else {
this.isLocation = "1";
}
let isNeedRequired = response.data.isNeedRequired;
this.form.isNeedRequired = isNeedRequired;
this.isNeedRequired = isNeedRequired;
}
this.loading = false;
}).catch(() => {
......@@ -317,7 +305,6 @@ export default {
if (this.$route.name == "FlightAllocConfigAdd") {
if (sessionStorage.getItem("flightAdd")) {
this.form = JSON.parse(sessionStorage.getItem("flightAdd"));
this.isNeedRequired = this.form.isNeedRequired;
if (this.form.notLocation != null || this.form.notLocation == "") {
this.isLocation = "2";
} else {
......@@ -361,7 +348,6 @@ export default {
this.formServiceCode = this.form.serviceCode;
this.formHandlingCode = this.form.handlingCode;
this.formSubCategory = this.form.subCategory;
this.form.isNeedRequired = this.isNeedRequired;
if (this.form.purposeOfFlightNo) {
this.form.purposeOfFlightNo = this.form.purposeOfFlightNo.toUpperCase();
}
......@@ -512,7 +498,6 @@ export default {
if (sessionStorage.getItem("flightAdd") == "remove") {
sessionStorage.removeItem("flightAdd");
} else {
this.form.isNeedRequired = this.isNeedRequired;
sessionStorage.setItem("flightAdd", JSON.stringify(this.form));
}
} else {
......@@ -520,7 +505,6 @@ export default {
sessionStorage.removeItem("flightInfo" + this.dataId);
} else {
if (this.handleName != "detail" && this.handleName != "DMdetail") {
this.form.isNeedRequired = this.isNeedRequired;
sessionStorage.setItem(
"flightInfo" + this.dataId,
JSON.stringify(this.form)
......