正在显示
1 个修改的文件
包含
38 行增加
和
7 行删除
| @@ -111,7 +111,8 @@ | @@ -111,7 +111,8 @@ | ||
| 111 | <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button> | 111 | <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button> |
| 112 | <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button> | 112 | <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button> |
| 113 | <el-button size="mini" type="primary" @click="handleAwbSend(scope.row)" | 113 | <el-button size="mini" type="primary" @click="handleAwbSend(scope.row)" |
| 114 | - :disabled="scope.row.status ==='23'">发舱单报</el-button> | 114 | + :disabled="addStatus(scope.row.status)">发舱单报</el-button> |
| 115 | +<!-- :disabled="scope.row.status ==='23'">发舱单报</el-button>--> | ||
| 115 | <el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button> | 116 | <el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button> |
| 116 | <p></p> | 117 | <p></p> |
| 117 | <el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)" | 118 | <el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)" |
| @@ -119,7 +120,8 @@ | @@ -119,7 +120,8 @@ | ||
| 119 | <el-button size="mini" type="primary" v-if="scope.row.awbh ===null" | 120 | <el-button size="mini" type="primary" v-if="scope.row.awbh ===null" |
| 120 | @click="handleAddAwbh(scope.row)">新增分单</el-button> | 121 | @click="handleAddAwbh(scope.row)">新增分单</el-button> |
| 121 | <el-button size="mini" type="danger" @click="handleSendDelete(scope.row)" | 122 | <el-button size="mini" type="danger" @click="handleSendDelete(scope.row)" |
| 122 | - :disabled="scope.row.status ==='24'">发删除报</el-button> | 123 | + :disabled="deleteStatus(scope.row.status)">发删除报</el-button> |
| 124 | +<!-- :disabled="scope.row.status ==='24'">发删除报</el-button>--> | ||
| 123 | </template> | 125 | </template> |
| 124 | </el-table-column> | 126 | </el-table-column> |
| 125 | </tree-table> | 127 | </tree-table> |
| @@ -470,6 +472,8 @@ | @@ -470,6 +472,8 @@ | ||
| 470 | contactName: [{required: true, message: '删除操作人不能为空', trigger: 'blur'}], | 472 | contactName: [{required: true, message: '删除操作人不能为空', trigger: 'blur'}], |
| 471 | contactTel: [{required: true, message: '操作人联系方式不能为空', trigger: 'blur'}] | 473 | contactTel: [{required: true, message: '操作人联系方式不能为空', trigger: 'blur'}] |
| 472 | }, | 474 | }, |
| 475 | + | ||
| 476 | + rows:{}, | ||
| 473 | } | 477 | } |
| 474 | }, | 478 | }, |
| 475 | created() { | 479 | created() { |
| @@ -617,21 +621,24 @@ | @@ -617,21 +621,24 @@ | ||
| 617 | this.detailData = res.data | 621 | this.detailData = res.data |
| 618 | }) | 622 | }) |
| 619 | }, | 623 | }, |
| 620 | - | ||
| 621 | //发送舱单报 | 624 | //发送舱单报 |
| 622 | handleAwbSend(row) { | 625 | handleAwbSend(row) { |
| 623 | delete row.children | 626 | delete row.children |
| 624 | delete row.parent | 627 | delete row.parent |
| 628 | + this.rows = row; | ||
| 625 | this.$confirm("是否发送", "确认消息", { | 629 | this.$confirm("是否发送", "确认消息", { |
| 626 | distinguishCancelAndClose: true, | 630 | distinguishCancelAndClose: true, |
| 627 | confirmButtonText: '发送', | 631 | confirmButtonText: '发送', |
| 628 | cancelButtonText: '取消' | 632 | cancelButtonText: '取消' |
| 629 | }).then(() => { | 633 | }).then(() => { |
| 630 | console.log(row) | 634 | console.log(row) |
| 635 | + | ||
| 631 | sendCreateMt5202(row).then(res => { | 636 | sendCreateMt5202(row).then(res => { |
| 632 | if (res.data.count > 0) { | 637 | if (res.data.count > 0) { |
| 633 | Message.success(res.data.respMessage) | 638 | Message.success(res.data.respMessage) |
| 634 | - this.getList() | 639 | + // this.getList() |
| 640 | + this.rows.status="23"; | ||
| 641 | + this.rows.ext5="新增报发送成功"; | ||
| 635 | }else { | 642 | }else { |
| 636 | Message.error(res.data.respMessage) | 643 | Message.error(res.data.respMessage) |
| 637 | } | 644 | } |
| @@ -640,8 +647,19 @@ | @@ -640,8 +647,19 @@ | ||
| 640 | Message.error(error.message) | 647 | Message.error(error.message) |
| 641 | }) | 648 | }) |
| 642 | }, | 649 | }, |
| 650 | + // 发送舱单报自灰 | ||
| 651 | + addStatus(status){ | ||
| 652 | + if(status=='23' || status=='24'||status=='25'){ | ||
| 653 | + return true; | ||
| 654 | + }else if(status=='22' ) { | ||
| 655 | + return false; | ||
| 656 | + } | ||
| 657 | + }, | ||
| 643 | //新增分单理货 | 658 | //新增分单理货 |
| 644 | handleAddAwbh(row) { | 659 | handleAddAwbh(row) { |
| 660 | + // 清空from列表 | ||
| 661 | + this.restModel(); | ||
| 662 | + | ||
| 645 | this.tidyModel.carrier = row.carrier | 663 | this.tidyModel.carrier = row.carrier |
| 646 | this.tidyModel.awba = row.awba | 664 | this.tidyModel.awba = row.awba |
| 647 | this.tidyModel.flightdate = row.flightdate | 665 | this.tidyModel.flightdate = row.flightdate |
| @@ -649,7 +667,8 @@ | @@ -649,7 +667,8 @@ | ||
| 649 | this.tidyModel.originstation = row.originstation | 667 | this.tidyModel.originstation = row.originstation |
| 650 | this.tidyModel.destinationstation = row.destinationstation | 668 | this.tidyModel.destinationstation = row.destinationstation |
| 651 | this.tidyModel.customcode = row.customcode | 669 | this.tidyModel.customcode = row.customcode |
| 652 | - this.dialogStatus = 'addAwbh' | 670 | + // this.dialogStatus = 'addAwbh' |
| 671 | + this.dialogStatus = 'create' | ||
| 653 | this.dialogFormVisible = true | 672 | this.dialogFormVisible = true |
| 654 | this.$nextTick(() => { | 673 | this.$nextTick(() => { |
| 655 | this.$refs.tidyFormData.clearValidate() | 674 | this.$refs.tidyFormData.clearValidate() |
| @@ -657,6 +676,9 @@ | @@ -657,6 +676,9 @@ | ||
| 657 | }, | 676 | }, |
| 658 | // 发删除报 | 677 | // 发删除报 |
| 659 | handleSendDelete(row){ | 678 | handleSendDelete(row){ |
| 679 | + | ||
| 680 | + this.rows = row; | ||
| 681 | + | ||
| 660 | this.respModel = { | 682 | this.respModel = { |
| 661 | carrier: undefined, | 683 | carrier: undefined, |
| 662 | reason: undefined, | 684 | reason: undefined, |
| @@ -685,6 +707,15 @@ | @@ -685,6 +707,15 @@ | ||
| 685 | this.$refs.tidyDeleteForm.clearValidate() | 707 | this.$refs.tidyDeleteForm.clearValidate() |
| 686 | }) | 708 | }) |
| 687 | }, | 709 | }, |
| 710 | + // 删除舱单报自灰 | ||
| 711 | + deleteStatus(status){ | ||
| 712 | + if(status=='23' || status=='24'||status=='25'){ | ||
| 713 | + return true; | ||
| 714 | + }else if(status=='22' ) { | ||
| 715 | + return false; | ||
| 716 | + } | ||
| 717 | + }, | ||
| 718 | + // 发送删除报 | ||
| 688 | sendTidyDelete(){ | 719 | sendTidyDelete(){ |
| 689 | this.$refs.tidyDeleteForm.validate(valid =>{ | 720 | this.$refs.tidyDeleteForm.validate(valid =>{ |
| 690 | if(valid){ | 721 | if(valid){ |
| @@ -692,7 +723,8 @@ | @@ -692,7 +723,8 @@ | ||
| 692 | if(res.data.count >0){ | 723 | if(res.data.count >0){ |
| 693 | Message.success(res.data.respMessage) | 724 | Message.success(res.data.respMessage) |
| 694 | this.dialogDeleteVisible = false | 725 | this.dialogDeleteVisible = false |
| 695 | - this.getList() | 726 | + this.rows.status="24"; |
| 727 | + this.rows.ext5="删除报发送成功"; | ||
| 696 | }else { | 728 | }else { |
| 697 | Message.error(res.data.respMessage) | 729 | Message.error(res.data.respMessage) |
| 698 | } | 730 | } |
| @@ -700,7 +732,6 @@ | @@ -700,7 +732,6 @@ | ||
| 700 | } | 732 | } |
| 701 | }) | 733 | }) |
| 702 | }, | 734 | }, |
| 703 | - | ||
| 704 | // 删除当前运单 | 735 | // 删除当前运单 |
| 705 | handleAwbDelete(row) { | 736 | handleAwbDelete(row) { |
| 706 | delete row.parent | 737 | delete row.parent |
-
请 注册 或 登录 后发表评论