作者 zhangFan

新增和修改页面

... ... @@ -34,7 +34,7 @@
</el-table-column>
<el-table-column label="航班号" width="90px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.carrier +scope.row.flightno }}</span>
<span>{{ scope.row.flightno }}</span>
</template>
</el-table-column>
<el-table-column label="航班日期" width="120px" align="center" sortable>
... ... @@ -115,7 +115,7 @@
<el-col :span="10">
<el-form-item label="航班号" prop="flightno">
<div v-if="dialogStatus === 'update'">
<el-input disabled="" v-model="temp.carrier + temp.flightno"/>
<el-input disabled="" v-model="flightno"/>
</div>
<div v-else>
<el-input v-model="flightno"/>
... ... @@ -128,11 +128,12 @@
<div v-if="dialogStatus === 'update'">
<el-date-picker disabled="" :picker-options="pickerOptions"
v-model="temp.flightdate" align="right"
value-format="yyyy-MM-dd"
type="date" placeholder="请输入航班日期" style="width: 87%"/>
</div>
<div v-else>
<el-date-picker :picker-options="pickerOptions" v-model="temp.flightdate"
align="right"
align="right" value-format="yyyy-MM-dd"
type="date" placeholder="请输入航班日期" style="width: 87%"/>
</div>
</el-form-item>
... ... @@ -367,7 +368,7 @@
<el-option
v-for="item in countryOption"
:key="item.value"
:label="item.label"
:label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
... ... @@ -442,7 +443,7 @@
<el-option
v-for="item in countryOption"
:key="item.value"
:label="item.label"
:label="item.value"
:value="item.value">
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
... ... @@ -569,7 +570,6 @@
awba: undefined,
awbh: undefined,
customcode: undefined,
carrier: undefined,
flightno: undefined,
flightdate: undefined,
originstation: undefined,
... ... @@ -909,7 +909,7 @@
if (newValue != null && newValue!='') {
this.selectCountry.countryCode = newValue
getByCountryCode(this.selectCountry).then(res => {
this.temp.awbinfo.cnscomidno = res.data.dataList[0].enterpriseCode
this.temp.awbinfo.cnscomidpre = res.data.dataList[0].enterpriseCode
})
}
},
... ... @@ -917,7 +917,7 @@
if (newValue != null && newValue!='') {
this.selectCountry.countryCode = newValue
getByCountryCode(this.selectCountry).then(res => {
this.temp.awbinfo.shpcomidpno = res.data.dataList[0].enterpriseCode
this.temp.awbinfo.shpcomidpre = res.data.dataList[0].enterpriseCode
})
}
}
... ... @@ -1046,8 +1046,8 @@
})
}, 200)
if (query.length > 1) {
this.selectCountry.countryNameCn = query
getByCountryCodeForName(this.selectCountry).then(res => {
this.selectCountry.countryCode = query
getByCountryCode(this.selectCountry).then(res => {
this.shpCompnyList = res.data.dataList
this.shpCompnyTypeOption = this.shpCompnyList.map(item => {
return {value: item.enterpriseCode, label: item.enterpriseCode}
... ... @@ -1082,11 +1082,16 @@
})
},
updateData() {
console.log(this.temp)
this.$refs.formData.validate(valid => {
if (valid) {
updateMT1201(this.temp).then(res => {
Message.success(res.data.respMessage)
if(res.data.count>0){
this.dialogFormVisible = false
this.getList()
Message.success(res.data.respMessage)
}else {
Message.success("数据异常清稍后重试")
}
})
}
})
... ...