import Api from "~/service/Api" import Utils from "~/utils/index" export default { 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 处理数据逻辑 } else { this.$notify.error({ title: '错误', message: '服务请求失败!' }); } }) }, async onAplpDet() { let rtnmsg = await Api.post("ditopn/executeRule/ditp.aplp.det", Utils.flatObject(this.model)) if (rtnmsg.respCode == "AAAAAA") { //TODO 处理数据逻辑 console.log(rtnmsg.data); } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } 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 处理数据逻辑 } else { this.$notify.error({ title: '错误', message: '服务请求失败!' }); } }) }, onSeainf() { }, }