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

export default {
杜大兵 committed
5 6
    // 顶部查询按钮
    async onInfbutSearow(){
DDB committed
7
        this.stmData.data = [];   
杜大兵 committed
8
        let opndatfrom = this.model.infcon.opndatfrom;
DDB committed
9
        
杜大兵 committed
10
        if(!opndatfrom || opndatfrom == ''){
DDB committed
11
            this.$notify.error({ title: '错误', message: '开立日期为必输项!' });
杜大兵 committed
12 13 14 15
            return;
        }
        let opndatto = this.model.infcon.opndatto;
        if(!opndatto || opndatto == ''){
DDB committed
16
            this.$notify.error({ title: '错误', message: '截止日期必输项!' });
杜大兵 committed
17 18 19 20
            return;
        }
        
        let rtnmsg = await this.executeRule("infbut.searow")
杜大兵 committed
21 22
        if(rtnmsg.respCode == SUCCESS)
        {
DDB committed
23 24 25 26
            this.$message({
                type: 'success',
                message: '查询成功!'
            });
杜大兵 committed
27 28
            this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
            // this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm.rows;
杜大兵 committed
29 30 31
        }
        else
        {
杜大兵 committed
32
        this.$notify.error({title: '错误',message: '服务请求失败!'});
杜大兵 committed
33 34
        }
    },
35

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

杜大兵 committed
43 44 45 46 47 48
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
49

杜大兵 committed
50 51 52 53 54
    async onInfbutUserow(){
        let rtnmsg = await this.executeRule("infbut.userow")
        if(rtnmsg.respCode == SUCCESS)
        {
        //TODO 处理数据逻辑
55

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

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

杜大兵 committed
82 83 84 85 86 87 88 89 90 91 92 93
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    // Exit按钮
    async onInfbutExi(){
        let rtnmsg = await this.executeRule("infbut.exi")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
94

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

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

杜大兵 committed
119 120 121 122 123 124 125 126 127 128 129
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onIsspDet(){
        let rtnmsg = await this.executeRule("issp.det")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
130

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

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

杜大兵 committed
155 156 157 158 159 160 161 162 163 164 165
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onPreperButtxmsel(){
        let rtnmsg = await this.executeRule("preper.buttxmsel")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
166

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

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

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

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

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

杜大兵 committed
227 228 229 230 231 232 233 234 235 236 237
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onA2bpDet(){
        let rtnmsg = await this.executeRule("a2bp.det")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
238

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

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

杜大兵 committed
263 264 265 266 267 268 269 270 271 272 273
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onLcrgodButtxmsel(){
        let rtnmsg = await this.executeRule("lcrgod.buttxmsel")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
274

杜大兵 committed
275 276 277 278 279 280 281 282 283 284 285
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onLcrdocButtxmsel(){
        let rtnmsg = await this.executeRule("lcrdoc.buttxmsel")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
286

杜大兵 committed
287 288 289 290 291 292 293 294 295 296 297
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onAdlcndButtxmsel(){
        let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
298

杜大兵 committed
299 300 301 302 303 304 305 306 307 308 309
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onInsbnkButtxmsel(){
        let rtnmsg = await this.executeRule("insbnk.buttxmsel")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
310

杜大兵 committed
311 312 313 314 315 316 317 318 319 320 321
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onInfconButshw(){
        let rtnmsg = await this.executeRule("infcon.butshw")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑
322

杜大兵 committed
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
    async onInfconButshword(){
        let rtnmsg = await this.executeRule("infcon.butshword")
        if(rtnmsg.respCode == SUCCESS)
        {
            //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    },
杜大兵 committed
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
    // async handleSearch() {
    //     this.stmData.data = [];
    //     let opndatfrom = this.model.infcon.opndatfrom;
    //     if(!opndatfrom || opndatfrom == ''){
    //         this.$notify.error({ title: '错误', message: '查询开始日期必输!' });
    //         return;
    //     }
    //     let opndatto = this.model.infcon.opndatto;
    //     if(!opndatto || opndatto == ''){
    //         this.$notify.error({ title: '错误', message: '查询结束日期必输!' });
    //         return;
    //     }
        
    //     let rtnmsg = await this.executeRule("infbut.searow")
    //     if(rtnmsg.respCode == SUCCESS)
    //     {
    //         this.stmData.data = rtnmsg.data.infbut_dspstm.rows;

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

366 367

}