Event.js 4.03 KB
Newer Older
1
import { split } from "lodash";
liuxin committed
2
import Api from "~/service/Api"
liuxin committed
3
import Utils from "~/utils/index"
liuxin committed
4
export default {
5 6
    async onUsfmodShwflt() {
        let rtnmsg = await this.executeRule("usfmod_shwflt")
潘际乾 committed
7
        if (rtnmsg.respCode == SUCCESS) {
8
            //TODO 处理数据逻辑
liuxin committed
9

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

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

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

40 41 42 43
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
44
    },
liushikai committed
45 46 47 48 49 50 51 52 53 54 55 56
    async onShowInc() {
        let rtnmsg = await this.executeRule("show_inc")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
    },
    async onDetails() {
        let rtnmsg = await this.executeRule("details")
潘际乾 committed
57
        if (rtnmsg.respCode == SUCCESS) {
58
            //TODO 处理数据逻辑
liuxin committed
59

60 61 62 63
        }
        else {
            this.$notify.error({ title: '错误', message: '服务请求失败!' });
        }
liuxin committed
64
    },
65 66
    async continueEdit(row) {
        //let rtnmsg = await Api.post("getPendingData",{params:{'selsptinr':row[0]}})
潘际乾 committed
67
        //if (rtnmsg.respCode == SUCCESS) {
68
        //var cacheFileName = rtnmsg.data.cacheFileName;
69 70 71
        debugger;
        // let viewurl = "/business/ditopn?selsptinr=" + row[0];
        let viewurl = "/business/ditopn?selsptinr=" + row['INR'];
72
        this.$router.push(viewurl);
wangguangchao committed
73
        //}
fukai committed
74
    },
75
    async handleReset() {
liushikai committed
76 77 78 79 80 81 82 83 84 85 86 87 88
        this.model.chkinc = "";
        this.model.chkdzt = "";
        this.model.chkpen = "";
        this.model.chkcor = "";
        this.model.chkaut = "";
        this.model.chkdel = "";
        this.model.chktco = "";
        this.model.chkcan = "";
        this.model.selobj = "";
        this.model.seltxt = "";
        this.model.usfmod.flt = "";
        this.model.inidatfro = "";
        this.model.inidattil = "";
liushikai committed
89
        this.model.dflg = "1";
liushikai committed
90 91
        this.model.chkypt = "";
        this.model.yptinf = "";
fukai committed
92

93 94
    },
    async handleSearch() {
95
            if(this.sourceModel.length===0){
liushikai committed
96 97 98
                this.sourceData.forEach(s => {
                    this.model[s.value] = 't';
                  })
99
            }
100 101 102 103
            this.executeDefault("sptstm").then(res => {
                //TODO 处理数据逻辑
                this.stmData.data = res.data.sptstm.rows;
            })
wangguangchao committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
        },

        async sptfndHandleReset() {
            this.model.chkinc = "";
            this.model.chkdzt = "";
            this.model.chkpen = "";
            this.model.chkcor = "";
            this.model.chkaut = "";
            this.model.chkdel = "";
            this.model.chktco = "";
            this.model.chkcan = "";
            this.model.selobj = "";
            this.model.seltxt = "";
            this.model.usfmod.flt = "";
            this.model.inidatfro = "";
            this.model.inidattil = "";
            this.model.dflg = "1";
            this.model.chkypt = "";
            this.model.yptinf = "";
    
        },
        async sptfndHandleSearch() {
                this.model.chkpen = "t";
                this.executeDefault("sptstm").then(res => {
                    //TODO 处理数据逻辑
                    this.stmData.data = res.data.sptstm.rows;
                })
            }
132

liuxin committed
133
}