Event.js 4.8 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async handleReset() {
        // this.model.infcon.seaownref = ""
        // this.model.infcon.opndatfrom = new Date();
        // this.model.infcon.opndatto = new Date();
        // this.model.infcon.searef = "";
        // this.model.infcon.pty.extkey = "";
        // this.model.infcon.usr.extkey = "";
        // this.model.infcon.searol = "";
        // this.model.infcon.pty.nam = "";
        // this.model.infcon.seapty = "";
        // this.model.infcon.curtxt1 = "";
        // this.model.infcon.nam = "";
        // this.model.infcon.seaamtfr = "";
        // this.model.infcon.seaamtto = "";
        // this.model.infcon.seasta = "";
        // this.model.infcon.doctypcod = "";
    },
43 44 45 46
    async onCltpButgetref() {
        let rtnmsg = await this.executeRule("cltp.butgetref")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
nanrui committed
47
            this.model.cldgrp.rec.ownref= rtnmsg.data.cldgrp_rec_ownref;
48 49 50 51 52 53 54 55 56
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onGet() {
        let rtnmsg = await this.executeRule("get")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
57

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

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

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

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

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

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

118 119 120 121 122 123 124 125 126
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onTrndocButatt() {
        let rtnmsg = await this.executeRule("trndoc.butatt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
127

128 129 130 131 132 133 134 135 136
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
137

138 139 140 141 142 143 144 145 146
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onSetinsButtxmsel() {
        let rtnmsg = await this.executeRule("setins.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
cl committed
147

148 149 150 151 152
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
cl committed
153 154

}