Rgfp.vue 13.5 KB
Newer Older
lianyang committed
1
<template>
2 3
  <div class="eibs">
    <!-- ============================顶部================================ -->
lianyang committed
4
    <c-col :span="24">
5 6 7 8 9 10 11 12 13 14 15 16
      <!-- Reference参考号 Export L/C Ref. -->
      <c-col :span="12">
        <el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref">
          <c-fullbox>
            <c-input v-model="model.ledgrp.rec.ownref" maxlength="16" placeholder="请输入编号" style="width: 95%"
              :disabled="true" @keyup.enter.native="eventFunction(
                'ledgrp.rec.ownref'
              )">
            </c-input>
            <template slot="footer">
              <c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
                <span style="
lianyang committed
17 18 19
                      font-size: 15px;
                      font-family: '宋体';
                      font-weight: bold;
20 21 22 23 24 25 26
                    ">i</span>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <!--  Open Amt L/C 信用证余额-->
lianyang committed
27 28 29
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <c-col :span="12">
30
            <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
31 32
              <c-select v-model="model.ledgrp.cbs.opn1.cur" maxlength="3" placeholder="请选择币种" :code="codes.curtxt"
                disabled></c-select>
lianyang committed
33 34 35 36 37
            </el-form-item>
          </c-col>

          <c-col :span="12">
            <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
38 39
              <c-input v-model="model.ledgrp.cbs.opn1.amt" placeholder="请输入信用证余额" disabled class="m-input-currency">
              </c-input>
lianyang committed
40 41 42 43 44 45 46 47
            </el-form-item>
          </c-col>
        </c-col>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="12">
48
        <!-- Bill Set Reference 单据参考号-->
wangna committed
49
        <el-form-item label="出口单据参考号" prop="bedgrp.rec.ownref">
lianyang committed
50
          <c-fullbox>
51 52 53 54 55
            <c-input v-model="model.bedgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号" style="width: 95%"
              disabled></c-input>
            <template slot="footer">
              <c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary" @click="onSeainf">
                <span style="
lianyang committed
56 57 58
                  font-size: 15px;
                  font-family: '宋体';
                  font-weight: bold;
59 60 61
                ">i</span>
              </c-button>
            </template>
lianyang committed
62 63 64 65 66
          </c-fullbox>
        </el-form-item>
      </c-col>
      <!-- Name 摘要  Externally Displayed Name to Identify the Contract-->
      <c-col :span="11" :offset="1">
67
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
68
          <c-input text-align="middle" v-model="model.bedgrp.rec.nam" maxlength="40" placeholder="请输入简略信息" disabled>
lianyang committed
69 70 71 72 73
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>

74
    <!-- ============================第三行开始,金额日期 =========================-->
lianyang committed
75
    <c-col :span="24">
76
      <!-- 第三行开始-金额日期--左边- -->
lianyang committed
77
      <c-col :span="12">
78
        <!-- Document Amount 单据金额-->
lianyang committed
79
        <c-col :span="24">
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
          <c-col :span="12">
            <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
              <c-select v-model="model.bedgrp.cbs.max.cur" style="width: 100%" placeholder="请选择币种"
                @keyup.enter.native="maxCurEvent" :code="codes.curtxt" disabled>
              </c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
              <c-input-currency v-model="model.bedgrp.cbs.max.amt" style="text-align: left; width: 100%"
                placeholder="请输入金额" @keyup.enter.native="
                  defaultFunction(
                    'bedgrp.cbs.max.amt',
                    model.bedgrp.cbs.max.amt
                  )
                " disabled></c-input-currency>
            </el-form-item>
          </c-col>
          <c-col :span="4">
            <c-checkbox v-model="model.betp.adaflg" style="margin-left: 10px" disabled>附加金额</c-checkbox>
          </c-col>
lianyang committed
101 102
        </c-col>

103 104 105 106
        <!-- Open Amount  单据余额-->
        <c-col :span="24">
          <c-col :span="12">
            <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
wangna committed
107
              <c-select v-model="model.bedgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入"
108 109 110 111 112 113 114 115 116 117 118 119
                style="width: 100%" disabled :code="codes.curtxt"></c-select>
            </el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="" label-width="5px" prop="bedgrp.cbs.opn1.amt">
              <c-input-currency v-model="model.bedgrp.cbs.opn1.amt" style="text-align: left; width: 100%"
                placeholder="请输入金额" disabled></c-input-currency>
            </el-form-item>
          </c-col>
          <c-col :span="4">
          </c-col>
        </c-col>
lianyang committed
120

121
        <!-- Document Type 单据类型-->
lianyang committed
122
        <c-col :span="24">
123
          <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
124 125
            <c-select v-model="model.bedgrp.rec.doctypcod" style="width: 100%" placeholder="请选择单据类型"
              :code="codes.doctypcod1" disabled>
lianyang committed
126 127 128 129
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
130
          <!-- Maturity Date 到期日-->
lianyang committed
131
          <c-col :span="12">
132
            <el-form-item label="到期日" prop="bedgrp.rec.matdat">
133 134
              <c-date-picker type="date" v-model="model.bedgrp.rec.matdat" style="width: 100%" placeholder="请选择到期日"
                value-format="yyyy-MM-dd" :disabled="true"></c-date-picker>
lianyang committed
135 136 137 138 139 140 141 142
            </el-form-item>
          </c-col>
          <c-col :span="12"></c-col>
        </c-col>

        <c-col :span="24">
          <!-- Received on 到单日期-->
          <c-col :span="12">
143
            <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
144 145
              <c-date-picker type="date" v-model="model.bedgrp.rec.rcvdat" style="width: 100%" placeholder="请选择收到日期"
                value-format="yyyy-MM-dd" :disabled="true"></c-date-picker>
lianyang committed
146 147
            </el-form-item>
          </c-col>
148
          <!-- Presented on 提示日期 -->
lianyang committed
149
          <c-col :span="12">
150
            <el-form-item label="交单日期" prop="bedgrp.rec.predat">
151 152
              <c-date-picker type="date" v-model="model.bedgrp.rec.predat" style="width: 100%" placeholder="请选择提示日期"
                value-format="yyyy-MM-dd" :disabled="true"></c-date-picker>
lianyang committed
153 154 155 156
            </el-form-item>
          </c-col>
        </c-col>

157
        <!-- Document Status单据状态 -->
lianyang committed
158
        <c-col :span="24">
159
          <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
160 161
            <c-select v-model="model.bedgrp.rec.docsta" maxlength="40" style="width: 100%" placeholder="请输入单据状态"
              :code="codes.docsta" disabled></c-select>
lianyang committed
162 163 164 165 166
          </el-form-item>
        </c-col>

      </c-col>

167
      <!-- ========================第三行开始金额日期的右边Presented by======================= -->
lianyang committed
168
      <c-col :span="11" :offset="1">
169
        <!--Presented by 交单人 -->
lianyang committed
170
        <c-col :span="24">
171
          <el-form-item label="交单行" prop="bedgrp.prb.pts.ref">
172
            <c-input v-model="model.bedgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单人" disabled></c-input>
lianyang committed
173 174 175 176 177
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.prb.pts.nam">
178
            <c-input v-model="model.bedgrp.prb.pts.nam" maxlength="40" placeholder="请输入名称" disabled></c-input>
lianyang committed
179 180 181
          </el-form-item>
        </c-col>

182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
        <!-- 开证行 Issuing Bank Ref. -->
        <c-col :span="24">
          <el-form-item label="开证行参考号" prop="bedgrp.iss.pts.ref">
            <c-input v-model="model.bedgrp.iss.pts.ref" maxlength="16" placeholder="请输入开证行" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.iss.pts.nam">
            <c-input v-model="model.bedgrp.iss.pts.nam" maxlength="40" placeholder="请输入名称" disabled></c-input>
          </el-form-item>
        </c-col>

        <!--Applicant Ref.  申请人-->
        <c-col :span="24">
          <el-form-item label="申请人参考号" prop="bedgrp.apl.pts.ref">
            <c-input v-model="model.bedgrp.apl.pts.ref" maxlength="16" placeholder="请输入申请人" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="" prop="bedgrp.apl.pts.nam">
            <c-input v-model="model.bedgrp.apl.pts.nam" maxlength="40" placeholder="请输入名称" disabled></c-input>
          </el-form-item>
        </c-col>
lianyang committed
205 206 207 208 209 210 211 212 213 214

      </c-col>
    </c-col>

    <!-- =================================上下两部分 分割线 ============================-->
    <c-col :span="24">
      <el-form-item style="margin-left: -150px">
        <el-divider />
      </el-form-item>
    </c-col>
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
    <c-col :span="24">
      <c-docpre :model="model" :argadr="{
        path: 'bedgrp.blk.prsdoc',
        grp: 'betp',
        code: 'docpre',
      }"></c-docpre>
    </c-col>
    <c-col :span="24">
      <!-- =================================下半部分--左边-表格 ============================-->
      <c-col :span="12">
        <c-col :span="12">
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
            <c-date-picker type="date" v-model="model.bedgrp.rec.rcvdat" style="width: 100%" placeholder="请选择收到日期"
              value-format="yyyy-MM-dd" :disabled="true"></c-date-picker>
          </el-form-item>
lianyang committed
230
        </c-col>
231 232 233 234 235
        <c-col :span="12">
          <el-form-item label="装运日期" prop="bedgrp.rec.shpdat">
            <c-date-picker type="date" v-model="model.bedgrp.rec.shpdat" style="width: 100%" placeholder="请选择装运日期"
              value-format="yyyy-MM-dd"></c-date-picker>
          </el-form-item>
lianyang committed
236
        </c-col>
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
        <!-- S0000051 : Presentation Date -->
        <c-col :span="12">
          <el-form-item label="交单日期" prop="bedgrp.rec.predat">
            <c-date-picker type="date" v-model="model.bedgrp.rec.predat" style="width: 100%" value-format="yyyy-MM-dd"
              placeholder="请选择日期"></c-date-picker>
          </el-form-item>
        </c-col>
        <!-- Maturity Date -->
        <c-col :span="12">
          <el-form-item label="到期日" prop="bedgrp.rec.matdat">
            <c-date-picker type="date" v-model="model.bedgrp.rec.matdat" style="width: 100%" placeholder="请选择到期日"
              value-format="yyyy-MM-dd" :disabled="model.bedgrp.blk.matper!=''||model.bedgrp.rec.doctypcod=='P'">
            </c-date-picker>
          </el-form-item>
        </c-col>
    
    
        <!-- Maturity Period -->
lianyang committed
255
        <c-col :span="24">
256
          <el-form-item label="到期期限" prop="bedgrp.blk.matper">
257 258 259
            <c-input type="textarea" v-model="model.bedgrp.blk.matper" maxlength="65" show-word-limit placeholder="请输入到期期限"
              :disabled="model.bedgrp.rec.matdat!=null&&model.bedgrp.rec.matdat!=''||model.bedgrp.rec.doctypcod=='P'">
            </c-input>
lianyang committed
260 261
          </el-form-item>
        </c-col>
262
      </c-col>
lianyang committed
263

264
      <!-- ===============================下半部分-右边========================== -->
lianyang committed
265
      <c-col :span="11" :offset="1">
266
        <!-- Payer -->
lianyang committed
267
        <c-col :span="24">
268
          <el-form-item label="付款人" prop="bedgrp.rec.payrol">
269
            <c-select v-model="model.bedgrp.rec.payrol" style="width: 100%" placeholder="请选择付款人" :code="codes.rolall" @change="eventFunction(
lianyang committed
270
                    'bedgrp.rec.payrol'
271
                  )">
lianyang committed
272 273 274
            </c-select>
          </el-form-item>
        </c-col>
275
      
lianyang committed
276
        <c-col :span="24">
277 278 279 280 281
          <c-ptap1 :model="model" :argadr="{
                title: '',
                grp: 'bedgrp',
                rol: 'oth',
              }" @onSeainf="onSeainf" @onAplpDet="onOthpDet" :disabled1="model.bedgrp.rec.payrol!='OTH'">
lianyang committed
282 283
          </c-ptap1>
        </c-col>
284 285
      
        <!-- Presented by -->
lianyang committed
286
        <c-col :span="24">
287
          <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
288 289
            <c-select v-model="model.bedgrp.rec.docprbrol" style="width: 100%" placeholder="请选择交单行" :code="codes.docprbrol0"
              disabled>
lianyang committed
290 291 292
            </c-select>
          </el-form-item>
        </c-col>
293
      
lianyang committed
294
        <c-col :span="24">
295 296 297 298 299
          <c-ptap1 :model="model" :argadr="{
                title: '',
                grp: 'bedgrp',
                rol: 'prb',
              }" @onSeainf="onSeainf" @onAplpDet="onPrbpDet" :disabled1="model.bedgrp.rec.docprbrol=='BEN'">
lianyang committed
300 301
          </c-ptap1>
        </c-col>
302
      
lianyang committed
303 304
        <c-col :span="17" :offset="7">
          <c-checkbox v-model="model.ameadrflg">
305
            修改受益人地址</c-checkbox>
lianyang committed
306
        </c-col>
307
      
lianyang committed
308 309
      </c-col>
    </c-col>
lianyang committed
310

311 312
    

lianyang committed
313 314 315 316 317 318 319
  </div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Betsnd/Event'
lianyang committed
320 321
import Ptap1 from "~/views/Public/Ptap1"
import Docpre from "~/views/Public/Docpre"
lianyang committed
322 323

export default {
lianyang committed
324 325 326 327
  components: {
    "c-ptap1": Ptap1,
    "c-docpre": Docpre,
  },
lianyang committed
328 329 330 331 332 333
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [commonProcess],
  data() {
    return {}
  },
334 335
  methods: { ...Event, onSeainf() { } },
  created: function () { },
lianyang committed
336 337
}
</script>
338 339 340
<style>

</style>