Setp.vue 14.1 KB
Newer Older
1 2 3 4 5 6 7 8 9
<template>
    <div class="eibs-tab">
        <!-- <c-col :span="12">
        <el-form-item label="Drag  Drop Sender" prop="botp.recget.sdamod.dadsnd">
            <c-input  v-model="model.botp.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
       </c-col> -->
        <c-col :span="24">
            <c-col :span="11">
nanrui committed
10
                <el-form-item label="托收业务编号" prop="bodgrp.rec.ownref">
11
                    <c-fullbox>
nanrui committed
12
                        <c-input v-model="model.bodgrp.rec.ownref" maxlength="16" placeholder="请输入托收业务编号"
13 14 15 16 17 18 19 20 21 22
                            style="width: 100%" disabled></c-input>
                        <template slot="footer">
                            <c-button style="margin-left:8px; padding: 0 12px" size="small" type="primary" @click="">
                                <span style="font-family: '宋体'; font-weight: bold">i</span>
                            </c-button>
                        </template>
                    </c-fullbox>
                </el-form-item>
            </c-col>
            <c-col :span="11" :offset="1">
nanrui committed
23
                <el-form-item label="简略信息" prop="bodgrp.rec.nam" style="width: 100%">
nanrui committed
24
                    <c-input v-model="model.bodgrp.rec.nam" maxlength="40" style="width: 100%" placeholder="请输入简略信息"
25 26 27 28 29 30 31 32 33 34 35
                        disabled></c-input>
                </el-form-item>
            </c-col>
        </c-col>

        <!-- <c-col :span="12">
            <el-form-item label="" prop="botp.recget.sdamod.seainf">
                <c-input v-model="model.botp.recget.sdamod.seainf" placeholder="请输入"></c-input>
            </el-form-item>
        </c-col> -->

nanrui committed
36 37
        <c-col :span="24">
            <c-col :span="11">
38
                <c-col :span="12">
nanrui committed
39 40
                    <el-form-item label="托收金额" prop="bodgrp.cbs.max.cur">
                        <c-input v-model="model.bodgrp.cbs.max.cur" style="width:100%" placeholder="请选择托收金额"
nanrui committed
41 42 43 44
                            disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
45 46
                <c-col :span="11" :offset="1">
                    <el-form-item label="" prop="bodgrp.cbs.max.amt" label-width="0">
nanrui committed
47
                        <c-input v-model="model.bodgrp.cbs.max.amt" placeholder="请输入托收金额" disabled></c-input>
nanrui committed
48 49 50 51
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
nanrui committed
52
                <el-form-item label="收款人参考号" prop="bodgrp.drr.pts.ref">
nanrui committed
53
                    <c-input v-model="model.bodgrp.drr.pts.ref" maxlength="16" placeholder="请输入收款人" disabled>
nanrui committed
54 55 56
                    </c-input>
                </el-form-item>
            </c-col>
57 58
        </c-col>

nanrui committed
59 60
        <c-col :span="24">
            <c-col :span="11">
61
                <c-col :span="12">
nanrui committed
62
                    <el-form-item label="托收余额" prop="bodgrp.cbs.opn1.cur">
nanrui committed
63
                        <c-input v-model="model.bodgrp.cbs.opn1.cur" style="width:100%"
nanrui committed
64
                            placeholder="请选择仓储/保险" disabled>
nanrui committed
65 66 67
                        </c-input>
                    </el-form-item>
                </c-col>
68 69
                <c-col :span="11" :offset="1">
                    <el-form-item label="" prop="bodgrp.cbs.opn1.amt" label-width="0">
nanrui committed
70
                        <c-input v-model="model.bodgrp.cbs.opn1.amt" style="width:100%" placeholder="请输入托收余额"
nanrui committed
71 72 73 74 75 76 77 78 79 80 81
                            disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.drr.pts.nam">
                        <c-input v-model="model.bodgrp.drr.pts.nam" placeholder="bodgrp.drr.pts.nam" disabled></c-input>
                    </el-form-item>
                </c-col>
            </c-col>
82 83 84
        </c-col>


nanrui committed
85 86
        <c-col :span="24">
            <c-col :span="11">
nanrui committed
87
                <el-form-item label="交单条件" prop="bodgrp.rec.doctypcod">
88
                    <c-select v-model="model.bodgrp.rec.doctypcod" style="width: 100%"
nanrui committed
89
                        placeholder="请选择交单条件" disabled>
90 91 92 93 94 95
                        <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
                            :value="item.value">
                        </el-option>
                    </c-select>
                </el-form-item>

nanrui committed
96
                <!-- <el-form-item label="交单条件" prop="bodgrp.rec.doctypcod">
nanrui committed
97
                    <c-input v-model="model.bodgrp.rec.doctypcod" style="width:100%"
nanrui committed
98
                        placeholder="请选择交单条件" disabled>
nanrui committed
99
                    </c-input>
100
                </el-form-item> -->
nanrui committed
101
            </c-col>
102

nanrui committed
103
            <c-col :span="11" :offset="1">
nanrui committed
104 105
                <el-form-item label="代收行参考号" prop="bodgrp.col.pts.ref">
                    <c-input v-model="model.bodgrp.col.pts.ref" maxlength="16" placeholder="请输入代收行参考号"
nanrui committed
106 107 108
                        disabled></c-input>
                </el-form-item>
            </c-col>
109 110
        </c-col>

nanrui committed
111 112 113
        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="24">
nanrui committed
114
                    <el-form-item label="单据状态" prop="bodgrp.rec.docsta">
115
                        <c-select v-model="model.bodgrp.rec.docsta" style="width: 100%"
nanrui committed
116
                            placeholder="请输入单据状态" disabled>
117 118 119 120 121 122 123
                            <el-option v-for="item in codes.docstabot" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>


nanrui committed
124 125
                    <!-- <el-form-item label="单据状态" prop="bodgrp.rec.docsta">
                        <c-input v-model="model.bodgrp.rec.docsta" maxlength="40" placeholder="请输入单据状态"
nanrui committed
126 127
                            disabled>
                        </c-input>
128
                    </el-form-item> -->
nanrui committed
129 130 131 132 133
                </c-col>
            </c-col>
            <c-col :span="11" :offset="1">
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.col.pts.nam">
134 135
                        <c-input v-model="model.bodgrp.col.pts.nam" maxlength="40" placeholder="bodgrp.col.pts.nam"
                            disabled>
nanrui committed
136 137 138 139
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
140 141
        </c-col>

nanrui committed
142 143
        <c-col :span="24">
            <c-col :span="11">
144
                <c-col :span="12">
nanrui committed
145
                    <el-form-item label="单据期限" prop="bodgrp.rec.matdat">
146 147 148 149 150 151
                        <c-input v-model="model.bodgrp.rec.matdat" placeholder="" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="9">
                    <el-form-item label="" prop="bodgrp.rec.matpercnt">
nanrui committed
152
                        <c-input v-model="model.bodgrp.rec.matpercnt" placeholder="请输入单据期限" disabled>
nanrui committed
153 154 155
                        </c-input>
                    </el-form-item>
                </c-col>
156
                <c-col :span="2" :offset="1">
nanrui committed
157
                    <span style="font-size: 12px;color:#606266;"></span>
nanrui committed
158 159
                </c-col>
                <c-col :span="24">
nanrui committed
160
                    <el-form-item label="" prop="bodgrp.rec.matperbeg">
161 162 163 164 165 166 167
                        <c-select v-model="model.bodgrp.rec.matperbeg" style="width: 100%"
                            placeholder="请选择Start of Maturity Period MATBEG" disabled>
                            <el-option v-for="item in codes.matperbeg" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>
nanrui committed
168
                </c-col>
169 170 171
                <!-- <c-col :span="5">
                    <span v-text="model.bodgrp.rec.matpertyp" data-path=".bodgrp.rec.matpertyp"> </span>
                </c-col> -->
nanrui committed
172
            </c-col>
173

nanrui committed
174
            <c-col :span="11" :offset="1">
175
                <c-col :span="24">
nanrui committed
176
                    <el-form-item label="付款人参考号" prop="bodgrp.dre.pts.ref">
177 178 179 180
                        <c-input v-model="model.bodgrp.dre.pts.ref" maxlength="16" disabled>
                        </c-input>
                    </el-form-item>
                </c-col>
nanrui committed
181 182
                <c-col :span="24">
                    <el-form-item label="" prop="bodgrp.dre.pts.nam">
183 184
                        <c-input v-model="model.bodgrp.dre.pts.nam" maxlength="40" placeholder="bodgrp.dre.pts.nam"
                            disabled>
nanrui committed
185 186 187 188
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
189 190
        </c-col>

nanrui committed
191 192 193
        <c-col :span="24">
            <c-col :span="11">
                <c-col :span="12">
nanrui committed
194
                    <el-form-item label="收单日期" prop="bodgrp.rec.rcvdat">
nanrui committed
195
                        <c-date-picker type="date" v-model="model.bodgrp.rec.rcvdat" style="width:100%"
nanrui committed
196
                            placeholder="请选择收单日期" disabled></c-date-picker>
nanrui committed
197 198 199
                    </el-form-item>
                </c-col>
                <c-col :span="12">
nanrui committed
200
                    <el-form-item label="寄单日期" prop="bodgrp.rec.predat">
nanrui committed
201
                        <c-date-picker type="date" v-model="model.bodgrp.rec.predat" style="width:100%"
nanrui committed
202
                            placeholder="请选择寄单日期" disabled></c-date-picker>
nanrui committed
203 204 205
                    </el-form-item>
                </c-col>
            </c-col>
206
        </c-col>
207
        <c-col :span="24" style="margin-top:15px;border-top:2px solid #ddd;padding-top:15px">
nanrui committed
208 209
            <c-col :span="11">
                <c-col :span="12">
nanrui committed
210
                    <el-form-item label="接受金额" prop="setmod.doccur">
211 212
                        <c-input v-model="model.setmod.doccur" style="width:100%" placeholder="请选择document currency"
                            disabled>
nanrui committed
213 214 215 216 217
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
                    <el-form-item label-width="0" prop="setmod.docamt">
nanrui committed
218
                        <c-input v-model="model.setmod.docamt" placeholder="请输入托收金额"
219
                            :disabled="model.bodgrp.rec.focflg? true:false">
nanrui committed
220
                        </c-input>
nanrui committed
221 222 223
                    </el-form-item>
                </c-col>
            </c-col>
224
        </c-col>
225

nanrui committed
226
        <c-col :span="24" style="margin-top: 30px">
nanrui committed
227
            <span style="font-size:14px;">归还押汇款:</span>
228
        </c-col>
nanrui committed
229
        <c-col :span="24" style="margin-top: -10px">
230
            <c-col :span="12">
nanrui committed
231
                <c-edit-table :model="model" v-bind="docgrd" style="margin-left:-30px">
232 233 234 235 236 237
                </c-edit-table>
            </c-col>
        </c-col>
        <c-col :span="24">
            <c-col :span="11">
                <c-istream-table ref="table" :list="model.liaall.tenstm.rows || []" :columns="stmData.columns"
nanrui committed
238
                    :showSelection="true" v-on:multipleSelect="multipleSelect" prop="liaall.tenstm">
239 240
                </c-istream-table>
            </c-col>
241
        </c-col>
242 243 244 245 246 247 248 249 250 251 252 253 254 255
    </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Botacc/Event"

export default {
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
256 257
            stmData: {
                columns: [
nanrui committed
258
                    '1 1 "类型" 80',
259 260
                    '2 2 "Dbt" 80',
                    '3 3 "Cdt" 80',
nanrui committed
261 262
                    '4 4 "币种" 80',
                    '5 5 "金额" 113 2 8 1 4',
263 264 265 266
                    // '6 6 "Mat.Dat." 80 4 7 1',
                    { index: 6, position: 6, width: 113, render: (item, scope) => { return scope.row[item.prop] === 'null' ? '' : scope.row[item.prop] }, label: 'Mat.Dat.' },
                ],
            },
267 268
            docgrd: {
                columns: [{
nanrui committed
269
                    title: "业务编号",
270 271 272 273 274
                    width: "80px",
                    dataIndex: "ownref",
                    show: "input",
                },
                {
nanrui committed
275
                    title: "币种",
276 277 278 279 280
                    width: "80px",
                    dataIndex: "opncur",
                    show: "input",
                },
                {
nanrui committed
281
                    title: "托收余额",
282
                    width: "200px",
283 284 285 286
                    dataIndex: "opnamt",
                    show: "input",
                },
                {
nanrui committed
287
                    title: "已付数额",
288
                    width: "200px",
289 290 291 292 293 294
                    dataIndex: "bckamt",
                    show: "input",
                },
                ],
                urls: "bptbck.bptbckg.docgrd",
            },
295 296
        }
    },
297 298
    methods: {
        ...Event,
nanrui committed
299 300 301 302 303 304 305 306
        async multipleSelect(selection) {
            if (selection.length > 1) {
                this.$notify({
                    title: "error",
                    message: "You cannot select more than one tenor",
                    type: "error",
                });
            } else {
nanrui committed
307
                let chkIds;
nanrui committed
308
                if (selection.length === 0) {
nanrui committed
309
                    chkIds = [];
nanrui committed
310 311 312
                    this.model.setmod.docamt = "0.000";
                    this.model.liaall.tensetstm.rows = [];
                } else {
nanrui committed
313
                    chkIds = [selection[0] + 1];
nanrui committed
314 315 316
                }
                //
                console.log(this.model.liaall.tensetstm);
nanrui committed
317
                let params = { chkDst: "liaall.tenstm", chkIds };
nanrui committed
318 319 320 321 322 323 324 325
                const rtnmsg = await this.executeRule("liaall.tenstm", params);
                if (rtnmsg.respCode == SUCCESS) {
                    this.updateModel(rtnmsg.data);
                } else {
                    this.$notify.error({ title: "错误", message: "服务请求失败!" });
                }
            }
        },
326
    },
327 328 329
}
</script>
<style>
330

331
</style>