Gidtxtp.vue 5.09 KB
Newer Older
suwenhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 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 177 178 179 180 181
<template>
  <div class="eibs">
    <c-row>
      <c-col :span="24">
        <c-col :span="18">
          <c-col :span="24">
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == ''"
              label="保函文本可变因素"
              prop="gidgrp.blk.gidtxt"
            >
              <c-xml-format-editor 
                :model="model.gidgrp.blk.gidtxt" 
                disabled
                placeholder="请输入保函文本可变因素"
                @blur="setTxt1"
              ></c-xml-format-editor>
            </el-form-item>
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == 'X'"
              label="保函文本可变因素"
              prop="gidgrp.blk.gtxgidtxt"
            >
              <c-xml-format-editor 
                disabled
                :model="model.gidgrp.blk.gtxgidtxt"
                placeholder="请输入保函文本可变因素" 
                @blur="setTxt2"
              ></c-xml-format-editor>
            </el-form-item>
          </c-col>
        </c-col>
        <c-col :span="6">
          <c-col :span="24">
            <c-checkbox
              disabled
              v-model="model.gitp.gidtxtmodflg"
              style="margin: 0 0 0 10px"
              class="checkbox-left"
              @change="modflgChange"
              >修改保函文本</c-checkbox
            >
          </c-col>
          <c-col :span="24">
            <c-checkbox
              disabled
              v-model="model.gitp.chkgidtxt"
              style="margin: 0 0 0 10px"
              class="checkbox-left"
              >允许</c-checkbox
            >
          </c-col>

          <c-col :span="24">
            <c-button
              disabled
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpButdif"
            >
              查看系统文本
            </c-button>
          </c-col>

          <c-col :span="24">
            <c-button
              disabled
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpButdifhis"
            >
              查看历史文本
            </c-button>
          </c-col>

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

          <c-col :span="24">
            <c-input
              disabled
              style="margin: 5px 0 0 10px; width: 50%"
              v-model="model.gidgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入"
            ></c-input>
          </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
              disabled
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 50%"
              @click="onGitpGidtxtmod"
            >
              修改中文保函文本
            </c-button>
          </c-col>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Getame/Event";
import InputXml from "~/components/InputXml";

export default {
  components: { InputXml },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: {async setTxt1(val, fn){
      // 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)) {
          this.updateModel(res.data);
          this.$nextTick(() => fn())
        }
      });
      
    },
    async setTxt2(val, fn){
      // 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)) {
          this.updateModel(res.data);
          this.$nextTick(() => fn())
        }
      });
    },
    ...Event ,
    async modflgChange() {
      const rtnmsg = await this.executeRule("gitp.gidtxtmodflg");
      if (rtnmsg.respCode == SUCCESS) {
        this.updateModel(rtnmsg.data);
      }
    },},
  created: function () {},
};
</script>
<style>
</style>