Docpan.vue 2.32 KB
Newer Older
taojinrui committed
1
<template>
wangna committed
2 3 4
  <div class="eibs">
    <!-- ===========================左侧================================== -->
    <c-col :span="12" style="padding-right: 20px">
taojinrui committed
5
      <c-col :span="24">
6
        <el-form-item label="验证证书编号" prop="lendoc.vercerref">
wangna committed
7 8 9 10 11 12 13
          <c-input
            v-model="model.lendoc.vercerref"
            maxlength="20"
            show-word-limit
            placeholder="请输入验证证书编号"
            style="text-align: left"
          ></c-input>
taojinrui committed
14 15 16 17
        </el-form-item>
      </c-col>

      <c-col :span="24">
18
        <el-form-item label="申报号" prop="lendoc.decnum">
wangna committed
19 20 21 22 23
          <c-input
            v-model="model.lendoc.decnum"
            maxlength="22"
            placeholder="请输入申报号"
          ></c-input>
taojinrui committed
24 25 26 27
        </el-form-item>
      </c-col>
    </c-col>

wangna committed
28 29 30 31 32 33 34 35
    <!-- ===========================右侧================================== -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
        <c-col :span="4">
          <el-form-item label="输入账户">
            <c-checkbox v-model="model.lendoc.actflg"></c-checkbox
          ></el-form-item>
        </c-col>
taojinrui committed
36

wangna committed
37 38 39 40 41 42 43 44 45 46 47 48 49
        <c-col :span="20">
          <el-form-item label="" prop="lendoc.account" label-width="25px">
            <c-input
              type="textarea"
              :rows="1"
              style="width: 100%"
              v-model="model.lendoc.account"
              show-word-limit
              placeholder="请输入"
              :disabled="this.flag"
            ></c-input>
          </el-form-item>
        </c-col>
taojinrui committed
50 51
      </c-col>
    </c-col>
taojinrui committed
52 53 54
  </div>
</template>
<script>
taojinrui committed
55
import Api from "~/service/Api";
taojinrui committed
56
import commonProcess from "~/mixin/commonProcess";
taojinrui committed
57 58
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrep/Event";
taojinrui committed
59 60

export default {
taojinrui committed
61 62 63 64
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
65
    return {
66
      flag: true,
67
    };
taojinrui committed
68 69
  },
  methods: { ...Event },
70 71 72 73 74
  watch: {
    "model.lendoc.actflg": {
      immediate: true,
      handler() {
        console.log(this.model.lendoc.actflg);
wangna committed
75 76
        if (this.model.lendoc.actflg == "") {
          this.model.lendoc.account = "";
77 78 79 80
          this.flag = true;
        } else {
          this.flag = false;
        }
wangna committed
81 82
      },
    },
83
  },
wangna committed
84
  created: function () {},
taojinrui committed
85
};
taojinrui committed
86 87 88
</script>
<style>
</style>