Event.js 10.3 KB
Newer Older
liuxin committed
1
import Api from "~/service/Api"
liuxin committed
2
import Utils from "~/utils/index"
liuxin committed
3
export default {
liuxin committed
4 5 6 7 8 9 10
    onDitpButgetref() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/ditp_butgetref", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
11

liuxin committed
12 13 14 15 16 17 18 19 20 21 22 23 24
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onAplpDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/aplp_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
25

liuxin committed
26 27 28 29 30 31 32 33 34 35 36 37 38
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onBenpDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/benp_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
39

liuxin committed
40 41 42 43 44 45 46 47 48 49 50 51 52
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onRevclauseButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/revclause_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
53

liuxin committed
54 55 56 57 58 59 60 61 62 63 64 65 66
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLcrgodButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/lcrgod_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
67

liuxin committed
68 69 70 71 72 73 74 75 76 77 78 79 80
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLcrdocButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/lcrdoc_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
81

liuxin committed
82 83 84 85 86 87 88 89 90 91 92 93 94
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onAdlcndButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/adlcnd_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
95

liuxin committed
96 97 98 99 100 101 102 103 104 105 106 107 108
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onInsbnkButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/insbnk_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
109

liuxin committed
110 111 112 113 114 115 116 117 118 119 120 121 122
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onRmbpDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/rmbp_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
123

liuxin committed
124 125 126 127 128 129 130 131 132 133 134 135 136
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onDefdetButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/defdet_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
137

liuxin committed
138 139 140 141 142 143 144 145 146 147 148 149 150
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onPreperButtxmsel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/preper_buttxmsel", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
151

liuxin committed
152 153 154 155 156 157 158 159 160 161 162 163 164
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onSetmodDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/setmod_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
165

liuxin committed
166 167 168 169 170 171 172 173 174 175 176 177 178
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLiaallButmisamt() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/liaall_butmisamt", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
179

liuxin committed
180 181 182 183 184 185 186 187 188 189 190 191 192
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLiaallButmissig() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/liaall_butmissig", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
193

liuxin committed
194 195 196 197 198 199 200 201 202 203 204 205 206
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onWrkpDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/wrkp_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
207

liuxin committed
208 209 210 211 212 213 214 215 216 217 218 219 220
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onOthpDet() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/othp_det", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
221

liuxin committed
222 223 224 225 226 227 228 229 230 231 232 233 234
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLimptsGet1() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/limpts_get1", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
235

liuxin committed
236 237 238 239 240 241 242 243 244 245 246 247 248
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLimptsGet2() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/limpts_get2", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
249

liuxin committed
250 251 252 253 254 255 256 257 258 259 260 261 262
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLimmodTrycal() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/limmod_trycal", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
263

liuxin committed
264 265 266 267 268 269 270 271 272 273 274 275 276
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLiaccvAdd() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/liaccv_add", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
277

liuxin committed
278 279 280 281 282 283 284 285 286 287 288 289 290
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onLiaccvDel() {
        this.$parent.$parent.$parent.$parent.$refs.modelForm.validate(async valid => {
            if (!valid)
                return;
            let rtnmsg = await Api.post("ditopn/liaccv_del", Utils.flatObject(this.model))
            if (rtnmsg.respCode == "AAAAAA") {
                //TODO 处理数据逻辑
liuxin committed
291

liuxin committed
292 293 294 295 296 297 298
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' });
            }
        })
    },
    onSeainf() {
liuxin committed
299

liuxin committed
300
    },
liuxin committed
301
}