Detp.vue 12.7 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

潘际乾 committed
180
        <!-- <c-col :span="12">
1377875331@qq.com committed
181
            <el-form-item label="合同币种" prop="didgrp.rec.concur">
liuxin committed
182
                <c-select v-model="model.didgrp.rec.concur" style="width:100%" placeholder="请选择">
denyu committed
183
                  <el-option label="CNY 人民币" value="CNY"></el-option>
liuxin committed
184 185
                </c-select>
            </el-form-item>
潘际乾 committed
186
        </c-col> -->
liuxin committed
187

潘际乾 committed
188
        <!-- <c-col :span="12">
liuxin committed
189
	    <span  v-text="model.ditp.sdysfs"   data-path=".ditp.sdysfs" > </span>
潘际乾 committed
190
	</c-col>
liuxin committed
191
                  
潘际乾 committed
192
	<c-col :span="12">
liuxin committed
193
	    <span  v-text="model.ditp.hwzydi"   data-path=".ditp.hwzydi" > </span>
潘际乾 committed
194
	</c-col> -->
liuxin committed
195

liuxin committed
196
    </div>
197 198
</template>
<script>
liuxin committed
199
import Api from "~/service/Api"
wangren committed
200
import commonProcess from "~/mixin/commonProcess";
liuxin committed
201
import CodeTable from "~/config/CodeTable"
liuxin committed
202
import Event from "~/model/Ditopn/Event"
203
import Utils from "~/utils";
liuxin committed
204

205
export default {
206
    inject: ['root'],
wangren committed
207
    mixins: [commonProcess],
wangyanjiao committed
208 209
    props: ["model", "codes"],
    data() {
liuxin committed
210
        return {
wangyanjiao committed
211
            flag: false,
liuxin committed
212
        }
213
    },
wangyanjiao committed
214 215 216 217 218 219 220 221 222 223 224 225
    methods: {
        ...Event,
        changeFqzytgfw() {
            this.executeDefault("didgrp.rec.fqzytgfw").then(
                (res) => {
                    if (res.respCode == SUCCESS) {
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            )
        },
        preperflgExtkeyEvent() {
226
            this.flag = !this.model.didgrp.blk.preperflg
wangyanjiao committed
227
            if (this.flag === true) {
228 229
                this.model.didgrp.blk.preper = "货物装运日后15天";
            }
230
        },
wangyanjiao committed
231 232
        avbbykeyEvent() {
            if (this.model.didgrp.rec.avbby == 'P') {
1377875331@qq.com committed
233
                this.model.didgrp.rec.tenmaxday = 0;
1377875331@qq.com committed
234
                this.model.didgrp.blk.defdet = "";
1377875331@qq.com committed
235
            }
236
            this.executeCheck("didgrp.rec.avbby").then(
237
                (res) => {
wangyanjiao committed
238
                    if (res.respCode == SUCCESS) {
239
                        Utils.copyValueFromVO(this.model, res.data);
240 241 242
                    }
                }
            );
wangyanjiao committed
243 244 245 246 247 248 249
            this.executeDefault("didgrp.blk.defdet").then(
                (res) => {
                    if (res.respCode == SUCCESS) {
                        Utils.copyValueFromVO(this.model, res.data);
                    }
                }
            )
250
        },
wangyanjiao committed
251
        recTenmaxdayEvent() {
252
            this.executeDefault("didgrp.rec.tenmaxday").then(
1377875331@qq.com committed
253
                (res) => {
wangyanjiao committed
254
                    if (res.respCode == SUCCESS) {
255
                        Utils.copyValueFromVO(this.model, res.data);
1377875331@qq.com committed
256 257 258
                    }
                }
            );
259
        },
wangyanjiao committed
260 261
        recTratypChange() {
            if (this.model.didgrp.rec.tratyp == "08") {
262 263
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = false;
wangyanjiao committed
264
            } else {
265 266 267
                this.model.didgrp.rec.sdsrfs = "";
                this.mytypeFlag = true;
            }
1377875331@qq.com committed
268
        }
269
    },
wangyanjiao committed
270 271

    created: function () {
liuxin committed
272 273

    }
274
}
liuxin committed
275 276 277
</script>
<style>
</style>