ocpview-pro 0.1.6 → 0.1.8
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 +3599 -2520
- 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 +16 -7
- 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 +16 -7
- 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 +60 -57
- 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/index.js +1 -1
- 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 +33 -21
- 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 +2 -2
- 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
- package/src/plugins/vxeTable/index.js +1 -1
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
<Card :padding="0">
|
|
3
3
|
<FormCardBox ref="form" :config="myConfig" :dictData="dictData" >
|
|
4
4
|
<template v-if="btnTypeValue === '1'" #btn>
|
|
5
|
-
<a v-if="!editFlag && !readOnly" href="#" @click.prevent="edit"
|
|
6
|
-
<a style="margin-left: 10px;" v-if="!editFlag && !readOnly" href="#" @click.prevent="del"
|
|
5
|
+
<a v-if="!editFlag && !readOnly" href="#" @click.prevent="edit">{{ $t('编辑') }}</a>
|
|
6
|
+
<a style="margin-left: 10px;" v-if="!editFlag && !readOnly" href="#" @click.prevent="del">{{ $t('删除') }}</a>
|
|
7
7
|
</template>
|
|
8
8
|
<template v-else-if="btnTypeValue === '2'" #btn>
|
|
9
|
-
<a href="#" @click.prevent="del"
|
|
9
|
+
<a href="#" @click.prevent="del">{{ $t('删除') }}</a>
|
|
10
10
|
</template>
|
|
11
11
|
<template v-else #btn>
|
|
12
|
-
<a v-if="showBtn && !btnReadOnly" href="#" @click.prevent="editStatic"
|
|
13
|
-
<span v-if="showBtn && btnReadOnly"
|
|
12
|
+
<a v-if="showBtn && !btnReadOnly" href="#" @click.prevent="editStatic">{{ $t('编辑') }}</a>
|
|
13
|
+
<span v-if="showBtn && btnReadOnly" >{{ $t('编辑') }} </span>
|
|
14
14
|
</template>
|
|
15
15
|
</FormCardBox>
|
|
16
16
|
<div v-if="showChildrenGrid">
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
<Row v-if="btnTypeValue === '1' && editFlag" type="flex" justify="center" align="middle" style="margin-top: 10px;margin-bottom: 10px;" :gutter="16">
|
|
20
20
|
<Col>
|
|
21
|
-
<Button type="primary" @click="save"
|
|
22
|
-
<Button style="margin-left: 20px;" @click="cancel"
|
|
21
|
+
<Button type="primary" @click="save">{{ $t('录入完成') }}</Button>
|
|
22
|
+
<Button style="margin-left: 20px;" @click="cancel">{{ $t('放弃') }}</Button>
|
|
23
23
|
</Col>
|
|
24
24
|
</Row>
|
|
25
25
|
</Card>
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
generalOrientation:false,
|
|
32
32
|
showSummary:false,
|
|
33
33
|
showSumGroup:false,
|
|
34
|
-
sumText:'合计',
|
|
34
|
+
sumText:this.$t('合计'),
|
|
35
35
|
pageSizeNum:'',
|
|
36
36
|
adjustHeight:0,
|
|
37
37
|
items:[],
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
delRowAction:[{
|
|
69
69
|
iconcls: 'row',
|
|
70
70
|
name: 'delRow',
|
|
71
|
-
text: '删除',
|
|
71
|
+
text: this.$t('删除'),
|
|
72
72
|
type:'text'
|
|
73
73
|
}],
|
|
74
74
|
operFixedFlag:true,
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
251
251
|
if (this.myConfig.showIndex) {
|
|
252
252
|
if (this.myConfig.showSumGroup) {
|
|
253
253
|
let indexConfig = {
|
|
254
|
-
label: '行号',
|
|
254
|
+
label: this.$t('行号'),
|
|
255
255
|
name: 'sumindex',
|
|
256
256
|
type: 'TextBox',
|
|
257
257
|
align: 'center',
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
265
265
|
index.type = 'index';
|
|
266
266
|
index.key = 'index';
|
|
267
267
|
index.width = 45;
|
|
268
|
-
index.title = '行号';
|
|
268
|
+
index.title = this.$t('行号');
|
|
269
269
|
index.align = 'center';
|
|
270
270
|
if (this.myConfig.headClassName !== undefined) {
|
|
271
271
|
index.className = this.myConfig.headClassName;
|
|
@@ -281,7 +281,7 @@ export default {
|
|
|
281
281
|
initOperColumn(columns) {
|
|
282
282
|
if (this.showRowAction || this.showDelRow) {
|
|
283
283
|
let action ={};
|
|
284
|
-
action.title = '操作';
|
|
284
|
+
action.title = this.$t('操作');
|
|
285
285
|
if (this.myConfig.headClassName !== undefined) {
|
|
286
286
|
action.className = this.myConfig.headClassName;
|
|
287
287
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</Card>
|
|
29
29
|
</div>
|
|
30
30
|
</Row>
|
|
31
|
-
<Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" title="编辑" @on-ok="editRow">
|
|
31
|
+
<Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" :title="$t('编辑')" @on-ok="editRow">
|
|
32
32
|
<div>
|
|
33
33
|
<ExpandRow ref="rowForm" :config="myConfig" :dictData="dictData"/>
|
|
34
34
|
</div>
|
|
@@ -47,6 +47,15 @@ export default {
|
|
|
47
47
|
focusKey: null,
|
|
48
48
|
};
|
|
49
49
|
},
|
|
50
|
+
created() {
|
|
51
|
+
this.myConfig.delBatchBtnName = this.$t('删除');
|
|
52
|
+
this.myConfig.addBtnName = this.$t('新增');
|
|
53
|
+
this.myConfig.editBtnName = this.$t('编辑');
|
|
54
|
+
this.myConfig.cancelBtnName = this.$t('放弃');
|
|
55
|
+
this.delBatchBtnName = this.$t('删除');
|
|
56
|
+
this.addBtnName = this.$t('新增');
|
|
57
|
+
this.rowAction[0].text = this.$t('编辑');
|
|
58
|
+
},
|
|
50
59
|
computed: {
|
|
51
60
|
colKeys() {
|
|
52
61
|
return this.soltTableColumns.map(c => c.key);
|
|
@@ -139,7 +148,7 @@ export default {
|
|
|
139
148
|
}
|
|
140
149
|
}
|
|
141
150
|
if (data.length === 0) {
|
|
142
|
-
this.alert('请选择');
|
|
151
|
+
this.alert(this.$t('请选择'));
|
|
143
152
|
} else {
|
|
144
153
|
temp.action = 'viewgrid_ok';
|
|
145
154
|
temp.rows = data;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</Col>
|
|
18
18
|
<Col v-if="showHelpBtn">
|
|
19
19
|
<a href="#" @click.prevent="openHelp">
|
|
20
|
-
<Tooltip content="帮助中心" placement="left">
|
|
20
|
+
<Tooltip :content="$t('帮助中心')" placement="left">
|
|
21
21
|
<CommonIcon size="32" color="#2d8cf0" type="md-help-circle" />
|
|
22
22
|
</Tooltip>
|
|
23
23
|
</a>
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
</Col>
|
|
74
74
|
<Col span= '2'>
|
|
75
75
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
76
|
-
<Tooltip content="删除" placement="left">
|
|
76
|
+
<Tooltip :content="$t('删除')" placement="left">
|
|
77
77
|
<Button type="primary" size="small" icon="ios-arrow-back" :disabled="!rightActive" @click="moveToLeft"></Button>
|
|
78
78
|
</Tooltip>
|
|
79
79
|
</Row>
|
|
80
80
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
81
|
-
<Tooltip content="添加" placement="right">
|
|
81
|
+
<Tooltip :content="$t('添加')" placement="right">
|
|
82
82
|
<Button type="primary" size="small" icon="ios-arrow-forward" :disabled="!leftActive" @click="moveToRight"></Button>
|
|
83
83
|
</Tooltip>
|
|
84
84
|
</Row>
|
|
@@ -24,8 +24,8 @@ export default {
|
|
|
24
24
|
headStyle:'padding-bottom: 10px;padding-top: 10px;',
|
|
25
25
|
multiSelectGrid:false,
|
|
26
26
|
multiGridCol:11,
|
|
27
|
-
multiGridTitle:'已选择',
|
|
28
|
-
gridTitle:'待选择',
|
|
27
|
+
multiGridTitle:this.$t('已选择'),
|
|
28
|
+
gridTitle:this.$t('待选择'),
|
|
29
29
|
highLightRow:true,
|
|
30
30
|
dynamicColumnFlag:false,
|
|
31
31
|
dynameicColumnConfig: {
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
dynameicColumnValue:'',
|
|
35
35
|
dynameicColumnValueTitle:'',
|
|
36
36
|
dynameicColumnValuePro:{},
|
|
37
|
-
dynameicColumnSumLable:'动态合计'
|
|
37
|
+
dynameicColumnSumLable:this.$t('动态合计')
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
multiGridCol:11,
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
if (data.length === 0) {
|
|
140
|
-
this.alert('请选择');
|
|
140
|
+
this.alert(this.$t('请选择'));
|
|
141
141
|
} else {
|
|
142
142
|
temp.rows = data;
|
|
143
143
|
this.$emit('conditionAction',temp);
|
|
@@ -455,7 +455,7 @@ export default {
|
|
|
455
455
|
if (obj.name !== 'addData') {
|
|
456
456
|
let data = this.getSelection();
|
|
457
457
|
if (data.length === 0) {
|
|
458
|
-
this.alert('请至少选择一行');
|
|
458
|
+
this.alert(this.$t('请至少选择一行'));
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
461
|
obj.data= data;
|
|
@@ -493,7 +493,7 @@ export default {
|
|
|
493
493
|
},
|
|
494
494
|
export(asyncExport,afterFun) {
|
|
495
495
|
if(this.data.length == 0){
|
|
496
|
-
this.alert('请先查询数据');
|
|
496
|
+
this.alert(this.$t('请先查询数据'));
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
499
|
let _param = this.getSearchParam();
|
|
@@ -548,7 +548,7 @@ export default {
|
|
|
548
548
|
if (afterFun) {
|
|
549
549
|
afterFun();
|
|
550
550
|
} else {
|
|
551
|
-
this.alert('文件正在生成,请稍后');
|
|
551
|
+
this.alert(this.$t('文件正在生成,请稍后'));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
},null);
|
|
@@ -705,7 +705,7 @@ export default {
|
|
|
705
705
|
index.type = 'index';
|
|
706
706
|
index.key = 'index';
|
|
707
707
|
index.width = 45;
|
|
708
|
-
index.title = '行号';
|
|
708
|
+
index.title = this.$t('行号');
|
|
709
709
|
index.align = 'center';
|
|
710
710
|
columns.push(index);
|
|
711
711
|
},
|
|
@@ -846,7 +846,7 @@ export default {
|
|
|
846
846
|
if (this.myConfig.dynameicColumnConfig.dynameicColumnSumLable) {
|
|
847
847
|
temp.label = this.myConfig.dynameicColumnConfig.dynameicColumnSumLable;
|
|
848
848
|
} else {
|
|
849
|
-
temp.label = '动态合计';
|
|
849
|
+
temp.label = this.$t('动态合计');
|
|
850
850
|
}
|
|
851
851
|
temp.type='NumberBox';
|
|
852
852
|
temp.contentAlign = 'right';
|
|
@@ -1111,7 +1111,7 @@ export default {
|
|
|
1111
1111
|
if (!modulecode) {
|
|
1112
1112
|
modulecode = this.$Method.getUrlParam('billmoduleid');
|
|
1113
1113
|
}
|
|
1114
|
-
let fileName = this.$Method.formatDate(new Date(),'yyyyMMddhhmmss') +'(
|
|
1114
|
+
let fileName = this.$Method.formatDate(new Date(),'yyyyMMddhhmmss') +this.$t('({count}条).xlsx', { count: this.data.length });
|
|
1115
1115
|
if (modulecode) {
|
|
1116
1116
|
fileName = modulecode + '_' + fileName;
|
|
1117
1117
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="height:100%;overflow: auto;">
|
|
3
3
|
<Row type="flex" justify="end" align="middle">
|
|
4
|
-
<Button size="small" @click="exportMap"
|
|
4
|
+
<Button size="small" @click="exportMap">{{ $t('打印') }}</Button>
|
|
5
5
|
</Row>
|
|
6
6
|
<div v-if="reset" ref="divMap" id="map" class="efuture-map" :style="divStyle"></div>
|
|
7
7
|
</div>
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
}
|
|
82
82
|
this.getMapGeojson(map);
|
|
83
83
|
} else {
|
|
84
|
-
this.alert('楼层未导入平面图,请重新选择');
|
|
84
|
+
this.alert(this.$t('楼层未导入平面图,请重新选择'));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
type="text"
|
|
132
132
|
:disabled="myConfig.readOnly"
|
|
133
133
|
@click="handleAddRow"
|
|
134
|
-
|
|
134
|
+
>{{ $t('添加') }}</Button
|
|
135
135
|
>
|
|
136
136
|
</Col>
|
|
137
137
|
<Col v-if="showAddBtn && showDelBatchBtn">
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
type="text"
|
|
148
148
|
:disabled="myConfig.readOnly"
|
|
149
149
|
@click="delBatchRow"
|
|
150
|
-
|
|
150
|
+
>{{ $t('删除') }}</Button
|
|
151
151
|
>
|
|
152
152
|
</Col>
|
|
153
153
|
</Row>
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
style="margin-left: 10px"
|
|
223
223
|
color="#D5882E"
|
|
224
224
|
/>
|
|
225
|
-
<span style="margin-left: 4px; color: #d5882e"
|
|
225
|
+
<span style="margin-left: 4px; color: #d5882e">{{ $t('参考数据') }}</span>
|
|
226
226
|
</p>
|
|
227
227
|
<Row
|
|
228
228
|
v-show="showGrid && showEffectValue && showEffectGrid"
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
v-if="!editRowFlag"
|
|
262
262
|
v-model="showEditRowForm"
|
|
263
263
|
width="90%"
|
|
264
|
-
title="编辑"
|
|
264
|
+
:title="$t('编辑')"
|
|
265
265
|
@on-ok="editRow"
|
|
266
266
|
>
|
|
267
267
|
<div>
|
|
@@ -397,7 +397,7 @@ export default {
|
|
|
397
397
|
previous[item.name] = [
|
|
398
398
|
{
|
|
399
399
|
required: true,
|
|
400
|
-
message:
|
|
400
|
+
message: (item.label ? this.$t(item.label) : item.label) + this.$t('必填'),
|
|
401
401
|
},
|
|
402
402
|
];
|
|
403
403
|
}
|
|
@@ -716,7 +716,7 @@ export default {
|
|
|
716
716
|
return [
|
|
717
717
|
columns.map((item, index) => {
|
|
718
718
|
if (index === sumSub) {
|
|
719
|
-
return
|
|
719
|
+
return this.$t('合计');
|
|
720
720
|
}
|
|
721
721
|
if (this.sumFields.includes(item.field)) {
|
|
722
722
|
const sumData = this.handleSumField({
|
package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
class="efuture-hide-text"
|
|
18
18
|
>
|
|
19
19
|
<Icon type="ios-arrow-up" />
|
|
20
|
-
<span> 收起查询条件 </span>
|
|
20
|
+
<span> {{ $t('收起查询条件') }} </span>
|
|
21
21
|
</p>
|
|
22
22
|
<p v-else @click.stop="hide" class="efuture-hide-text">
|
|
23
23
|
<Icon type="ios-arrow-down" />
|
|
24
|
-
<span
|
|
24
|
+
<span>{{ $t('展开查询条件') }}</span>
|
|
25
25
|
</p>
|
|
26
26
|
</div>
|
|
27
27
|
</template>
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
customIcon="iconfont icon-custom-search"
|
|
22
22
|
type="primary"
|
|
23
23
|
@click="search"
|
|
24
|
-
|
|
24
|
+
>{{ $t('查询') }}</Button
|
|
25
25
|
>
|
|
26
26
|
</Col>
|
|
27
27
|
<Col>
|
|
28
28
|
<Button
|
|
29
29
|
customIcon="iconfont icon-custom-reset"
|
|
30
30
|
@click="clear"
|
|
31
|
-
|
|
31
|
+
>{{ $t('重置') }}</Button
|
|
32
32
|
>
|
|
33
33
|
</Col>
|
|
34
34
|
<Col>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<Button
|
|
48
48
|
customIcon="iconfont icon-custom-filter"
|
|
49
49
|
@click="updataFilterScene"
|
|
50
|
-
|
|
50
|
+
>{{ $t('高级查询') }}</Button
|
|
51
51
|
>
|
|
52
52
|
<Button
|
|
53
53
|
v-if="!filterSceneFlag && sceneFlag"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
customIcon="iconfont icon-custom-add"
|
|
96
96
|
v-if="addDataBtnFlag"
|
|
97
97
|
@click="addData"
|
|
98
|
-
|
|
98
|
+
>{{ $t('新增') }}</Button
|
|
99
99
|
>
|
|
100
100
|
<Button
|
|
101
101
|
v-if="!btnFlag && moreBtnFlag"
|
|
@@ -144,7 +144,14 @@
|
|
|
144
144
|
:dictData="dictData"
|
|
145
145
|
/>
|
|
146
146
|
<!-- 列表快捷查询 -->
|
|
147
|
-
<
|
|
147
|
+
<Modal
|
|
148
|
+
v-model="filterFlag"
|
|
149
|
+
:title="$t('高级查询')"
|
|
150
|
+
:width="90"
|
|
151
|
+
footer-hide
|
|
152
|
+
:styles="{ top: '20px' }"
|
|
153
|
+
@on-cancel="onFilterModalCancel"
|
|
154
|
+
>
|
|
148
155
|
<BillConditionsBox
|
|
149
156
|
ref="filter"
|
|
150
157
|
@doAction="doAction"
|
|
@@ -152,7 +159,7 @@
|
|
|
152
159
|
:config="config"
|
|
153
160
|
:dictData="dictData"
|
|
154
161
|
/>
|
|
155
|
-
</
|
|
162
|
+
</Modal>
|
|
156
163
|
</div>
|
|
157
164
|
</template>
|
|
158
165
|
<script>
|
|
@@ -246,7 +253,9 @@ export default {
|
|
|
246
253
|
}
|
|
247
254
|
},
|
|
248
255
|
conditionAction(obj) {
|
|
249
|
-
|
|
256
|
+
if (obj.name === 'condition_searchFilter' || obj.name === 'condition_closeFilter') {
|
|
257
|
+
this.filterFlag = false;
|
|
258
|
+
}
|
|
250
259
|
let data = this.$refs.filter.getData();
|
|
251
260
|
this.updateScene(data.scenename, data);
|
|
252
261
|
this.$emit("conditionAction", obj);
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
align="middle"
|
|
173
173
|
style="padding: 5px"
|
|
174
174
|
>
|
|
175
|
-
<Tooltip content="删除" placement="left">
|
|
175
|
+
<Tooltip :content="$t('删除')" placement="left">
|
|
176
176
|
<Button
|
|
177
177
|
type="primary"
|
|
178
178
|
size="small"
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
align="middle"
|
|
189
189
|
style="padding: 5px"
|
|
190
190
|
>
|
|
191
|
-
<Tooltip content="添加" placement="right">
|
|
191
|
+
<Tooltip :content="$t('添加')" placement="right">
|
|
192
192
|
<Button
|
|
193
193
|
type="primary"
|
|
194
194
|
size="small"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
class-name="efuture-billapprovalmainframe"
|
|
57
57
|
v-model="showApproval"
|
|
58
58
|
fullscreen
|
|
59
|
-
title="报批单"
|
|
59
|
+
:title="$t('报批单')"
|
|
60
60
|
footer-hide
|
|
61
61
|
>
|
|
62
62
|
<iframe
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
></iframe>
|
|
68
68
|
</Modal>
|
|
69
69
|
<Modal
|
|
70
|
-
title="单据日志"
|
|
70
|
+
:title="$t('单据日志')"
|
|
71
71
|
v-model="showBilloperlog"
|
|
72
72
|
:width="logcurrentWidth"
|
|
73
73
|
:footer-hide="true"
|
|
@@ -242,12 +242,12 @@ export default {
|
|
|
242
242
|
let flag = await this.$refs.form.checkValidate();
|
|
243
243
|
// console.log("saveData:", flag);
|
|
244
244
|
if (flag) {
|
|
245
|
-
this.alert(
|
|
245
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
flag = this.$refs.form.isEdit();
|
|
249
249
|
if (flag) {
|
|
250
|
-
this.alert(
|
|
250
|
+
this.alert(this.$t('存在数据未确认'));
|
|
251
251
|
return false;
|
|
252
252
|
}
|
|
253
253
|
obj.para = this.$refs.form.getChangeData();
|
|
@@ -292,18 +292,18 @@ export default {
|
|
|
292
292
|
obj.name === "cancelData" ||
|
|
293
293
|
obj.name === "revokeData"
|
|
294
294
|
) {
|
|
295
|
-
let text =
|
|
295
|
+
let text = this.$t('删除');
|
|
296
296
|
if (obj.name === "auditData") {
|
|
297
|
-
text =
|
|
297
|
+
text = this.$t('审核');
|
|
298
298
|
obj.para = { billno: data.billno };
|
|
299
299
|
}
|
|
300
300
|
if (obj.name === "cancelData") {
|
|
301
|
-
text =
|
|
301
|
+
text = this.$t('作废');
|
|
302
302
|
obj.para = { billno: data.billno };
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
if (obj.name === "revokeData") {
|
|
306
|
-
text =
|
|
306
|
+
text = this.$t('撤回');
|
|
307
307
|
obj.para = { billno: data.billno };
|
|
308
308
|
}
|
|
309
309
|
if (this.$parent.getActionName) {
|
|
@@ -312,10 +312,10 @@ export default {
|
|
|
312
312
|
text = name;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
let info =
|
|
315
|
+
let info = this.$t('确定是否{text}数据?', { text: text });
|
|
316
316
|
let self = this;
|
|
317
317
|
self.$Modal.confirm({
|
|
318
|
-
title:
|
|
318
|
+
title: this.$t('确认'),
|
|
319
319
|
content: info,
|
|
320
320
|
onOk: () => {
|
|
321
321
|
self.$emit("doAction", obj);
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
customIcon="iconfont icon-custom-search"
|
|
20
20
|
type="primary"
|
|
21
21
|
@click="search"
|
|
22
|
-
|
|
22
|
+
>{{ $t('查询') }}</Button
|
|
23
23
|
>
|
|
24
24
|
</Col>
|
|
25
25
|
<Col>
|
|
26
26
|
<Button
|
|
27
27
|
customIcon="iconfont icon-custom-reset"
|
|
28
28
|
@click="clear"
|
|
29
|
-
|
|
29
|
+
>{{ $t('重置') }}</Button
|
|
30
30
|
>
|
|
31
31
|
</Col>
|
|
32
32
|
<Col>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<Button
|
|
49
49
|
customIcon="iconfont icon-custom-filter"
|
|
50
50
|
@click="updataFilterScene"
|
|
51
|
-
|
|
51
|
+
>{{ $t('高级查询') }}</Button
|
|
52
52
|
>
|
|
53
53
|
<Button
|
|
54
54
|
v-if="!filterSceneFlag && sceneFlag"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
customIcon="iconfont icon-custom-add"
|
|
93
93
|
v-if="addDataBtnFlag"
|
|
94
94
|
@click="addData"
|
|
95
|
-
|
|
95
|
+
>{{ $t('新增') }}</Button
|
|
96
96
|
>
|
|
97
97
|
<Button
|
|
98
98
|
v-if="
|
|
@@ -143,7 +143,14 @@
|
|
|
143
143
|
</Col>
|
|
144
144
|
</Row>
|
|
145
145
|
</Card>
|
|
146
|
-
<
|
|
146
|
+
<Modal
|
|
147
|
+
v-model="filterFlag"
|
|
148
|
+
:title="$t('高级查询')"
|
|
149
|
+
:width="90"
|
|
150
|
+
footer-hide
|
|
151
|
+
:styles="{ top: '20px' }"
|
|
152
|
+
@on-cancel="onFilterModalCancel"
|
|
153
|
+
>
|
|
147
154
|
<BillConditionsBox
|
|
148
155
|
ref="filter"
|
|
149
156
|
@doAction="doAction"
|
|
@@ -151,7 +158,7 @@
|
|
|
151
158
|
:config="config"
|
|
152
159
|
:dictData="dictData"
|
|
153
160
|
/>
|
|
154
|
-
</
|
|
161
|
+
</Modal>
|
|
155
162
|
</div>
|
|
156
163
|
</template>
|
|
157
164
|
<script>
|
|
@@ -245,7 +252,9 @@ export default {
|
|
|
245
252
|
}
|
|
246
253
|
},
|
|
247
254
|
conditionAction(obj) {
|
|
248
|
-
|
|
255
|
+
if (obj.name === 'condition_searchFilter' || obj.name === 'condition_closeFilter') {
|
|
256
|
+
this.filterFlag = false;
|
|
257
|
+
}
|
|
249
258
|
let data = this.$refs.filter.getData();
|
|
250
259
|
this.updateScene(data.scenename, data);
|
|
251
260
|
this.$emit("conditionAction", obj);
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
class-name="efuture-billapprovalmainframe"
|
|
43
43
|
v-model="showApproval"
|
|
44
44
|
fullscreen
|
|
45
|
-
title="报批单"
|
|
45
|
+
:title="$t('报批单')"
|
|
46
46
|
footer-hide
|
|
47
47
|
>
|
|
48
48
|
<iframe
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
></iframe>
|
|
54
54
|
</Modal>
|
|
55
55
|
<Modal
|
|
56
|
-
title="单据日志"
|
|
56
|
+
:title="$t('单据日志')"
|
|
57
57
|
v-model="showBilloperlog"
|
|
58
58
|
:width="logcurrentWidth"
|
|
59
59
|
:footer-hide="true"
|
|
@@ -228,12 +228,12 @@ export default {
|
|
|
228
228
|
if (obj.name === "saveData") {
|
|
229
229
|
let flag = this.$refs.form.checkValidate();
|
|
230
230
|
if (flag) {
|
|
231
|
-
this.alert("必填项不允许为空");
|
|
231
|
+
this.alert(this.$t("必填项不允许为空"));
|
|
232
232
|
return false;
|
|
233
233
|
}
|
|
234
234
|
flag = this.$refs.form.isEdit();
|
|
235
235
|
if (flag) {
|
|
236
|
-
this.alert("存在数据未确认");
|
|
236
|
+
this.alert(this.$t("存在数据未确认"));
|
|
237
237
|
return false;
|
|
238
238
|
}
|
|
239
239
|
obj.para = this.$refs.form.getChangeData();
|
|
@@ -278,18 +278,18 @@ export default {
|
|
|
278
278
|
obj.name === "cancelData" ||
|
|
279
279
|
obj.name === "revokeData"
|
|
280
280
|
) {
|
|
281
|
-
let text = "删除";
|
|
281
|
+
let text = this.$t("删除");
|
|
282
282
|
if (obj.name === "auditData") {
|
|
283
|
-
text = "审核";
|
|
283
|
+
text = this.$t("审核");
|
|
284
284
|
obj.para = { billno: data.billno };
|
|
285
285
|
}
|
|
286
286
|
if (obj.name === "cancelData") {
|
|
287
|
-
text = "作废";
|
|
287
|
+
text = this.$t("作废");
|
|
288
288
|
obj.para = { billno: data.billno };
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
if (obj.name === "revokeData") {
|
|
292
|
-
text = "撤回";
|
|
292
|
+
text = this.$t("撤回");
|
|
293
293
|
obj.para = { billno: data.billno };
|
|
294
294
|
}
|
|
295
295
|
if (this.$parent.getActionName) {
|
|
@@ -298,10 +298,10 @@ export default {
|
|
|
298
298
|
text = name;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
let info =
|
|
301
|
+
let info = this.$t('确定是否{text}数据?', { text: text });
|
|
302
302
|
let self = this;
|
|
303
303
|
self.$Modal.confirm({
|
|
304
|
-
title: "确认",
|
|
304
|
+
title: this.$t("确认"),
|
|
305
305
|
content: info,
|
|
306
306
|
onOk: () => {
|
|
307
307
|
self.$emit("doAction", obj);
|