Cnyp1.vue 3.98 KB
Newer Older
1 2 3
<template>
  <div class="eibs">
    <!-- left -->
WF1020 committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    <c-col :span="12" style="margin-top: 20px">
      <c-col :span="24">
        <el-form-item label="是否报送跨境人民币2101表" label-width="175px">
          <c-select
            v-model="model.cnybop.cnyflg"
            style="width: 100%"
            placeholder="请选择"
            disabled
          >
            <el-option
              v-for="item in codes.cnyflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
22

WF1020 committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
      <c-col :span="24">
        <el-form-item label="是否报送跨境人民币2107表" label-width="175px">
          <c-select
            v-model="model.cnybop.traflg"
            style="width: 100%"
            placeholder="请选择"
            disabled
          >
            <el-option
              v-for="item in codes.traflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
40

WF1020 committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
      <c-col :span="24">
        <el-form-item
          label="是否报送跨境人民币2111表"
          label-width="175px"
          prop="cnybop.outflg"
        >
          <c-select
            v-model="model.cnybop.outflg"
            style="width: 100%"
            placeholder="请选择"
          >
            <el-option
              v-for="item in codes.outflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
61

WF1020 committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
      <c-col :span="24">
        <el-form-item label="是否报送跨境人民币2106表" label-width="175px">
          <c-select
            v-model="model.cnybop.libflg"
            style="width: 100%"
            placeholder="请选择"
            disabled
          >
            <el-option
              v-for="item in codes.libflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
79

WF1020 committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
      <c-col :span="24">
        <el-form-item label="是否报送跨境人民币2122表" label-width="175px">
          <c-select
            v-model="model.cnybop.vouflg"
            placeholder="请选择"
            style="width: 100%"
            disabled
          >
            <el-option
              v-for="item in codes.vouflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <!-- 2111跨境支出信息 -->
98 99 100 101
    </c-col>
  </div>
</template>
<script>
WF1020 committed
102 103 104
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import event from "../event";
105 106 107 108 109 110 111

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {
WF1020 committed
112
      temp: "不申报",
113 114 115 116 117 118 119 120 121 122
      options: [
        {
          value: "1",
          label: "申报",
        },
        {
          value: "2",
          label: "不申报",
        },
      ],
WF1020 committed
123 124 125 126 127
      codesOwnextkey: [
        {
          value: "",
          label: "",
        },
128 129 130 131 132 133
      ],
    };
  },
  methods: {
  },
  created: function () {
WF1020 committed
134 135 136 137 138
    //给人民币申报赋值
    this.model.cnybop.cnyflg = "2";
    this.model.cnybop.traflg = "2";
    this.model.cnybop.libflg = "2";
    this.model.cnybop.vouflg = "2";
139 140
  },
  watch: {
WF1020 committed
141 142 143 144 145 146 147 148
    "model.bopmod.ownextkey": function () {
      if (this.model.bopmod.ownextkey != "") {
        var instName = window.sessionStorage.instName || "北京分行";
        this.codesOwnextkey[0].value = this.model.bopmod.ownextkey;
        this.codesOwnextkey[0].label = this.model.bopmod.ownextkey + instName;
      } else {
        this.codesOwnextkey[0].value = "";
        this.codesOwnextkey[0].label = "";
149
      }
WF1020 committed
150
    },
151 152 153 154 155
  },
};
</script>
<style>
</style>