Ovwp.vue 13.2 KB
Newer Older
hpj committed
1 2
<template>
  <c-row>
3 4 5 6 7 8
    <!-- =================顶部====================== -->
    <c-col :span="24">
      <c-col :span="11">
        <el-form-item label="信用证号码" prop="ledgrp.rec.ownref" style="width: 100%">
          <c-fullbox>
            <c-input v-model="model.ledgrp.rec.ownref" maxlength="16" placeholder="请输入Reference" style="width: 95%" :disabled="true">
9
            </c-input>
10 11 12 13 14 15 16 17 18 19 20 21
            <template slot="footer">
              <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
                <span style="font-size: 15px; font-family: '宋体'; font-weight: bold">i</span>
              </c-button>
              <c-button style="margin: 0 0" size="small" type="primary"
                :disabled="model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref ? false : true"
                @click="onLetpButgetref">
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
22
      </c-col>
23 24 25 26 27 28 29
      <c-col :span="11" :offset="1">
        <el-form-item label="摘要" prop="ledgrp.rec.nam">
          <c-input text-align="middle" v-model="model.ledgrp.rec.nam" maxlength="40" placeholder="请输入" disabled>
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>
hpj committed
30

31 32
    <!-- ====================左边======================= -->
    <c-col :span="11">
33 34
      <!-- Form of L/C -->
      <c-col :span="24">
35 36
        <el-form-item label="是否可以转让" prop="ledgrp.rec.lcrtyp">
          <c-select v-model="model.ledgrp.rec.lcrtyp" style="width: 100%" placeholder="请选择" :code="codes.lcrtyp">
37 38 39 40
          </c-select>
        </el-form-item>
      </c-col>
      <!-- responsible user -->
41 42 43 44 45 46 47 48 49 50
      <c-col :span="24">
        <el-form-item label="所属客户经理" prop="letp.usr.extkey">
          <c-fullbox>
            <c-input v-model="model.letp.usr.extkey" maxlength="8" placeholder="请输入所属客户经理" disabled></c-input>
            <template slot="footer">
              <c-button style="margin-left:10px;padding: 0 10px;" size="small" icon="el-icon-search" type="primary"
              @click="onExtkey"></c-button>
              <c-checkbox :disabled="true" style="margin-left:10px;" v-model="model.ledgrp.rec.collflg">抵押信用证</c-checkbox>  
            </template>
          </c-fullbox>
51
        </el-form-item>
52
      </c-col> 
53
      <!-- nominal amount -->
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
      <c-col :span="24">
        <c-col :span="13">
          <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
            <c-select v-model="model.ledgrp.cbs.nom1.cur" style="width: 100%" placeholder="请选择币种" 
            @keyup.enter.native="nom1CurEvent" :code="codes.curtxt1">
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
            <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
              placeholder="请输入信用证金额" @keyup.enter.native="
                defaultFunction('ledgrp.cbs.nom1.amt', model.ledgrp.cbs.nom1.amt)
              " ></c-input-currency>
            <!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
              placeholder="请输入信用证金额"></c-input-currency> -->
          </el-form-item>
        </c-col>
        <c-col :span="4">
lianyang committed
73
          <c-checkbox v-model="model.letp.aamp.aammod.addamtflg" style="margin-left:10px;">附加金额</c-checkbox>
74
        </c-col>
75
      </c-col>
hpj committed
76

77 78 79 80 81 82 83 84 85 86 87 88 89 90
      <c-col :span="24">
        <c-col :span="13">
          <c-form-item label="金额浮动 +/-" prop="ledgrp.rec.nomtop">
            <c-input v-model="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%"
              placeholder="请输入Amount Tolerance - Positive"></c-input>
          </c-form-item>
        </c-col>
        <c-col :span="7">
          <el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
            <c-input v-model="model.ledgrp.rec.nomton" maxlength="2" style="width: 100%"
              placeholder="请输入Amount Tolerance - Negative"></c-input>
          </el-form-item>
        </c-col>
            <!-- <c-col :span="4">
91 92
          <c-checkbox v-model="model.ledgrp.preadvflg">PreAdvice or Notification</c-checkbox>
        </c-col> -->
93
        <c-col :span="4">
lianyang committed
94
          <c-checkbox v-model="model.ledgrp.preadvflg" style="margin-left:10px;">预先通知</c-checkbox>
95
        </c-col>
hpj committed
96 97
      </c-col>

98 99 100 101 102 103 104 105
      <c-col :span="24">
        <c-col :span="20">
          <el-form-item label="适用金额规范" prop="ledgrp.rec.nomspc">
            <c-select v-model="model.ledgrp.rec.nomspc" style="width: 100%" placeholder="请选择适用金额规范"
              :code="codes.nomspc" disabled>
            </c-select>
          </el-form-item>
        </c-col>
hpj committed
106

107 108
        <!-- Incoming Transfer -->
        <c-col :span="4">
lianyang committed
109
          <c-checkbox v-model="model.ledgrp.rec.inctrf" style="margin-left:10px;">传入传输</c-checkbox>
110
        </c-col>
111 112
      </c-col>

113 114 115 116 117 118 119 120 121 122 123 124 125
          <!-- Maximum Amount -->
          <c-col :span="13">
            <el-form-item label="信用证最大金额" prop="ledgrp.cbs.max.cur">
              <c-select v-model="model.ledgrp.cbs.max.cur" style="width: 100%" placeholder="请选择币种" :code="codes.curtxt1"
                disabled>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="11">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
              <c-input disabled v-model="model.ledgrp.cbs.max.amt" placeholder="请输入最大金额"></c-input>
            </el-form-item>
          </c-col>
hpj committed
126

127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
          <!-- Issued on -->
          <c-col :span="13">
            <el-form-item label="开证日期" prop="ledgrp.rec.opndat">
              <c-date-picker disabled type="date" v-model="model.ledgrp.rec.opndat" style="width: 100%" value-format="yyyy-MM-dd"
                placeholder="请选择开证日期">
              </c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="10" :offset="1">
            <el-form-item label="预通知日期" label-width="80px" prop="ledgrp.rec.preadvdt">
              <c-date-picker type="date" v-model="model.ledgrp.rec.preadvdt" style="width: 100%"  value-format="yyyy-MM-dd" placeholder="请选择日期">
              </c-date-picker>
            </el-form-item>
          </c-col>
          <!-- shipment date -->
          <c-col :span="13">
            <el-form-item label="装运日期" prop="ledgrp.rec.shpdat">
              <c-date-picker type="date" v-model="model.ledgrp.rec.shpdat" style="width: 100%" placeholder="请选择装运日期" value-format="yyyy-MM-dd">
              </c-date-picker>
            </el-form-item>
          </c-col>
          <c-col :span="10" :offset="1">
            <el-form-item label="通知日期" label-width="80px" prop="ledgrp.rec.advdat">
              <c-date-picker disabled type="date" v-model="model.ledgrp.rec.advdat" style="width: 100%" placeholder="请选择通知日期" value-format="yyyy-MM-dd">
              </c-date-picker>
            </el-form-item>
          </c-col>
154

155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
          <!-- expiring on -->
          <c-col :span="24">
            <el-form-item label="有效日期" prop="ledgrp.rec.expdat">
              <c-date-picker type="date" v-model="model.ledgrp.rec.expdat" style="width: 100%" value-format="yyyy-MM-dd"
                placeholder="请选择到期日">
              </c-date-picker>
            </el-form-item>
          </c-col>
          <!-- in (place)/counters of -->
          <c-col :span="24">
            <el-form-item label="有效地点" prop="ledgrp.rec.expplc">
              <c-input v-model="model.ledgrp.rec.expplc" maxlength="29" placeholder="有效地点"></c-input>
            </el-form-item>
          </c-col>
          <!-- Confirmation Instruct.Received -->
          <c-col :span="24">
            <el-form-item label="确认接收指示" prop="ledgrp.rec.cnfdet">
              <c-select v-model="model.ledgrp.rec.cnfdet" style="width: 100%" placeholder="请选择确认接收指示"
                :code="codes.cnfflg1">
              </c-select>
            </el-form-item>
          </c-col>
          <!-- Applicable rules -->
          <c-col :span="24">
            <el-form-item label="适用规则" prop="ledgrp.rec.apprul">
              <c-select v-model="model.ledgrp.rec.apprul" style="width: 100%" placeholder="请选择适用规则"
                :code="codes.apprul">
              </c-select>
            </el-form-item>
          </c-col>
          <!-- Other Applicable rules -->
          <c-col :span="24">
            <el-form-item label="其他规则" prop="ledgrp.rec.apprultxt">
              <c-input disabled v-model="model.ledgrp.rec.apprultxt" maxlength="35" placeholder="请输入其他规则"></c-input>
            </el-form-item>
          </c-col>
          <!-- Partial shipment -->
          <c-col :span="24">
            <el-form-item label="分批装运" prop="ledgrp.rec.shppar">
              <c-select v-model="model.ledgrp.rec.shppar" style="width: 100%" placeholder="请选择分批装运"
                :code="codes.shptrss18">
              </c-select>
            </el-form-item>
          </c-col>
          <!-- Transshipment -->
          <c-col :span="24">
            <el-form-item label="转运" prop="ledgrp.rec.shptrs">
              <c-select v-model="model.ledgrp.rec.shptrs" style="width:100%" placeholder="请选择Transshipment"
                :code="codes.shptrss18">
              </c-select>
            </el-form-item>
          </c-col>
          <!-- <c-col :span="24">
208
          <el-form-item label="转运" prop="ledgrp.rec.shptrss18">
hpj committed
209
            <c-select
210
              v-model="model.ledgrp.rec.shptrss18"
hpj committed
211
              style="width: 100%"
212
              placeholder="请选择是否转运"
hpj committed
213 214 215
            >
            </c-select>
          </el-form-item>
216
        </c-col> -->
217
        </c-col>
hpj committed
218 219 220



221 222
        <!-- ========================右边======================= -->
        <c-col :span="11" :offset="1">
hpj committed
223

224
          <!-- <c-col :span="12">
225 226 227 228 229 230 231 232 233 234
        <el-form-item label="Beneficiary       Ref." prop="ledgrp.ben.pts.ref">
            <c-input  v-model="model.ledgrp.ben.pts.ref" maxlength="16"  placeholder="请输入Beneficiary       Ref."></c-input>
        </el-form-item>
      </c-col>
                  
      <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="letp.benp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.letp.benp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
      </c-col> -->
235 236 237 238 239 240 241 242
          <c-col :span="24">
            <c-ptap :model="model" :argadr="{
              title: '受益人',
              grp: 'ledgrp',
              rol: 'ben',
            }" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onBenpDet">
            </c-ptap>
          </c-col>
hpj committed
243

244 245 246 247 248 249 250 251
          <c-col :span="24">
            <c-ptap :model="model" :argadr="{
              title: '开证行',
              grp: 'ledgrp',
              rol: 'iss',
            }" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onIsspDet">
            </c-ptap>
          </c-col>
hpj committed
252

253 254 255 256 257 258 259 260
          <c-col :span="24">
            <c-ptap :model="model" :argadr="{
              title: '申请人',
              grp: 'ledgrp',
              rol: 'apl',
            }" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onAplpDet">
            </c-ptap>
          </c-col>
hpj committed
261

262
          <!-- <c-col :span="24" class="centerLable marginLable">
hpj committed
263 264 265
          <c-checkbox v-model="model.ledgrp.rec.revflg"
            >Revolving Flag</c-checkbox
          >
266
        </c-col> -->
hpj committed
267

268 269 270 271
          <!-- Authorization to Debit -->
          <c-col :span="24" class="centerLable marginLable">
            <c-checkbox v-model="model.ledgrp.rec.dbtflg">借记授权书</c-checkbox>
          </c-col>
272

273 274 275 276
          <!-- Non-Bank Issuer -->
          <c-col :span="24" class="centerLable marginLable">
            <c-checkbox v-model="model.ledgrp.rec.nonban">非银行发行人</c-checkbox>
          </c-col>
277

278 279 280 281
          <!-- Test Key Unconfirmity -->
          <c-col :span="24" class="centerLable marginLable">
            <c-checkbox v-model="model.ledgrp.rec.teskeyunc">测试密钥</c-checkbox>
          </c-col>
282

283
        </c-col>
hpj committed
284 285 286 287
  </c-row>
</template>
<script>
import Api from "~/service/Api";
288
import commonProcess from "~/mixin/commonProcess";
hpj committed
289 290
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
291
import Utils from "~/utils";
hpj committed
292 293 294 295 296 297 298
import Ptap from "~/views/Public/Ptap";
// import Amtpanl from "~/views/Public/Amtpanl";

export default {
  components: { "c-ptap": Ptap },
  inject: ["root"],
  props: ["model", "codes"],
299
  mixins: [commonProcess],
hpj committed
300 301 302
  data() {
    return {};
  },
303 304 305 306 307 308 309 310 311
  methods: { ...Event, 
    nom1CurEvent() {
      this.executeDefault("ledgrp.cbs.nom1.cur").then((res) => {
        if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
    onSeainf() { }, onExtkey() { }, onDetpButgetref() { }, onBenpDet() { }, onIsspDet() { }, onAplpDet() { } },
312
  created: function () { },
hpj committed
313 314 315 316 317 318 319 320
};
</script>
<style>
.centerLable {
  margin-left: -10px;
  height: 32px;
  line-height: 32px;
}
321

hpj committed
322 323 324 325
.marginLable {
  padding-left: 150px;
}
</style>