coninfp.vue 4.47 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
<!-- 附言公共页面 -->

<template>
  <div class="eibs">
    <c-row>
      <c-col :span="24">
        <c-col :span="15">
          <el-form-item
            style="height: 200px"
            label="一般提示"
            prop="mtabut.coninf.oitinf.oit.inftxt"
          >
            <c-input-xml
              disabled
              :maxRows="10"
              maxlength="60"
              resize="none"
              show-word-limit
              placeholder="请输入提示内容"
              @change="selectOrCheckboxRule('mtabut.coninf.oitinf.oit.inftxt')"
              :model="model.mtabut.coninf.oitinf.oit.inftxt"
            ></c-input-xml>
          </el-form-item>
        </c-col>
        <c-col :span="7" :offset="1">
          <el-form-item label="提示类型" prop="mtabut.coninf.oitinf.oit.inflev">
            <c-select
              disabled
              v-model="model.mtabut.coninf.oitinf.oit.inflev"
              :disabled="GeneralIsEmpty"
              placeholder="请选择"
              style="width: 100%,margin-left:70px"
              :code="inflev"
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="15">
          <el-form-item
            label="付款提示"
            style="height: 200px"
            prop="mtabut.coninf.oitset.oit.inftxt"
          >
            <c-input-xml
              disabled
              type="textarea"
              :maxRows="10"
              maxlength="60"
              resize="none"
              show-word-limit
              placeholder="请输入提示内容"
              @change="selectOrCheckboxRule('mtabut.coninf.oitset.oit.inftxt')"
              :model="model.mtabut.coninf.oitset.oit.inftxt"
            ></c-input-xml>
          </el-form-item>
        </c-col>
        <c-col :span="7" :offset="1">
          <el-form-item label="提示类型" prop="mtabut.coninf.oitset.oit.inflev">
            <c-select
              v-model="model.mtabut.coninf.oitset.oit.inflev"
              disabled
              placeholder="请选择"
              style="width: 100%,margin-left:70px"
              :code="inflev"
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <c-col :span="15">
          <el-form-item label="执行日期" prop="mtabut.coninf.conexedat">
            <c-date-picker
              disabled
              type="date"
              v-model="model.mtabut.coninf.conexedat"
              style="width: 60%,margin-left:70px"
              placeholder="请选择执行日期"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="7" :offset="1">
          <el-form-item
            label="指定复核人"
            style="display: inline-block"
            prop="mtabut.coninf.usr.extkey"
          >
            <c-input
              v-model="model.mtabut.coninf.usr.extkey"
              maxlength="8"
              disabled
              placeholder="请输入用户编码"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
// 附言页签,勿改
import _ from '~/utils/Lodash.js';
import commonProcess from '~/mixin/commonProcess';
import IStreamInput from '~/components/IStreamInput';
export default {
  components: { IStreamInput },
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [commonProcess],
  data() {
    return {
      inflev: [
        { label: '显示', value: '$' },
        { label: '不显示', value: '!' },
        { label: '提醒', value: '0' },
      ], //码表
      test: '',
    };
  },
  methods: {
    valueChange(event, type) {
      if (!event) {
        _.set(this.model, type, '');
      }
    },
  },
  computed: {
    GeneralIsEmpty: {
      get() {
        var temp = this.model.mtabut.coninf.oitinf.oit.inftxt.rows;
        if (temp != null) {
          for (let i = 0; i < temp.length; i++) {
            if (temp[i].trim().length > 0) {
              return false;
            }
          }
        }
        return true;
      },
    },
    SettlementIsEmpty: {
      get() {
        var temp = this.model.mtabut.coninf.oitset.oit.inftxt.rows;
        if (temp != null) {
          for (let i = 0; i < temp.length; i++) {
            if (temp[i].trim().length > 0) {
              return false;
            }
          }
        }
        return true;
      },
    },
  },
  created: function () {},
};
</script>
<style></style>