...
|
...
|
@@ -182,11 +182,11 @@ |
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="承运人" prop="carrier">
|
|
|
<el-input v-model="carrier" :disabled="dialogStatus === 'update'"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="7.5">-->
|
|
|
<!-- <el-form-item label="承运人" prop="carrier">-->
|
|
|
<!-- <el-input v-model="carrier" :disabled="dialogStatus === 'update'"></el-input>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
<!-- </el-col>-->
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="航班号" prop="flightno">
|
|
|
<el-input v-model="flightno" :disabled="dialogStatus === 'update'"></el-input>
|
...
|
...
|
@@ -256,12 +256,12 @@ |
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="装载件数" prop="piece">
|
|
|
<el-form-item label="理货件数" prop="piece">
|
|
|
<el-input v-model="tidyModel.piece"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="装载重量" prop="weight">
|
|
|
<el-form-item label="理货重量" prop="weight">
|
|
|
<el-input v-model="tidyModel.weight"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
...
|
...
|
@@ -450,6 +450,7 @@ |
|
|
goodsname: [{required: true, message: "货物描述不能为空"},{ trigger: 'blur', validator: validAlphabetsSpanceKey}],
|
|
|
carrier: [{required: true, message:"承运人不能为空"},{trigger: 'blur', validator: validatorAwbh}],
|
|
|
flightno: [{required: true, message:"航班号不能为空"}, { trigger: 'blur', validator: validatorAwbh}],
|
|
|
flightdate: [{required: true, trigger:'blur', message:"请选择航班日期"}],
|
|
|
originstation: [{required: true, message:"起始站不能为空"}, {trigger: 'blur', validator: validatorAlphabets}],
|
|
|
destinationstation: [{required: true, message:"目的站不能为空"}, { trigger: 'blur', validator: validatorAlphabets}],
|
|
|
weight: [{required: true, message:"重量不能为空"}, { trigger: 'change', validator: validatorNums}],
|
...
|
...
|
@@ -724,10 +725,9 @@ |
|
|
// 清空from列表
|
|
|
this.restModel();
|
|
|
|
|
|
this.tidyModel.carrier = row.carrier
|
|
|
this.tidyModel.awba = row.awba
|
|
|
this.tidyModel.flightdate = row.flightdate
|
|
|
this.tidyModel.flightno = row.flightno
|
|
|
this.tidyModel.flightno = row.carrier + row.flightno
|
|
|
this.tidyModel.originstation = row.originstation
|
|
|
this.tidyModel.destinationstation = row.destinationstation
|
|
|
this.tidyModel.customcode = row.customcode
|
...
|
...
|
@@ -886,9 +886,10 @@ |
|
|
this.fenStatus=undefined;
|
|
|
this.restModel()
|
|
|
// 给model赋值,所使用数据是以单独单号查询数据所得
|
|
|
this.tidyModel.carrier = this.tidyQuery.carrier
|
|
|
this.tidyModel.flightdate = this.tidyQuery.flightdate
|
|
|
this.tidyModel.flightno = this.tidyQuery.flightno
|
|
|
if (this.tidyQuery.carrier != undefined){
|
|
|
this.tidyModel.flightno = this.tidyQuery.carrier+this.tidyQuery.flightno
|
|
|
}
|
|
|
this.tidyModel.originstation = this.tidyQuery.originstation
|
|
|
this.tidyModel.destinationstation = this.tidyQuery.destinationstation
|
|
|
this.tidyModel.customcode = this.tidyQuery.customcode
|
...
|
...
|
@@ -902,6 +903,8 @@ |
|
|
createData() {
|
|
|
this.$refs.tidyFormData.validate(valid => {
|
|
|
if (valid) {
|
|
|
this.tidyModel.carrier = this.tidyModel.flightno.substring(0,2);
|
|
|
this.tidyModel.flightno = this.tidyModel.flightno.substring(2);
|
|
|
addMt520X(this.tidyModel).then(res => {
|
|
|
if (res.data.code == "200") {
|
|
|
Message.success(res.data.msg);
|
...
|
...
|
@@ -922,6 +925,7 @@ |
|
|
this.fenStatus=undefined
|
|
|
}
|
|
|
this.tidyModel = Object.assign({}, row)
|
|
|
this.tidyModel.flightno = row.carrier+row.flightno
|
|
|
this.dialogStatus = 'update'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
...
|
...
|
@@ -942,7 +946,8 @@ |
|
|
this.tidyModel.userinfo = {
|
|
|
username : loginedUserInfo().username
|
|
|
}
|
|
|
|
|
|
this.tidyModel.carrier = this.tidyModel.flightno.substring(0,2);
|
|
|
this.tidyModel.flightno = this.tidyModel.flightno.substring(2);
|
|
|
updateMt520X(this.tidyModel).then(res => {
|
|
|
console.log(res.data)
|
|
|
if (res.data.count > 0) {
|
...
|
...
|
|