jinhui.wang

提示语增加,航班维护purple航班修改可修改航线

......@@ -790,6 +790,30 @@ export default {
// this.form.isNeedRequired = this.form.isNeedRequired === 1 ? true : false;
// 计算高低价可配
// this.LowHighAvailable();
//航线
this.selectOption.flightKindlist.forEach(item => {
if (item.id == this.form.kindId) {
if (item.chineseName.indexOf('White') >= 0) {
this.formdisabled.route = true
} else if (item.chineseName.indexOf('Purple') >= 0) {
this.formdisabled.route = false
this.routeMultiple = true
//获取航线
queryRouteByFltNo({ fltNo: this.form.fltNo }).then(res => {
this.routeLoading = false
if (res.code === 200) {
this.routeList = res.data.list
} else {
this.msgWarning(res.msg)
}
}).catch(err => {
this.routeLoading = false
console.log(err)
})
}
}
})
this.ishighPriceWeightPercent = this.form.highLowPriceFlg === 1 ? false : true
} else {
this.msgError(response.msg);
......
......@@ -42,6 +42,9 @@
<Drag :routes="routeList" @drag="drag"></Drag>
</el-form-item>
</div>
<el-form-item>
<div style="color:#ff4949;line-height: 30px;">注意:此处不能添加虚拟航班!</div>
</el-form-item>
</div>
<!-- 新增数据字典 -->
<div v-else>
......@@ -377,4 +380,5 @@ export default {
</script>
<style>
</style>
\ No newline at end of file
......