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

export default {
nanrui committed
5
  async onInfbutSearow() {
niewei committed
6 7 8 9 10 11 12 13 14
    let rtnmsg = await this.executeRule("infbut.searow")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
15
  async handleSearch() {
niewei committed
16 17 18 19 20 21 22 23 24 25 26
    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;
    }
niewei committed
27 28 29
    let rtnmsg = await this.executeRule("infbut.searow")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
niewei committed
30 31
      this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
      //this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
niewei committed
32 33 34 35
    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
niewei committed
36
  },
nanrui committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  async handleReset() {
    this.model.infcon.seaownref = ""
    this.model.infcon.opndatfrom = new Date();
    this.model.infcon.opndatto = new Date();
    this.model.mylx = "";
    this.model.infcon.nam = "";
    this.model.infcon.searef = "";
    this.model.infcon.pty.extkey = "";
    this.model.infcon.pty.nam = "";
    this.model.infcon.seapty = "";
    this.model.infcon.searol = "";
    this.model.infcon.usr.extkey = "";
    this.model.infcon.seasta = "";
    this.model.infcon.seacur = "";
    this.model.infcon.seaamtfr = "0.00";
    this.model.infcon.seaamtto = "0.00";
    this.model.sealcrtyp = "";
    this.model.elcflg = "";
niewei committed
55
  },
nanrui committed
56
  async onInfbutDsp() {
niewei committed
57 58 59 60 61 62 63 64 65
    let rtnmsg = await this.executeRule("infbut.dsp")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
66
  async onInfbutUserow() {
niewei committed
67 68 69 70 71 72 73 74 75
    let rtnmsg = await this.executeRule("infbut.userow")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
76
  async onInfbutClr() {
niewei committed
77 78 79 80 81 82 83 84 85
    let rtnmsg = await this.executeRule("infbut.clr")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
86
  async onInfbutButprt() {
niewei committed
87 88 89 90 91 92 93 94 95
    let rtnmsg = await this.executeRule("infbut.butprt")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

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

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
106
  async onRecpanButgetref() {
niewei committed
107 108 109 110 111 112 113 114 115
    let rtnmsg = await this.executeRule("recpan.butgetref")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
116
  async onBenpDet() {
niewei committed
117 118 119 120 121 122 123 124 125
    let rtnmsg = await this.executeRule("benp.det")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
126
  async onAplpDet() {
niewei committed
127 128 129 130 131 132 133 134 135
    let rtnmsg = await this.executeRule("aplp.det")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
136
  async onLcrdftatButtxmsel() {
niewei committed
137 138 139 140 141 142 143 144 145
    let rtnmsg = await this.executeRule("lcrdftat.buttxmsel")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
146
  async onPreperButtxmsel() {
niewei committed
147 148 149 150 151 152 153 154 155
    let rtnmsg = await this.executeRule("preper.buttxmsel")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

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

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

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
176
  async onAdlcndButtxmsel() {
niewei committed
177 178 179 180 181 182 183 184 185
    let rtnmsg = await this.executeRule("adlcnd.buttxmsel")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
186
  async onInsbnkButtxmsel() {
niewei committed
187 188 189 190 191 192 193 194 195
    let rtnmsg = await this.executeRule("insbnk.buttxmsel")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
196
  async onInfconButshw() {
niewei committed
197 198 199 200 201 202 203 204 205
    let rtnmsg = await this.executeRule("infcon.butshw")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

    }
    else {
      this.$notify.error({ title: '错误', message: '服务请求失败!' });
    }
  },
nanrui committed
206
  async onInfconButshword() {
niewei committed
207 208 209 210 211 212 213 214 215
    let rtnmsg = await this.executeRule("infcon.butshword")
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑

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

}