Event.js 4.17 KB
Newer Older
cl committed
1 2 3 4
import Api from "~/service/Api"
import Utils from "~/utils"

export default {
nanrui committed
5 6 7 8 9 10 11 12 13 14 15 16 17
    async handleSearch() {
        let colflg = this.model.cldgrp.rec.colflg;
        if (!colflg || colflg == '') {
            this.$notify.error({ title: '错误', message: 'Payemnt Disposition必输!' });
            return;
        }
        let cur = this.model.cur;
        if (!cur || cur == '') {
            this.$notify.error({ title: '错误', message: 'cur必输!' });
            return;
        }
        let rtnmsg = await this.executeRule("butsea")
        if (rtnmsg.respCode == SUCCESS) {
18
            this.updateModel(rtnmsg.data);
nanrui committed
19
            //TODO 处理数据逻辑
20
            this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
nanrui committed
21 22 23 24 25
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
26 27 28 29
    async onCltpButgetref() {
        let rtnmsg = await this.executeRule("cltp.butgetref")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
30
            this.model.cldgrp.rec.ownref = rtnmsg.data.cldgrp_rec_ownref;
31 32 33 34 35 36 37 38 39
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onGet() {
        let rtnmsg = await this.executeRule("get")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
40

41 42 43 44 45 46 47 48 49
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onColpDet() {
        let rtnmsg = await this.executeRule("colp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
50

51 52 53 54 55 56 57 58 59
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButshw() {
        let rtnmsg = await this.executeRule("trndoc.butshw")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
60

61 62 63 64 65 66 67 68 69
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButadd() {
        let rtnmsg = await this.executeRule("trndoc.butadd")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
70

71 72 73 74 75 76 77 78 79
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButnew() {
        let rtnmsg = await this.executeRule("trndoc.butnew")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
80

81 82 83 84 85 86 87 88 89
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButattto() {
        let rtnmsg = await this.executeRule("trndoc.butattto")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
90

91 92 93 94 95 96 97 98 99
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButdel() {
        let rtnmsg = await this.executeRule("trndoc.butdel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
100

101 102 103 104 105 106 107 108 109
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButatt() {
        let rtnmsg = await this.executeRule("trndoc.butatt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
110

111 112 113 114 115 116 117 118 119
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
120

121 122 123 124 125 126 127 128 129
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetinsButtxmsel() {
        let rtnmsg = await this.executeRule("setins.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
130
            this.showGridPromptDialog(cldgrp.blk.setins);
cl committed
131

132 133 134 135 136
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
cl committed
137 138

}