Davp.vue 12 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
3 4 5 6
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
wangna committed
7
          label="信用证编号"
8 9 10 11 12 13 14
          prop="ledgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ledgrp.rec.ownref"
              maxlength="8"
wangna committed
15
              placeholder="请输入信用证编号"
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
wangna committed
40
          label="转让信用证编号"
41 42 43 44 45 46 47
          prop="ltdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.rec.ownref"
              maxlength="8"
wangna committed
48
              placeholder="请输入转让信用证编号"
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
72
        <el-form-item label="信用证金额" prop="ltdgrp.cbs.nom1.cur">
73 74 75 76 77
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.cbs.nom1.cur"
              maxlength="3"
              style="width: 50%"
wangna committed
78
              placeholder="请输入信用证金额"
79 80 81 82 83
              disabled
            ></c-input>
            <c-input
              v-model="model.ltdgrp.cbs.nom1.amt"
              style="width: 50%"
wangna committed
84
              placeholder="请输入"
85 86 87 88 89 90 91
              disabled
            ></c-input>
            <template slot="footer">
              <c-checkbox
                v-model="model.bttp.aammod.addamtflg"
                style="margin-left: 10px"
                disabled
wangna committed
92
                >附加金额</c-checkbox
93 94 95 96 97 98 99
              >
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
100
        <el-form-item label="余额" prop="ltdgrp.cbs.opn1.cur">
101 102 103 104 105
          <c-fullbox>
            <c-input
              v-model="model.ltdgrp.cbs.opn1.cur"
              maxlength="3"
              style="width: 50%"
wangna committed
106
              placeholder="请输入余额"
107 108 109 110 111
              disabled
            ></c-input>
            <c-input
              v-model="model.ltdgrp.cbs.opn1.amt"
              style="width: 50%"
wangna committed
112
              placeholder="请输入"
113 114 115 116 117 118 119
              disabled
            ></c-input>
          </c-fullbox>
        </el-form-item>
      </c-col>

      <c-col :span="24">
wangna committed
120
        <c-form-item label="被授权的银行当事人" prop="ltdgrp.avbnam">
121 122 123
          <c-input
            v-model="model.ltdgrp.avbnam"
            maxlength="40"
wangna committed
124
            placeholder="请输入被授权的银行当事人"
125 126 127 128 129 130 131 132 133 134 135 136 137
            disabled
          ></c-input>
        </c-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="by" prop="ltdgrp.rec.avbby">
            <c-fullbox>
              <c-select
                v-model="model.ltdgrp.rec.avbby"
                maxlength="3"
                style="width: 100%"
wangna committed
138
                placeholder="请输入"
139 140 141 142 143
                disabled
                :code="codes.avbby"
              ></c-select>
            </c-fullbox>
          </el-form-item>
144
        </c-col>
145
        <c-col :span="12">
wangna committed
146
          <el-form-item label="装运日期" prop="ltdgrp.rec.shpdat">
147 148 149 150
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.shpdat"
              style="width: 100%"
wangna committed
151
              placeholder="请选择装运日期"
152 153 154
              disabled
            ></c-date-picker>
          </el-form-item>
155
        </c-col>
156 157 158 159
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
160
          <el-form-item label="开证日期及其形式" prop="ltdgrp.rec.opndat">
161 162 163 164
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.opndat"
              style="width: 100%"
wangna committed
165
              placeholder="请选择开证日期及其形式"
166 167 168
              disabled
            ></c-date-picker>
          </el-form-item>
169
        </c-col>
170 171 172 173
        <c-col :span="12">
          <c-input
            v-model="model.ltdgrp.rec.lcrtyp"
            maxlength="40"
wangna committed
174
            placeholder="请输入"
175 176 177
            disabled
            :code="codes.lcrtyp1"
          ></c-input>
178
        </c-col>
179 180 181 182
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
wangna committed
183
          <el-form-item label="到期日及其到期地点" prop="ltdgrp.rec.expdat">
184 185 186 187
            <c-date-picker
              type="date"
              v-model="model.ltdgrp.rec.expdat"
              style="width: 100%"
wangna committed
188
              placeholder="请选择到期日"
189 190 191 192 193 194 195 196
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <c-input
            v-model="model.ltdgrp.rec.expplc"
            maxlength="40"
wangna committed
197
            placeholder="请输入到期地点"
198 199 200 201 202 203 204 205 206
            disabled
          ></c-input>
        </c-col>
      </c-col>
    </c-col>

    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangna committed
207
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
208 209 210
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
wangna committed
211
            placeholder="请输入简略信息"
212 213 214 215 216
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
217
        <el-form-item label="简略信息" prop="ltdgrp.rec.nam">
218 219 220
          <c-input
            v-model="model.ltdgrp.rec.nam"
            maxlength="40"
wangna committed
221
            placeholder="请输入简略信息"
222 223 224 225 226 227 228 229
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
230
            title: '第一受益人',
231 232 233 234 235 236 237 238 239 240 241 242 243
            grp: 'btdgrp',
            rol: 'be1',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
244
            title: '第二受益人',
245 246 247 248 249 250 251 252 253 254 255 256 257
            grp: 'btdgrp',
            rol: 'be2',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
      <c-col :span="24">
        <c-ptsmsg
          :model="model"
          :argadr="{
wangna committed
258
            title: '寄单行',
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :enRef="true"
          :enNam="true"
          :disabled="false"
          :disabled1="true"
        ></c-ptsmsg>
      </c-col>
    </c-col>

    <c-col :span="24">
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>

    <!-- 底部 -->
    <!-- left -->
    <c-col :span="11">
      <c-col :span="24">
        <el-form-item
wangna committed
281
          label="单据参考号"
282 283 284 285 286 287 288
          prop="btdgrp.rec.ownref"
          style="width: 100%"
        >
          <c-fullbox>
            <c-input
              v-model="model.btdgrp.rec.ownref"
              maxlength="8"
wangna committed
289
              placeholder="请输入单据参考号"
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
              :disabled="true"
            ></c-input>
            <template slot="footer">
              <c-button
                style="margin-left: 10px; padding: 0 12px"
                size="small"
                type="primary"
                @click="onSeainf"
              >
                <span
                  style="
                    font-size: 15px;
                    font-family: '宋体';
                    font-weight: bold;
                  "
                  >i</span
                >
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item
wangna committed
314
          label="通知类型"
315 316 317 318 319 320
          prop="btdgrp.rec.advtyp"
          style="width: 100%"
        >
          <c-select
            v-model="model.btdgrp.rec.advtyp"
            style="width: 100%"
wangna committed
321
            placeholder="请选择通知类型"
322 323 324 325 326 327 328 329 330 331 332 333 334
          >
            <el-option
              v-for="item in codes.advtyp2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
wangna committed
335
          <el-form-item label="付款通知日期" prop="btdgrp.rec.advdat">
336 337 338 339
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.advdat"
              style="width: 100%"
wangna committed
340
              placeholder="请选择付款通知日期"
341 342 343 344
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="12">
wangna committed
345
          <el-form-item label="不符点通知日期" prop="btdgrp.rec.disdat">
346 347 348 349
            <c-date-picker
              type="date"
              v-model="model.btdgrp.rec.disdat"
              style="width: 100%"
wangna committed
350
              placeholder="请选择不符点通知日期"
351
              :disabled="model.btdgrp.rec.advtyp=='754'"
352 353 354 355 356 357 358 359
            ></c-date-picker>
          </el-form-item>   
        </c-col>
      </c-col>
    </c-col>
    <!-- right -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
wangna committed
360
        <el-form-item label="简略信息" prop="btdgrp.rec.nam">
361 362 363
          <c-input
            v-model="model.btdgrp.rec.nam"
            maxlength="40"
wangna committed
364
            placeholder="请输入简略信息"
365 366 367 368 369
            disabled
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
wangna committed
370
        <el-form-item label="交单行" prop="btdgrp.rec.docprbrol">
371 372 373
          <c-select
            v-model="model.btdgrp.rec.docprbrol"
            style="width: 100%"
wangna committed
374
            placeholder="请选择交单行"
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
            @change="selectOrCheckboxRule('btdgrp.rec.docprbrol')"
          >
            <el-option
              v-for="item in codes.docprbrol2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
            title: '',
            grp: 'btdgrp',
            rol: 'prb',
          }"
          :noRef="true"
          :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
          :disabledExtkey="
            model.btdgrp.rec.docprbrol == 'ADT' ||
            model.btdgrp.rec.docprbrol == 'BE2'
          "
          @onSeainf="onSeainf"
          @onAplpDet="onBenpDet"
        >
        </c-ptap>
      </c-col>
    </c-col>
408 409 410
  </div>
</template>
<script>
411
import Api from "~/service/Api";
wangren committed
412
import commonProcess from "~/mixin/commonProcess";
413 414 415 416
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Lttdav/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
417 418

export default {
419 420 421 422 423 424 425 426 427 428 429
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  methods: { ...Event,
  },
  created: function () {},
};
430 431 432
</script>
<style>
</style>