Event.js 6.2 KB
Newer Older
1 2
import Api from "~/service/Api"
export default {
潘际乾 committed
3
    async onCptpGetref() {
4
        let rtnmsg = await this.executeRule("cptp_getref")
wangguangchao committed
5
        if (rtnmsg.respCode == SUCCESS) {
6 7 8 9 10 11 12
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
13
    async onCptpGetinf() {
14
        let rtnmsg = await this.executeRule("cptp_getinf")
wangguangchao committed
15
        if (rtnmsg.respCode == SUCCESS) {
16 17 18 19 20 21 22
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
23
    async onCptpGetuetr() {
24
        let rtnmsg = await this.executeRule("cptp_getuetr")
wangguangchao committed
25
        if (rtnmsg.respCode == SUCCESS) {
26 27 28 29 30 31 32
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
33
    async onCptpSelbut() {
34
        let rtnmsg = await this.executeRule("cptp_selbut")
wangguangchao committed
35
        if (rtnmsg.respCode == SUCCESS) {
36 37 38 39 40 41 42
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
43
    async onCptpSelbut1() {
44
        let rtnmsg = await this.executeRule("cptp_selbut1")
wangguangchao committed
45
        if (rtnmsg.respCode == SUCCESS) {
46 47 48 49 50 51 52
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
53
    async onSndpDet() {
54
        let rtnmsg = await this.executeRule("sndp_det")
wangguangchao committed
55
        if (rtnmsg.respCode == SUCCESS) {
56 57 58 59 60 61 62
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
63
    async onOripDet() {
64
        let rtnmsg = await this.executeRule("orip_det")
wangguangchao committed
65
        if (rtnmsg.respCode == SUCCESS) {
66 67 68 69 70 71 72
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
73
    async onCptpGetmod() {
74
        let rtnmsg = await this.executeRule("cptp_getmod")
wangguangchao committed
75
        if (rtnmsg.respCode == SUCCESS) {
76 77 78 79 80 81 82
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
83
    async onOrcpDet() {
84
        let rtnmsg = await this.executeRule("orcp_det")
wangguangchao committed
85
        if (rtnmsg.respCode == SUCCESS) {
86 87 88 89 90 91 92
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
93
    async onPyepDet() {
94
        let rtnmsg = await this.executeRule("pyep_det")
wangguangchao committed
95
        if (rtnmsg.respCode == SUCCESS) {
96 97 98 99 100 101 102
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
103
    async onCptpSerpty() {
104
        let rtnmsg = await this.executeRule("cptp_serpty")
wangguangchao committed
105
        if (rtnmsg.respCode == SUCCESS) {
106 107 108 109 110 111 112
            //TODO 处理数据逻辑

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

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
123
    async onTrndocButshw() {
124
        let rtnmsg = await this.executeRule("trndoc_butshw")
wangguangchao committed
125
        if (rtnmsg.respCode == SUCCESS) {
126 127 128 129 130 131 132
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
133
    async onTrndocButadd() {
134
        let rtnmsg = await this.executeRule("trndoc_butadd")
wangguangchao committed
135
        if (rtnmsg.respCode == SUCCESS) {
136 137 138 139 140 141 142
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
143
    async onTrndocButnew() {
144
        let rtnmsg = await this.executeRule("trndoc_butnew")
wangguangchao committed
145
        if (rtnmsg.respCode == SUCCESS) {
146 147 148 149 150 151 152
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
153
    async onTrndocButattto() {
154
        let rtnmsg = await this.executeRule("trndoc_butattto")
wangguangchao committed
155
        if (rtnmsg.respCode == SUCCESS) {
156 157 158 159 160 161 162
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
163
    async onTrndocButdel() {
164
        let rtnmsg = await this.executeRule("trndoc_butdel")
wangguangchao committed
165
        if (rtnmsg.respCode == SUCCESS) {
166 167 168 169 170 171 172
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
173
    async onTrndocButatt() {
174
        let rtnmsg = await this.executeRule("trndoc_butatt")
wangguangchao committed
175
        if (rtnmsg.respCode == SUCCESS) {
176 177 178 179 180 181 182
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
潘际乾 committed
183
    async onSeainf() {
184 185

    },
潘际乾 committed
186
    async onFippDet() {
187
        let rtnmsg = await this.executeRule("fipp_det")
wangguangchao committed
188
        if (rtnmsg.respCode == SUCCESS) {
189 190 191 192 193 194 195
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
196

197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
    /** 手动添加rule开始 */
    async onNom1CurChange() {
        let rtnmsg = await this.executeRule("cpdgrp.cbs.nom1.cur")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },

    async onPayuilChange() {
        let rtnmsg = await this.executeRule("cptp.payuil")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },

    

222
}