Canp.vue 8.01 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
wangna committed
3 4 5
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="22">
nanrui committed
6
        <el-form-item label="光票托收编号" prop="ccdgrp.rec.ownref">
wangna committed
7 8 9
          <c-input
            v-model="model.ccdgrp.rec.ownref"
            maxlength="8"
wangna committed
10
            placeholder="请输入Our Reference"
wangna committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="2">
        <c-button
          style="margin: 0 12px 0 14px; padding: 0 12px"
          size="small"
          type="primary"
          disabled
        >
          <span style="font-family: '宋体'; font-weight: bold">i</span>
        </c-button>
      </c-col>

      <c-col :span="12">
nanrui committed
27
        <el-form-item label="光票托收币种金额" prop="ccdgrp.cbs.max.cur">
wangna committed
28 29 30
          <c-select
            v-model="model.ccdgrp.cbs.max.cur"
            style="width: 100%"
nanrui committed
31
            placeholder="请选择光票托收币种"
wangna committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
            disabled
          >
            <el-option
              v-for="item in codes.curtxt1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item
          style="text-align: left"
          label-width="20px"
          prop="ccdgrp.cbs.max.amt"
        >
          <c-input-currency
            v-model="model.ccdgrp.cbs.max.amt"
            style="text-align: left; width: 100%"
nanrui committed
53
            placeholder="请输入光票托收金额"
wangna committed
54 55 56 57 58 59 60 61 62
            @keyup.enter.native="
              defaultFunction('ccdgrp.cbs.max.amt', model.ccdgrp.cbs.max.amt)
            "
            disabled
          ></c-input-currency>
        </el-form-item>
      </c-col>

      <c-col :span="12">
nanrui committed
63
        <el-form-item label="光票托收币种余额" prop="ccdgrp.cbs.opn1.cur">
wangna committed
64 65 66 67
          <c-select
            disabled
            v-model="model.ccdgrp.cbs.opn1.cur"
            style="width: 100%"
nanrui committed
68
            placeholder="请选择光票托收币种"
wangna committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
          >
            <el-option
              v-for="item in codes.curtxt1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item
          style="text-align: left"
          label-width="20px"
          prop="ccdgrp.cbs.opn1.amt"
        >
          <c-input-currency
            v-model="model.ccdgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
nanrui committed
89
            placeholder="请输入光票托收余额"
wangna committed
90 91 92 93 94 95 96 97 98
            @keyup.enter.native="
              defaultFunction('ccdgrp.cbs.opn1.amt', model.ccdgrp.cbs.opn1.amt)
            "
            disabled
          ></c-input-currency>
        </el-form-item>
      </c-col>

      <c-col :span="24">
nanrui committed
99
        <el-form-item label="出票日期" prop="ccdgrp.rec.chkdat">
wangna committed
100 101 102 103
          <c-date-picker
            type="date"
            v-model="model.ccdgrp.rec.chkdat"
            style="width: 100%"
nanrui committed
104
            placeholder="请选择出票日期"
wangna committed
105 106 107 108
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
109

wangna committed
110
      <c-col :span="24">
nanrui committed
111
        <el-form-item label="光票托收形式" prop="ccdgrp.rec.ccform">
wangna committed
112 113 114
          <c-select
            v-model="model.ccdgrp.rec.ccform"
            style="width: 100%"
nanrui committed
115
            placeholder="请选择光票托收形式"
wangna committed
116 117 118 119 120 121
            :code="codes.ccform"
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>
122

wangna committed
123
      <c-col :span="24">
nanrui committed
124
        <el-form-item label="付款方式 " prop="ccdgrp.rec.purflg">
wangna committed
125 126 127
          <c-select
            v-model="model.ccdgrp.rec.purflg"
            style="width: 100%"
nanrui committed
128
            placeholder="请选择付款方式 "
wangna committed
129 130 131 132 133
            :code="codes.purflg"
            disabled
          >
          </c-select>
        </el-form-item>
134 135
      </c-col>

wangna committed
136
      <c-col :span="24">
nanrui committed
137
        <el-form-item label="退单原因" prop="rejtypsel">
wangna committed
138 139 140
          <c-select
            v-model="model.rejtypsel"
            style="width: 100%"
nanrui committed
141
            placeholder="请选择退单原因"
wangna committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155
            :code="codes.rejtypsel"
            @change="change"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item
          label=""
          style="margin-left: 0px"
          prop="mtabut.clsflg"
        >
          <c-checkbox v-model="clsflg" disabled
nanrui committed
156
            >或有帐冲销</c-checkbox
wangna committed
157 158 159 160 161 162 163 164
          >
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
nanrui committed
165
        <el-form-item label="业务名称" prop="ccdgrp.rec.nam">
wangna committed
166 167 168
          <c-input
            v-model="model.ccdgrp.rec.nam"
            maxlength="40"
nanrui committed
169
            placeholder="请输入业务名称"
wangna committed
170 171 172 173 174 175
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
nanrui committed
176
        <el-form-item label="汇票提交人" prop="ccdgrp.pre.pts.ref">
wangna committed
177 178 179
          <c-input
            v-model="model.ccdgrp.pre.pts.ref"
            maxlength="40"
nanrui committed
180
            placeholder="请输入汇票提交人"
wangna committed
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="ccdgrp.pre.pts.nam">
          <c-input
            v-model="model.ccdgrp.pre.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
nanrui committed
198
        <el-form-item label="承兑汇票银行" prop="ccdgrp.dro.pts.ref">
wangna committed
199 200 201
          <c-input
            v-model="model.ccdgrp.dro.pts.ref"
            maxlength="40"
nanrui committed
202
            placeholder="请输入承兑汇票银行"
wangna committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="ccdgrp.dro.pts.nam">
          <c-input
            v-model="model.ccdgrp.dro.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
nanrui committed
220
        <el-form-item label="代收行参考号" prop="ccdgrp.col.pts.ref">
wangna committed
221 222 223
          <c-input
            v-model="model.ccdgrp.col.pts.ref"
            maxlength="40"
nanrui committed
224
            placeholder="请输入代收行参考号"
wangna committed
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="ccdgrp.col.pts.nam">
          <c-input
            v-model="model.ccdgrp.col.pts.nam"
            maxlength="40"
            placeholder="请输入"
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-form-item
nanrui committed
243
          label="退票原因"
wangna committed
244 245 246 247 248 249 250 251
          prop="ccdgrp.blk.retson"
        >
          <c-input
            type="textarea"
            :rows="6"
            v-model="model.ccdgrp.blk.retson"
            maxlength="600"
            show-word-limit
nanrui committed
252
            placeholder="请输入退票原因"
wangna committed
253 254 255 256
          ></c-input>
        </c-form-item>
      </c-col>
    </c-col>
257 258 259
  </div>
</template>
<script>
wangna committed
260
import Api from "~/service/Api";
wangren committed
261
import commonProcess from "~/mixin/commonProcess";
wangna committed
262 263
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cctdcr/Event";
264 265

export default {
wangna committed
266 267 268 269 270 271 272 273 274 275 276 277 278 279
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {
    clsflg: {
      get() {
        return this.model.mtabut.clsflg != "O";
      },
      set(val) {
        this.model.mtabut.clsflg = val ? "C" : "O";
      },
280
    },
wangna committed
281 282 283 284 285 286 287 288 289
  },
  methods: {
    ...Event,
    async change() {
      if (this.model.rejtypsel === "R") {
        this.model.mtabut.clsflg = "C";
      } else {
        this.model.mtabut.clsflg = "O";
      }
290
    },
wangna committed
291 292 293
  },
  created: function () {},
};
294 295 296
</script>
<style>
</style>