1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<template>
<div class="eibs-tab">
<c-col :span="9">
<c-istream-table
:list="stmData.data"
:columns="stmData.columns"
>
</c-istream-table>
</c-col>
<c-col :span="9" :offset="1">
<c-col :span="24">
<el-form-item label="操作选择" prop="opetye">
<c-select v-model="model.opetye" style="width: 100%">
<el-option
v-for="item in opetye"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="本地文件路径" prop="flpth">
<c-input v-model="model.flpth" style="width:100%" placeholder="请输入本地文件路径" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="上传文件名" prop="newnam">
<c-input v-model="model.newnam" style="width:100%" :disabled="model.opetye !== '1'"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<span> 注意:上传文件若包含表头系统将无法解析</span>
</c-col>
<c-col :span="24">
<el-form-item label="删除首行上传">
<c-checkbox v-model="model.flg" :disabled="model.opetye !== '1'"></c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解析文件名" prop="opefil">
<c-input v-model="model.opefil" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="4" :offset="1">
<c-col :span="24">
<c-button type="primary" disabled>文件预览</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" :disabled="model.newnam === ''">文件上传</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件解析</c-button>
</c-col>
<c-col><br/></c-col>
<c-col :span="24">
<c-button type="primary" disabled>文件删除</c-button>
</c-col>
</c-col>
<!-- <c-col :span="12">
<c-form-item label="" prop="filstm">
<c-input v-model="model.filstm" :placeholder="$t('other.please_enter')+''"></c-input>
</c-form-item>
</c-col>
S0000020 : 操作选择
<c-col :span="12">
<el-form-item :label="$t('cptbat.S0000020')" prop="opetye">
<c-select v-model="model.opetye" style="width:100%" :placeholder="$t('other.please_enter')+$t('cptbat.S0000020')">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onOpnfil">
{{$t('cptbat.C0000010')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onUpload">
{{$t('cptbat.C0000022')}}
</c-button>
</c-col>
S0000023 : 文件解析
<c-col :span="12">
<c-button size="small" type="primary" @click="onReadfil">
{{$t('cptbat.C0000024')}}
</c-button>
</c-col>
S0000005 : 本地文件路径
<c-col :span="12">
<c-form-item :label="$t('cptbat.S0000005')" prop="filpth">
<c-input v-model="model.filpth" maxlength="45" :placeholder="$t('other.please_enter')+$t('cptbat.S0000005')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onDel">
{{$t('cptbat.C0000027')}}
</c-button>
</c-col>
S0000006 : 上传文件名
<c-col :span="12">
<c-form-item :label="$t('cptbat.S0000006')" prop="newnam">
<c-input v-model="model.newnam" maxlength="45" :placeholder="$t('other.please_enter')+$t('cptbat.S0000006')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.car" data-path=".car" > </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.flg">{{$t('cptbat.C0000026')}}</c-checkbox>
</c-col>
S0000021 : 解析文件名
<c-col :span="12">
<c-form-item label="解析文件路径" prop="opefil">
<c-input v-model="model.opefil" maxlength="62" :placeholder="$t('other.please_enter')+'解析文件路径'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onExt">
{{$t('cptbat.C0000014')}}
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cptbat/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
opetye:[
{label:"文件上传",value:"1"},
{label:"文件解析",value:"2"},
{label:"已解析文件",value:"3"},
],
stmData: {
columns: [
'0 1 "批量文件列表" 500'
// '0 1 "业务编号" 110',
// '1 2 "币种" 110',
// '2 3 "金额" 120 2 8:1 2 5',
// '3 4 "收款人名称" 250',
// '4 5 "付款人名称" 250',
// '5 6 "业务发生日期" 150 20 30 1',
// { index: 6, position: 7, width: 100, pattern: "code", label: "复核状态" ,"code":"relsta"},
],
data: [],
},
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>