Detp.vue 9.06 KB
Newer Older
1 2 3 4 5 6
<template>
    <div class="eibs-tab">

        <!-- ========================= Left ========================= -->
        <c-col :span="11"> 
            <el-form-item label="信用证兑付方式" prop="didgrp.rec.avbby">
7
                <c-select disabled v-model="model.didgrp.rec.avbby" style="width:100%"  placeholder="请选择">
8 9 10 11 12 13
                    <el-option v-for="item in codes.avbby0" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </c-select>
            </el-form-item>

            <el-form-item label="付款期限" prop="didgrp.rec.tenmaxday" >
14
                <c-input disabled v-model.number="model.didgrp.rec.tenmaxday" placeholder="请输入" style="width:100%" maxlength="3"></c-input>
15 16 17 18
            </el-form-item>

            <el-form-item label="远期付款指示" prop="didgrp.blk.defdet">
                <c-col :span="21">
19
                <c-input type="textarea" disabled v-model="model.didgrp.blk.defdet" style="width:100%" maxlength="140" show-word-limit placeholder="请输入" :autosize="{ minRows: 3,maxRows:5}"></c-input>
20 21
                </c-col>
                <c-col :span="3" style="text-align: right">
22
                <c-button size="small" style="margin:0 0;" type="primary" icon="el-icon-search" >
23 24 25 26 27 28
                </c-button>
                </c-col>
            </el-form-item>

            <el-form-item label="交单期限" prop="didgrp.blk.preper">
                <c-col :span="21">
29
                <c-input type="textarea" v-model="model.didgrp.blk.preper" disabled style="width:100%" maxlength="105" show-word-limit placeholder="请输入"></c-input>
30 31
                </c-col>
                <c-col :span="3" style="text-align: right">
32
                <c-button size="small" type="primary" style="margin:0 0;" icon="el-icon-search" >
33 34 35 36 37
                </c-button>
                </c-col>
            </el-form-item>

            <el-form-item label="" prop="didgrp.blk.preperflg">
38
                <c-checkbox disabled v-model="model.didgrp.blk.preperflg" >修改交单期限文本</c-checkbox>
39 40 41
            </el-form-item>

            <el-form-item label="货物运输/交货/服务方式" prop="didgrp.rec.tratyp">
42
            <c-col :span="24">
43
                <c-select  v-model="model.didgrp.rec.tratyp" style="width:100%" placeholder="请选择"  disabled>
44 45 46 47 48 49 50 51
                    <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
                        :value="item.value">
                    </el-option>
                </c-select>
                </c-col>
            </el-form-item>

            <el-form-item v-if="model.didgrp.rec.mytype == 'H'" label="手输运输方式" prop="didgrp.rec.sdsrfs">
52
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" disabled maxlength="140" show-word-limit placeholder="请输入"></c-input>
53 54
            </el-form-item>
            <el-form-item v-if="model.didgrp.rec.mytype == 'F'" label="服务提供方式" prop="didgrp.rec.sdsrfs">
55
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" disabled maxlength="140" show-word-limit placeholder="请输入"></c-input>
56 57
            </el-form-item>
            <el-form-item v-if="model.didgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="didgrp.rec.sdsrfs">
58
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" disabled maxlength="140" show-word-limit placeholder="请输入"></c-input>
59 60 61 62
            </el-form-item>
            

            <el-form-item label="合同编号" prop="didgrp.rec.conno">
63
                <c-input disabled v-model="model.didgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
64 65 66 67
            </el-form-item>

            <el-form-item label="合同金额" prop="didgrp.rec.conamt">
                <c-col :span="10">
68
                    <c-select disabled v-model="model.didgrp.rec.concur" style="width:95%" placeholder="请选择">
69 70 71 72
                        <el-option label="CNY 人民币" value="CNY"></el-option>
                    </c-select>   
                </c-col>
                <c-col :span="14">
73
                    <c-input  disabled v-model="model.didgrp.rec.conamt" placeholder="请输入"></c-input>
74 75 76 77 78 79 80
                </c-col>
            </el-form-item>
        </c-col>

        <!-- ========================= Right ========================= -->
        <c-col :span="11" :offset="1">
            <el-form-item label="分批装运货物" prop="didgrp.rec.shppar">
81
                <c-select disabled v-model="model.didgrp.rec.shppar" style="width:100%" placeholder="请选择">
82 83 84 85 86 87
                    <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </c-select>
            </el-form-item>

            <el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw">
88
                <c-select v-model="model.didgrp.rec.fqzytgfw" placeholder="请选择" disabled style="width:100%">
89 90 91
                    <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </c-select>
92 93 94
            </el-form-item>

            <el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime">
95
                <c-input type="textarea" :rows="3" disabled v-model="model.didgrp.rec.fqtime" maxlength="140" show-word-limit placeholder="请输入" style="width:100%"></c-input>
96 97 98
            </el-form-item>

            <el-form-item label="转运" prop="didgrp.rec.shptrs">
99
                <c-select v-model="model.didgrp.rec.shptrs" style="width:100%" placeholder="请选择" disabled>
100 101 102 103 104 105
                  <el-option label="不允许" value="禁止"></el-option>
                  <el-option label="允许" value="允许"></el-option>
                </c-select>
            </el-form-item>

            <el-form-item label="货物转运地(港)" prop="didgrp.rec.shpfro">
106
                <c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpfro" disabled maxlength="35" show-word-limit placeholder="请输入"></c-input>
107 108 109
            </el-form-item>

            <el-form-item label="货物目的地/交货地(港)" prop="didgrp.rec.shpto">
110
                <c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpto" disabled maxlength="35" show-word-limit placeholder="请输入"></c-input>
111 112 113
            </el-form-item>

            <el-form-item label="服务提供地点" prop="didgrp.rec.shppro">
114
                <c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shppro" disabled maxlength="35" show-word-limit placeholder="请输入"></c-input>
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
            </el-form-item>
        </c-col>

        <!-- <c-col :span="12">
            <el-form-item label="合同币种" prop="didgrp.rec.concur">
                <c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择">
                  <el-option label="CNY 人民币" value="CNY"></el-option>
                </c-select>
            </el-form-item>
        </c-col> -->

        <!-- <c-col :span="12">
	    <span  v-text="model.ditp.sdysfs"   data-path=".ditp.sdysfs" > </span>
	</c-col>
                  
	<c-col :span="12">
	    <span  v-text="model.ditp.hwzydi"   data-path=".ditp.hwzydi" > </span>
	</c-col> -->

    </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
138
import commonProcess from "~/mixin/commonProcess";
139 140 141 142 143 144
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditdla/Event"
import Utils from "~/utils";

export default {
    inject: ['root'],
wangren committed
145
    mixins: [commonProcess],
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
    props:["model","codes"],
    data(){
        return {
            flag:false,
            mytypeFlag:true,
        }
    },
    methods:{...Event,
        preperflgExtkeyEvent(){
            this.flag = !this.model.didgrp.blk.preperflg
            if (this.flag === true){
                this.model.didgrp.blk.preper = "货物装运日后15天";
            }
        },
        avbbykeyEvent(){
            if(this.model.didgrp.rec.avbby == 'P'){
                this.model.didgrp.rec.tenmaxday = 0;
                this.model.didgrp.blk.defdet = "";
            }
            this.executeCheck("didgrp.rec.avbby").then(
                (res) => {
                    if (res.respCode == SUCCESS){
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            );
        },
        recTenmaxdayEvent(){
            this.executeDefault("didgrp.rec.tenmaxday").then(
                (res) => {
吴佳 committed
176
                    if (res.respCode == SUCCESS){
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            );
        },
        recTratypChange(){
            if (this.model.didgrp.rec.tratyp == "08"){
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = false;
            }else{
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = true;
            }
        }
    },
    
    created:function(){

    }
}
</script>
<style>
</style>