Detp.vue 9.65 KB
Newer Older
1
<template>
SunJie committed
2 3 4
    <div class="eibs-tab">

        <!-- ========================= Left ========================= -->
潘际乾 committed
5
        <c-col :span="11"> 
SunJie committed
6 7
            <el-form-item label="信用证兑付方式" prop="didgrp.rec.avbby">
                <c-select v-model="model.didgrp.rec.avbby" style="width:100%" @change="avbbykeyEvent" placeholder="请选择">
8
                    <el-option v-for="item in avbby0" :key="item.value" :label="item.label" :value="item.value">
SunJie committed
9 10 11 12
                    </el-option>
                </c-select>
            </el-form-item>

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

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

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

            <el-form-item label="" prop="didgrp.blk.preperflg">
                <c-checkbox v-model="model.didgrp.blk.preperflg" :click="preperflgExtkeyEvent()">修改交单期限文本</c-checkbox>
            </el-form-item>

liushikai committed
41
            <el-form-item label="货物运输/交货/服务方式" prop="didgrp.rec.tratyp">
42 43
            <c-col :span="24">
                <c-select v-model="model.didgrp.rec.tratyp" style="width:100%" placeholder="请选择" @change="recTratypChange" :disabled="model.didgrp.rec.mytype == 'F'">
SunJie committed
44 45 46 47
                    <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
                        :value="item.value">
                    </el-option>
                </c-select>
liushikai committed
48
                </c-col>
SunJie committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
            </el-form-item>

            <el-form-item v-if="model.didgrp.rec.mytype == 'H'" label="手输运输方式" prop="didgrp.rec.sdsrfs">
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input>
            </el-form-item>
            <el-form-item v-if="model.didgrp.rec.mytype == 'F'" label="服务提供方式" prop="didgrp.rec.sdsrfs">
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" maxlength="140" show-word-limit placeholder="请输入"></c-input>
            </el-form-item>
            <el-form-item v-if="model.didgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="didgrp.rec.sdsrfs">
                <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="this.mytypeFlag" maxlength="140" show-word-limit placeholder="请输入"></c-input>
            </el-form-item>
            

            <el-form-item label="合同编号" prop="didgrp.rec.conno">
                <c-input v-model="model.didgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
            </el-form-item>
65 66
            
            <c-col :span="24">
lianyang committed
67
              <c-col :span="12">
68
                <el-form-item label="合同金额" prop="didgrp.rec.concur">
lianyang committed
69
                  <c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择">
70 71 72 73
                      <el-option label="CNY 人民币" value="CNY"></el-option>
                  </c-select>   
                </el-form-item>
              </c-col>
lianyang committed
74
              <c-col :span="12">
75 76 77 78 79
                <el-form-item label="" label-width="10px" prop="didgrp.rec.conamt">
                  <c-input v-model="model.didgrp.rec.conamt" placeholder="请输入"></c-input>
                </el-form-item>
              </c-col>
            </c-col>
潘际乾 committed
80
        </c-col>
SunJie committed
81 82

        <!-- ========================= Right ========================= -->
潘际乾 committed
83
        <c-col :span="11" :offset="1">
SunJie committed
84
            <el-form-item label="分批装运货物" prop="didgrp.rec.shppar">
85
                <c-select v-model="model.didgrp.rec.shppar" style="width:100%" placeholder="请选择">
SunJie committed
86 87 88 89 90 91
                    <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">
92 93 94 95
                <c-select v-model="model.didgrp.rec.fqzytgfw" placeholder="请选择" :disabled="model.didgrp.rec.shppar != 'Y'" style="width:100%">
                    <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </c-select>
SunJie committed
96 97 98
            </el-form-item>

            <el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime">
99 100
                <c-input type="textarea" :rows="3" v-model="model.didgrp.rec.fqtime" maxlength="140" show-word-limit placeholder="请输入" style="width:100%"
                :disabledBankno="model.didgrp.rec.fqzytgfw != 'Y'"></c-input>
SunJie committed
101 102 103
            </el-form-item>

            <el-form-item label="转运" prop="didgrp.rec.shptrs">
104
                <c-select v-model="model.didgrp.rec.shptrs" style="width:100%" placeholder="请选择" :disabled="model.didgrp.rec.mytype == 'F'">
SunJie committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
                  <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">
                <c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shpfro" :disabled="model.didgrp.rec.mytype == 'F'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
            </el-form-item>

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

            <el-form-item label="服务提供地点" prop="didgrp.rec.shppro">
                <c-input type="textarea" style="width:100%" :rows="3" v-model="model.didgrp.rec.shppro" :disabled="model.didgrp.rec.mytype == 'H'" maxlength="35" show-word-limit placeholder="请输入"></c-input>
            </el-form-item>
潘际乾 committed
121
        </c-col>
SunJie committed
122
    </div>
123 124 125
</template>
<script>
import Api from "~/service/Api"
wangren committed
126
import commonProcess from "~/mixin/commonProcess";
SunJie committed
127 128
import Event from "~/model/Ditopn/Event"
import Utils from "~/utils";
129 130

export default {
131
    inject: ['root'],
wangren committed
132
    mixins: [commonProcess],
133 134 135
    props:["model","codes"],
    data(){
        return {
SunJie committed
136 137
            flag:false,
            mytypeFlag:true,
138 139 140 141
            avbby0: [
                { label: "远期付款", value: "D" },
                { label: "即期付款", value: "P" },
            ]
142 143
        }
    },
SunJie committed
144
    methods:{...Event,
145 146
        async onDefdetButtxmsel(){
            let rtnmsg = await this.executeRule("txmmod.buttxmsel");   //BUTTXMSEL
吴佳 committed
147
            if(rtnmsg.respCode == SUCCESS){
148 149 150 151 152
                Utils.copyValueFromVO(this.model, rtnmsg.data);
            }
        },
        async onPreperButtxmsel(){
            let rtnmsg = await this.executeRule("txmmod.buttxmsel");   //BUTTXMSEL
吴佳 committed
153
            if(rtnmsg.respCode == SUCCESS){
154 155 156
                Utils.copyValueFromVO(this.model, rtnmsg.data);
            }
        },
SunJie committed
157 158 159 160 161 162 163 164 165 166 167
        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 = "";
            }
168
            this.executeCheck("didgrp.rec.avbby").then(
SunJie committed
169
                (res) => {
潘际乾 committed
170
                    if (res.respCode == SUCCESS){
SunJie committed
171 172 173 174 175 176
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            );
        },
        recTenmaxdayEvent(){
177
            this.executeDefault("didgrp.rec.tenmaxday").then(
SunJie committed
178
                (res) => {
吴佳 committed
179
                    if (res.respCode == SUCCESS){
SunJie committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
                        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;
            }
        }
    },
    
196 197 198 199 200 201 202
    created:function(){

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