import Api from "~/service/Api"
import Utils from "~/utils"

export default {
    async onBetmodButgetref() {
        let rtnmsg = await this.executeRule("betmod.butgetref")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            this.updateModel(rtnmsg.data)
            this.$message({
                type: 'success',
                message: '获取成功!'
        });

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onPrbpDet() {
        let rtnmsg = await this.executeRule("prbp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onDocdisButtxmsel() {
        let rtnmsg = await this.executeRule("docdis.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onIntdisButtxmsel() {
        let rtnmsg = await this.executeRule("intdis.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onOthpDet() {
        let rtnmsg = await this.executeRule("othp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onComconButtxmsel() {
        let rtnmsg = await this.executeRule("comcon.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onSetinstxmButtxmsel() {
        let rtnmsg = await this.executeRule("setinstxm.buttxmsel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onWrkpDet() {
        let rtnmsg = await this.executeRule("wrkp.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onOthp1Det() {
        let rtnmsg = await this.executeRule("othp1.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLimptsGet1() {
        let rtnmsg = await this.executeRule("limpts.get1")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLimptsGet2() {
        let rtnmsg = await this.executeRule("limpts.get2")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLimmodTrycal() {
        let rtnmsg = await this.executeRule("limmod.trycal")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButshw() {
        let rtnmsg = await this.executeRule("trndoc.butshw")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButadd() {
        let rtnmsg = await this.executeRule("trndoc.butadd")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButnew() {
        let rtnmsg = await this.executeRule("trndoc.butnew")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButattto() {
        let rtnmsg = await this.executeRule("trndoc.butattto")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButdel() {
        let rtnmsg = await this.executeRule("trndoc.butdel")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onTrndocButatt() {
        let rtnmsg = await this.executeRule("trndoc.butatt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onSetmodDet() {
        let rtnmsg = await this.executeRule("setmod.det")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLiaallButmisamt() {
        let rtnmsg = await this.executeRule("liaall.butmisamt")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

        } else {
            this.$notify.error({
                title: '错误',
                message: '服务请求失败!'
            });
        }
    },
    async onLiaallButmissig() {
        let rtnmsg = await this.executeRule("liaall.butmissig")
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑

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

}