Docpan.vue 1.79 KB
Newer Older
taojinrui committed
1 2
<template>
  <div class="eibs-tab">
taojinrui committed
3 4
    <c-col :span="11">
      <c-col :span="24">
5 6 7
        <el-form-item label="验证证书编号" prop="lendoc.vercerref">
          <c-input type="textarea" v-model="model.lendoc.vercerref" maxlength="20" show-word-limit
            placeholder="请输入验证证书编号" style="text-align: left"></c-input>
taojinrui committed
8 9 10 11
        </el-form-item>
      </c-col>

      <c-col :span="24">
12 13
        <el-form-item label="申报号" prop="lendoc.decnum">
          <c-input v-model="model.lendoc.decnum" maxlength="22" placeholder="请输入申报号"></c-input>
taojinrui committed
14 15 16 17 18 19
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="11" :offset="1">
      <c-col :span="4">
20
        <c-checkbox v-model="model.lendoc.actflg">输入账户</c-checkbox>
taojinrui committed
21 22 23 24
      </c-col>

      <c-col :span="20">
        <el-form-item label="ACT" prop="lendoc.account">
25 26
          <c-input type="textarea" v-model="model.lendoc.account" maxlength="25" show-word-limit placeholder="请输入ACT"
            :disabled=this.flag></c-input>
taojinrui committed
27 28 29
        </el-form-item>
      </c-col>
    </c-col>
taojinrui committed
30 31 32
  </div>
</template>
<script>
taojinrui committed
33
import Api from "~/service/Api";
taojinrui committed
34
import commonProcess from "~/mixin/commonProcess";
taojinrui committed
35 36
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrep/Event";
taojinrui committed
37 38

export default {
taojinrui committed
39 40 41 42
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
43
    return {
44
      flag: true,
45
    };
taojinrui committed
46 47
  },
  methods: { ...Event },
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
  watch: {
    "model.lendoc.actflg": {
      immediate: true,
      handler() {
        console.log(this.model.lendoc.actflg);
        if (this.model.lendoc.actflg == '') {
          this.model.lendoc.account = '';
          this.flag = true;
        } else {
          this.flag = false;
        }
      }
    }
  },
  created: function () { },
taojinrui committed
63
};
taojinrui committed
64 65
</script>
<style>
66

taojinrui committed
67
</style>