Gidtxtp.vue 5.24 KB
Newer Older
1
<template>
Wuyuqiu committed
2
  <div class="eibs">
3
    <c-row>
liyixun committed
4
      <c-col :span="24">
Wuyuqiu committed
5
        <c-col :span="18">
liyixun committed
6 7 8
          <c-col :span="24">
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == ''"
wangna committed
9
              label="保函文本可变因素"
liyixun committed
10 11
              prop="gidgrp.blk.gidtxt"
            >
wangna committed
12
              <i-stream-input
liyixun committed
13
                :disabled="model.gitp.gidtxtmodflg == ''"
wangna committed
14 15
                type="textarea"
                rows="15"
liyixun committed
16
                :model="model.gidgrp.blk.gidtxt"
wangna committed
17
                maxlength="65"
liyixun committed
18
                show-word-limit
panziyi committed
19
                @change="setTxt1"
wangna committed
20 21
                placeholder="请输入保函文本可变因素"
              ></i-stream-input>
liyixun committed
22 23 24
            </el-form-item>
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == 'X'"
wangna committed
25
              label="保函文本可变因素"
liyixun committed
26 27
              prop="gidgrp.blk.gtxgidtxt"
            >
wangna committed
28
              <i-stream-input
liyixun committed
29 30
                type="textarea"
                :model="model.gidgrp.blk.gtxgidtxt"
wangna committed
31 32
                rows="15"
                maxlength="65"
liyixun committed
33
                show-word-limit
panziyi committed
34
                @change="setTxt2"
wangna committed
35 36
                placeholder="请输入保函文本可变因素"
              ></i-stream-input>
liyixun committed
37 38 39 40 41
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="6">
          <c-col :span="24">
liyixun committed
42 43 44
            <c-checkbox
              v-model="model.gitp.gidtxtmodflg"
              style="margin: 0 0 0 10px"
Wuyuqiu committed
45
              class="checkbox-left"
panziyi committed
46
              @change="modflgChange"
wangna committed
47
              >修改保函文本</c-checkbox
liyixun committed
48
            >
liyixun committed
49 50 51 52 53
          </c-col>
          <c-col :span="24">
            <c-checkbox
              v-model="model.gitp.chkgidtxt"
              style="margin: 0 0 0 10px"
Wuyuqiu committed
54
              class="checkbox-left"
wangna committed
55
              >允许</c-checkbox
liyixun committed
56 57
            >
          </c-col>
58

liyixun committed
59 60 61 62 63 64 65 66
          <c-col :span="24">
            <c-button
              :disabled="model.gitp.gidtxtmodflg == ''"
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpButdif"
            >
wangna committed
67
              查看系统文本
liyixun committed
68 69
            </c-button>
          </c-col>
70

liyixun committed
71 72 73 74 75 76 77
          <c-col :span="24">
            <c-button
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpButdifhis"
            >
wangna committed
78
              查看历史文本
liyixun committed
79 80 81 82 83 84 85 86 87 88 89
            </c-button>
          </c-col>

          <template v-if="model.gitp.gidtxtmodflg == 'X'">
            <c-col :span="24">
              <c-button
                size="small"
                type="primary"
                style="margin: 5px 0 0 10px; width: 50%"
                @click="onGitpShwgidtxt"
              >
wangna committed
90
                显示文本
liyixun committed
91
              </c-button>
92
            </c-col>
liyixun committed
93 94 95
          </template>

          <c-col :span="24">
wangna committed
96 97 98 99 100 101
            <c-input
              style="margin: 5px 0 0 10px; width: 50%"
              v-model="model.gidgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入"
            ></c-input>
liyixun committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115
          </c-col>
          <c-col :span="24">
            <c-button
              disabled
              style="margin: 5px 0 0 10px"
              size="small"
              type="primary"
              @click="onGitpButgetref"
            >
              获取
            </c-button>
          </c-col>
          <c-col :span="24">
            <c-button
wangna committed
116
              :disabled="model.gitp.gidtxtmodflg == ''"
liyixun committed
117 118 119 120 121 122 123 124
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpGidtxtmod"
            >
              修改中文保函文本
            </c-button>
          </c-col>
125
        </c-col>
liyixun committed
126
      </c-col>
127
    </c-row>
128 129 130
  </div>
</template>
<script>
liyixun committed
131
import Api from "~/service/Api";
132
import commonProcess from "~/mixin/commonProcess";
liyixun committed
133
import CodeTable from "~/config/CodeTable";
wangna committed
134 135
import Event from "~/model/Getame/Event";
import IStreamInput from "~/components/IStreamInput";
136 137

export default {
wangna committed
138
  components: { IStreamInput },
liyixun committed
139 140 141 142 143 144
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
panziyi committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
  methods: {async setTxt1(){
      // this.executeDefault("gitp.gidgrp.blk.gidtxt").then((res) => {
      //   if ((res.respCode == SUCCESS)) {
      //     Utils.copyValueFromVO(this.model, res.data);
      //   }
      // });
      this.executeRule("gitp.gidgrp.blk.gidtxt").then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
      
    },
    async setTxt2(){
      // this.executeDefault("gitp.gidgrp.blk.gtxgidtxt").then((res) => {
      //   if ((res.respCode == SUCCESS)) {
      //     Utils.copyValueFromVO(this.model, res.data);
      //   }
      // });
      this.executeRule("gitp.gidgrp.blk.gtxgidtxt").then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    ...Event ,
    async modflgChange() {
      const rtnmsg = await this.executeRule("gitp.gidtxtmodflg");
      if (rtnmsg.respCode == SUCCESS) {
        Utils.copyValueFromVO(this.model, rtnmsg.data);
      }
    },},
liyixun committed
177 178
  created: function () {},
};
179 180 181
</script>
<style>
</style>