Rgfp.vue 12.4 KB
Newer Older
WH committed
1 2 3 4 5 6 7 8
<template>
  <div class="eibs">
    <!-- ======================= 左边 ========================= -->
    <c-col :span="12" style="padding-right: 20px">
      <c-col :span="24">
        <el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref">
          <c-fullbox>
            <c-input v-model="model.ledgrp.rec.ownref" maxlength="16" placeholder="请输入编号" style="width: 95%"
WH committed
9
                     :disabled="true" @keyup.enter.native="eventFunction(
WH committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
                'ledgrp.rec.ownref'
              )">
            </c-input>
            <template slot="footer">
              <c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary">
                <i class="el-icon-info" style="font-size:15px"></i>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <!-- Bill Set Reference 单据参考号-->
        <el-form-item label="出口单据参考号" prop="bedgrp.rec.ownref">
          <c-fullbox>
            <c-input v-model="model.bedgrp.rec.ownref" maxlength="16" placeholder="请输入单据参考号" style="width: 95%"
WH committed
26
                     disabled></c-input>
WH committed
27 28 29 30 31 32 33 34 35 36 37 38
            <template slot="footer">
              <c-button style="margin: 0 0 0 0; padding: 0 12px" size="small" type="primary">
                <i class="el-icon-info" style="font-size:15px"></i>
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <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="请选择币种"
WH committed
39
                      @keyup.enter.native="maxCurEvent" :code="codes.curtxt" disabled>
WH committed
40 41 42 43 44 45
            </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%"
WH committed
46
                              placeholder="请输入金额" @keyup.enter.native="
WH committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60
                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>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
WH committed
61 62 63
            <c-select v-model="model.bedgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入" style="width: 100%"
                      disabled
                      :code="codes.curtxt"></c-select>
WH committed
64 65 66 67 68
          </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%"
WH committed
69
                              placeholder="请输入金额" disabled></c-input-currency>
WH committed
70 71 72 73 74 75 76 77
          </el-form-item>
        </c-col>
        <c-col :span="4">
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
          <c-select v-model="model.bedgrp.rec.doctypcod" style="width: 100%" placeholder="请选择单据类型"
WH committed
78
                    :code="codes.doctypcod1" disabled>
WH committed
79 80 81 82 83 84 85 86
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <!-- Maturity Date 到期日-->
        <c-col :span="24">
          <el-form-item label="到期日" prop="bedgrp.rec.matdat">
            <c-date-picker type="date" v-model="model.bedgrp.rec.matdat" style="width: 100%" placeholder="请选择到期日"
panziyi committed
87
                           value-format="yyyy-MM-dd" ></c-date-picker>
WH committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101
          </el-form-item>
        </c-col>
        <!-- <c-col :span="12"></c-col> -->
      </c-col>
      <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">
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
WH committed
102 103 104
            <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>
WH committed
105 106 107 108 109 110
          </el-form-item>
        </c-col>
        <!-- Received on 到单日期-->
        <!-- Presented on 提示日期 -->
        <c-col :span="12">
          <el-form-item label="交单日期" prop="bedgrp.rec.predat">
WH committed
111 112 113
            <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>
WH committed
114 115 116 117 118 119
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
          <c-select v-model="model.bedgrp.rec.docsta" maxlength="40" style="width: 100%" placeholder="请输入单据状态"
WH committed
120
                    :code="codes.docsta" disabled></c-select>
WH committed
121 122 123 124 125
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
WH committed
126 127 128
            <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>
WH committed
129 130 131 132
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="装运日期" prop="bedgrp.rec.shpdat">
WH committed
133 134 135
            <c-date-picker type="date" v-model="model.bedgrp.rec.shpdat" style="width: 100%"
                           placeholder="请选择装运日期"
                           value-format="yyyy-MM-dd"></c-date-picker>
WH committed
136 137 138 139 140 141 142
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <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"
WH committed
143
                           placeholder="请选择日期"></c-date-picker>
WH committed
144 145 146 147 148 149
          </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="请选择到期日"
WH committed
150 151
                           value-format="yyyy-MM-dd"
                           :disabled="model.bedgrp.blk.matper != '' || model.bedgrp.rec.doctypcod == 'P'">
WH committed
152 153 154 155 156 157 158
            </c-date-picker>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="到期期限" prop="bedgrp.blk.matper">
          <c-input type="textarea" v-model="model.bedgrp.blk.matper" maxlength="65" show-word-limit
WH committed
159 160
                   placeholder="请输入到期期限"
                   :disabled="model.bedgrp.rec.matdat != null && model.bedgrp.rec.matdat != '' || model.bedgrp.rec.doctypcod == 'P'">
WH committed
161 162 163 164 165 166 167 168 169 170 171 172
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>


    <!-- ======================右边====================== -->
    <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">
            <c-select v-model="model.ledgrp.cbs.opn1.cur" maxlength="3" placeholder="请选择币种" :code="codes.curtxt"
WH committed
173
                      disabled></c-select>
WH committed
174 175 176 177 178
          </el-form-item>
        </c-col>

        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
panziyi committed
179 180 181
            <c-input v-model="model.ledgrp.cbs.opn1.amt" placeholder="请输入信用证余额" disabled
                     >
            </c-input>
WH committed
182 183 184 185 186
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
WH committed
187 188
          <c-input text-align="middle" v-model="model.bedgrp.rec.nam" maxlength="40" placeholder="请输入简略信息"
                   disabled>
WH committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="交单行" prop="bedgrp.prb.pts.ref">
          <c-input v-model="model.bedgrp.prb.pts.ref" maxlength="16" placeholder="请输入交单人" disabled></c-input>
        </el-form-item>
      </c-col>

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

      <!-- 开证行 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>
      <c-col :span="24">
        <el-form-item label="付款人" prop="bedgrp.rec.payrol">
WH committed
229
          <c-select v-model="model.bedgrp.rec.payrol" style="width: 100%" placeholder="请选择付款人"
lixinyi committed
230
                    :code="codes.payrol"
WH committed
231
                    @change="eventFunction(
WH committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
              'bedgrp.rec.payrol'
            )">
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap1 :model="model" :argadr="{
          title: '',
          grp: 'bedgrp',
          rol: 'oth',
        }" :disabled1="model.bedgrp.rec.payrol != 'OTH'">
        </c-ptap1>
      </c-col>

      <!-- Presented by -->
      <c-col :span="24">
        <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
          <c-select v-model="model.bedgrp.rec.docprbrol" style="width: 100%" placeholder="请选择交单行"
WH committed
251
                    :code="codes.docprbrol0" disabled>
WH committed
252 253 254 255 256 257 258 259 260
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-ptap1 :model="model" :argadr="{
          title: '',
          grp: 'bedgrp',
          rol: 'prb',
WH committed
261 262 263 264
        }" :disabled1="model.bedgrp.rec.docprbrol == 'BEN'"
                 @keyup.enter.native="
          queryGridEtyPromptDialogData('PRB', 'B')
          ">
WH committed
265
        </c-ptap1>
WH committed
266 267 268 269 270 271 272 273 274 275 276 277 278

<!--        <c-ptap-->
<!--            :model="model"-->
<!--            :argadr="{-->
<!--              title: '',-->
<!--              grp: 'bedgrp',-->
<!--              rol: 'prb',-->
<!--            }"-->
<!--            :disabled1="model.bedgrp.rec.docprbrol == 'BEN'"-->
<!--            @keyup.enter.native="-->
<!--          queryGridEtyPromptDialogData('PRB', 'B')-->
<!--          ">-->
<!--        </c-ptap>-->
WH committed
279 280 281 282 283 284 285 286 287 288 289 290 291
      </c-col>

      <c-col :span="24">
        <el-form-item>
          <c-checkbox v-model="model.ameadrflg" class="checkbox-left">修改受益人地址</c-checkbox>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import event from "../event";
import Ptap1 from "~/views/Public/Ptap1"
WH committed
292
import Ptap from "~/views/Public/Ptap"
WH committed
293 294 295 296 297
import Docpre from "~/views/Public/Docpre"

export default {
  components: {
    "c-ptap1": Ptap1,
WH committed
298
    "c-ptap": Ptap,
WH committed
299 300 301 302 303 304 305 306 307
    "c-docpre": Docpre,
  },
  inject: ['root'],
  props: ['model', 'codes'],
  mixins: [event],
  data() {
    return {}
  },
  methods: {},
WH committed
308 309
  created: function () {
  },
WH committed
310 311 312 313 314 315 316
}
</script>
<style>
.marginLable {
  padding-left: 160px;
}
</style>