|
@@ -361,7 +361,9 @@ |
|
@@ -361,7 +361,9 @@ |
361
|
</el-col>
|
361
|
</el-col>
|
362
|
<el-col :span="6">
|
362
|
<el-col :span="6">
|
363
|
<el-form-item label="海关关区" prop="customcode">
|
363
|
<el-form-item label="海关关区" prop="customcode">
|
364
|
- <el-select v-model="ruleForm.customcode" filterable placeholder="请选择" style="display:inline">
|
364
|
+ <el-select v-model="ruleForm.customcode" filterable
|
|
|
365
|
+ allow-create
|
|
|
366
|
+ default-first-option filterable placeholder="请选择" style="display:inline">
|
365
|
<el-option
|
367
|
<el-option
|
366
|
v-for="item in customcodes"
|
368
|
v-for="item in customcodes"
|
367
|
:key="item.customcode"
|
369
|
:key="item.customcode"
|
|
@@ -402,7 +404,9 @@ |
|
@@ -402,7 +404,9 @@ |
402
|
</el-select>
|
404
|
</el-select>
|
403
|
</el-form-item>-->
|
405
|
</el-form-item>-->
|
404
|
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
406
|
<el-form-item label="国家代码" prop="awbinfo.shprcountyr">
|
405
|
- <el-select v-model="ruleForm.awbinfo.shprcountyr" filterable placeholder="请选择">
|
407
|
+ <el-select v-model="ruleForm.awbinfo.shprcountyr" filterable
|
|
|
408
|
+ allow-create
|
|
|
409
|
+ default-first-option filterable placeholder="请选择">
|
406
|
<el-option
|
410
|
<el-option
|
407
|
v-for="item in shprcountyrs"
|
411
|
v-for="item in shprcountyrs"
|
408
|
:key="item.countryCode"
|
412
|
:key="item.countryCode"
|
|
@@ -440,7 +444,9 @@ |
|
@@ -440,7 +444,9 @@ |
440
|
<el-col :span="6">
|
444
|
<el-col :span="6">
|
441
|
|
445
|
|
442
|
<el-form-item label="国家代码" prop="awbinfo.cnscountyr">
|
446
|
<el-form-item label="国家代码" prop="awbinfo.cnscountyr">
|
443
|
- <el-select v-model="ruleForm.awbinfo.cnscountyr" filterable placeholder="请选择">
|
447
|
+ <el-select v-model="ruleForm.awbinfo.cnscountyr" filterable
|
|
|
448
|
+ allow-create
|
|
|
449
|
+ default-first-option filterable placeholder="请选择">
|
444
|
<el-option
|
450
|
<el-option
|
445
|
v-for="item in cnscountyrs"
|
451
|
v-for="item in cnscountyrs"
|
446
|
:key="item.countryCode"
|
452
|
:key="item.countryCode"
|
|
@@ -569,6 +575,26 @@ |
|
@@ -569,6 +575,26 @@ |
569
|
</span>
|
575
|
</span>
|
570
|
</el-dialog>
|
576
|
</el-dialog>
|
571
|
</el-row>
|
577
|
</el-row>
|
|
|
578
|
+ <!--发送删除报修改报提示框-->
|
|
|
579
|
+ <el-row>
|
|
|
580
|
+ <el-dialog title="提交修改信息" :visible.sync="dialogFormVisible">
|
|
|
581
|
+ <el-form :model="Udform" :rules="udrules" ref="Udform" class="demo-ruleForm">
|
|
|
582
|
+ <el-form-item label="操作原因" prop="operreason">
|
|
|
583
|
+ <el-input type="textarea" v-model="Udform.operreason"></el-input>
|
|
|
584
|
+ </el-form-item>
|
|
|
585
|
+ <el-form-item label="操作人" prop="operperson">
|
|
|
586
|
+ <el-input v-model="Udform.operperson"></el-input>
|
|
|
587
|
+ </el-form-item>
|
|
|
588
|
+ <el-form-item label="联系电话" prop="opertel">
|
|
|
589
|
+ <el-input v-model="Udform.opertel"></el-input>
|
|
|
590
|
+ </el-form-item>
|
|
|
591
|
+ </el-form>
|
|
|
592
|
+ <div slot="footer" class="dialog-footer">
|
|
|
593
|
+ <el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
594
|
+ <el-button type="primary" @click="submitUdForm('Udform')">确 定</el-button>
|
|
|
595
|
+ </div>
|
|
|
596
|
+ </el-dialog>
|
|
|
597
|
+ </el-row>
|
572
|
</el-main>
|
598
|
</el-main>
|
573
|
</el-container>
|
599
|
</el-container>
|
574
|
</template>
|
600
|
</template>
|
|
@@ -626,6 +652,8 @@ |
|
@@ -626,6 +652,8 @@ |
626
|
|
652
|
|
627
|
<script>
|
653
|
<script>
|
628
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode } from '../../api/mt1201'
|
654
|
import { getMt1201List,addMt1201,ediMt1201,getFenList,getCountryCode,selectCustomcode } from '../../api/mt1201'
|
|
|
655
|
+ import{addResponse} from "../../api/InResponse";
|
|
|
656
|
+
|
629
|
export default {
|
657
|
export default {
|
630
|
data() {
|
658
|
data() {
|
631
|
/*初始数据*/
|
659
|
/*初始数据*/
|
|
@@ -776,6 +804,28 @@ |
|
@@ -776,6 +804,28 @@ |
776
|
sumNmmsCount:0,
|
804
|
sumNmmsCount:0,
|
777
|
sumNmmsPrice:0,
|
805
|
sumNmmsPrice:0,
|
778
|
sumNmmsWeight:0,
|
806
|
sumNmmsWeight:0,
|
|
|
807
|
+ dialogFormVisible: false,
|
|
|
808
|
+ formLabelWidth: '100px',
|
|
|
809
|
+ Udform:{
|
|
|
810
|
+ operreason:'',
|
|
|
811
|
+ operperson:'',
|
|
|
812
|
+ opertel:'',
|
|
|
813
|
+ flightdate:'',
|
|
|
814
|
+ flightno:'',
|
|
|
815
|
+ carrier:'',
|
|
|
816
|
+ awbano:'',
|
|
|
817
|
+ awbhno:'',
|
|
|
818
|
+ bustype:'',
|
|
|
819
|
+ busdate:'',
|
|
|
820
|
+ busweight:'',
|
|
|
821
|
+ buspiece:'',
|
|
|
822
|
+ opertype:'',
|
|
|
823
|
+ },
|
|
|
824
|
+ udrules:{
|
|
|
825
|
+ operreason: [{required: true, message: '请输入操作原因', trigger: 'blur'}],
|
|
|
826
|
+ operperson: [{required: true, message: '请输入操作人', trigger: 'blur'}],
|
|
|
827
|
+ opertel: [{required: true, message: '请输入操作人联系电话', trigger: 'blur'}],
|
|
|
828
|
+ },
|
779
|
}
|
829
|
}
|
780
|
},
|
830
|
},
|
781
|
methods: {
|
831
|
methods: {
|
|
@@ -811,6 +861,48 @@ |
|
@@ -811,6 +861,48 @@ |
811
|
},
|
861
|
},
|
812
|
//发送舱单报
|
862
|
//发送舱单报
|
813
|
handleSend(index,row){},
|
863
|
handleSend(index,row){},
|
|
|
864
|
+ /*发送舱单修改报*/
|
|
|
865
|
+ handleUpdate(index,row){
|
|
|
866
|
+ this.dialogFormVisible=true;
|
|
|
867
|
+ //console.log(row);
|
|
|
868
|
+ this.Udform.awbano=row.awba;
|
|
|
869
|
+ this.Udform.awbhno=row.awbh;
|
|
|
870
|
+ this.Udform.carrier=row.carrier;
|
|
|
871
|
+ this.Udform.flightno=row.flightno.substring(2);
|
|
|
872
|
+ this.Udform.flightdate=row.flightdate;
|
|
|
873
|
+ this.Udform.bustype='MT1201';
|
|
|
874
|
+ this.Udform.busdate=Date.parse(new Date());
|
|
|
875
|
+ this.Udform.busweight=row.weight;
|
|
|
876
|
+ this.Udform.buspiece=row.piece;
|
|
|
877
|
+ this.Udform.opertype='发送舱单修改报';
|
|
|
878
|
+ },
|
|
|
879
|
+ //提交发送舱单修改报表单
|
|
|
880
|
+ submitUdForm(formName){
|
|
|
881
|
+ this.$refs[formName].validate((valid) => {
|
|
|
882
|
+ if (valid) {
|
|
|
883
|
+ console.log(this.Udform)
|
|
|
884
|
+ addResponse(this.Udform).then(res=>{
|
|
|
885
|
+ let response=res.data;
|
|
|
886
|
+ this.code=response.code;
|
|
|
887
|
+ if(this.code=='200'){
|
|
|
888
|
+ this.outerVisible = false;
|
|
|
889
|
+ this.$refs[formName].resetFields();
|
|
|
890
|
+ this.centerDialogVisible=true;
|
|
|
891
|
+ this.msg=response.msg;
|
|
|
892
|
+ this.dialogFormVisible=false;
|
|
|
893
|
+ }else{
|
|
|
894
|
+ this.outerVisible = false;
|
|
|
895
|
+ this.centerDialogVisible=true;
|
|
|
896
|
+ this.$refs[formName].resetFields();
|
|
|
897
|
+ this.msg=response.msg;
|
|
|
898
|
+ }
|
|
|
899
|
+ });
|
|
|
900
|
+ } else {
|
|
|
901
|
+ console.log('error submit!!');
|
|
|
902
|
+ return false;
|
|
|
903
|
+ }
|
|
|
904
|
+ });
|
|
|
905
|
+ },
|
814
|
/*编辑分单列表信息*/
|
906
|
/*编辑分单列表信息*/
|
815
|
handleClick(row) {
|
907
|
handleClick(row) {
|
816
|
this.outerVisible = true;
|
908
|
this.outerVisible = true;
|