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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
    /** 手动添加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: '服务请求失败!' });
        }
    },

221
    async onOpnpButgetref() {
222
        let rtnmsg = await this.executeRule("cptp.getref")
223 224
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
            Utils.copyValueFromVO(this.model, rtnmsg.data);
            this.$message({
                type: 'success',
                message: '获取成功!'
            });
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },

    async swftypChange() {
        let rtnmsg = await this.executeRule("cpdgrp.rec.swftyp")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            Utils.copyValueFromVO(this.model, rtnmsg.data);
241 242 243 244 245 246 247 248 249
            this.$message({
                type: 'success',
                message: '获取成功!'
            });
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
liuxin committed
250 251 252 253 254 255 256 257 258 259 260

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

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