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

1377875331@qq.com committed
4
        <!-- ========================= Left ========================= -->
wangyanjiao committed
5
        <c-col :span="11">
6
            <c-col :span="24">
liushikai committed
7
                <el-form-item label="信用证兑付方式" prop="didgrp.rec.avbby">
wangyanjiao committed
8 9 10 11
                    <c-select v-model="model.didgrp.rec.avbby" style="width:100%" @change="avbbykeyEvent"
                        placeholder="请选择">
                        <el-option v-for="item in codes.avbby0" :key="item.value" :label="item.label"
                            :value="item.value">
liushikai committed
12 13 14
                        </el-option>
                    </c-select>
                </el-form-item>
liushikai committed
15
            </c-col>
liushikai committed
16 17 18

            <c-col :span="24">
                <el-form-item label="付款期限" prop="didgrp.rec.tenmaxday">
wangyanjiao committed
19 20 21 22
                    <c-input :disabled="model.didgrp.rec.avbby == 'P'" v-model.number="model.didgrp.rec.tenmaxday"
                        placeholder="请输入" style="width:100%" maxlength="3"
                        @keyup.enter.native="defaultFunction('didgrp.rec.tenmaxday', model.didgrp.rec.tenmaxday)">
                    </c-input>
liushikai committed
23
                </el-form-item>
liushikai committed
24
            </c-col>
liuxin committed
25

wangyanjiao committed
26 27 28 29 30
            <c-col>
                <el-form-item label="远期付款指示" prop="didgrp.blk.defdet">
                    <!-- <c-col :span="21"> -->
                    <c-fullbox>
                        <c-input type="textarea" :disabled="model.didgrp.rec.avbby == 'P'"
lianyang committed
31
                            v-model="model.didgrp.blk.defdet" style="width:98%" maxlength="60" show-word-limit
wangyanjiao committed
32 33 34 35 36 37 38 39 40 41 42
                            placeholder="请输入" :autosize="{ minRows: 3, maxRows: 5 }"></c-input>
                        <!-- </c-col> -->
                        <!-- <c-col :span="3" style="text-align: right"> -->
                        <template slot="footer">
                            <c-button size="small" style="margin:0 0;" type="primary" icon="el-icon-search"
                                @click="onDefdetButtxmsel">
                            </c-button>
                        </template>
                    </c-fullbox>
                    <!-- </c-col> -->
                </el-form-item>
liushikai committed
43 44
            </c-col>
            <c-col>
wangyanjiao committed
45 46
                <el-form-item label="交单期限" prop="didgrp.blk.preper">
                    <!-- <c-col :span="21"> -->
47
                    <c-fullbox>
wangyanjiao committed
48 49 50 51 52 53 54 55 56
                        <c-input type="textarea" v-model="model.didgrp.blk.preper" :disabled="this.flag"
                            style="width:98%" maxlength="105" show-word-limit placeholder="请输入"></c-input>
                        <!-- </c-col> -->
                        <!-- <c-col :span="3" style="text-align: right"> -->
                        <template slot="footer">
                            <c-button size="small" type="primary" style="margin:0 0;" icon="el-icon-search"
                                @click="onPreperButtxmsel">
                            </c-button>
                        </template>
57
                    </c-fullbox>
wangyanjiao committed
58 59
                    <!-- </c-col> -->
                </el-form-item>
liushikai committed
60
            </c-col>
wangyanjiao committed
61 62 63 64 65
            <c-col>
                <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
66
            </c-col>
liushikai committed
67
            <c-col :span="24">
wangyanjiao committed
68 69 70 71 72 73 74 75 76
                <c-col :span="24">
                    <el-form-item label="货物运输/交货/服务方式" prop="didgrp.rec.tratyp">
                        <c-select v-model="model.didgrp.rec.tratyp" style="width:100%" placeholder="请选择"
                            @change="recTratypChange" :disabled="model.didgrp.rec.mytype == 'F'">
                            <el-option v-for="item in codes.tratyp" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>
liushikai committed
77
                </c-col>
wangyanjiao committed
78
            </c-col>
liushikai committed
79
            <c-col :span="24">
80 81 82
                <el-form-item v-if="model.didgrp.rec.mytype == 'H'||model.didgrp.rec.mytype == ''" label="手输运输方式" prop="didgrp.rec.sdsrfs">
                    <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="model.didgrp.rec.mytype != 'F'&& model.didgrp.rec.tratyp != '08'"
                        maxlength="20" show-word-limit placeholder="请输入"></c-input>
wangyanjiao committed
83
                </el-form-item>
liushikai committed
84 85
            </c-col>
            <c-col :span="24">
wangyanjiao committed
86
                <el-form-item v-if="model.didgrp.rec.mytype == 'F'" label="服务提供方式" prop="didgrp.rec.sdsrfs">
87 88
                    <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" maxlength="20" show-word-limit
                        placeholder="请输入" :disabled="model.didgrp.rec.mytype != 'F'&& model.didgrp.rec.tratyp != '08'"></c-input>
wangyanjiao committed
89
                </el-form-item>
liushikai committed
90 91
            </c-col>
            <c-col :span="24">
wangyanjiao committed
92
                <el-form-item v-if="model.didgrp.rec.mytype == '3'" label="手输运输方式/服务提供方式" prop="didgrp.rec.sdsrfs">
93 94
                    <c-input type="textarea" v-model="model.didgrp.rec.sdsrfs" :disabled="model.didgrp.rec.mytype != 'F'&& model.didgrp.rec.tratyp != '08'"
                        maxlength="20" show-word-limit placeholder="请输入" ></c-input>
wangyanjiao committed
95
                </el-form-item>
liushikai committed
96
            </c-col>
wangyanjiao committed
97

liushikai committed
98
            <c-col :span="24">
wangyanjiao committed
99 100 101
                <el-form-item label="合同编号" prop="didgrp.rec.conno">
                    <c-input v-model="model.didgrp.rec.conno" maxlength="35" placeholder="请输入"></c-input>
                </el-form-item>
liushikai committed
102
            </c-col>
liuxin committed
103

wangyanjiao committed
104 105
            <c-col :span="11">
                <el-form-item label="合同金额" prop="didgrp.rec.conamt">
liushikai committed
106
                    <c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择">
liushikai committed
107 108 109
                        <el-option label="CNY" value="CNY">
                            <span style="float: left">{{ "CNY 人民币" }}</span>
                        </el-option>
wangyanjiao committed
110 111 112 113 114
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="13">
                <el-form-item label-width="5px" prop="didgrp.rec.conamt">
1377875331@qq.com committed
115
                    <c-input v-model="model.didgrp.rec.conamt" placeholder="请输入"></c-input>
wangyanjiao committed
116 117
                </el-form-item>
            </c-col>
潘际乾 committed
118
        </c-col>
liuxin committed
119

1377875331@qq.com committed
120
        <!-- ========================= Right ========================= -->
潘际乾 committed
121
        <c-col :span="11" :offset="1">
liushikai committed
122
            <c-col :span="24">
wangyanjiao committed
123 124 125 126 127 128 129 130
                <el-form-item label="分批装运货物" prop="didgrp.rec.shppar">
                    <c-select v-model="model.didgrp.rec.shppar" style="width:100%" placeholder="请选择"
                        @change="changeFqzytgfw">
                        <el-option v-for="item in codes.shppar" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>
liushikai committed
131 132
            </c-col>
            <c-col :span="24">
wangyanjiao committed
133 134 135 136 137 138 139 140
                <el-form-item label="分期装运/提供服务" prop="didgrp.rec.fqzytgfw">
                    <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>
                </el-form-item>
liushikai committed
141 142
            </c-col>
            <c-col :span="24">
wangyanjiao committed
143 144 145 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 176
                <el-form-item label="分期装运/提供服务约定" prop="didgrp.rec.fqtime">
                    <c-input type="textarea" :rows="3" v-model="model.didgrp.rec.fqtime" maxlength="140" show-word-limit
                        placeholder="请输入" style="width:100%"></c-input>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item label="转运" prop="didgrp.rec.shptrs">
                    <c-select v-model="model.didgrp.rec.shptrs" style="width:100%" placeholder="请选择"
                        :disabled="model.didgrp.rec.mytype == 'F'">
                        <el-option label="禁止" value="禁止"></el-option>
                        <el-option label="允许" value="允许"></el-option>
                    </c-select>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <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>
            </c-col>
            <c-col :span="24">
                <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>
            </c-col>
            <c-col :span="24">
                <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>
liushikai committed
177 178
            </c-col>
        </c-col>
liuxin committed
179
    </div>
180 181
</template>
<script>
liuxin committed
182
import Api from "~/service/Api"
wangren committed
183
import commonProcess from "~/mixin/commonProcess";
liuxin committed
184
import CodeTable from "~/config/CodeTable"
liuxin committed
185
import Event from "~/model/Ditopn/Event"
186
import Utils from "~/utils";
liuxin committed
187

188
export default {
189
    inject: ['root'],
wangren committed
190
    mixins: [commonProcess],
wangyanjiao committed
191 192
    props: ["model", "codes"],
    data() {
liuxin committed
193
        return {
wangyanjiao committed
194
            flag: false,
liuxin committed
195
        }
196
    },
wangyanjiao committed
197 198 199 200 201 202 203 204 205 206 207 208
    methods: {
        ...Event,
        changeFqzytgfw() {
            this.executeDefault("didgrp.rec.fqzytgfw").then(
                (res) => {
                    if (res.respCode == SUCCESS) {
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            )
        },
        preperflgExtkeyEvent() {
209
            this.flag = !this.model.didgrp.blk.preperflg
wangyanjiao committed
210
            if (this.flag === true) {
211 212
                this.model.didgrp.blk.preper = "货物装运日后15天";
            }
213
        },
wangyanjiao committed
214 215
        avbbykeyEvent() {
            if (this.model.didgrp.rec.avbby == 'P') {
1377875331@qq.com committed
216
                this.model.didgrp.rec.tenmaxday = 0;
1377875331@qq.com committed
217
                this.model.didgrp.blk.defdet = "";
1377875331@qq.com committed
218
            }
219
            this.executeCheck("didgrp.rec.avbby").then(
220
                (res) => {
wangyanjiao committed
221
                    if (res.respCode == SUCCESS) {
222
                        Utils.copyValueFromVO(this.model, res.data);
223 224 225
                    }
                }
            );
wangyanjiao committed
226 227 228 229 230 231 232
            this.executeDefault("didgrp.blk.defdet").then(
                (res) => {
                    if (res.respCode == SUCCESS) {
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            )
233
        },
wangyanjiao committed
234
        recTenmaxdayEvent() {
235
            this.executeDefault("didgrp.rec.tenmaxday").then(
1377875331@qq.com committed
236
                (res) => {
wangyanjiao committed
237
                    if (res.respCode == SUCCESS) {
238
                        Utils.copyValueFromVO(this.model, res.data);
1377875331@qq.com committed
239 240 241
                    }
                }
            );
242
        },
wangyanjiao committed
243 244
        recTratypChange() {
            if (this.model.didgrp.rec.tratyp == "08") {
245 246
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = false;
wangyanjiao committed
247
            } else {
248 249 250
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = true;
            }
1377875331@qq.com committed
251
        }
252
    },
wangyanjiao committed
253 254

    created: function () {
liuxin committed
255 256

    }
257
}
liuxin committed
258 259 260
</script>
<style>
</style>