Accp.vue 13.4 KB
Newer Older
1 2 3 4 5
<template>
  <div class="eibs">
    <!-- left -->
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
WF1020 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
          <el-form-item
            label="出口信用证编号"
            prop="ledgrp.rec.ownref"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入出口信用证编号"
              disabled
            ></c-input>
              <template slot="footer">
                <c-button
                  style="margin-left: 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-info"
              >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
29 30 31 32 33 34 35 36 37 38 39 40 41 42
        <!-- <c-col :span="2" :offset="1" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.ledgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
        </c-col> -->
      </c-col>

      <c-col :span="24">
WF1020 committed
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
          <el-form-item
            label="出口单据编号"
            prop="bedgrp.rec.ownref"
            style="width: 100%"
          >
            <c-fullbox>
              <c-input
                v-model="model.bedgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入出口单据编号"
                disabled
            ></c-input>
              <template slot="footer">
                <c-button
                  style="margin-left: 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  icon="el-icon-info"
              >
                </c-button>
              </template>
            </c-fullbox>
          </el-form-item>
       </c-col>
     
        <!-- <c-col :span="2" :offset="1" style="text-align: right">
69 70 71 72 73 74 75 76 77 78 79 80 81 82
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="!this.flag && model.bedgrp.rec.ownref == ''? false:true"
            @click="onDetpButgetref"
          >
            获取
          </c-button>
        </c-col> -->

      <c-col :span="24">
        <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
          <c-fullbox>
WF1020 committed
83 84 85 86 87 88 89 90 91 92 93 94 95
            <c-input
              v-model="model.bedgrp.cbs.max.cur"
              maxlength="3"
              style="width: 50%"
              placeholder="请输入单据金额"
              disabled
            ></c-input>
            <c-input-currency
              v-model="model.bedgrp.cbs.max.amt"
              style="width: 50%"
              placeholder="请输入金额"
              disabled
            ></c-input-currency>
96
            <template slot="footer">
WF1020 committed
97 98 99 100 101 102
              <c-checkbox
                v-model="model.betp.adaflg"
                style="margin-left: 10px"
                disabled
                >附加金额</c-checkbox
              >
103 104 105 106 107 108 109
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
WF1020 committed
110 111 112 113 114 115
            <c-input
              v-model="model.bedgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="请输入金额"
              disabled
            ></c-input>
116 117 118 119
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.opn1.amt">
WF1020 committed
120 121 122 123 124
            <c-input-currency
              v-model="model.bedgrp.cbs.opn1.amt"
              placeholder="请输入金额"
              disabled
            ></c-input-currency>
125 126 127 128 129
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
WF1020 committed
130 131 132 133 134 135 136 137 138 139 140 141
          <c-select
            v-model="model.bedgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请输入单据类型"
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
142 143 144 145 146 147
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="到期日" prop="bedgrp.rec.matdat">
WF1020 committed
148 149 150 151 152 153 154
          <c-date-picker
            type="date"
            v-model="model.bedgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择到期日"
            disabled
          ></c-date-picker>
155 156 157 158 159
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
WF1020 committed
160 161 162 163 164 165 166
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
              placeholder="请选择收到日期"
              disabled
            ></c-date-picker>
167 168 169 170
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="交单日期" prop="bedgrp.rec.predat">
WF1020 committed
171 172 173 174 175 176 177
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.predat"
              style="width: 100%"
              placeholder="请选择日期"
              disabled
            ></c-date-picker>
178 179 180 181 182
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
WF1020 committed
183 184 185 186 187 188 189
          <c-select
            v-model="model.bedgrp.rec.docsta"
            style="width: 100%"
            placeholder="请选择单据状态"
            disabled
            :code="codes.docsta"
          >
190 191 192 193 194 195 196 197 198 199
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
WF1020 committed
200 201 202 203 204 205
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="请输入信用证余额"
              disabled
            ></c-input>
206 207 208 209
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
WF1020 committed
210 211 212 213 214
            <c-input-currency-min
              v-model="model.ledgrp.cbs.opn1.amt"
              placeholder="请输入金额"
              disabled
            ></c-input-currency-min>
215 216 217 218 219 220
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
WF1020 committed
221 222 223 224 225 226
          <c-input
            v-model="model.bedgrp.rec.nam"
            maxlength="40"
            placeholder="请输入简略信息"
            disabled
          ></c-input>
227 228 229 230
        </el-form-item>
      </c-col>

      <c-col :span="24">
WF1020 committed
231 232 233 234 235 236 237 238 239 240 241
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '交单人',
            grp: 'bedgrp',
            rol: 'prb',
          }"
          :disabled="true"
          :enRef="false"
          :enNam="false"
        ></c-ptsmsg>
242 243
      </c-col>
      <c-col :span="24">
WF1020 committed
244 245 246 247 248 249 250 251 252 253 254
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '开证行',
            grp: 'bedgrp',
            rol: 'iss',
          }"
          :disabled="true"
          :enRef="false"
          :enNam="false"
        ></c-ptsmsg>
255 256
      </c-col>
      <c-col :span="24">
WF1020 committed
257 258 259 260 261 262 263 264 265 266 267
        <c-ptsmsg
          :model="model"
          :argadr="{
            title: '申请人',
            grp: 'bedgrp',
            rol: 'apl',
          }"
          :disabled="true"
          :enRef="false"
          :enNam="false"
        ></c-ptsmsg>
268 269 270 271 272 273 274 275 276 277 278 279
      </c-col>
    </c-col>
    <!-- <c-col :span="24">
      <el-form-item style="margin-left: 0px">
        <el-divider />
      </el-form-item>
    </c-col> -->

    <!-- next part -->
    <!-- left -->
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
WF1020 committed
280 281 282 283 284 285 286 287 288 289 290
        <el-form-item
          label="到期日修订说明"
          prop="trnmod.swiadd.strinf"
        >
          <c-input
            type="textarea"
            v-model="model.trnmod.swiadd.strinf"
            maxlength="35"
            show-word-limit
            placeholder="请输入说明"
          ></c-input>
291 292 293 294 295 296
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="承兑金额" prop="setmod.doccur">
WF1020 committed
297 298 299 300
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
              placeholder="请输入承兑金额"
panziyi committed
301
              disabled
WF1020 committed
302
            ></c-input>
303 304 305 306
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.docamt">
WF1020 committed
307 308 309
            <c-input-currency
              v-model="model.setmod.docamt"
              placeholder="请输入金额"
panziyi committed
310
              disabled
WF1020 committed
311
            ></c-input-currency>
312 313 314 315 316 317 318
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据部分金额" prop="bedgrp.cbs.opn2.cur">
WF1020 committed
319 320 321 322 323 324
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
              placeholder="请输入单据部分金额"
              disabled
            ></c-input>
325 326 327 328
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
WF1020 committed
329 330 331 332 333
            <c-input-currency
              v-model="model.aamset.utlamt"
              placeholder="请输入金额"
              disabled
            ></c-input-currency>
334 335 336 337 338 339 340
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="附加金额" prop="bedgrp.cbs.opn2.cur">
WF1020 committed
341 342 343 344 345 346
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
              placeholder="请输入附加金额"
              disabled
            ></c-input>
347 348 349 350
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt2">
WF1020 committed
351 352 353 354 355
            <c-input-currency
              v-model="model.aamset.utlamt2"
              placeholder="请输入金额"
              disabled
            ></c-input-currency>
356 357 358 359 360 361
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <el-form-item label="发送索偿电日期" prop="snadat">
WF1020 committed
362 363 364 365 366 367
          <c-date-picker
            type="date"
            v-model="model.snadat"
            style="width: 100%"
            placeholder="请选择发送索偿电日期"
          ></c-date-picker>
368 369 370 371 372 373 374
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="12" style="padding-left: 20px;">

WF1020 committed
375
  
376 377
      <c-col :span="18">
        <el-form-item label="进一步识别" prop="betp.furide">
WF1020 committed
378 379 380 381 382 383 384 385 386
          <c-select
              v-model="model.betp.furide"
              maxlength="10"
              style="width: 100%"
              placeholder="请选择进一步识别"
              :disabled="!cre752flg"
              :code="codes.furide"
            ></c-select>
           
387 388 389 390
        </el-form-item>
      </c-col>

      <c-col :span="6">
WF1020 committed
391 392 393 394
        <c-checkbox
                v-model="cre752flg"
                style="margin-left: 10px"
                >MT 752</c-checkbox>
395 396 397 398 399
      </c-col>


      <c-col :span="24">
        <el-form-item label="通知日期" prop="bedgrp.rec.disdat">
WF1020 committed
400 401 402 403 404 405 406
          <c-date-picker
            type="date"
            v-model="model.bedgrp.rec.disdat"
            style="width: 100%"
            placeholder="请选择通知日期"
            disabled
          ></c-date-picker>
407 408 409 410 411 412
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="折扣金额" prop="setmod.doccur">
WF1020 committed
413 414 415 416 417 418
            <c-input
              v-model="model.setmod.doccur"
              maxlength="3"
              placeholder="请输入折扣金额"
              disabled
            ></c-input>
419 420 421 422
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="setmod.redamt">
WF1020 committed
423 424 425 426
            <c-input-currency
              v-model="model.setmod.redamt"
              placeholder="请输入金额"
            ></c-input-currency>
427 428 429 430 431 432
          </el-form-item>
        </c-col>
      </c-col>

    </c-col>

WF1020 committed
433
    
434 435 436 437 438 439
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Ptsmsg from "~/views/Public/Ptsmsg";
WF1020 committed
440
import event from '../event'
441 442 443 444
export default {
  components: { "c-ptsmsg": Ptsmsg },
  inject: ["root"],
  props: ["model", "codes"],
WF1020 committed
445
  mixins: [event],
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462
  data() {
    return {};
  },
  computed: {
    cre752flg: {
      get() {
        return this.model.betp.cre752flg != "";
      },
      set(val) {
        this.model.betp.cre752flg = val ? "X" : "";
        this.model.betp.furide = "";
      },
    },
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
WF1020 committed
463
  methods: {  },
panziyi committed
464 465 466 467 468 469 470 471
  watch: {
      "model.setmod.docamt": {
        immediate: true,
        handler(val, oldval) {
          if (this.model.setmod.docamt=="")
            this.model.setmod.docamt= "0.00"
           }}},

WF1020 committed
472
  created: function () {},
473 474
};
</script>
WF1020 committed
475 476
<style>
</style>