Infsea.vue 14.1 KB
Newer Older
cyy committed
1
<template>
cyy committed
2 3 4 5 6 7 8 9
  <c-content class="eibs-tab" :height="200">

    <c-infsearch-group @handleSearch="handleSearch" @handleReset="handleReset">
       <!-- <div >        
            <c-button size="small" type="primary" @click="onInfbutSearow">Search</c-button>
            <c-button size="small" type="primary" @click="onInfbutDsp" disabled>Display</c-button>
            <c-button size="small" type="primary" @click="onInfbutUserow" disabled>Use</c-button>
            <c-button size="small" type="primary" @click="onInfbutClr">Clear</c-button>
cyy committed
10
            <c-button size="small" type="primary" @click="onInfbutButprt">导Excel</c-button>
cyy committed
11 12
            <c-button size="small" type="primary" @click="onInfbutExi">Exit</c-button>
       </div> -->
cyy committed
13

cyy committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
       <!-- 持续展示区 -->
            <template slot="keepShow">
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="18" :offset="1">
                                <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>
cyy committed
37

cyy committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
            <template slot="changeShow">
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="8">
                                <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>
                
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="18" :offset="1">
                                <el-form-item label="Visible Name" prop="infcon.pty.nam">
                                    <c-input disabled v-model="model.infcon.pty.nam" maxlength="40"
                                        placeholder="请输入External Visible Name">
                                    </c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
cyy committed
92

cyy committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="18" :offset="1">
                                <el-form-item label="Role" prop="infcon.searol">
                                    <c-select v-model="model.infcon.searol" style="width:100%" placeholder="请选择Role" :code="codes.rolall">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
cyy committed
115

cyy committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="18" :offset="1">
                                <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>
cyy committed
139

cyy committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <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>
                            <c-col :span="8">
                                <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>
                    </c-col>
                </c-row>
cyy committed
169

cyy committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">                               
                                <el-form-item label="Document Type" prop="seadoctypcod">
                                    <c-select v-model="model.seadoctypcod" style="width:100%" placeholder="请选择Document Type" :code="codes.seadoctypcod">
                                    </c-select>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" :offset="1">
                                <el-form-item label="Invoice No." prop="infcon.invnum">
                                    <c-input  v-model="model.infcon.invnum" maxlength="16"  placeholder="请输入Invoice No."></c-input>
                                </el-form-item>
                            </c-col>
                        </c-row>
                    </c-col>
                </c-row>
cyy committed
191

cyy committed
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
                <c-row>
                    <c-col :span="12">
                        <c-row>
                            <c-col :span="18" >
                                <el-form-item label="" prop="infcon.forflg" label-width="20px">
                                    <c-checkbox v-model="model.infcon.forflg">转卖单据</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>
                    </c-col>
                </c-row>
            </template>
cyy committed
212
                                    
cyy committed
213
            <!-- <c-col :span="6">
cyy committed
214 215 216 217
                <el-form-item label="Release Status" prop="infcon.relflg">
                    <c-select v-model="model.infcon.relflg" style="width:100%" placeholder="请选择Release Status">
                    </c-select>
                </el-form-item>
cyy committed
218
            </c-col>                  
cyy committed
219 220 221 222 223 224
                    
            <c-col :span="6">
                <el-form-item label="Handling Type" prop="infcon.hndtyp">
                    <c-select v-model="model.infcon.hndtyp" style="width:100%" placeholder="请选择Handling Type">
                    </c-select>
                </el-form-item>
cyy committed
225
            </c-col> -->
cyy committed
226

cyy committed
227 228 229
            <!-- <c-col :span="6">
                <el-form-item label="是否显示查询码" prop="infcon.cxmflg">
                    <c-select v-model="model.infcon.cxmflg" style="width:100%" placeholder="请选择是否显示查询码">
cyy committed
230 231
                    </c-select>
                </el-form-item>
cyy committed
232
            </c-col> -->
cyy committed
233

cyy committed
234
    </c-infsearch-group>
cyy committed
235

cyy committed
236 237 238 239 240 241 242
    <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>
        </c-col>
    </c-row>
cyy committed
243

cyy committed
244 245 246 247 248 249 250 251 252
    <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>
    </c-row>
cyy committed
253

cyy committed
254 255 256

       <!-- <c-col :span="22" :offset="1">
           <c-istream-table :list="data" :columns="columns"></c-istream-table>
cyy committed
257
       </c-col> -->
cyy committed
258 259

  </c-content>
cyy committed
260 261 262 263 264 265 266 267 268 269 270 271 272
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbed/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
    mixins: [CommonProcess],
    data(){
        return {
cyy committed
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
            stmData: {
                columns: [ 
                    "1 1 \"Reference\" 100",
                    "2 1 \"Resp. User\" 100",
                    "3 1 \"Invoice No.\" 100",
                    "1 2 \"Party Number\" 133",
                    "2 2 \"Applicant\" 133",
                    "3 2 \"PTA NO.\" 0",
                    "1 3 \"Party Number\" 133",
                    "2 3 \"Beneficiary\" 133",
                    "3 3 \"Beneficiary CN\" 133",
                    "1 4 \"Party Number\" 133",
                    "2 4 \"Issuing Bank\" 133",
                    "1 5 \"Party Number\" 133",
                    "2 5 \"Purchasing bank\" 133",
                    "3 5 \"转卖日期\" 133",
                    "1 6 \"Opened\" 0",
                    "2 6 \"Closed\" 0",
                    "1 7 \"Cur\" 0",
                    "2 7 \"Cur\" 0",
                    "1 8 \"Doc.Amount\" 0",
                    "2 8 \"Open Amount\" 0"
                ],
                data: [
                ]  
            }
cyy committed
299 300
        }
    },
cyy committed
301 302 303 304 305 306 307 308 309 310 311 312
    methods:{...Event,
    handleSearch(callback) {
                setTimeout(() => {
                    this.$notify.info({ title: '提示', message: '模拟post请求控制按钮状态' });
                    // 执行子组件回调函数控制按钮状态
                    callback()
                }, 1000)
            },
            handleReset() {

            }
    },
cyy committed
313 314 315 316 317 318 319 320
    created:function(){

    }
}
</script>
<style>

</style>