ocpview-pro 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ocpviewplus.min.esm.js +2309 -1260
- package/dist/ocpviewplus.min.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/base/controlbox.vue +3 -3
- package/src/components/base/load.js +1 -1
- package/src/components/conditionbox/conditionbase.vue +3 -3
- package/src/components/conditionbox/conditionfilterbox.vue +9 -9
- package/src/components/conditionbox/conditionselectorbox.vue +52 -50
- package/src/components/conditionbox/queryconditionbox.vue +2 -2
- package/src/components/conditionbox/searchconditionbox.vue +2 -2
- package/src/components/conditionbox/searchgrid.vue +87 -86
- package/src/components/datebox/DateBoxV1.vue +1 -1
- package/src/components/form/detailsbox.vue +5 -3
- package/src/components/form/formcardbox.vue +3 -0
- package/src/components/form/formcardbox2.vue +3 -0
- package/src/components/form/formcardgroupbox.vue +2 -0
- package/src/components/form/formdetail.vue +2 -2
- package/src/components/form/formdetailtwo.vue +7 -7
- package/src/components/grid/basegrid.vue +5 -5
- package/src/components/grid/editgrid.vue +1 -1
- package/src/components/grid/editgridbase.vue +10 -1
- package/src/components/grid/editgridcard.vue +1 -1
- package/src/components/grid/viewgrid.vue +3 -3
- package/src/components/grid/viewgridbase.vue +10 -10
- package/src/components/map/mapbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +6 -6
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelQueryBar.vue +4 -4
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/index.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +4 -4
- package/src/components/masterplate/RewriteListdetails/indexV2.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +10 -10
- package/src/components/masterplate/appendix.vue +23 -23
- package/src/components/masterplate/approval.vue +42 -42
- package/src/components/masterplate/base.vue +10 -10
- package/src/components/masterplate/billasyncimport.vue +39 -39
- package/src/components/masterplate/billconditionbox.vue +11 -11
- package/src/components/masterplate/billconditionsbox.vue +8 -8
- package/src/components/masterplate/billdetailform.vue +4 -4
- package/src/components/masterplate/billimport.vue +12 -12
- package/src/components/masterplate/billquerygrid.vue +2 -2
- package/src/components/masterplate/billsinglegrid.vue +4 -4
- package/src/components/masterplate/birtreport.vue +5 -5
- package/src/components/masterplate/contractappendix.vue +27 -27
- package/src/components/masterplate/detailbtntoolbar.vue +11 -11
- package/src/components/masterplate/detailsbox.vue +7 -7
- package/src/components/masterplate/editgridcard.vue +7 -7
- package/src/components/masterplate/editgridcard2.vue +5 -5
- package/src/components/masterplate/formdetailtwo.vue +8 -8
- package/src/components/masterplate/gridcolset.vue +6 -6
- package/src/components/masterplate/layouttemplate.vue +3 -3
- package/src/components/masterplate/leftlistrightdetails.vue +15 -13
- package/src/components/masterplate/leftlistrightlist.vue +24 -18
- package/src/components/masterplate/lefttreerightdetails.vue +17 -17
- package/src/components/masterplate/levelreport.vue +6 -6
- package/src/components/masterplate/listbtntoolbar.vue +3 -3
- package/src/components/masterplate/listdetails.vue +45 -45
- package/src/components/masterplate/operlog.vue +19 -19
- package/src/components/masterplate/promptmessage.vue +1 -1
- package/src/components/masterplate/querybar.vue +7 -7
- package/src/components/masterplate/report.vue +7 -7
- package/src/components/masterplate/rowbtntoolbar.vue +1 -1
- package/src/components/masterplate/simpletree.vue +3 -3
- package/src/components/masterplate/simpleviewgrid.vue +4 -4
- package/src/components/mychart/gauge/gauge.vue +1 -1
- package/src/components/numberbox/numberbox.vue +4 -4
- package/src/components/numberbox/numberrangebox.vue +11 -11
- package/src/components/picturebox/filebox.vue +6 -5
- package/src/components/picturebox/uploadbox.vue +3 -3
- package/src/components/poptagbox/poptagbox.vue +4 -3
- package/src/components/poptextbox/poptextbox.vue +5 -5
- package/src/components/richtextbox/editor.vue +36 -36
- package/src/components/richtextbox/richtextbox.vue +6 -6
- package/src/components/toolbar/toolbar.vue +7 -7
- package/src/components/tree/basetree.vue +3 -2
- package/src/components/tree/treedatabase.vue +1 -1
- package/src/components/upload/billimport.vue +8 -8
- package/src/components/videobox/uploadbox.vue +3 -9
- package/src/components/videobox/videobox.vue +1 -1
- package/src/components/wrichtextbox/editor.vue +26 -26
- package/src/index.js +1 -1
- package/src/localePlus/en-US.js +331 -1
- package/src/localePlus/zh-CN.js +331 -1
- package/src/localePlus/zh-TW.js +331 -1
- package/src/method/case/case.js +10 -10
- package/src/method/const/const.js +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-if="modeltype==='upload'">
|
|
4
|
-
<Modal title="导入" v-model="showUpload" class-name="vertical-center-modal—bill" :width="modelWidth" :footer-hide="true" @on-visible-change="visibleChange">
|
|
4
|
+
<Modal :title="$t('导入')" v-model="showUpload" class-name="vertical-center-modal—bill" :width="modelWidth" :footer-hide="true" @on-visible-change="visibleChange">
|
|
5
5
|
<Row type="flex" justify="start" :gutter="5">
|
|
6
6
|
<Col span='16'>
|
|
7
7
|
<Card :padding="0" :bordered="false" dis-hover >
|
|
8
8
|
<div style="margin-bottom:10px;display: flex;justify-content: space-between;">
|
|
9
9
|
<div>
|
|
10
|
-
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold"
|
|
10
|
+
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold">{{ $t('任务文件') }}</span>
|
|
11
11
|
</div>
|
|
12
|
-
<Button size="small" customIcon="iconfont icon-custom-anniu-shuaxin" @click="Refurbish"
|
|
12
|
+
<Button size="small" customIcon="iconfont icon-custom-anniu-shuaxin" @click="Refurbish">{{ $t('刷新') }}</Button>
|
|
13
13
|
</div>
|
|
14
14
|
<SimpleViewGrid
|
|
15
15
|
ref="grid"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
<Card :padding="0" :bordered="false" dis-hover >
|
|
23
23
|
<div style="margin-bottom:10px;display: flex;justify-content: space-between;">
|
|
24
24
|
<div>
|
|
25
|
-
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold"
|
|
25
|
+
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold">{{ $t('导入错误信息') }}</span>
|
|
26
26
|
</div>
|
|
27
|
-
<Button size="small" customIcon="iconfont icon-custom-filedown" @click="downErr"
|
|
27
|
+
<Button size="small" customIcon="iconfont icon-custom-filedown" @click="downErr">{{ $t('下载') }}</Button>
|
|
28
28
|
</div>
|
|
29
29
|
<SimpleViewGrid
|
|
30
30
|
ref="griderr"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</Col>
|
|
36
36
|
<Col span='8'>
|
|
37
37
|
<p style="margin-bottom:10px;">
|
|
38
|
-
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold"
|
|
38
|
+
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold">{{ $t('导入文件') }}</span>
|
|
39
39
|
</p>
|
|
40
40
|
<div class="demo-spin-col-bill">
|
|
41
41
|
<RadioGroup v-if="showType" v-model="type" style="margin-bottom:24px">
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
</Row>
|
|
52
52
|
<Row type="flex" justify="center">
|
|
53
53
|
<Col>
|
|
54
|
-
<Input v-model="name" style="width:150px;" :border="false" placeholder="(支持xls、xlsx格式)" clearable disabled/>
|
|
54
|
+
<Input v-model="name" style="width:150px;" :border="false" :placeholder="$t('(支持xls、xlsx格式)')" clearable disabled/>
|
|
55
55
|
</Col>
|
|
56
56
|
</Row>
|
|
57
57
|
<Row type="flex" justify="center" :gutter="10">
|
|
58
58
|
<Col>
|
|
59
59
|
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
60
|
-
<Radio label="all"
|
|
61
|
-
<Radio label="add"
|
|
60
|
+
<Radio label="all">{{ $t('全量导入') }}</Radio>
|
|
61
|
+
<Radio label="add">{{ $t('增量导入') }}</Radio>
|
|
62
62
|
</RadioGroup>
|
|
63
63
|
<Upload ref="upload"
|
|
64
64
|
:before-upload="handleUpload"
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
:on-success="handleSuccess"
|
|
69
69
|
:show-upload-list="false"
|
|
70
70
|
:action="url">
|
|
71
|
-
<Button style="width:150px;"
|
|
71
|
+
<Button style="width:150px;">{{ $t('选择文件') }}</Button>
|
|
72
72
|
</Upload>
|
|
73
73
|
</Col>
|
|
74
74
|
</Row>
|
|
75
75
|
</div>
|
|
76
76
|
<Spin v-show="loading" fix>
|
|
77
77
|
<Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
|
|
78
|
-
<div
|
|
78
|
+
<div>{{ $t('导入中') }}</div>
|
|
79
79
|
</Spin>
|
|
80
80
|
</div>
|
|
81
81
|
</Col>
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</Modal>
|
|
84
84
|
</template>
|
|
85
85
|
<template v-if="modeltype === 'down'">
|
|
86
|
-
<Modal v-model="showUpload" title="选择模版" @on-ok="downTemplate" class-name="vertical-center-modal—bill">
|
|
86
|
+
<Modal v-model="showUpload" :title="$t('选择模版')" @on-ok="downTemplate" class-name="vertical-center-modal—bill">
|
|
87
87
|
<RadioGroup v-model="type">
|
|
88
88
|
<Radio v-for="(item,index) in myConfig.typeData" :key="index" :label="item.code">
|
|
89
89
|
<span>{{item.name}}</span>
|
|
@@ -92,21 +92,21 @@
|
|
|
92
92
|
</Modal>
|
|
93
93
|
</template>
|
|
94
94
|
<template v-if="modeltype === 'export'">
|
|
95
|
-
<Modal v-model="showUpload" title="导出" :width="modelWidth" class-name="vertical-center-modal—bill" :footer-hide="true">
|
|
95
|
+
<Modal v-model="showUpload" :title="$t('导出')" :width="modelWidth" class-name="vertical-center-modal—bill" :footer-hide="true">
|
|
96
96
|
<Row type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom:20px">
|
|
97
97
|
<Col span="3">
|
|
98
|
-
<Button @click="doAsyncExport"
|
|
98
|
+
<Button @click="doAsyncExport">{{ $t('生成导出任务') }}</Button>
|
|
99
99
|
</Col>
|
|
100
100
|
<Col v-if="checkExport" span="21">
|
|
101
|
-
<p v-if="checkExportFailFlag" style="border:1px solid #F3B352;background-color:#FFF7EB;padding-left:30px;padding-right:30px"> <Icon custom="iconfont icon-custom-daishenpi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold"
|
|
102
|
-
<p v-if="checkExportSuccessFlag" style="border:1px solid #739943;background-color:#FBFFF6;padding-left:30px;padding-right:30px"> <Icon custom="iconfont icon-custom-wancheng" size="20" color="#739943"/> <span style="margin-left: 12px;font-size:18px;color:#739943;font-weight:bold"
|
|
101
|
+
<p v-if="checkExportFailFlag" style="border:1px solid #F3B352;background-color:#FFF7EB;padding-left:30px;padding-right:30px"> <Icon custom="iconfont icon-custom-daishenpi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold">{{ $t('已存在生成中的导出任务,请稍后生成导出任务') }}</span> </p>
|
|
102
|
+
<p v-if="checkExportSuccessFlag" style="border:1px solid #739943;background-color:#FBFFF6;padding-left:30px;padding-right:30px"> <Icon custom="iconfont icon-custom-wancheng" size="20" color="#739943"/> <span style="margin-left: 12px;font-size:18px;color:#739943;font-weight:bold">{{ $t('导出任务已生成,请稍后在任务列表下载文件') }}</span> </p>
|
|
103
103
|
</Col>
|
|
104
104
|
</Row>
|
|
105
105
|
<div style="margin-bottom:10px;display: flex;justify-content: space-between;">
|
|
106
106
|
<div>
|
|
107
107
|
<span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold" v-text="exportGridConfig.gridtitle" />
|
|
108
108
|
</div>
|
|
109
|
-
<Button size="small" customIcon="iconfont icon-custom-anniu-shuaxin" @click="Refurbish"
|
|
109
|
+
<Button size="small" customIcon="iconfont icon-custom-anniu-shuaxin" @click="Refurbish">{{ $t('刷新') }}</Button>
|
|
110
110
|
</div>
|
|
111
111
|
<SimpleViewGrid
|
|
112
112
|
ref="grid"
|
|
@@ -137,29 +137,29 @@
|
|
|
137
137
|
resources:'',
|
|
138
138
|
},
|
|
139
139
|
gridConfig:{
|
|
140
|
-
gridtitle:'任务文件',
|
|
140
|
+
gridtitle: this.$t('任务文件'),
|
|
141
141
|
showPage:false,
|
|
142
142
|
dynamicHeight:false,
|
|
143
143
|
height:250,
|
|
144
144
|
items:[{
|
|
145
|
-
label:'日期',
|
|
145
|
+
label: this.$t('日期'),
|
|
146
146
|
name:'taskdate',
|
|
147
147
|
type:'DateBox',
|
|
148
148
|
vtype:'datetime',
|
|
149
149
|
width:150
|
|
150
150
|
}, {
|
|
151
|
-
label:'状态',
|
|
151
|
+
label: this.$t('状态'),
|
|
152
152
|
name:'taskstatus',
|
|
153
153
|
type:'ComboBox',
|
|
154
154
|
codeWithName:false,
|
|
155
|
-
data:[{ code : 'N', name : '进行中'},{ code : 'F', name : '导入失败'}, { code : 'Y', name : '已生成'} ,{ code : 'E', name : '部分导入成功'}],
|
|
155
|
+
data:[{ code : 'N', name : this.$t('进行中')},{ code : 'F', name : this.$t('导入失败')}, { code : 'Y', name : this.$t('已生成')} ,{ code : 'E', name : this.$t('部分导入成功')}],
|
|
156
156
|
width:100,
|
|
157
157
|
},{
|
|
158
|
-
label:'文件名称',
|
|
158
|
+
label: this.$t('文件名称'),
|
|
159
159
|
name:'filename',
|
|
160
160
|
type:'TextBox'
|
|
161
161
|
},{
|
|
162
|
-
label:'操作',
|
|
162
|
+
label: this.$t('操作'),
|
|
163
163
|
key:'action',
|
|
164
164
|
align: 'center',
|
|
165
165
|
render: this.actionRender,
|
|
@@ -167,40 +167,40 @@
|
|
|
167
167
|
}]
|
|
168
168
|
},
|
|
169
169
|
gridErrConfig:{
|
|
170
|
-
gridtitle:'任务文件',
|
|
170
|
+
gridtitle: this.$t('任务文件'),
|
|
171
171
|
showPage:false,
|
|
172
172
|
dynamicHeight:false,
|
|
173
173
|
height:250,
|
|
174
174
|
items:[{
|
|
175
|
-
label:'错误信息',
|
|
175
|
+
label: this.$t('错误信息'),
|
|
176
176
|
name:'errmsg',
|
|
177
177
|
type:'TextBox'
|
|
178
178
|
}]
|
|
179
179
|
},
|
|
180
180
|
exportGridConfig:{
|
|
181
|
-
gridtitle:'任务日志',
|
|
181
|
+
gridtitle: this.$t('任务日志'),
|
|
182
182
|
showPage:false,
|
|
183
183
|
dynamicHeight:false,
|
|
184
184
|
height:250,
|
|
185
185
|
items:[{
|
|
186
|
-
label:'日期',
|
|
186
|
+
label: this.$t('日期'),
|
|
187
187
|
name:'taskdate',
|
|
188
188
|
type:'DateBox',
|
|
189
189
|
vtype:'datetime',
|
|
190
190
|
width:150
|
|
191
191
|
}, {
|
|
192
|
-
label:'状态',
|
|
192
|
+
label: this.$t('状态'),
|
|
193
193
|
name:'taskstatus',
|
|
194
194
|
type:'ComboBox',
|
|
195
195
|
codeWithName:false,
|
|
196
|
-
data:[{ code : 'N', name : '进行中'},{ code : 'F', name : '导入失败'}, { code : 'Y', name : '已完成'} ,{ code : 'C', name : '已取消'},],
|
|
196
|
+
data:[{ code : 'N', name : this.$t('进行中')},{ code : 'F', name : this.$t('导入失败')}, { code : 'Y', name : this.$t('已完成')} ,{ code : 'C', name : this.$t('已取消')},],
|
|
197
197
|
width:100,
|
|
198
198
|
},{
|
|
199
|
-
label:'文件名称',
|
|
199
|
+
label: this.$t('文件名称'),
|
|
200
200
|
name:'filename',
|
|
201
201
|
type:'TextBox'
|
|
202
202
|
},{
|
|
203
|
-
label:'操作',
|
|
203
|
+
label: this.$t('操作'),
|
|
204
204
|
key:'action',
|
|
205
205
|
align: 'center',
|
|
206
206
|
render: this.actionRender,
|
|
@@ -225,17 +225,17 @@
|
|
|
225
225
|
{
|
|
226
226
|
icon:'custom-filedown',
|
|
227
227
|
name:'downFile',
|
|
228
|
-
text:'下载'
|
|
228
|
+
text: this.$t('下载')
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
icon:'custom-filedel',
|
|
232
232
|
name:'delTask',
|
|
233
|
-
text:'删除'
|
|
233
|
+
text: this.$t('删除')
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
icon:'custom-filerecall',
|
|
237
237
|
name:'cancelTask',
|
|
238
|
-
text:'取消'
|
|
238
|
+
text: this.$t('取消')
|
|
239
239
|
}
|
|
240
240
|
],
|
|
241
241
|
checkExportFailFlag: false,
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
if (this.name) {
|
|
259
259
|
return this.name;
|
|
260
260
|
} else {
|
|
261
|
-
return '(支持xls、xlsx格式)';
|
|
261
|
+
return this.$t('(支持xls、xlsx格式)');
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
modelWidth() {
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
return false;
|
|
405
405
|
} else {
|
|
406
406
|
if (this.checkTask()) {
|
|
407
|
-
this.alert('存在进行中的导入任务,请稍后导入数据');
|
|
407
|
+
this.alert(this.$t('存在进行中的导入任务,请稍后导入数据'));
|
|
408
408
|
this.file = null;
|
|
409
409
|
this.name = '';
|
|
410
410
|
return false;
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
|
|
453
453
|
handleFormatError (file) {
|
|
454
454
|
let type = this.myConfig.fileType.join(',');
|
|
455
|
-
this.alert('文件['
|
|
455
|
+
this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
|
|
456
456
|
},
|
|
457
457
|
handleSuccess(res) {
|
|
458
458
|
let self = this;
|
|
@@ -539,10 +539,10 @@
|
|
|
539
539
|
downErr() {
|
|
540
540
|
let data = this.$refs.griderr.getData();
|
|
541
541
|
if (data.length === 0) {
|
|
542
|
-
this.alert('没有错误信息可下载');
|
|
542
|
+
this.alert(this.$t('没有错误信息可下载'));
|
|
543
543
|
return;
|
|
544
544
|
} else {
|
|
545
|
-
this.$Method.exportExcel(this.gridErrConfig.items, this.$refs.griderr.getData(),null,'错误信息');
|
|
545
|
+
this.$Method.exportExcel(this.gridErrConfig.items, this.$refs.griderr.getData(),null,this.$t('错误信息'));
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
name:'relevance',
|
|
18
18
|
type:'ComboBox',
|
|
19
19
|
codeWithName:false,
|
|
20
|
-
data:[{code:'or',name:'或'}, {code:'and', name:'且'}],
|
|
20
|
+
data:[{code:'or',name:this.$t('或')}, {code:'and', name:this.$t('且')}],
|
|
21
21
|
colNum:1.2,
|
|
22
22
|
defaultValue:'and',
|
|
23
23
|
style:{'margin-bottom':'10px','margin-top':'0px','margin-left':'0px',},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
clearable:false,
|
|
39
39
|
colNum:2,
|
|
40
40
|
data:[{
|
|
41
|
-
name: '等于',
|
|
41
|
+
name: this.$t('等于'),
|
|
42
42
|
code: '=='
|
|
43
43
|
}],
|
|
44
44
|
defaultValue:'==',
|
|
@@ -118,38 +118,38 @@
|
|
|
118
118
|
getOperData(el) {
|
|
119
119
|
let tempData = [];
|
|
120
120
|
tempData.push({
|
|
121
|
-
name: '等于',
|
|
121
|
+
name: this.$t('等于'),
|
|
122
122
|
code: '=='
|
|
123
123
|
});
|
|
124
124
|
if (el.type === 'DateBox' || el.type === 'NumberBox') {
|
|
125
125
|
tempData.push({
|
|
126
|
-
name: '大于',
|
|
126
|
+
name: this.$t('大于'),
|
|
127
127
|
code: '>'
|
|
128
128
|
});
|
|
129
129
|
tempData.push({
|
|
130
|
-
name: '大于等于',
|
|
130
|
+
name: this.$t('大于等于'),
|
|
131
131
|
code: '>='
|
|
132
132
|
});
|
|
133
133
|
tempData.push({
|
|
134
|
-
name: '小于等于',
|
|
134
|
+
name: this.$t('小于等于'),
|
|
135
135
|
code: '<='
|
|
136
136
|
});
|
|
137
137
|
tempData.push({
|
|
138
|
-
name: '小于',
|
|
138
|
+
name: this.$t('小于'),
|
|
139
139
|
code: '<'
|
|
140
140
|
});
|
|
141
141
|
tempData.push({
|
|
142
|
-
name: '不等于',
|
|
142
|
+
name: this.$t('不等于'),
|
|
143
143
|
code: '<>'
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
if (el.type === 'TextBox') {
|
|
147
147
|
tempData.push({
|
|
148
|
-
name: '不等于',
|
|
148
|
+
name: this.$t('不等于'),
|
|
149
149
|
code: '<>'
|
|
150
150
|
});
|
|
151
151
|
tempData.push({
|
|
152
|
-
name: '包含',
|
|
152
|
+
name: this.$t('包含'),
|
|
153
153
|
code: 'LIKE'
|
|
154
154
|
});
|
|
155
155
|
}
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
}
|
|
185
185
|
} else {
|
|
186
186
|
oper.data = [{
|
|
187
|
-
name: '等于',
|
|
187
|
+
name: this.$t('等于'),
|
|
188
188
|
code: '=='
|
|
189
189
|
}];
|
|
190
190
|
oper.readOnly = true;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<Icon custom="iconfont icon-custom-addcond" size="20" color="#AF292E"/>
|
|
14
14
|
</Col>
|
|
15
15
|
<Col>
|
|
16
|
-
<span style="margin-left:18px;color:#AF292E;font-size:14px"> 添加条件 </span>
|
|
16
|
+
<span style="margin-left:18px;color:#AF292E;font-size:14px"> {{ $t('添加条件') }} </span>
|
|
17
17
|
</Col>
|
|
18
18
|
</Row>
|
|
19
19
|
</p>
|
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
</Row>
|
|
22
22
|
<Row type="flex" justify="start" align="middle">
|
|
23
23
|
<Col style="margin-right:10px">
|
|
24
|
-
<Button type="primary" @click="searchFilter"
|
|
24
|
+
<Button type="primary" @click="searchFilter" >{{ $t('筛选') }}</Button>
|
|
25
25
|
</Col>
|
|
26
26
|
<Col >
|
|
27
|
-
<Button @click="clearData"
|
|
27
|
+
<Button @click="clearData" >{{ $t('清空筛选值') }}</Button>
|
|
28
28
|
</Col>
|
|
29
29
|
<Col>
|
|
30
30
|
<Divider type="vertical" class="dividercommon" />
|
|
31
31
|
</Col>
|
|
32
32
|
<Col v-if="!delSceneFlag" >
|
|
33
|
-
<Checkbox v-model="saveSceneFlag"><span style="margin-left: 10px;"
|
|
33
|
+
<Checkbox v-model="saveSceneFlag"><span style="margin-left: 10px;">{{ $t('保存场景') }}</span></Checkbox>
|
|
34
34
|
</Col>
|
|
35
35
|
<Col v-if="saveSceneFlag || delSceneFlag" style="margin-right:14px">
|
|
36
|
-
<Input v-model="scenename" placeholder="请输入场景名称" style="width: 456px" />
|
|
36
|
+
<Input v-model="scenename" :placeholder="$t('请输入场景名称')" style="width: 456px" />
|
|
37
37
|
</Col>
|
|
38
38
|
<Col v-if="saveSceneFlag || delSceneFlag" >
|
|
39
|
-
<Button type="info" @click="saveScene"
|
|
39
|
+
<Button type="info" @click="saveScene" >{{ $t('保存') }}</Button>
|
|
40
40
|
</Col>
|
|
41
41
|
<Col v-if="delSceneFlag">
|
|
42
42
|
<Divider type="vertical" class="dividercommon"/>
|
|
43
43
|
</Col>
|
|
44
44
|
<Col v-if="delSceneFlag" >
|
|
45
|
-
<Button @click="delScene"
|
|
45
|
+
<Button @click="delScene" >{{ $t('删除场景') }}</Button>
|
|
46
46
|
</Col>
|
|
47
47
|
<Col v-if="delSceneFlag">
|
|
48
48
|
<Divider type="vertical" class="dividercommon"/>
|
|
49
49
|
</Col>
|
|
50
50
|
<Col v-if="delSceneFlag">
|
|
51
|
-
<Button @click="addScene"
|
|
51
|
+
<Button @click="addScene">{{ $t('新增') }}</Button>
|
|
52
52
|
</Col>
|
|
53
53
|
</Row>
|
|
54
54
|
</Card>
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
data () {
|
|
42
42
|
return {
|
|
43
43
|
curlEditObject:'',
|
|
44
|
-
title:'单据详情',
|
|
44
|
+
title:this.$t('单据详情'),
|
|
45
45
|
singleForm:{},
|
|
46
46
|
readOnly:false,
|
|
47
47
|
showAnchorLink:false,
|
|
@@ -180,7 +180,7 @@ export default {
|
|
|
180
180
|
let tmp = Object.assign({}, {}, this.billAppendixConfig);
|
|
181
181
|
tmp.type = 'AppendixBox';
|
|
182
182
|
tmp.name = 'detail_appenndix';
|
|
183
|
-
tmp.title = '附件';
|
|
183
|
+
tmp.title = this.$t('附件');
|
|
184
184
|
tmp.beforeUpload = this.beforeUpload;
|
|
185
185
|
tmp.divId = 'detail_'+ this.getRandom() + '_'+ this.detailConfig.items.length;
|
|
186
186
|
this.detailConfig.items.push(tmp);
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
190
190
|
let tmp = Object.assign({}, {}, this.billAppendixConfig);
|
|
191
191
|
tmp.type = 'AppendixBox2';
|
|
192
192
|
tmp.name = 'detail_appenndix2';
|
|
193
|
-
tmp.title = '附件';
|
|
193
|
+
tmp.title = this.$t('附件');
|
|
194
194
|
tmp.beforeUpload = this.beforeUpload;
|
|
195
195
|
tmp.divId = 'detail_'+ this.getRandom() + '_'+ this.detailConfig.items.length;
|
|
196
196
|
this.detailConfig.items.push(tmp);
|
|
@@ -855,7 +855,7 @@ export default {
|
|
|
855
855
|
if (name && name === this.curlEditObject) {
|
|
856
856
|
return true;
|
|
857
857
|
} else {
|
|
858
|
-
this.alert('存在数据未保存');
|
|
858
|
+
this.alert(this.$t('存在数据未保存'));
|
|
859
859
|
return false;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<template v-if="modeltype==='upload'">
|
|
4
|
-
<Modal title="上传文件" v-model="showUpload" class-name="vertical-center-modal—bill" :footer-hide="true">
|
|
4
|
+
<Modal :title="$t('上传文件')" v-model="showUpload" class-name="vertical-center-modal—bill" :footer-hide="true">
|
|
5
5
|
<div class="demo-spin-col-bill">
|
|
6
6
|
<RadioGroup v-if="showType" v-model="type" style="margin-bottom:24px">
|
|
7
7
|
<Radio v-for="(item,index) in myConfig.typeData" :key="index" :label="item.code">
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
</Row>
|
|
17
17
|
<Row type="flex" justify="center">
|
|
18
18
|
<Col>
|
|
19
|
-
<Input v-model="name" style="width:150px;" :border="false" placeholder="(支持xls、xlsx格式)" clearable disabled/>
|
|
19
|
+
<Input v-model="name" style="width:150px;" :border="false" :placeholder="$t('(支持xls、xlsx格式)')" clearable disabled/>
|
|
20
20
|
</Col>
|
|
21
21
|
</Row>
|
|
22
22
|
<Row type="flex" justify="center" :gutter="10">
|
|
23
23
|
<Col>
|
|
24
24
|
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
25
|
-
<Radio label="all"
|
|
26
|
-
<Radio label="add"
|
|
25
|
+
<Radio label="all">{{ $t('全量导入') }}</Radio>
|
|
26
|
+
<Radio label="add">{{ $t('增量导入') }}</Radio>
|
|
27
27
|
</RadioGroup>
|
|
28
28
|
<Upload ref="upload"
|
|
29
29
|
:before-upload="handleUpload"
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
:on-success="handleSuccess"
|
|
34
34
|
:show-upload-list="false"
|
|
35
35
|
:action="url">
|
|
36
|
-
<Button style="width:150px;"
|
|
36
|
+
<Button style="width:150px;">{{ $t('选择文件') }}</Button>
|
|
37
37
|
</Upload>
|
|
38
38
|
</Col>
|
|
39
39
|
</Row>
|
|
40
40
|
</div>
|
|
41
41
|
<Spin v-show="loading" fix>
|
|
42
42
|
<Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
|
|
43
|
-
<div
|
|
43
|
+
<div>{{ $t('导入中') }}</div>
|
|
44
44
|
</Spin>
|
|
45
45
|
</div>
|
|
46
46
|
</Modal>
|
|
47
47
|
</template>
|
|
48
48
|
<template v-if="modeltype === 'down'">
|
|
49
|
-
<Modal v-model="showUpload" title="选择模版" @on-ok="downTemplate" class-name="vertical-center-modal—bill">
|
|
49
|
+
<Modal v-model="showUpload" :title="$t('选择模版')" @on-ok="downTemplate" class-name="vertical-center-modal—bill">
|
|
50
50
|
<RadioGroup v-model="type">
|
|
51
51
|
<Radio v-for="(item,index) in myConfig.typeData" :key="index" :label="item.code">
|
|
52
52
|
<span>{{item.name}}</span>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<template v-if="modeltype === 'export'">
|
|
58
58
|
<Modal
|
|
59
59
|
v-model="showUpload"
|
|
60
|
-
title="导出选择"
|
|
60
|
+
:title="$t('导出选择')"
|
|
61
61
|
@on-ok="confirmExport"
|
|
62
62
|
class-name="vertical-center-modal—bill"
|
|
63
63
|
>
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
117
117
|
if (this.name) {
|
|
118
118
|
return this.name;
|
|
119
119
|
} else {
|
|
120
|
-
return '(支持xls、xlsx格式)';
|
|
120
|
+
return this.$t('(支持xls、xlsx格式)');
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
url() {
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
164
164
|
|
|
165
165
|
confirmExport() {
|
|
166
166
|
if (!this.type) {
|
|
167
|
-
this.$Message.error(
|
|
167
|
+
this.$Message.error(this.$t('请选择导出类型'));
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
let newParam = Object.assign({}, this.param);
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
},
|
|
244
244
|
handleFormatError (file) {
|
|
245
245
|
let type = this.myConfig.fileType.join(',');
|
|
246
|
-
this.alert('文件['
|
|
246
|
+
this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
|
|
247
247
|
},
|
|
248
248
|
handleSuccess(res) {
|
|
249
249
|
if (res && Number(res.returncode) !== 0) {
|
|
@@ -261,7 +261,7 @@ export default {
|
|
|
261
261
|
if (this.$parent.doImportSuccess) {
|
|
262
262
|
this.$parent.doImportSuccess();
|
|
263
263
|
}
|
|
264
|
-
this.alert(res.elapsed,'导入成功');
|
|
264
|
+
this.alert(res.elapsed,this.$t('导入成功'));
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
this.loading = false;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<Tooltip placement="top">
|
|
40
40
|
<template #content>
|
|
41
41
|
<div>
|
|
42
|
-
<span style="font-size: 12px"> 表头设计 </span>
|
|
42
|
+
<span style="font-size: 12px"> {{ $t('表头设计') }} </span>
|
|
43
43
|
</div>
|
|
44
44
|
</template>
|
|
45
45
|
<p style="cursor: pointer" @click.stop="openColSet">
|
|
@@ -250,7 +250,7 @@ export default {
|
|
|
250
250
|
this.rowBtnData = btns;
|
|
251
251
|
}
|
|
252
252
|
if (this.rowBtnData.length > 0) {
|
|
253
|
-
this.actionConfig.label =
|
|
253
|
+
this.actionConfig.label = this.$t('操作');
|
|
254
254
|
this.actionConfig.key = "actionbtn";
|
|
255
255
|
this.actionConfig.align = "center";
|
|
256
256
|
this.actionConfig.render = this.actionRender;
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
if (obj.name === 'saveData') {
|
|
124
124
|
let flag = this.checkValidate();
|
|
125
125
|
if (flag) {
|
|
126
|
-
this.alert('必填项不允许为空');
|
|
126
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
127
127
|
return false;
|
|
128
128
|
}
|
|
129
129
|
obj.para = this.$refs.grid.getChangeData();
|
|
@@ -137,12 +137,12 @@ export default {
|
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
if (obj.name === 'delData') {
|
|
140
|
-
let text = '删除';
|
|
140
|
+
let text = this.$t('删除');
|
|
141
141
|
obj.para = this.$refs.grid.getSelection();
|
|
142
142
|
let self = this;
|
|
143
143
|
self.$Modal.confirm({
|
|
144
|
-
title:'确认',
|
|
145
|
-
content:'是否确认'
|
|
144
|
+
title:this.$t('确认'),
|
|
145
|
+
content:this.$t('是否确认{text}数据?', { text: text }),
|
|
146
146
|
onOk:() => {
|
|
147
147
|
obj.para.forEach(el => {
|
|
148
148
|
if (obj.name === 'delData') {
|
|
@@ -29,14 +29,14 @@ export default {
|
|
|
29
29
|
myConfig:{
|
|
30
30
|
titleType:2,
|
|
31
31
|
divStyle:'padding:5px',
|
|
32
|
-
title:'查询条件'
|
|
32
|
+
title:this.$t('查询条件')
|
|
33
33
|
},
|
|
34
34
|
menuToolbar:{},
|
|
35
35
|
gridToolbar:{},
|
|
36
36
|
frontBtn: [{
|
|
37
|
-
name:'searchData',text:'查询',icon:'custom-search'
|
|
37
|
+
name:'searchData',text:this.$t('查询'),icon:'custom-search'
|
|
38
38
|
},{
|
|
39
|
-
name:'clearData',text:'清除',icon:'custom-clean'
|
|
39
|
+
name:'clearData',text:this.$t('清除'),icon:'custom-clean'
|
|
40
40
|
}],
|
|
41
41
|
birtUrl:'',
|
|
42
42
|
iframeUrl:'',
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
});
|
|
91
91
|
this.menuToolbar.items = frontBtn.concat(this.menuToolbar.items);
|
|
92
92
|
this.menuToolbar.mainButton = 'searchData';
|
|
93
|
-
this.menuToolbar.mainButtonText ='查询';
|
|
93
|
+
this.menuToolbar.mainButtonText =this.$t('查询');
|
|
94
94
|
this.menuToolbar.ignoreModule = ['searchData','clearData'];
|
|
95
95
|
this.setReportUrl();
|
|
96
96
|
},
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
114
114
|
this.$refs.form.checkValidate();
|
|
115
115
|
let flag = this.$refs.form.isError();
|
|
116
116
|
if (flag) {
|
|
117
|
-
this.alert('必填项不允许为空');
|
|
117
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
118
118
|
return false;
|
|
119
119
|
}
|
|
120
120
|
let data = this.$refs.form.getData();
|