Gidtxtp.vue 2.28 KB
<template>
  <div class="eibs-tab">
		<c-row>
      <c-col :span="24">
				<c-col :span="24" style="margin-bottom: 10px;">
					<c-checkbox
						true-label="X"
						false-label= ""
						v-model="model.gitp.gidtxtmodflg"
						:disabled="isInDisplay"
						class="checkbox-left"
						style="margin-right: 20px;"
						@change="handleEdit"
					>修改保函文本</c-checkbox>
					<c-button
						:disabled="model.gitp.gidtxtmodflg == ''"
						size="mini"
						type="primary"
						@click="handleReset"
					>
						重置模板
					</c-button>
				</c-col>
				<c-col :span="24" style="margin: 5px 0 10px;">
				</c-col>
        <c-col :span="24">
					
          <c-col :span="1">
						77U
					</c-col>
          <c-col :span="23">
            <el-form-item
              v-if="model.gitp.gidtxtmodflg == '' || isInDisplay"
              prop="gidgrp.blk.gidtxt"
            >
              <c-xml-format-editor
                v-model="model.gidgrp.blk.gidtxt"
                :disabled="model.gitp.gidtxtmodflg == '' || isInDisplay"
                placeholder="请输入保函文本可变因素"
                :chs="false"
              ></c-xml-format-editor>
            </el-form-item>
            <el-form-item
              v-else
              prop="gidgrp.blk.gtxgidtxt"
            >
              <c-xml-format-editor 
                v-model="model.gidgrp.blk.gtxgidtxt"
								:gtxgidtxtMark="codes.gtxgidtxtMark"
								:isReset="isReset"
                placeholder="请输入保函文本可变因素"
								@input="handleInput"
								:chs="false"
              ></c-xml-format-editor>
            </el-form-item>
          </c-col>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import event from "../event";
import commonDepend from "~/mixin/commonDepend";
export default {
  components: { },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event, commonDepend],
  data() {
    return {
			isReset: false
		};
	},
  methods: {
		handleEdit () {
			if (!this.model.gitp.gidtxtmodflg) {
				this.$emit('changeTxt', 'gidtxtp')
			}
		},
		handleReset () {
			this.isReset = true
		},
		handleInput () {
			this.isReset = false
		}
  },
  created () {},
};
</script>
<style scoped lang="less">
::v-deep .el-form-item__content {
	margin-left: 0!important;
}
</style>