Canp.vue 12.5 KB
Newer Older
1
<template>
2
  <div class="eibs">
wangna committed
3
    <!-- =================顶部====================== -->
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    <c-row>
      <!-- =======左边======== -->
      <c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
          <c-col :span="20">
            <el-form-item label="转让信用证编号" prop="ltdgrp.rec.ownref" style="width: 100%">
              <c-input
                disabled
                v-model="model.ltdgrp.rec.ownref"
                maxlength="16"
                style="width: 95%"
                placeholder="请输入转让信用证编号"
              ></c-input>
            </el-form-item>
          </c-col>
          <c-col :span="1">
              <c-button size="small" type="primary" style="margin: 0 10px 0 0; padding: 0 12px" @click="onSeainf">
                <i class="el-icon-info" style="font-size:15px"></i>
              </c-button>
          </c-col>
           <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.ltdgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
        </c-col>
        </c-col>


       <c-col :span="24">
        <c-col :span="20">
          <el-form-item
            label="单据编号"
            prop="btdgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入出口单据编号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <i class="el-icon-info" style="font-size:15px"></i>
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.btdgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
wangna committed
82 83
      </c-col>
      </c-col>
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
      <!-- =====右边 =====-->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
          <c-col :span="20">
          <el-form-item
            label="出口信用证编号"
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入出口信用证编号"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="1" style="text-align: right"> -->
        <c-col :span="1">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
            <i class="el-icon-info" style="font-size:15px"></i>
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
          <!-- <el-form-item label="" label-width="5px"> -->
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.ledgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
wangna committed
128
      </c-col>
129 130 131 132



      <c-col :span="24">
wangna committed
133 134 135 136 137 138 139 140 141 142
        <el-form-item label="票据合同名称" prop="btdgrp.rec.nam">
          <c-input
            disabled
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
            placeholder="请输入票据合同名称"
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>
143

144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
    </c-row>
    
<!-- ========================下部================================== -->
    <!-- ==============左边================= -->
    <c-row>
      <c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="单据金额" prop="btdgrp.cbs.max.cur">
              <c-select
                v-model="model.btdgrp.cbs.max.cur"
                style="width: 100%"
                placeholder="请选择币种"
                :code="codes.cur"
                disabled
              >
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="btdgrp.cbs.max.amt">
              <c-input-currency
                v-model="model.btdgrp.cbs.max.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入单据金额"
                @keyup.enter.native="$event.target.blur()"
                disabled
              ></c-input-currency>
            <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
          </el-form-item>
          </c-col>
176

177 178 179 180 181 182
          <c-col :span="5">
            <c-checkbox
              v-model="model.bttp0.aammod.addamtflg"
              style="margin-left: 10px"
              disabled
              >附加金额</c-checkbox
wangna committed
183
            >
184 185
          </c-col>
        </c-col>
186

187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="余额" prop="btdgrp.cbs.opn1.cur">
              <c-select
                v-model="model.btdgrp.cbs.opn1.cur"
                style="width: 100%"
                placeholder="请输入余额"
                :code="codes.cur"
                disabled
              ></c-select>
            </el-form-item>
          </c-col>
          <c-col :span="7">
            <el-form-item label="" label-width="5px" prop="btdgrp.cbs.opn1.amt">
              <c-input
                v-model="model.btdgrp.cbs.opn1.amt"
                style="text-align: left; width: 100%"
                class="m-input-currency"
                placeholder="请输入余额"
                disabled
              ></c-input>
            </el-form-item>
          </c-col>
        </c-col>
211

wangna committed
212 213 214 215 216 217 218 219 220 221
      <c-col :span="24">
        <el-form-item label="单据类型" prop="btdgrp.rec.doctypcod">
          <c-select
            disabled
            v-model="model.btdgrp.rec.doctypcod"
            style="width: 100%"
            maxlength="1"
            placeholder="请选择单据类型"
          >
            <el-option
222
              v-for="item in codes.doctypcod"
wangna committed
223 224 225 226 227 228 229 230
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
231

wangna committed
232 233 234 235 236 237 238 239 240 241 242 243
      <c-col :span="24">
        <el-form-item label="到期日" prop="btdgrp.rec.matdat">
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.matdat"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择到期日"
          ></c-date-picker>
        </el-form-item>
      </c-col>
244

wangna committed
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
      <c-col :span="24">
        <el-form-item
          label="从第二受益人那收到单据日期"
          prop="btdgrp.rec.rcvdatbe2"
        >
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.rcvdatbe2"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择从第二受益人那收到单据日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
260

wangna committed
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
      <c-col :span="24">
        <el-form-item
          label="从第一受益人那收到单据日期"
          prop="btdgrp.rec.rcvdatbe1"
        >
          <c-date-picker
            type="date"
            disabled
            v-model="model.btdgrp.rec.rcvdatbe1"
            value-format="yyyy-MM-dd"
            style="width: 100%"
            placeholder="请选择从第一受益人那收到单据日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>
276

wangna committed
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
      <c-col :span="24">
        <el-form-item label="单据状态" prop="btdgrp.rec.docsta">
          <c-select
            disabled
            v-model="model.btdgrp.rec.docsta"
            style="width: 100%"
            maxlength="40"
            placeholder="请选择单据状态"
          >
            <el-option
              v-for="item in codes.docsta2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
296

wangna committed
297 298 299 300 301 302 303 304 305 306 307
      <c-col :span="24">
        <el-form-item label="叙述" prop="strinf">
          <c-input
            type="textarea"
            v-model="model.strinf"
            maxlength="50"
            show-word-limit
            placeholder="请输入叙述"
          ></c-input>
        </el-form-item>
      </c-col>
308

wangna committed
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
      <c-col :span="24">
        <el-form-item label="分录程序" prop="rebkpflg">
          <c-select
            v-model="model.rebkpflg"
            style="width: 100%"
            maxlength="3"
            placeholder="请选择分录程序"
          >
            <el-option
              v-for="item in codes.rebkpflg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
328

329 330 331 332 333 334 335 336 337 338 339 340
<!-- ========================右边======================= -->
      <c-col :span="12" style="padding-left: 20px">
        <c-col :span="24">
          <el-form-item label="第一受益人" prop="btdgrp.be1.pts.ref">
            <c-input
              disabled
              v-model="model.btdgrp.be1.pts.ref"
              maxlength="16"
              placeholder="请输入第一受益人"
            ></c-input>
          </el-form-item>
        </c-col>
341

342 343 344 345 346 347 348 349 350 351
        <c-col :span="24">
          <el-form-item label="" prop="btdgrp.be1.pts.nam">
            <c-input
              disabled
              v-model="model.btdgrp.be1.pts.nam"
              maxlength="40"
              placeholder="请输入"
            ></c-input>
          </el-form-item>
        </c-col>
352

353
        <c-col :span="24">&nbsp;</c-col>
354

355 356 357 358 359 360 361 362 363 364
        <c-col :span="24">
          <el-form-item label="第二受益人" prop="btdgrp.be2.pts.ref">
            <c-input
              disabled
              v-model="model.btdgrp.be2.pts.ref"
              maxlength="16"
              placeholder="请输入第二受益人"
            ></c-input>
          </el-form-item>
        </c-col>
365

366 367 368 369 370 371 372 373 374 375
        <c-col :span="24">
          <el-form-item label="" prop="btdgrp.be2.pts.nam">
            <c-input
              disabled
              v-model="model.btdgrp.be2.pts.nam"
              maxlength="40"
              placeholder="请输入"
             ></c-input>
          </el-form-item>
        </c-col>
376

377 378 379 380 381 382 383 384 385
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>
        <c-col :span="24">&nbsp;</c-col>

        <c-col :span="24">
          <c-checkbox v-model="model.sndmsg">发送报文</c-checkbox>
        </c-col>
wangna committed
386
      </c-col>
387
    </c-row>
388 389 390
  </div>
</template>
<script>
wangna committed
391
import Api from "~/service/Api";
wangren committed
392
import commonProcess from "~/mixin/commonProcess";
wangna committed
393 394
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Bttcan/Event";
395 396

export default {
wangna committed
397 398 399 400 401 402
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      doctypcod: [
wangna committed
403 404 405 406
        { label: "混合付款单据", value: "M" },
        { label: "即期单据", value: "P" },
        { label: "远期票据(承兑)", value: "A" },
        { label: "远期票据(递延)", value: "D" },
wangna committed
407 408 409 410 411 412
      ],
    };
  },
  methods: { ...Event },
  created: function () {},
};
413 414 415
</script>
<style>
</style>