Ptyp.vue 5.64 KB
Newer Older
1
<template>
huangxin committed
2 3 4 5
<div class="eibs">
            <!-- ==================左边================ -->
    <c-col :span="12" style="padding-right: 20px;">
        <c-col :span="24">
wangyanjiao committed
6
            <c-ptap :model="model" :argadr="{
nanrui committed
7
            title: '收款人',
wangyanjiao committed
8 9
            grp: 'bodgrp',
            rol: 'drr',
10
        }" :disabledRef="false" :disabledExtkey="true" :disabled="true">
wangyanjiao committed
11 12 13
            </c-ptap>

            <c-ptap :model="model" :argadr="{
nanrui committed
14
            title: '付款人',
wangyanjiao committed
15 16
            grp: 'bodgrp',
            rol: 'dre',
17
        }" :disabledRef="true" :disabledExtkey="true" :disabled="true" >
wangyanjiao committed
18 19
            </c-ptap>
        </c-col>
huangxin committed
20 21 22 23 24
    </c-col>

            <!-- ============右边================= -->
            <c-col :span="12" style="padding-left: 20px;">
        <c-col :span="24">
wangyanjiao committed
25
            <c-ptap :model="model" :argadr="{
nanrui committed
26
            title: '代收行',
wangyanjiao committed
27 28
            grp: 'bodgrp',
            rol: 'col',
29
        }" :disabledRef="true" :disabledExtkey="true" :disabled="true" >
wangyanjiao committed
30 31
            </c-ptap>
        </c-col>
huangxin committed
32
        </c-col>
wangyanjiao committed
33 34 35 36

        <c-col :span="24">
            <c-table max-height="300px" style="text-align: center;" stripe :list="this.model.botp.ptsaddp.ptsaddg || []"
                :paginationShow="false" :border="true">
nanrui committed
37
                <el-table-column label="其它参与方">
wangyanjiao committed
38 39
                    <el-table-column label="角色" width="auto" prop="rol">
                        <template slot-scope="scope">
huangxin committed
40
                            <c-select v-model="scope.row.rol" :code="ptyp2">
wangyanjiao committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
                            </c-select>
                        </template>

                    </el-table-column>
                    <el-table-column label="机构实体" width="auto" prop="ptyextkey">
                        <template slot-scope="scope">
                            <c-input v-model="scope.row.ptyextkey" maxlength="12">
                            </c-input>
                        </template>
                    </el-table-column>
                    <el-table-column label="名称" width="auto" prop="nam">
                        <template slot-scope="scope">
                            <c-input v-model="scope.row.nam" maxlength="12">
                            </c-input>
                        </template>
                    </el-table-column>
                    <el-table-column label="参考地址" width="auto" prop="ref">
                        <template slot-scope="scope">
                            <c-input v-model="scope.row.ref" maxlength="12">
                            </c-input>
                        </template>
                    </el-table-column>
wangna committed
63
                    <el-table-column label="单据" prop="docnam" width="auto">
wangyanjiao committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
                        <template slot="header" slot-scope="scope">
                            <c-row>
                                <c-col :span="12">
                                    <span style="line-height: 36px;">操作</span>
                                </c-col>
                                <c-col :span="12">
                                    <div style="float: right;">
                                        <span class="add_del_button add_button" @click="addTableValue">+</span>
                                        <span class="add_del_button" @click="deleteTable">-</span>
                                    </div>
                                </c-col>
                            </c-row>
                        </template>
                        <template slot-scope="scope">
                            <el-button size="mini" @click="handleEdit(scope.$index, scope.row)" type="primary">详情
                            </el-button>
                        </template>
huangxin committed
81
                        </el-table-column>
wangyanjiao committed
82 83 84
                    </el-table-column>
            </c-table>
        </c-col>
huangxin committed
85
    </div>
86 87
</template>
<script>
wangyanjiao committed
88 89 90 91 92 93
    import Api from "~/service/Api"
    import commonProcess from "~/mixin/commonProcess";
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Botdcr/Event"
    import Utils from "~/utils";
    import Ptap from "~/views/Public/Ptap";
94

wangyanjiao committed
95 96 97 98 99 100 101 102 103 104 105 106
    export default {
        components: { "c-ptap": Ptap },
        inject: ['root'],
        props: ["model", "codes"],
        mixins: [commonProcess],
        data() {
            return {
                newValue: {
                    rol:"",
                    ptyextkey:"",
                    nam:"",
                    ref:"",
wangyanjiao committed
107
                },
huangxin committed
108
                ptyp2: [
wangna committed
109 110 111 112 113 114 115 116 117
                    { label: "TPO 第三当事人", value: "TPO" },
                    { label: "TP1 第一第三当事人 .", value: "TP1" },
                    { label: "TP2 第二第三当事人", value: "TP2" },
                    { label: "TP3 第三第三当事人", value: "TP3" },
                    { label: "TP4 第四第三当事人", value: "TP4" },
                    { label: "TP5 第五第三当事人", value: "TP5" },
                    { label: "TP6 第六第三当事人", value: "TP6" },
                    { label: "TP7 第七第三当事人", value: "TP7" },
                    { label: "TP8 第八第三当事人", value: "TP8" },
huangxin committed
118
                ],
wangyanjiao committed
119 120 121 122 123 124 125 126 127
            }
        },
        methods: {
            ...Event,
            addTableValue(index) {
                var newTableValue = Object.assign({}, this.newValue);
                const serial = Utils.generateUUID();
                newTableValue.serialNum = serial;
                this.model.botp.ptsaddp.ptsaddg.splice(index - 1, 0, newTableValue);
wangyanjiao committed
128
            },
wangyanjiao committed
129 130 131 132 133
            deleteTable(index) {
                this.model.botp.ptsaddp.ptsaddg.splice(index, 1);
            },
        },
        created: function () {
134 135 136 137 138
        }
    }
</script>
<style>

wangyanjiao committed
139
</style>