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

      <c-col :span="24">
        <c-col :span="20">
          <el-form-item
53
            label="出口单据编号"
Eivi committed
54 55 56 57 58 59
            prop="bedgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.bedgrp.rec.ownref"
              maxlength="16"
60
              placeholder="请输入出口单据编号"
Eivi committed
61 62 63 64 65
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
66
       
Eivi committed
67
        <c-col :span="1">
68
          
Eivi committed
69 70 71 72 73 74
          <c-button
            style="margin: 0 10px 0 0; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
          >
nanrui committed
75
            <i class="el-icon-info" style="font-size:15px"></i>
Eivi committed
76
          </c-button>
77
         
Eivi committed
78 79
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
80
          
Eivi committed
81 82 83 84
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
85
            :disabled="!this.flag && model.bedgrp.rec.ownref == ''? false:true"
Eivi committed
86 87
            @click="onDetpButgetref"
          >
88
            获取
Eivi committed
89
          </c-button>
90
          
Eivi committed
91
        </c-col>
92
       
Eivi committed
93 94
      </c-col>
      <c-col :span="24">
95
        <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
Eivi committed
96 97 98 99 100
          <c-fullbox>
            <c-input
              v-model="model.bedgrp.cbs.max.cur"
              maxlength="3"
              style="width: 50%"
101
              placeholder="请输入单据金额"
Eivi committed
102 103 104 105 106
              disabled
            ></c-input>
            <c-input
              v-model="model.bedgrp.cbs.max.amt"
              style="width: 50%"
107
              placeholder="请输入金额"
Eivi committed
108 109 110 111 112 113 114
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.betp.adaflg"
                style="margin-left: 10px"
                disabled
115
                >附加金额</c-checkbox
Eivi committed
116 117 118 119 120 121 122
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
123
          <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
Eivi committed
124 125 126
            <c-input
              v-model="model.bedgrp.cbs.opn1.cur"
              maxlength="3"
wangna committed
127
              placeholder="请输入"
Eivi committed
128 129 130 131 132 133 134 135
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
            <c-input
              v-model="model.bedgrp.cbs.max.amt"
136
              placeholder="请输入金额"
Eivi committed
137 138 139 140 141 142
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
143
        <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
Eivi committed
144 145 146
          <c-select
            v-model="model.bedgrp.rec.doctypcod"
            style="width: 100%"
147
            placeholder="请输入单据类型"
Eivi committed
148 149 150 151 152 153 154 155 156 157 158 159 160
            disabled
          >
            <el-option
              v-for="item in codes.doctypcod1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
161
        <el-form-item label="到期日" prop="bedgrp.rec.matdat">
Eivi committed
162 163 164 165
          <c-date-picker
            type="date"
            v-model="model.bedgrp.rec.matdat"
            style="width: 100%"
166
            placeholder="请选择到期日"
Eivi committed
167 168 169 170 171 172
            disabled
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
173
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
Eivi committed
174 175 176 177
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.rcvdat"
              style="width: 100%"
178
              placeholder="请选择收到日期"
Eivi committed
179 180 181 182 183
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
184
          <el-form-item label="交单日期" prop="bedgrp.rec.predat">
Eivi committed
185 186 187 188
            <c-date-picker
              type="date"
              v-model="model.bedgrp.rec.predat"
              style="width: 100%"
189
              placeholder="请选择交单日期"
Eivi committed
190 191 192 193 194 195
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
196
        <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
Eivi committed
197 198 199
          <c-select
            v-model="model.bedgrp.rec.docsta"
            style="width: 100%"
200
            placeholder="请选择单据状态"
Eivi committed
201 202 203
            disabled
          >
            <el-option
204
              v-for="item in codes.docsta"
Eivi committed
205 206 207 208 209 210 211 212 213 214 215
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
216
    <c-col :span="11" :offset="1">
Eivi committed
217 218
      <c-col :span="24">
        <c-col :span="12">
219
          <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
Eivi committed
220 221 222
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
223
              placeholder="请输入信用证余额"
Eivi committed
224 225 226 227 228 229 230 231
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
            <c-input
              v-model="model.ledgrp.cbs.opn1.amt"
232
              placeholder="请输入金额"
Eivi committed
233 234 235 236 237 238 239
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
240
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
Eivi committed
241 242 243
          <c-input
            v-model="model.bedgrp.rec.nam"
            maxlength="40"
244
            placeholder="请输入Name"
Eivi committed
245 246 247 248 249 250 251 252 253
            disabled
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
254
            title: '交单人',
Eivi committed
255
            grp: 'bedgrp',
256
            rol: 'prb',
Eivi committed
257 258
          }"
          :disabled="true"
259 260
          :enRef="false"
          :enNam="false"
Eivi committed
261 262 263 264 265 266
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
267
            title: '开证行',
Eivi committed
268 269 270 271
            grp: 'bedgrp',
            rol: 'iss',
          }"
          :disabled="true"
272 273
          :enRef="false"
          :enNam="false"
Eivi committed
274 275 276 277 278 279
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
280
            title: '申请人',
Eivi committed
281 282 283 284
            grp: 'bedgrp',
            rol: 'apl',
          }"
          :disabled="true"
285 286
          :enRef="false"
          :enNam="false"
Eivi committed
287 288 289
        ></c-ptsmsg>
      </c-col>
    </c-col>
LiRui committed
290
    <!-- <c-col :span="24">
Eivi committed
291 292 293
      <el-form-item style="margin-left: 0px">
        <el-divider />
      </el-form-item>
LiRui committed
294
    </c-col> -->
Eivi committed
295 296 297 298 299 300 301 302 303

    <!-- next part -->
    <c-col :span="24" style="margin-bottom: 35px">
      <c-istream-table
        ref="table"
        :list="model.liaall.tenstm.rows || []"
        :columns="stmData.columns"
        :showSelection="true"
        v-on:multipleSelect="multipleSelect"
304
        prop="liaall.tenstm"
Eivi committed
305 306 307 308
      >
      </c-istream-table>
    </c-col>
    <!-- left -->
309
    <c-col :span="11">
Eivi committed
310 311
      <c-col :span="24">
        <c-col :span="12">
312
          <el-form-item label="单据部分金额" prop="bedgrp.cbs.opn2.cur">
Eivi committed
313 314 315
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
316
              placeholder="请输入单据部分金额"
Eivi committed
317 318 319 320 321 322 323 324
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt">
            <c-input
              v-model="model.aamset.utlamt"
325
              placeholder="请输入单据部分金额"
Eivi committed
326
              disabled
327 328 329
              @change="eventFunction(
                    'aamset.utlamt'
                  )"
Eivi committed
330 331 332 333 334 335 336
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
337
          <el-form-item label="附加金额" prop="bedgrp.cbs.opn2.cur">
Eivi committed
338 339 340
            <c-input
              v-model="model.bedgrp.cbs.opn2.cur"
              maxlength="3"
341
              placeholder="请输入附加金额"
Eivi committed
342 343 344 345 346 347 348 349
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="aamset.utlamt2">
            <c-input
              v-model="model.aamset.utlamt2"
350
              placeholder="请输入附加金额"
Eivi committed
351
              disabled
352 353 354
              @change="eventFunction(
                    'aamset.utlamt2'
                  )"
Eivi committed
355 356 357 358 359 360 361 362 363 364 365 366 367 368
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="" prop="rmbclm.clmrmbflg">
          <c-checkbox v-model="clmrmbflg"
            >Claim Reimbursement(e.g via MT 742)</c-checkbox
          >
        </el-form-item>
      </c-col>
    </c-col>

    <!-- right -->
369
    <c-col :span="11" :offset="1">
Eivi committed
370
      <c-col :span="24">
371
        <c-form-item label="扣除佣金" prop="bedgrp.rec.lescom">
Eivi committed
372 373
          <c-input
            v-model="model.bedgrp.rec.lescom"
374
            placeholder="请输入内容"
Eivi committed
375 376 377 378 379
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
jianglong committed
380
        <c-form-item label="描述内容(77A)" prop="trnmod.trndoc.nar754">
Eivi committed
381 382 383 384 385
          <c-input
            type="textarea"
            v-model="model.trnmod.trndoc.nar754"
            maxlength="35"
            show-word-limit
jianglong committed
386
            placeholder="请输入77A场内容"
Eivi committed
387 388 389 390 391 392 393 394
          ></c-input>
        </c-form-item>
      </c-col>
    </c-col>

    <!-- bottom -->
    <c-col :span="24">
      <el-form-item
395
        label="给开证行/可用银行的付款指示"
Eivi committed
396 397 398 399 400 401 402
        prop="payinstxt"
        style="width: 100%"
      >
        <c-fullbox>
          <c-input
            type="textarea"
            v-model="model.payinstxt"
403
            maxlength="300"
Eivi committed
404
            show-word-limit
405
            placeholder="请输入付款指示"
Eivi committed
406 407 408 409 410 411
          ></c-input>
          <template slot="footer">
            <c-button
              style="margin-left: 10px; padding: 0 10px"
              size="small"
              type="primary"
412
              @click="showGridPromptDialog('payins.buttxmsel',null,null,{TXT:'payinstxt'},{TXT:false},'doxpDialog')"
Eivi committed
413 414 415 416 417 418 419 420
            >
              ...
            </c-button>
          </template>
        </c-fullbox>
      </el-form-item>
    </c-col>

421
   
422
  </div>
423 424
</template>
<script>
Eivi committed
425
import Api from "~/service/Api";
wangren committed
426
import commonProcess from "~/mixin/commonProcess";
Eivi committed
427 428 429
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betrcl/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
430 431

export default {
Eivi committed
432 433 434 435 436 437 438 439
  components: { "c-ptsmsg": Ptsmsg },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      stmData: {
        columns: [
wangna committed
440
          '1 1 "类型" 250',
Eivi committed
441 442
          '2 2 "Dbt" 250',
          '3 3 "Cdt" 250',
wangna committed
443 444
          '4 4 "币种" 250',
          '5 5 "金额" 250 2 8 1 4',
445 446 447 448 449 450 451 452 453 454 455 456
          // '6 6 "Mat.Dat." 250 4 7 1',
          {
            index: 6,
            position: 6,
            width: 250,
            render: (item, scope) => {
              return scope.row[item.prop] === "null"
                ? ""
                : scope.row[item.prop];
            },
            label: "Mat.Dat.",
          },
Eivi committed
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
        ],
        data: [],
      },
    };
  },
  computed: {
    clmrmbflg: {
      get() {
        return this.model.rmbclm.clmrmbflg === "X";
      },
      set(val) {
        this.model.rmbclm.clmrmbflg = val ? "X" : "";
      },
    },
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
    },
  },
  mounted() {
    this.$nextTick(() => {});
  },
  methods: {
    ...Event,
    async multipleSelect(selection) {
481 482
      if (selection.length > 1) {
        this.$notify({
wangna committed
483
          title: "错误",
wangna committed
484
          message: "您不能选择多个期限",
485 486 487
          type: "error",
        });
      } else {
488
        let chkIds;
489
        if (selection.length === 0) {
490 491
          chkIds = []
          // this.model.liaall.tensetstm.rows = []
492 493
          // this.model.liaall.tenstm.rows = []
        } else {
494
          chkIds = [selection[0] + 1]
495 496 497
        }
        //
        console.log(this.model.liaall.tensetstm);
498
        let params = { chkDst: "liaall.tenstm", chkIds };
Eivi committed
499 500 501 502 503
        const rtnmsg = await this.executeRule("liaall.tenstm", params);
        if (rtnmsg.respCode == SUCCESS) {
          this.updateModel(rtnmsg.data);
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
504
        }
Eivi committed
505
      }
506 507 508 509 510 511 512 513 514 515 516
      // console.log(selection);
      // if (selection) {
      //   let selIds = selection.map((x) => x + 1);
      //   let params = { selDst: "liaall.tenstm", selIds };
      //   const rtnmsg = await this.executeRule("liaall.tenstm", params);
      //   if (rtnmsg.respCode == SUCCESS) {
      //     this.updateModel(rtnmsg.data);
      //   } else {
      //     this.$notify.error({ title: "错误", message: "服务请求失败!" });
      //   }
      // }
517
    },
Eivi committed
518 519 520
  },
  created: function () {},
};
521 522
</script>
<style>
Eivi committed
523 524 525 526 527
.messageLabel >>> .el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
528
</style>