Davp.vue 15.9 KB
Newer Older
zxg committed
1 2 3
<template>
    <div class="eibs-tab">       
        <!--顶部-->
4
        <c-col :span="24">
zxg committed
5 6
            <c-col :span="12">
                <el-form-item label="参考号" prop="didgrp.rec.ownref">
7 8 9 10 11
            <c-fullbox>
              <c-input
              disabled
                  v-model="model.didgrp.rec.ownref"
                  maxlength="16"
wangna committed
12
                  placeholder="请输入参考号"
13 14 15 16 17 18 19 20 21 22 23
              ></c-input>
              <template slot="footer">
                <c-button
                style="margin:0 10px 0 10px;padding: 0 12px;"
                  size="small"
                  type="primary"
                >
                <span style="font-family:'宋体';font-weight:bold">i</span>
                </c-button>
              </template>
           </c-fullbox>
zxg committed
24 25 26 27 28 29
                </el-form-item>
            </c-col>
                             
            <c-col :span="12">
                    <el-form-item label="摘要" prop="didgrp.rec.nam">
                        <c-input  
30
                        disabled
zxg committed
31 32
                            v-model="model.didgrp.rec.nam" 
                            maxlength="40"  
wangna committed
33
                            placeholder="请输入摘要"
zxg committed
34 35 36 37 38
                        ></c-input>
                    </el-form-item>
            </c-col>
        </c-col>
         <!--左部-->
39
         <c-row>
zxg committed
40 41 42 43 44
        <c-col :span="12">
            <c-col :span="24">
                <c-col :span="12">
                    <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
                        <c-select 
45
                        disabled
zxg committed
46 47
                            v-model="model.didgrp.cbs.nom1.cur" 
                            style="width:100%" 
wangna committed
48
                            placeholder="请选择币种"
49 50 51 52 53 54 55 56 57
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
58 59 60 61
                    </el-form-item>
                </c-col>
                            
                <c-col :span="12">
62
                    <el-form-item label="" prop="didgrp.cbs.nom1.amt" label-width="5px">
zxg committed
63
                        <c-input  
64
                        disabled
zxg committed
65 66 67 68 69 70 71 72 73
                            v-model="model.didgrp.cbs.nom1.amt"  
                            placeholder="请输入信用证金额"
                        ></c-input>
                    </el-form-item>
                </c-col>

                <c-col :span="12">
                    <el-form-item label="单据余额" prop="didgrp.cbs.opn1.cur">
                        <c-select  
74
                        disabled
zxg committed
75 76
                            v-model="model.didgrp.cbs.opn1.cur" 
                            maxlength="3"  
wangna committed
77
                            placeholder="请选择币种"
78 79 80 81 82 83 84 85 86
                        >
                        <el-option
                    v-for="item in codes.cur"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                        </c-select>
zxg committed
87 88 89
                    </el-form-item>
                </c-col>
                <c-col :span="12">
90 91 92
                    <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="5px">
                        <c-input 
                        disabled 
zxg committed
93 94 95 96 97 98 99 100 101 102
                            v-model="model.didgrp.cbs.opn1.amt"  
                            placeholder="请输入单据余额"
                        ></c-input>
                    </el-form-item>
                </c-col>   
            </c-col>

            <c-col :span="24">
                <el-form-item label="指定银行" prop="didgrp.avbnam">
                    <c-input  
103
                    disabled
zxg committed
104 105 106 107 108 109 110 111 112 113
                        v-model="model.didgrp.avbnam" 
                        maxlength="40"  
                        placeholder="请输入指定银行"
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="兑付方式" prop="didgrp.rec.avbby">
                    <c-select 
114
                    disabled
zxg committed
115 116 117
                        v-model="model.didgrp.rec.avbby" 
                        style="width:100%" 
                        placeholder="请选择兑付方式"
118 119
                    >
                    <el-option
120
                    v-for="item in codes.avbby0"
121 122 123 124 125 126
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                    </c-select>
zxg committed
127 128 129
                </el-form-item>
            </c-col>

130 131 132 133 134 135 136
            <c-col :span="12">
        <el-form-item label="开证日期" prop="didgrp.rec.opndat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.didgrp.rec.opndat"
            style="width: 100%"
wangna committed
137
            placeholder="请选择开证日期"
138 139 140 141 142 143 144 145 146 147 148
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="最迟装运日期" prop="didgrp.rec.shpdat">
          <c-date-picker
          disabled
            type="date"
            v-model="model.didgrp.rec.shpdat"
            style="width: 100%"
wangna committed
149
            placeholder="请选择最迟装运日期"
150 151 152
          ></c-date-picker>
        </el-form-item>
      </c-col>
zxg committed
153

154
            <c-col :span="12">
zxg committed
155 156
                <el-form-item label="到期日/到期地点" prop="didgrp.rec.expdat">
                    <c-date-picker 
157
                    disabled
zxg committed
158 159 160
                        type="date"  
                        v-model="model.didgrp.rec.expdat" c
                        style="width:100%"  
161
                        placeholder="请选择到期日"
zxg committed
162 163 164 165
                    ></c-date-picker>
                </el-form-item>
            </c-col>

166 167 168 169 170 171
        <c-col :span="12">
        <el-form-item label="" prop="didgrp.rec.expplc" label-width="5px">
          <c-input
          disabled
            v-model="model.didgrp.rec.expplc"
            maxlength="35"
wangna committed
172
            placeholder="请输入"
173 174 175
          ></c-input>
        </el-form-item>
        </c-col>
zxg committed
176 177 178 179

            <c-col :span="24">
                <el-form-item label="信用证类型" prop="didgrp.rec.lcrtyp">
                    <c-select 
180
                    disabled
zxg committed
181 182
                        v-model="model.didgrp.rec.lcrtyp" 
                        style="width:100%" 
wangna committed
183
                        placeholder="请选择信用证类型"
184 185 186 187 188 189 190 191 192
                    >
                    <el-option
                    v-for="item in codes.lcrtyp"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
                    </c-select>
zxg committed
193 194 195 196
                </el-form-item>
            </c-col>
            </c-col>

197 198
            
            <!--右边-->
zxg committed
199 200 201 202
            <c-col :span="12">
            <c-col :span="24">
                    <el-form-item label="申请人" prop="bddgrp.apl.pts.ref">
                        <c-input  
203
                        disabled
zxg committed
204 205 206 207 208 209 210 211 212 213
                            v-model="model.bddgrp.apl.pts.ref" 
                            maxlength="16"  
                            placeholder="请输入申请人"
                        ></c-input>
                    </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.apl.pts.nam">
                    <c-input  
214
                    disabled
zxg committed
215 216
                        v-model="model.bddgrp.apl.pts.nam" 
                        maxlength="40"  
wangna committed
217
                        placeholder="请输入"
zxg committed
218 219 220 221 222 223 224
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="受益人" prop="bddgrp.ben.pts.ref">
                    <c-input  
225
                    disabled
zxg committed
226 227 228 229 230 231 232 233 234 235
                        v-model="model.bddgrp.ben.pts.ref" 
                        maxlength="16"  
                        placeholder="请输入受益人"
                    ></c-input>
                </el-form-item>
            </c-col>       

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.ben.pts.nam">
                    <c-input  
236
                    disabled
zxg committed
237 238
                        v-model="model.bddgrp.ben.pts.nam" 
                        maxlength="40"  
wangna committed
239
                        placeholder="请选择"
zxg committed
240 241 242 243 244 245 246
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="交单行" prop="bddgrp.prb.pts.ref">
                    <c-input  
247
                    disabled
zxg committed
248 249
                        v-model="model.bddgrp.prb.pts.ref" 
                        maxlength="16"  
wangna committed
250
                        placeholder="请输入交单行"
zxg committed
251 252 253 254 255 256 257
                    ></c-input>
                </el-form-item>
            </c-col>

            <c-col :span="24">
                <el-form-item label="" prop="bddgrp.prb.pts.nam">
                    <c-input  
258
                    disabled
zxg committed
259 260
                        v-model="model.bddgrp.prb.pts.nam" 
                        maxlength="40"  
wangna committed
261
                        placeholder="请输入"
zxg committed
262 263 264
                    ></c-input>
                </el-form-item>
            </c-col>
265 266 267 268 269
        </c-col>
        </c-row>

                <div class="line" />
                <hr />
huangxin committed
270

271 272 273 274 275 276
                
    <el-row>
        <!--左边-->
        <c-col :span="12">
    <el-row>
    <c-col :span="22">
wangna committed
277
                <el-form-item label="单据参考号" prop="bddgrp.rec.ownref">
zxg committed
278
                    <c-input  
279
                    disabled
zxg committed
280 281
                        v-model="model.bddgrp.rec.ownref" 
                        maxlength="16"  
wangna committed
282
                        placeholder="请输入单据参考号"
zxg committed
283 284 285
                    ></c-input>
                </el-form-item>
            </c-col>
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300

            <c-col :span="2" style="text-align: right">
        <el-form-item label-width="0">
          <c-button
            size="small"
            type="primary"
            icon="el-icon-search"
            style="margin-left: 0"
          ></c-button>
        </el-form-item>
      </c-col>
            </el-row>


            <c-col :span="24">
wangna committed
301
                <el-form-item label="建议类型" prop="bddgrp.rec.advtyp">
302 303 304
                    <c-select 
                    v-model="model.bddgrp.rec.advtyp" 
                    style="width:100%" 
wangna committed
305
                    placeholder="请选择建议类型"
huangxin committed
306 307 308 309 310 311 312 313 314
                >
                <el-option
              v-for="item in codes.advtyp0"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
                </c-select>
315 316 317 318 319
                </el-form-item>
            </c-col>
                                        
                                        
            <c-col :span="12">
wangna committed
320
                <el-form-item label="付款通知日期" prop="bddgrp.rec.advdat">
321
                    <c-date-picker 
322
                    :disabled="model.bddgrp.rec.advtyp=='750' || model.bddgrp.rec.advtyp=='oth'"
323 324 325
                        type="date"  
                        v-model="model.bddgrp.rec.advdat" 
                        style="width:100%"  
wangna committed
326
                        placeholder="请选择付款通知日期"
327 328 329 330 331
                    ></c-date-picker>
                </el-form-item>
            </c-col>
                                        
            <c-col :span="12">
wangna committed
332
                <el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
333 334
                    <c-date-picker
                    :disabled="model.bddgrp.rec.advtyp=='754' || model.bddgrp.rec.advtyp=='oth'" 
335 336 337
                        type="date"  
                        v-model="model.bddgrp.rec.disdat" 
                        style="width:100%"  
wangna committed
338
                        placeholder="请选择不符点通知日期"
339 340 341 342 343 344 345 346 347
                    ></c-date-picker>
                </el-form-item>
            </c-col>
            </c-col>    


        <!--右部-->
        <c-col :span="12">
            <c-col :span="24" >
wangna committed
348
                <el-form-item label="简略信息" prop="bddgrp.rec.nam">
349 350 351 352
                    <c-input  
                    disabled
                        v-model="model.bddgrp.rec.nam" 
                        maxlength="40"  
wangna committed
353
                        placeholder="请输入简略信息"
354 355 356 357 358 359
                    ></c-input>
                </el-form-item>
            </c-col>
                                                               
                                
            <c-col :span="24" >
wangna committed
360
                <el-form-item label="交付方" prop="bddgrp.rec.docprbrol">
zxg committed
361 362 363
                    <c-select 
                    v-model="model.bddgrp.rec.docprbrol" 
                    style="width:100%" 
wangna committed
364
                    placeholder="请选择交付方"
huangxin committed
365
                    @change="selectOrCheckboxRule('bddgrp.rec.docprbrol')"
366 367
                >
                <el-option
368
              v-for="item in docprbrol"
369 370 371 372 373 374
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
                </c-select>
zxg committed
375 376 377
                </el-form-item>
            </c-col>

378 379 380 381
            <c-col :span="24">
        <c-ptap
          :model="model"
          :argadr="{
huangxin committed
382
            title: '',
383 384 385
            grp: 'bddgrp',
            rol: 'prb',
          }"
huangxin committed
386
          :disabledExtkey="this.flag"
387 388 389 390
          :onlySearch="true"
        >
        </c-ptap>
      </c-col>
wangna committed
391
         
392
            <c-col :span="24" >
zxg committed
393
                <el-form-item label="名称" prop="bddgrp.prb.namelc">
394
                    <c-input disabled type="textarea" v-model="model.bddgrp.prb.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
zxg committed
395 396 397
                </el-form-item>
            </c-col>

398
            <c-col :span="24" class="change">
zxg committed
399
                <el-form-item label="地址" prop="bddgrp.prb.adrelc">
huangxin committed
400
                    <c-input type="textarea" disabled v-model="model.bddgrp.prb.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
zxg committed
401 402
                </el-form-item>
            </c-col>
403 404 405 406
            </c-col>
            </el-row>


zxg committed
407 408 409 410 411

    </div>
</template>
<script>
import Api from "~/service/Api"
412
import commonProcess from "~/mixin/commonProcess";
zxg committed
413 414
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditdav/Event"
415
import Ptap from "~/views/Public/Ptap";
zxg committed
416 417

export default {
418
    components: { "c-ptap": Ptap },
zxg committed
419 420
    inject: ['root'],
    props:["model","codes"],
421
    mixins: [commonProcess],
zxg committed
422 423
    data(){
        return {
huangxin committed
424
            flag:true,
425
            docprbrol: [
wangna committed
426 427 428
        { label: "通知行", value: "ADV" },
        { label: "受益人", value: "BEN" },
        { label: "演示者(PRP)", value: "PRB" },
429
    ],
zxg committed
430

jianglong committed
431
        };
zxg committed
432
    },
huangxin committed
433 434 435 436 437 438 439 440 441 442 443 444 445
    watch:{
        "model.bddgrp.rec.advtyp":function(){
            if(this.model.bddgrp.rec.advtyp=='750'){
                this.model.bddgrp.rec.advdat="";
            }
            else if(this.model.bddgrp.rec.advtyp=='754'){
                this.model.bddgrp.rec.disdat="";
            }
            else if (this.model.bddgrp.rec.advtyp=='oth'){
                this.model.bddgrp.rec.disdat="";
                this.model.bddgrp.rec.advdat="";
            }
        },
446 447 448 449 450 451 452
        "model.bddgrp.rec.docprbrol":function(){
            if(this.model.bddgrp.rec.docprbrol=='ADV'){
                this.flag=true;
            }
            else if(this.model.bddgrp.rec.docprbrol=='BEN'){
                this.flag=true;
            }
huangxin committed
453 454 455
            else if(this.model.bddgrp.rec.docprbrol=='PRB'){
                this.flag=false;
            }
456 457

        },
huangxin committed
458 459

    },
zxg committed
460 461 462 463 464 465 466
    methods:{...Event},
    created:function(){

    }
}
</script>
<style>
467 468 469 470 471 472 473 474
/* .change1{
    position: relative;
    margin-top: 52px;
}
.change{
    position: relative;
    background-color: #ccc;
 } */
zxg committed
475
</style>