Infsea.vue 13.3 KB
Newer Older
1
<template>
2
    <c-content class="eibs-tab" :height="200">
3

4 5 6 7 8 9
        <c-infsearch-group @handleSearch="handleSearch" @handleReset="handleReset">
            <!-- 持续展示区 -->
            <template slot="keepShow">
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
10
                            <c-col :span="19" :offset="1">
11 12 13 14 15 16 17 18 19
                                <el-form-item label="Own Reference" prop="infcon.seaownref">
                                    <c-input v-model="model.infcon.seaownref" maxlength="16"
                                        placeholder="请输入Own Reference"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
20
                            <c-col :span="19" :offset="1">
21 22 23 24 25 26 27 28
                                <el-form-item label="Name" prop="infcon.nam">
                                    <c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入Name"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
            </template>
29

30 31 32 33 34
            <!-- 可控展示区 -->
            <template slot="changeShow">
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
35
                            <c-col :span="19" :offset="1">
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
                                <el-form-item label="Party Reference" prop="infcon.searef">
                                    <c-input v-model="model.infcon.searef" maxlength="16"
                                        placeholder="请输入Party Reference"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="10" :offset="1">
                                <el-form-item label="Opening between" prop="infcon.opndatfrom">
                                    <c-date-picker type="date" v-model="model.infcon.opndatfrom" style="width:100%"
                                        placeholder="请选择"></c-date-picker>
                                </el-form-item>
                            </c-col>
lixingliang committed
51
                            <c-col :span="8" :offset="1">
52 53 54 55 56 57 58 59
                                <el-form-item label="and" prop="infcon.opndatto" label-width="40px">
                                    <c-date-picker type="date" v-model="model.infcon.opndatto" style="width:100%"
                                        placeholder="请选择"></c-date-picker>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
60 61

                <c-row>
62 63
                    <c-col :span="12">
                        <c-row>
lixingliang committed
64
                            <c-col :span="19" :offset="1">
65 66 67 68 69 70 71 72 73 74
                                <el-form-item label="Select Single Party" prop="infcon.pty.extkey">
                                    <c-input v-model="model.infcon.pty.extkey" maxlength="24"
                                        placeholder="请输入Select Single Party">
                                    </c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
75
                            <c-col :span="19" :offset="1">
76 77 78 79 80 81 82
                                <el-form-item label="Visible Name" prop="infcon.pty.nam">
                                    <c-input v-model="model.infcon.pty.nam" maxlength="40"
                                        placeholder="请输入External Visible Name">
                                    </c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
83 84 85
                    </c-col>
                </c-row>

86 87 88
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
89
                            <c-col :span="19" :offset="1">
90 91 92 93 94 95 96 97 98
                                <el-form-item label="Party Name/BIC" prop="infcon.seapty">
                                    <c-input v-model="model.infcon.seapty" maxlength="24"
                                        placeholder="请输入Party Name/BIC"></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
99
                            <c-col :span="19" :offset="1">
100 101 102 103 104 105 106 107
                                <el-form-item label="Role" prop="infcon.searol">
                                    <c-select v-model="model.infcon.searol" style="width:100%" placeholder="请选择Role">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
108

109 110 111
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
112
                            <c-col :span="19" :offset="1">
113 114 115 116 117 118 119 120 121
                                <el-form-item label="Resp.User" prop="infcon.usr.extkey">
                                    <c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入User ID">
                                    </c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
122
                            <c-col :span="19" :offset="1">
123 124 125 126 127 128 129 130 131
                                <el-form-item label="Status" prop="infcon.seasta">
                                    <c-select v-model="model.infcon.seasta" style="width:100%" placeholder="请选择Status"
                                        :code="codes.seasta">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
132 133

                <c-row>
134 135
                    <c-col :span="12">
                        <c-row>
lixingliang committed
136
                            <c-col :span="19" :offset="1">
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
                                <el-form-item label="Currency" prop="infcon.seacur">
                                    <c-select v-model="model.infcon.seacur" style="width:100%" placeholder="请选择Currency"
                                        :code="codes.cur">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="10" :offset="1">
                                <el-form-item label="Amount between" prop="infcon.seaamtfr">
                                    <c-input-currency v-model="model.infcon.seaamtfr" placeholder="请输入Amount">
                                    </c-input-currency>
                                </el-form-item>
                            </c-col>
lixingliang committed
153
                            <c-col :span="8" :offset="1">
154 155 156 157 158 159
                                <el-form-item label="and" prop="infcon.seaamtto" label-width="40px">
                                    <c-input-currency v-model="model.infcon.seaamtto" placeholder="请输入Amount">
                                    </c-input-currency>
                                </el-form-item>
                            </c-col>
                        </c-row>
160 161 162
                    </c-col>
                </c-row>

163 164 165
                <c-row>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
166
                            <c-col :span="19" :offset="1">
167 168 169 170 171 172 173 174 175 176
                                <el-form-item label="Payment Type" prop="seapaytyp">
                                    <c-select v-model="model.seapaytyp" style="width:100%" placeholder="请选择Payment Type"
                                        :code="codes.seapaytyp">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
lixingliang committed
177
                            <c-col :span="19" :offset="1">
178 179 180 181 182 183 184 185
                                <el-form-item label="Swift type" prop="msgtyp">
                                    <c-select v-model="model.msgtyp" style="width:100%" placeholder="请选择Swift type">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
186 187

                <c-row>
188 189
                    <c-col :span="12">
                        <c-row>
lixingliang committed
190
                            <c-col :span="14" :offset="1">
191 192 193 194 195 196
                                <el-form-item label="国家代码" prop="countcode">
                                    <c-select v-model="model.countcode" filterable style="width:100%"
                                        placeholder="请选择国家代码" :code="codes.bopcty">
                                    </c-select>
                                </el-form-item>
                            </c-col>
lixingliang committed
197
                            <c-col :span="5">
198 199 200 201 202 203 204 205 206 207 208 209
                                <el-form-item label="" prop="tsnflg" label-width="20px">
                                    <c-checkbox v-model="model.tsnflg">同名划转标志</c-checkbox>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">

                            </c-col>
                        </c-row>
210 211 212
                    </c-col>
                </c-row>

213 214 215 216 217 218 219 220
            </template>
        </c-infsearch-group>

        <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
            <c-col>
                <c-button size="small" type="primary">导Excel</c-button>
                <c-button size="small" type="primary">Display</c-button>
                <c-button size="small" type="primary">Use</c-button>
221 222 223
            </c-col>
        </c-row>

224 225 226 227 228 229 230 231
        <c-row style="margin-top:20px; padding: 0 10px 0 10px;">
            <c-istream-table :list="stmData.data" :columns="stmData.columns">
                <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>
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
        </c-row>

    </c-content>
</template>
<script>
    import Api from "~/service/Api"
    import CommonProcess from "~/mixin/CommonProcess";
    import CodeTable from "~/config/CodeTable"
    import Event from "~/model/Infcpd/Event"

    export default {
        inject: ['root'],
        props: ["model", "codes"],
        mixins: [CommonProcess],
        data() {
            return {
                stmData: {
                    columns: [
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
                        "1 1 \"Reference\" 0 ",
                        "2 1 \"Resp. User\" 0 ",
                        "3 1 \"PYE NO.\" 0 ",
                        "1 2 \"Party Number\" 115",
                        "2 2 \"Payee Customer\" 115",
                        "3 2 \"PYE.Customer CN\" 115",
                        "1 3 \"Party Number\" 115",
                        "2 3 \"Ord.Customer\" 115",
                        "3 3 \"Ord.Customer CN\" 115",
                        "1 4 \"Party Number\" 115",
                        "2 4 \"Ord.Institution\" 115",
                        "3 4 \"ORC NO.\" 115",
                        "1 5 \"Party Number\" 115",
                        "2 5 \"Paying Bank\" 115",
                        "1 6 \"Opened\" 0",
                        "2 6 \"Value\" 0",
                        "1 7 \"Closed\" 0",
                        "1 8 \"Cur\" 0",
                        "2 8 \"Cur\" 0",
                        "1 9 \"Paym.Amount\" 0",
                        "2 9 \"Amount rcvd.\" 0",
                        "1 10 \"Pyectycod\" 80",
                        "1 11 \"Orcctycod\" 80",
                    ],
                    data: [

276 277 278 279 280
                    ]
                }

            }
        },
281 282 283 284 285 286 287 288 289 290 291 292 293
        methods: {
            ...Event,
            handleSearch(callback) {
                setTimeout(() => {
                    this.$notify.info({ title: '提示', message: '模拟post请求控制按钮状态' });
                    // 执行子组件回调函数控制按钮状态
                    callback()
                }, 1000)
            },
            handleReset() {

            }
        },
294 295 296 297 298 299 300 301
        created: function () {

        }
    }
</script>
<style>

</style>