Fepinfp.vue 9.36 KB
Newer Older
wangguangchao committed
1
<template>
2
  <c-row class="eibs-tab">
3 4 5 6 7 8 9 10 11 12 13 14

      <!-- <div class="infTopBtn">
            <el-button-group>
                <c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
                <c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
            </el-button-group>
            <c-button size="small" type="primary">Print</c-button>
            <c-button size="small" type="primary">Use</c-button>
            <c-button size="small" type="primary">Loginfo</c-button>
        </div>

        <c-row class="infrow" style="margin-top:50px;">
潘际乾 committed
15
            <c-col :span="24" :offset="1">
16 17 18 19 20
                Fee Pool
            </c-col>
        </c-row>

        <br /> -->
21
        <c-col :span="11">
潘际乾 committed
22
             <!-- <c-col :span="24">
23 24
                Fee Pool
            </c-col> -->
潘际乾 committed
25
            <c-col :span="24" >
26 27 28 29 30 31 32 33
                <el-form-item
                    label="Fee Code"
                    prop="infcon.fepfeecod"
                    style="width:100%"
                >
                    <c-select v-model="model.infcon.fepfeecod" 
                              style="width:100%" 
                              placeholder="请选择Fee Code"
34
                              @change="getInfconFepfeecod"
35 36 37 38
                              >
                        <el-option
                          v-for="item in codes.fepfeecod"
                          :key="item.value"
39
                          :label="item.value"
40 41
                          :value="item.value"
                        >
42
                        <span style="float: left">{{ item.value +'\t' + item.label}}</span>
43 44 45 46 47 48
                        </el-option>
                    </c-select>
                    
                </el-form-item>
            </c-col>

潘际乾 committed
49
            <c-col :span="24" >
50 51 52 53 54 55 56 57
                <el-form-item
                    label="Disposition"
                    prop="infcon.fepdsp"
                    style="width:100%"
                >
                    <c-select v-model="model.infcon.fepdsp" 
                              style="width:100%" 
                              placeholder="请选择Disposition"
58
                              @change="getInfconFepfeecod"
59
                              >
60
                         <el-option
61 62 63 64 65
                          v-for="item in codes.fepdsp"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
66
                        </el-option>
67 68 69 70 71 72
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>
    <!-- ======================== 左边结束 ========================= -->    
        <c-col :span="11" :offset="1">
潘际乾 committed
73
            <c-col :span="24">
74
                <el-form-item label="Fee Text" prop="infcon.fepfeecod">
75 76 77
                    <c-select v-model="model.infcon.fepfeecod" 
                              style="width:100%" 
                              placeholder="请选择Fee Code"
78
                              disabled
79 80
                              >
                        <el-option
81
                          v-for="item in codes.fepfeecod"
82 83 84 85 86 87 88 89 90 91 92
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>

    <!-- ============================== 右侧结束 ===================== -->
93
    <!-- ======================分割线====================== -->
潘际乾 committed
94
        <c-col :span="24" style="height:25px">
95 96
           <el-divider></el-divider>
       </c-col>
潘际乾 committed
97
        <c-col :span="24" style="margin-top:5px;">
98 99 100 101 102 103 104 105
            <c-istream-table :list="stmData.fepstmData" :columns="stmData.fepstmColumns">
                <!-- <el-table-column prop="op" label="OP" width="100">
                    <template slot-scope="scope">
                        <a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
                    </template>
                </el-table-column> -->
            </c-istream-table>
        </c-col>
106 107

        <br/>
108
        <!-- ======================分割线====================== -->
潘际乾 committed
109
        <c-col :span="24" style="height:25px">
110 111
           <el-divider></el-divider>
       </c-col>
112

113
        <c-col :span="11" style="margin-top:5px;">
114

潘际乾 committed
115
            <c-col :span="24" >
116 117 118 119 120 121 122 123 124
                <el-form-item
                    label="Disposition"
                    prop="infcon.fcpdsp"
                    style="width:100%"
                >
                    <c-select v-model="model.infcon.fcpdsp" 
                              style="width:100%" 
                              placeholder="请选择Disposition"
                               :code="getValues('infcon.fcpdsp')"
125
                               @change="getInfconFcpfeecod"
126
                              >
127 128 129 130 131 132 133
                              <el-option
                                v-for="item in codes.fcpdsp"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                                >
                                </el-option>
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
                    </c-select>
                </el-form-item>
            </c-col>
        </c-col>
        <!-- <c-row class="infrow">
            <c-col :span="11" :offset="1">
                <c-row>
                    <c-col :span="20">
                        <el-form-item label="Disposition" prop="infcon.fcpdsp">
                            <c-select v-model="model.infcon.fcpdsp" style="width:100%" placeholder="请选择Disposition">
                            </c-select>
                        </el-form-item>
                    </c-col>
                </c-row>
            </c-col>
            <c-col :span="11" :offset="1">

            </c-col>
        </c-row> -->

潘际乾 committed
154
            <c-col :span="24">
155
                <c-istream-table :list="stmData.fcpstmData" :columns="stmData.fcpstmColumns">
156
                    <!-- <el-table-column prop="op" label="OP" width="100">
157 158 159
                        <template slot-scope="scope">
                            <a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
                        </template>
160
                    </el-table-column> -->
161 162
                </c-istream-table>
            </c-col>
潘际乾 committed
163
            <c-col :span="24">
164 165 166 167
                
            </c-col>

  </c-row>
wangguangchao committed
168 169
</template>
<script>
170
import Utils from "~/utils/index";
wangguangchao committed
171
import Api from "~/service/Api"
wangren committed
172
import commonProcess from "~/mixin/commonProcess";
wangguangchao committed
173
import CodeTable from "~/config/CodeTable"
174
import Event from "~/model/Infbed/Event"
wangguangchao committed
175 176 177 178

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
179
    mixins: [commonProcess],
wangguangchao committed
180 181
    data(){
        return {
182 183
            stmData: {
                    fepstmColumns: [
184 185 186
                        "3 1 \"Fee Code\" 0 ",
                        "4 2 \"Fee Text\" 0 ",
                        "11 3 \"Disposition\" 0 ",
187
                        "12 4 \"Role\" 0 ",
188 189
                        "5 5 \"Cur\" 0 ",
                        "6 6 \"Amount\" 0 ",
190
                        "9 7 \"Transaction/INR\" 0 ",
191
                        "7 8 \"Entry Date\" 0 ",
192
                        "10 9 \"Status\" 0 ",
193 194 195 196 197 198
                    ],
                    fepstmData: [

                    ],
                    fcpstmColumns: [
                        "1 1 \"Payer\" 0 ",
199
                        "5 1 \"Text for Payer\" 0 ",
200 201 202
                        "1 2 \"Payee\" 0 ",
                        "2 2 \"Text for Payee\" 0 ",
                        "1 3 \"Disposition\" 0 ",
203 204 205 206 207
                        "6 4 \"Cur\" 0 ",
                        "7 5 \"Amount\" 0 ",
                        "10 6 \"Transaction/INR\" 0 ",
                        "8 7 \"Entry Date\" 0 ",
                        "11 8 \"Status\" 0 ",
208 209
                    ],
                    fcpstmData: [
wangguangchao committed
210

211 212
                    ],
                }
wangguangchao committed
213 214
        }
    },
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
    methods:{...Event,
        dispDefault(index){
            console.log(index);
            // this.executeDefault(`setmod.setfeg.setfel(${index}).mac`).then(res=>{
            //     Utils.copyValueFromVO(this.model, res.data)
            // })
            
        },
        async  getInfconFepfeecod() {
            let rtnmsg = await this.executeDefault("fepfeecod")
            if(rtnmsg.respCode == SUCCESS)
            {
                this.stmData.fepstmData = rtnmsg.data.infcon_fepstm.rows;
                Utils.copyValueFromVO(this.model, rtnmsg.data);
                console.log(this.stmData.fepstmData);
            }
            else
            {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
            }
        },
        async  getInfconFcpfeecod() {
            let rtnmsg = await this.executeDefault("fcpdsp")
            if(rtnmsg.respCode == SUCCESS)
            {
                this.stmData.fcpstmData = rtnmsg.data.infcon_fcpstm.rows;
                Utils.copyValueFromVO(this.model, rtnmsg.data);
                console.log(this.stmData.fcpstmData);
            }
            else
            {
                this.$notify.error({title: '错误',message: '服务请求失败!'});
            }
        }
    },
wangguangchao committed
250
    created:function(){
251 252
        this.getInfconFcpfeecod();
        this.getInfconFepfeecod();
wangguangchao committed
253 254 255 256 257 258
    }
}
</script>
<style>

</style>