Wg.vue 4.49 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">
wangna committed
6
        <c-col :span="20">
taojinrui committed
7
          <el-form-item label="申报类型" prop="bopmod.szflg">
wangna committed
8 9 10 11 12 13 14 15 16 17 18
            <c-select
              v-model="model.bopmod.szflg"
              style="width: 100%"
              placeholder="请选择申报类型"
            >
              <el-option
                v-for="item in codes.szflg"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
19
              </el-option>
wangna committed
20 21 22 23 24 25 26 27 28
            </c-select> </el-form-item
        ></c-col>

        <c-col :span="4">
          <c-checkbox
            v-model="model.bopmod.basflg"
            :disabled="model.bopmod.szflg === '3' || model.bopmod.szflg === ''"
            >基础数据
          </c-checkbox>
taojinrui committed
29 30 31 32 33
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="款项来源" prop="bopmod.acttyp">
wangna committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
          <c-select
            v-model="model.bopmod.acttyp"
            style="width: 100%"
            placeholder="请选择款项来源"
            :disabled="
              model.bopmod.szflg === '3' ||
              model.bopmod.szflg === '2' ||
              model.bopmod.szflg === ''
            "
          >
            <el-option
              v-for="item in codes.acttyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
50
            </el-option>
taojinrui committed
51 52 53 54 55 56
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="地区机构号" prop="bopmod.ownextkey">
wangna committed
57 58 59 60 61 62 63 64 65 66 67 68
          <c-select
            v-model="model.bopmod.ownextkey"
            style="width: 100%"
            placeholder="请选择地区机构号"
            :disabled="model.bopmod.szflg === '3' || model.bopmod.szflg === ''"
          >
            <el-option
              v-for="item in codes.ownextkey1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
69
            </el-option>
taojinrui committed
70 71 72 73 74
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
        <c-col :span="13">
          <el-form-item label="国外银行扣费(涉外收入申报专用)">
            <c-select
              v-model="model.bopmod.outchargeccy"
              style="width: 100%"
              placeholder="请选择国外银行扣费(涉外收入申报专用)"
              :disabled="true"
            >
              <el-option
                v-for="item in codes.outchargeccy"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
taojinrui committed
93

wangna committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
        <c-col :span="11">
          <el-form-item
            style="text-align: left"
            label-width="5px"
            prop="bopmod.outchargeamt"
          >
            <c-input-currency
              v-model="model.bopmod.outchargeamt"
              style="text-align: right"
              placeholder="请输入国外银行扣费(涉外收入申报专用)"
              :disabled="
                !model.bopmod.basflg ||
                model.bopmod.szflg === '2' ||
                model.bopmod.szflg === '3'
              "
              @keyup.enter.native="
                defaultFunction(
                  'bopmod.outchargeamt',
                  model.bopmod.outchargeamt
                )
              "
            ></c-input-currency
          ></el-form-item>
        </c-col>
taojinrui committed
118 119
      </c-col>
    </c-col>
wangna committed
120 121 122

    <!-- ===========================右侧================================== -->
    <!-- <c-col :span="12" style="padding-left: 20px"> </c-col> -->
taojinrui committed
123 124 125
  </div>
</template>
<script>
wangna committed
126
import Api from "~/service/Api";
taojinrui committed
127
import commonProcess from "~/mixin/commonProcess";
wangna committed
128 129
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptrep/Event";
taojinrui committed
130 131

export default {
wangna committed
132
  inject: ["root"],
133 134 135
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
wangna committed
136 137
    return {};
  },
taojinrui committed
138

wangna committed
139 140 141 142 143 144 145 146 147
  watch: {
    "model.bopmod.szflg": function () {
      if (this.model.bopmod.szflg == "3" || this.model.bopmod.szflg == "") {
        this.model.bopmod.basflg = "";
      }
      if (this.model.bopmod.szflg != "1") {
        this.model.bopmod.acttyp = "";
      }
    },
148
  },
wangna committed
149
  
150
  methods: { ...Event },
wangna committed
151 152
  created: function () {},
};
taojinrui committed
153 154 155
</script>
<style>
</style>