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

export default {
杜大兵 committed
5
    // 顶部查询按钮
Eivi committed
6 7
    async onInfbutSearow() {
        this.stmData.data = [];
杜大兵 committed
8
        let opndatfrom = this.model.infcon.opndatfrom;
Eivi committed
9 10

        if (!opndatfrom || opndatfrom == '') {
DDB committed
11
            this.$notify.error({ title: '错误', message: '开立日期为必输项!' });
杜大兵 committed
12 13 14
            return;
        }
        let opndatto = this.model.infcon.opndatto;
Eivi committed
15
        if (!opndatto || opndatto == '') {
DDB committed
16
            this.$notify.error({ title: '错误', message: '截止日期必输项!' });
杜大兵 committed
17 18
            return;
        }
Eivi committed
19

杜大兵 committed
20
        let rtnmsg = await this.executeRule("infbut.searow")
Eivi committed
21
        if (rtnmsg.respCode == SUCCESS) {
DDB committed
22 23 24 25
            this.$message({
                type: 'success',
                message: '查询成功!'
            });
杜大兵 committed
26 27
            this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
            // this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows;
Eivi committed
28 29
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
30 31
        }
    },
32

杜大兵 committed
33
    // Display按钮
Eivi committed
34
    async onInfbutDsp() {
杜大兵 committed
35
        let rtnmsg = await this.executeRule("infbut.dsp")
Eivi committed
36
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
37
            //TODO 处理数据逻辑
38

Eivi committed
39 40
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
41 42
        }
    },
43

Eivi committed
44
    async onInfbutUserow() {
杜大兵 committed
45
        let rtnmsg = await this.executeRule("infbut.userow")
Eivi committed
46 47
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
48

Eivi committed
49 50
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
51 52 53
        }
    },
    // Clear按钮
Eivi committed
54
    async onInfbutClr() {
杜大兵 committed
55
        let rtnmsg = await this.executeRule("infbut.clr")
Eivi committed
56
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
57
            //TODO 处理数据逻辑
58

Eivi committed
59 60
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
61 62 63
        }
    },
    // 导Excel按钮
Eivi committed
64
    async onInfbutButprt() {
杜大兵 committed
65
        let rtnmsg = await this.executeRule("infbut.butprt")
Eivi committed
66
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
67
            //TODO 处理数据逻辑
68

Eivi committed
69 70
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
71 72 73
        }
    },
    // Exit按钮
Eivi committed
74
    async onInfbutExi() {
杜大兵 committed
75
        let rtnmsg = await this.executeRule("infbut.exi")
Eivi committed
76
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
77
            //TODO 处理数据逻辑
78

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

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

Eivi committed
97 98
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
99 100
        }
    },
Eivi committed
101
    async onIsspDet() {
杜大兵 committed
102
        let rtnmsg = await this.executeRule("issp.det")
Eivi committed
103
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
104
            //TODO 处理数据逻辑
105

Eivi committed
106 107
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
108 109
        }
    },
Eivi committed
110
    async onAplpDet() {
杜大兵 committed
111
        let rtnmsg = await this.executeRule("aplp.det")
Eivi committed
112 113
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
114

Eivi committed
115 116
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
117 118
        }
    },
Eivi committed
119
    async onAvbpDet() {
杜大兵 committed
120
        let rtnmsg = await this.executeRule("avbp.det")
Eivi committed
121 122
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
123

Eivi committed
124 125
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
126 127
        }
    },
Eivi committed
128
    async onPreperButtxmsel() {
杜大兵 committed
129
        let rtnmsg = await this.executeRule("preper.buttxmsel")
Eivi committed
130
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
131
            //TODO 处理数据逻辑
132

Eivi committed
133 134
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
135 136
        }
    },
Eivi committed
137
    async onChariaButtxmsel() {
杜大兵 committed
138
        let rtnmsg = await this.executeRule("charia.buttxmsel")
Eivi committed
139
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
140
            //TODO 处理数据逻辑
141

Eivi committed
142 143
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
144 145
        }
    },
Eivi committed
146
    async onLcrdftatButtxmsel() {
杜大兵 committed
147
        let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
Eivi committed
148
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
149
            //TODO 处理数据逻辑
150

Eivi committed
151 152
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
153 154
        }
    },
Eivi committed
155
    async onDrwpDet() {
杜大兵 committed
156
        let rtnmsg = await this.executeRule("drwp.det")
Eivi committed
157
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
158
            //TODO 处理数据逻辑
159

Eivi committed
160 161
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
162 163
        }
    },
Eivi committed
164
    async onAdvpDet() {
杜大兵 committed
165
        let rtnmsg = await this.executeRule("advp.det")
Eivi committed
166
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
167
            //TODO 处理数据逻辑
168

Eivi committed
169 170
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
171 172
        }
    },
Eivi committed
173
    async onApbpDet() {
杜大兵 committed
174
        let rtnmsg = await this.executeRule("apbp.det")
Eivi committed
175
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
176
            //TODO 处理数据逻辑
177

Eivi committed
178 179
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
180 181
        }
    },
Eivi committed
182
    async onA2bpDet() {
杜大兵 committed
183
        let rtnmsg = await this.executeRule("a2bp.det")
Eivi committed
184
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
185
            //TODO 处理数据逻辑
186

Eivi committed
187 188
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
189 190
        }
    },
Eivi committed
191
    async onRmbpDet() {
杜大兵 committed
192
        let rtnmsg = await this.executeRule("rmbp.det")
Eivi committed
193
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
194
            //TODO 处理数据逻辑
195

Eivi committed
196 197
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
198 199
        }
    },
Eivi committed
200
    async onConpDet() {
杜大兵 committed
201
        let rtnmsg = await this.executeRule("conp.det")
Eivi committed
202
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
203
            //TODO 处理数据逻辑
204

Eivi committed
205 206
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
207 208
        }
    },
Eivi committed
209
    async onLcrgodButtxmsel() {
杜大兵 committed
210
        let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
Eivi committed
211
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
212
            //TODO 处理数据逻辑
213

Eivi committed
214 215
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
216 217
        }
    },
Eivi committed
218
    async onLcrdocButtxmsel() {
杜大兵 committed
219
        let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
Eivi committed
220
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
221
            //TODO 处理数据逻辑
222

Eivi committed
223 224
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
225 226
        }
    },
Eivi committed
227
    async onAdlcndButtxmsel() {
杜大兵 committed
228
        let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
Eivi committed
229
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
230
            //TODO 处理数据逻辑
231

Eivi committed
232 233
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
234 235
        }
    },
Eivi committed
236
    async onInsbnkButtxmsel() {
杜大兵 committed
237
        let rtnmsg = await this.executeRule("insbnk.buttxmsel")
Eivi committed
238
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
239
            //TODO 处理数据逻辑
240

Eivi committed
241 242
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
243 244
        }
    },
Eivi committed
245
    async onInfconButshw() {
杜大兵 committed
246
        let rtnmsg = await this.executeRule("infcon.butshw")
Eivi committed
247
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
248
            //TODO 处理数据逻辑
249

Eivi committed
250 251
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
252 253
        }
    },
Eivi committed
254
    async onInfconButshword() {
杜大兵 committed
255
        let rtnmsg = await this.executeRule("infcon.butshword")
Eivi committed
256
        if (rtnmsg.respCode == SUCCESS) {
杜大兵 committed
257 258
            //TODO 处理数据逻辑

Eivi committed
259 260 261 262
        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
263 264
    async onInfconButshword() {
        let rtnmsg = await this.executeRule("infcon.butshword")
Eivi committed
265
        if (rtnmsg.respCode == SUCCESS) {
266
            //TODO 处理数据逻辑
Eivi committed
267 268 269

        } else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
杜大兵 committed
270 271
        }
    },
272 273
    async handleReset(formName) {
        this.$refs[formName].resetFields();
274 275 276 277
        this.model.infcon.opndatfrom = "";
        this.model.infcon.opndatto = "";
        this.model.infcon.seaamtfr = "";
        this.model.infcon.seaamtto = "";
278
    },
Wuyuqiu committed
279 280 281 282
    async handleSearch() {

        this.stmData.data = [];
        let opndatfrom = this.model.infcon.opndatfrom;
283
        if (!opndatfrom || opndatfrom == '') {
Wuyuqiu committed
284 285 286 287
            this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
            return;
        }
        let opndatto = this.model.infcon.opndatto;
288
        if (!opndatto || opndatto == '') {
Wuyuqiu committed
289 290 291
            this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
            return;
        }
292

Wuyuqiu committed
293
        let rtnmsg = await this.executeRule("infbut.searow")
294
        if (rtnmsg.respCode == SUCCESS) {
Wuyuqiu committed
295 296 297
            this.stmData.data = rtnmsg.data.infbut_dspstm.rows;

        }
298 299
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
Wuyuqiu committed
300 301
        }
    },
杜大兵 committed
302

303 304

}