Gidtxtp.vue 5.76 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"
            >
潘际乾 committed
12
              <!-- <c-input-xml
liyixun committed
13
                :disabled="model.gitp.gidtxtmodflg == ''"
wangna committed
14
                type="textarea"
15
                :maxRows="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
                placeholder="请输入保函文本可变因素"
潘际乾 committed
21 22 23 24 25 26 27
              ></c-input-xml> -->
              <c-xml-format-editor 
                :model="model.gidgrp.blk.gidtxt" 
                :disabled="model.gitp.gidtxtmodflg == ''"
                placeholder="请输入保函文本可变因素"
                @blur="setTxt1"
              ></c-xml-format-editor>
liyixun committed
28 29 30
            </el-form-item>
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == 'X'"
wangna committed
31
              label="保函文本可变因素"
liyixun committed
32 33
              prop="gidgrp.blk.gtxgidtxt"
            >
潘际乾 committed
34
              <!-- <c-input-xml
liyixun committed
35 36
                type="textarea"
                :model="model.gidgrp.blk.gtxgidtxt"
37
                :maxRows="15"
wangna committed
38
                maxlength="65"
liyixun committed
39
                show-word-limit
panziyi committed
40
                @change="setTxt2"
wangna committed
41
                placeholder="请输入保函文本可变因素"
潘际乾 committed
42 43 44 45 46 47
              ></c-input-xml> -->
              <c-xml-format-editor 
                :model="model.gidgrp.blk.gtxgidtxt"
                placeholder="请输入保函文本可变因素" 
                @blur="setTxt2"
              ></c-xml-format-editor>
liyixun committed
48 49 50 51 52
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="6">
          <c-col :span="24">
liyixun committed
53 54 55
            <c-checkbox
              v-model="model.gitp.gidtxtmodflg"
              style="margin: 0 0 0 10px"
Wuyuqiu committed
56
              class="checkbox-left"
panziyi committed
57
              @change="modflgChange"
wangna committed
58
              >修改保函文本</c-checkbox
liyixun committed
59
            >
liyixun committed
60 61 62 63 64
          </c-col>
          <c-col :span="24">
            <c-checkbox
              v-model="model.gitp.chkgidtxt"
              style="margin: 0 0 0 10px"
Wuyuqiu committed
65
              class="checkbox-left"
wangna committed
66
              >允许</c-checkbox
liyixun committed
67 68
            >
          </c-col>
69

liyixun committed
70 71 72 73 74 75 76 77
          <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
78
              查看系统文本
liyixun committed
79 80
            </c-button>
          </c-col>
81

liyixun committed
82 83 84 85 86 87 88
          <c-col :span="24">
            <c-button
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpButdifhis"
            >
wangna committed
89
              查看历史文本
liyixun committed
90 91 92 93 94 95 96 97 98 99 100
            </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
101
                显示文本
liyixun committed
102
              </c-button>
103
            </c-col>
liyixun committed
104 105 106
          </template>

          <c-col :span="24">
wangna committed
107 108 109 110 111 112
            <c-input
              style="margin: 5px 0 0 10px; width: 50%"
              v-model="model.gidgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入"
            ></c-input>
liyixun committed
113 114 115 116 117 118 119 120 121 122 123 124 125 126
          </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
127
              :disabled="model.gitp.gidtxtmodflg == ''"
liyixun committed
128 129 130 131 132 133 134 135
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpGidtxtmod"
            >
              修改中文保函文本
            </c-button>
          </c-col>
136
        </c-col>
liyixun committed
137
      </c-col>
138
    </c-row>
139 140 141
  </div>
</template>
<script>
liyixun committed
142
import Api from "~/service/Api";
143
import commonProcess from "~/mixin/commonProcess";
liyixun committed
144
import CodeTable from "~/config/CodeTable";
wangna committed
145
import Event from "~/model/Getame/Event";
146
import InputXml from "~/components/InputXml";
147 148

export default {
149
  components: { InputXml },
liyixun committed
150 151 152 153 154 155
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
潘际乾 committed
156
  methods: {async setTxt1(val, fn){
panziyi committed
157 158 159 160 161 162 163
      // 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)) {
潘际乾 committed
164 165
          this.updateModel(res.data);
          this.$nextTick(() => fn())
panziyi committed
166 167 168 169
        }
      });
      
    },
潘际乾 committed
170
    async setTxt2(val, fn){
panziyi committed
171 172 173 174 175 176 177
      // 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)) {
潘际乾 committed
178 179
          this.updateModel(res.data);
          this.$nextTick(() => fn())
panziyi committed
180 181 182 183 184 185 186
        }
      });
    },
    ...Event ,
    async modflgChange() {
      const rtnmsg = await this.executeRule("gitp.gidtxtmodflg");
      if (rtnmsg.respCode == SUCCESS) {
潘际乾 committed
187
        this.updateModel(rtnmsg.data);
panziyi committed
188 189
      }
    },},
liyixun committed
190 191
  created: function () {},
};
192 193 194
</script>
<style>
</style>