Sel.vue 11.2 KB
Newer Older
cl committed
1 2
<template>
    <div class="eibs-tab">
nanrui committed
3 4 5 6
        <c-row>
            <c-col :span="24">
                <c-col :span="11">
                    <c-col :span="20">
nanrui committed
7 8
                        <el-form-item label="包号" prop="cldgrp.rec.ownref" style="width:100%">
                            <c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入包号"
nanrui committed
9 10 11 12 13
                                style="width:100%" disabled>
                            </c-input>
                        </el-form-item>
                    </c-col>
                    <c-col :span="4" style="text-align:right">
nanrui committed
14 15
                        <c-button size="small" type="primary" @click="onCltpButgetref"
                            :disabled="model.cldgrp.rec.ownref !== ''">
nanrui committed
16 17 18 19 20
                            获取
                        </c-button>
                    </c-col>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
21 22
                    <el-form-item label="简略信息" prop="cldgrp.rec.nam" style="width:100%">
                        <c-input v-model="model.cldgrp.rec.nam" maxlength="40" placeholder="请输入简略信息">
nanrui committed
23 24 25 26 27 28
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
29
                    <el-form-item label="票据类型" prop="cldgrp.rec.colflg" style="width:100%">
nanrui committed
30
                        <c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
nanrui committed
31
                            placeholder="请输入票据类型">
nanrui committed
32 33 34 35 36 37 38
                            <el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
39 40
                    <el-form-item label="起息日" prop="cldgrp.rec.valdat" style="width:100%">
                        <c-col :span="10">
nanrui committed
41
                            <c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
nanrui committed
42
                                placeholddaer="请选择起息日"></c-date-picker>
nanrui committed
43
                        </c-col>
nanrui committed
44 45
                        <c-col :span="4" style="text-align: center">
                            <label style="display: inline-block;font-size: 12px;color: #606266;">创建日期</label>
nanrui committed
46
                        </c-col>
nanrui committed
47
                        <c-col :span="10">
nanrui committed
48
                            <c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
nanrui committed
49
                                placeholder="请选择创建日期"></c-date-picker>
nanrui committed
50
                        </c-col>
nanrui committed
51 52 53 54 55
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
56 57
                    <el-form-item label="总行数" prop="rowcntr" style="width:100%">
                        <c-input v-model="model.rowcntr" placeholder="请输入总行数" disabled>
nanrui committed
58 59 60 61
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
62
                    <el-form-item label="币种" prop="cur" style="width:100%">
nanrui committed
63 64 65 66 67 68 69 70 71 72
                        <c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
                            <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
73
                    <el-form-item label="选中光票金额和" prop="amount" style="width: 100%">
nanrui committed
74 75 76 77
                        <c-input v-model="model.amount" placeholder="请输入AMOUNT" disabled></c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
78
                    <el-form-item label="注册编号" prop="cldgrp.rec.regref" style="width: 100%">
nanrui committed
79
                        <c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
nanrui committed
80
                            placeholder="请输入注册编号" disabled></c-input>
nanrui committed
81 82 83 84 85
                    </el-form-item>
                </c-col>
            </c-col>
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
86 87
                    <el-form-item label="选中票据份数" prop="cldgrp.rec.count" style="width: 100%">
                        <c-input v-model="model.cldgrp.rec.count" placeholder="请输入选中票据份数" disabled>
nanrui committed
88 89 90 91
                        </c-input>
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
92 93
                    <el-form-item label="查询出的票据份数" prop="items" style="width:100%">
                        <c-input v-model="model.items" placeholder="请输入选中票据份数"></c-input>
nanrui committed
94 95 96
                    </el-form-item>
                </c-col>
            </c-col>
cl committed
97

nanrui committed
98 99 100
            <c-col :span="24">
                <c-col :span="11">
                    <c-col :span="20">
nanrui committed
101 102 103 104 105 106
                        <el-form-item label="托收行" prop="colbnk" style="width:100%">
                            <c-select v-model="model.colbnk" style="width: 100%" placeholder="请选择托收行">
                                <el-option v-for="item in codes.colbnk" :key="item.value" :label="item.label"
                                    :value="item.value" :disabled="model.cldgrp.rec.colflg == 'G'">
                                </el-option>
                            </c-select>
nanrui committed
107 108 109 110
                        </el-form-item>
                    </c-col>
                    <c-col :span="4" style="text-align:right">
                        <c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
nanrui committed
111
                            获取
nanrui committed
112 113 114 115
                        </c-button>
                    </c-col>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
116 117 118 119 120 121
                    <el-form-item label="托收方式" prop="colmet" style="width:100%">
                        <c-select v-model="model.colmet" style="width: 100%" placeholder="请选择托收方式">
                            <el-option v-for="item in codes.colmet" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </c-select>
nanrui committed
122 123 124
                    </el-form-item>
                </c-col>
            </c-col>
cl committed
125

nanrui committed
126 127
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
128 129
                    <c-col :span="18">
                        <el-form-item label="托收行名称" prop="cldgrp.col.pts.extkey" style="width:100%">
nanrui committed
130
                            <c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
nanrui committed
131
                                placeholder="请输入托收行名称"
nanrui committed
132 133 134 135
                                @keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
                            </c-input>
                        </el-form-item>
                    </c-col>
nanrui committed
136 137 138
                    <c-col :span="2">
                        <c-button size="small" type="primary" @click="onSeainf('cldgrp.col.pts.extkey')">i</c-button>
                    </c-col>
nanrui committed
139 140
                    <c-col :span="4" style="text-align:right">
                        <c-button size="small" type="primary">
nanrui committed
141
                            详情
nanrui committed
142 143 144 145
                        </c-button>
                    </c-col>
                </c-col>
            </c-col>
cl committed
146

nanrui committed
147 148
            <c-col :span="24">
                <c-col :span="11">
nanrui committed
149
                    <el-form-item label="地址信息" prop="cldgrp.col.pts.nam" style="width:100%">
nanrui committed
150
                        <c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35" disabled
nanrui committed
151
                            show-word-limit placeholder="请输入地址信息"></c-input>
nanrui committed
152 153 154
                    </el-form-item>
                </c-col>
                <c-col :span="11" :offset="1">
nanrui committed
155 156
                    <el-form-item label="托收行参考号" prop="cldgrp.rec.colref" style="width:100%">
                        <c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入托收行参考号">
nanrui committed
157 158 159 160 161 162 163 164 165 166
                        </c-input>
                    </el-form-item>
                </c-col>
            </c-col>
        </c-row>
        <c-row>
            <c-col :span="4" :offset="20" style="text-align:center">
                <el-button type="primary" @click="handleSearch">查询</el-button>
            </c-col>
        </c-row>
167
        <c-col :span="24">
nanrui committed
168 169
            <c-edit-table :model="model" v-bind="docgrd">
            </c-edit-table>
cl committed
170 171 172 173
        </c-col>
    </div>
</template>
<script>
174 175 176 177 178 179 180 181 182 183 184
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cltdav/Event"

export default {
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
nanrui committed
185 186
            docgrd: {
                columns: [
187
                    {
nanrui committed
188
                        title: "核对号",
189 190 191 192
                        width: "120px",
                        dataIndex: "chcknum",
                        show: "text",
                    },
nanrui committed
193
                    {
nanrui committed
194
                        title: "托收编号",
195
                        width: "120px",
nanrui committed
196 197 198 199
                        dataIndex: "ownref",
                        show: "text",
                    },
                    {
nanrui committed
200
                        title: "描述",
201
                        width: "220px",
nanrui committed
202 203 204 205
                        dataIndex: "nam",
                        show: "text",
                    },
                    {
nanrui committed
206
                        title: "委托人",
nanrui committed
207 208 209 210 211
                        width: "200px",
                        dataIndex: "prenam",
                        show: "text",
                    },
                    {
nanrui committed
212
                        title: "币种",
nanrui committed
213 214 215 216 217
                        width: "100px",
                        dataIndex: "cur",
                        show: "text",
                    },
                    {
nanrui committed
218
                        title: "金额",
219
                        width: "150px",
nanrui committed
220 221 222 223
                        dataIndex: "amt",
                        show: "text",
                    },
                    {
nanrui committed
224
                        title: "勾选",
nanrui committed
225 226 227 228 229 230
                        width: "50px",
                        dataIndex: "selflg",
                        show: "checkbox",
                    },

                ],
231
                urls: "bptbck.bptbckg",
nanrui committed
232
            },
cl committed
233 234

        }
235
    },
nanrui committed
236 237 238 239
    methods: {
        ...Event,
        multipleSelect() {
            console.log(123);
nanrui committed
240 241 242
        },
        checkedChange() {
            console.log(456);
nanrui committed
243 244
        }
    },
245 246
    created: function () {

nanrui committed
247 248 249 250 251 252 253 254 255
    },
    watch: {
        // "model.bptbck.bptbckg": {
        //     async handler(){
        //         console.log(4456);
        //         let rtnmsg = await this.executeRule("butsea")
        //         this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
        //     }
        // }
cl committed
256
    }
257
}
cl committed
258 259
</script>
<style>
nanrui committed
260

cl committed
261
</style>