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.
Files changed (88) hide show
  1. package/dist/ocpviewplus.min.esm.js +2309 -1260
  2. package/dist/ocpviewplus.min.js +17 -17
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/src/components/base/controlbox.vue +3 -3
  6. package/src/components/base/load.js +1 -1
  7. package/src/components/conditionbox/conditionbase.vue +3 -3
  8. package/src/components/conditionbox/conditionfilterbox.vue +9 -9
  9. package/src/components/conditionbox/conditionselectorbox.vue +52 -50
  10. package/src/components/conditionbox/queryconditionbox.vue +2 -2
  11. package/src/components/conditionbox/searchconditionbox.vue +2 -2
  12. package/src/components/conditionbox/searchgrid.vue +87 -86
  13. package/src/components/datebox/DateBoxV1.vue +1 -1
  14. package/src/components/form/detailsbox.vue +5 -3
  15. package/src/components/form/formcardbox.vue +3 -0
  16. package/src/components/form/formcardbox2.vue +3 -0
  17. package/src/components/form/formcardgroupbox.vue +2 -0
  18. package/src/components/form/formdetail.vue +2 -2
  19. package/src/components/form/formdetailtwo.vue +7 -7
  20. package/src/components/grid/basegrid.vue +5 -5
  21. package/src/components/grid/editgrid.vue +1 -1
  22. package/src/components/grid/editgridbase.vue +10 -1
  23. package/src/components/grid/editgridcard.vue +1 -1
  24. package/src/components/grid/viewgrid.vue +3 -3
  25. package/src/components/grid/viewgridbase.vue +10 -10
  26. package/src/components/map/mapbox.vue +2 -2
  27. package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +6 -6
  28. package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue +2 -2
  29. package/src/components/masterplate/RewriteBillListDetails/BillListPanelQueryBar.vue +4 -4
  30. package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +2 -2
  31. package/src/components/masterplate/RewriteBillListDetails/index.vue +10 -10
  32. package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +4 -4
  33. package/src/components/masterplate/RewriteListdetails/indexV2.vue +10 -10
  34. package/src/components/masterplate/RewriteListdetails/indexV3.vue +10 -10
  35. package/src/components/masterplate/appendix.vue +23 -23
  36. package/src/components/masterplate/approval.vue +42 -42
  37. package/src/components/masterplate/base.vue +10 -10
  38. package/src/components/masterplate/billasyncimport.vue +39 -39
  39. package/src/components/masterplate/billconditionbox.vue +11 -11
  40. package/src/components/masterplate/billconditionsbox.vue +8 -8
  41. package/src/components/masterplate/billdetailform.vue +4 -4
  42. package/src/components/masterplate/billimport.vue +12 -12
  43. package/src/components/masterplate/billquerygrid.vue +2 -2
  44. package/src/components/masterplate/billsinglegrid.vue +4 -4
  45. package/src/components/masterplate/birtreport.vue +5 -5
  46. package/src/components/masterplate/contractappendix.vue +27 -27
  47. package/src/components/masterplate/detailbtntoolbar.vue +11 -11
  48. package/src/components/masterplate/detailsbox.vue +7 -7
  49. package/src/components/masterplate/editgridcard.vue +7 -7
  50. package/src/components/masterplate/editgridcard2.vue +5 -5
  51. package/src/components/masterplate/formdetailtwo.vue +8 -8
  52. package/src/components/masterplate/gridcolset.vue +6 -6
  53. package/src/components/masterplate/layouttemplate.vue +3 -3
  54. package/src/components/masterplate/leftlistrightdetails.vue +15 -13
  55. package/src/components/masterplate/leftlistrightlist.vue +24 -18
  56. package/src/components/masterplate/lefttreerightdetails.vue +17 -17
  57. package/src/components/masterplate/levelreport.vue +6 -6
  58. package/src/components/masterplate/listbtntoolbar.vue +3 -3
  59. package/src/components/masterplate/listdetails.vue +45 -45
  60. package/src/components/masterplate/operlog.vue +19 -19
  61. package/src/components/masterplate/promptmessage.vue +1 -1
  62. package/src/components/masterplate/querybar.vue +7 -7
  63. package/src/components/masterplate/report.vue +7 -7
  64. package/src/components/masterplate/rowbtntoolbar.vue +1 -1
  65. package/src/components/masterplate/simpletree.vue +3 -3
  66. package/src/components/masterplate/simpleviewgrid.vue +4 -4
  67. package/src/components/mychart/gauge/gauge.vue +1 -1
  68. package/src/components/numberbox/numberbox.vue +4 -4
  69. package/src/components/numberbox/numberrangebox.vue +11 -11
  70. package/src/components/picturebox/filebox.vue +6 -5
  71. package/src/components/picturebox/uploadbox.vue +3 -3
  72. package/src/components/poptagbox/poptagbox.vue +4 -3
  73. package/src/components/poptextbox/poptextbox.vue +5 -5
  74. package/src/components/richtextbox/editor.vue +36 -36
  75. package/src/components/richtextbox/richtextbox.vue +6 -6
  76. package/src/components/toolbar/toolbar.vue +7 -7
  77. package/src/components/tree/basetree.vue +3 -2
  78. package/src/components/tree/treedatabase.vue +1 -1
  79. package/src/components/upload/billimport.vue +8 -8
  80. package/src/components/videobox/uploadbox.vue +3 -9
  81. package/src/components/videobox/videobox.vue +1 -1
  82. package/src/components/wrichtextbox/editor.vue +26 -26
  83. package/src/index.js +1 -1
  84. package/src/localePlus/en-US.js +331 -1
  85. package/src/localePlus/zh-CN.js +331 -1
  86. package/src/localePlus/zh-TW.js +331 -1
  87. package/src/method/case/case.js +10 -10
  88. package/src/method/const/const.js +1 -1
@@ -40,7 +40,7 @@
40
40
  </template>
41
41
  </Split>
42
42
  </div>
43
- <Modal title="操作日志" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
43
+ <Modal :title="$t('操作日志')" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
44
44
  <BillOperLog ref="billoperlog" :config="billOperLogConfig"/>
45
45
  </Modal>
46
46
  </div>
@@ -112,6 +112,8 @@ export default {
112
112
  },
113
113
  },
114
114
  created() {
115
+ this.myConfig.gridtitle = this.$t('列表');
116
+ this.searchPlaceholder = this.$t('请输入');
115
117
  this.myConfig = Object.assign({}, this.myConfig, this.config);
116
118
  this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
117
119
  this.myConfig.gridConfig.overrideData = this.gridOverrideData;
@@ -170,7 +172,7 @@ export default {
170
172
  },
171
173
  methods: {
172
174
  setLogName() {
173
- this.logName.push({code:this.myConfig.response,name:'主表'});
175
+ this.logName.push({code:this.myConfig.response,name:this.$t('主表')});
174
176
  this.myConfig.detailConfig.formsConfig.items.forEach(el => {
175
177
  this.initLogName(el.items,this.myConfig.response,el.title)
176
178
  });
@@ -233,7 +235,7 @@ export default {
233
235
  this.$refs.billoperlog.setData(this.logData[this.billOperLogConfig.operLogKey],this.logData);
234
236
  this.showBilloperlog = true;
235
237
  } else {
236
- this.alert('未产生日志');
238
+ this.alert(this.$t('未产生日志'));
237
239
  }
238
240
  },
239
241
  search() {
@@ -434,12 +436,12 @@ export default {
434
436
  if (obj.name === 'saveData') {
435
437
  let flag = this.$refs.form.checkValidate();
436
438
  if (flag) {
437
- this.alert('必填项不允许为空');
439
+ this.alert(this.$t('必填项不允许为空'));
438
440
  return false;
439
441
  }
440
442
  flag = this.$refs.form.isEdit();
441
443
  if (flag) {
442
- this.alert('存在数据未确认');
444
+ this.alert(this.$t('存在数据未确认'));
443
445
  return false;
444
446
  }
445
447
  let data = this.$refs.form.getChangeData();
@@ -457,17 +459,17 @@ export default {
457
459
  });
458
460
  obj.para = tempData;
459
461
  } else {
460
- this.alert('没有数据可删除,请检查');
462
+ this.alert(this.$t('没有数据可删除,请检查'));
461
463
  return false;
462
464
  }
463
465
  }
464
466
  obj.onOk = this.onOk;
465
467
  if (obj.name === 'delData') {
466
- let text = '删除';
468
+ let text = this.$t('删除');
467
469
  let self = this;
468
470
  self.$Modal.confirm({
469
- title: '确认',
470
- content: '是否确认' + text + '数据?',
471
+ title: this.$t('确认'),
472
+ content: this.$t('是否确认{text}数据?', { text: text }),
471
473
  onOk: () => {
472
474
  self.$emit('doAction', obj);
473
475
  }
@@ -504,8 +506,8 @@ export default {
504
506
  if (tempflag) {
505
507
  let self = this;
506
508
  self.$Modal.confirm({
507
- title: '确认',
508
- content: '数据存在数据未确认,是否放弃?',
509
+ title: this.$t('确认'),
510
+ content: this.$t('数据存在数据未确认,是否放弃?'),
509
511
  onOk: () => {
510
512
  this.checkChangeData(obj);
511
513
  },
@@ -525,8 +527,8 @@ export default {
525
527
  if (flag) {
526
528
  let self = this;
527
529
  self.$Modal.confirm({
528
- title: '确认',
529
- content: '数据有修改未保存,是否放弃修改?',
530
+ title: this.$t('确认'),
531
+ content: this.$t('数据有修改未保存,是否放弃修改?'),
530
532
  onOk: () => {
531
533
  if (obj.onOk) {
532
534
  obj.onOk();
@@ -9,20 +9,20 @@
9
9
  <div class="efuture-demo-split" :style="'height:' + clientHeight2 +'px'">
10
10
  <Split v-model="myConfig.splitNum">
11
11
  <template #left>
12
- <div class="efuture-demo-split-pane" style="padding:14px 16px;">
12
+ <div class="efuture-demo-split-pane" style="padding:14px 16px;">
13
13
  <Card :padding="0" :bordered="false" dis-hover >
14
- <p style="margin-bottom:10px;">
15
- <span class="efuture-title-verticalline"/> <span style="font-size: 14px;font-weight:bold" v-text="myConfig.gridtitle" />
14
+ <p style="margin-bottom:10px;">
15
+ <span class="efuture-title-verticalline" /> <span style="font-size: 14px;font-weight:bold" v-text="myConfig.gridtitle" />
16
16
  </p>
17
17
  <div ref="para">
18
- <Input :placeholder="searchPlaceholder" v-model="searchValue" search style="width: 98%;margin-top:10xp;margin-bottom:10px" @on-search="search" @on-enter="search"/>
19
- </div>
18
+ <Input :placeholder="searchPlaceholder" v-model="searchValue" search style="width: 100%;margin-top:10xp;margin-bottom:10px" @on-search="search" @on-enter="search"/>
19
+ </div>
20
20
  <SimpleViewGrid ref="grid" :config="myConfig.gridConfig" :dictData="dictData" @rowclick="gridClick"/>
21
21
  </Card>
22
22
  </div>
23
23
  </template>
24
24
  <template #right>
25
- <div class="efuture-demo-split-pane" style="padding:14px 16px;">
25
+ <div class="efuture-demo-split-pane" style="padding:14px 16px;">
26
26
  <Card v-for="tmp in myConfig.detailGridsConfig" :key="'detail_' + tmp.name" v-show="showDetail[tmp.name]" :padding="0" style="padding-left:6px;" :bordered="false" dis-hover >
27
27
  <EditGridCardS :ref="tmp.name" :config="tmp" :dictData="dictData" style="padding-bottom:10px" />
28
28
  </Card>
@@ -107,6 +107,12 @@ export default {
107
107
  }
108
108
  },
109
109
  created() {
110
+ this.myConfig.gridtitle = this.$t('列表');
111
+ this.menuToolbar.items[0].text = this.$t('编辑');
112
+ this.menuToolbar.items[1].text = this.$t('保存');
113
+ this.menuToolbar.items[2].text = this.$t('新增明细');
114
+ this.menuToolbar.items[3].text = this.$t('删除明细');
115
+ this.searchPlaceholder = this.$t('请输入');
110
116
  this.myConfig = Object.assign({}, this.myConfig, this.config);
111
117
  this.myConfig.gridConfig.headStyle = '';
112
118
  this.myConfig.gridConfig.onSelectionChange = this.gridOnSelectionChange;
@@ -136,14 +142,14 @@ export default {
136
142
  }
137
143
  if (!el.title) {
138
144
  let size = index + 1;
139
- el.title = '明细(' + size +')' ;
145
+ el.title = this.$t('明细({size})', { size: size }) ;
140
146
  }
141
147
  el.adjustHeight = 0;
142
148
  if (size > 1) {
143
149
  el.height = 0.5;
144
150
  el.adjustHeight = 124;
145
151
  } else {
146
- el.height = 1;
152
+ el.height = 1;
147
153
  el.adjustHeight = 168;
148
154
  }
149
155
  el.width = 1;
@@ -160,7 +166,7 @@ export default {
160
166
  } else {
161
167
  this.showDetail[el.name] = true;
162
168
  }
163
-
169
+
164
170
  });
165
171
  if (this.myConfig.gridConfig.multiSelect === undefined) {
166
172
  this.myConfig.gridConfig.multiSelect = false;
@@ -182,10 +188,10 @@ export default {
182
188
  }
183
189
  // 处理按钮
184
190
  if (this.myConfig.menuToolbar && this.myConfig.menuToolbar.items) {
185
- this.menuToolbar = this.$Method.copy(this.myConfig.menuToolbar);
186
- }
191
+ this.menuToolbar = this.$Method.copy(this.myConfig.menuToolbar);
192
+ }
187
193
  this.menuToolbar.mainButton = 'editData';
188
- this.menuToolbar.mainButtonText = '修改';
194
+ this.menuToolbar.mainButtonText = this.$t('修改');
189
195
  },
190
196
  methods: {
191
197
  search() {
@@ -326,7 +332,7 @@ export default {
326
332
  self.myConfig.classPrefix + '.get',
327
333
  tmp,
328
334
  function(data) {
329
- result = data[self.myConfig.response];
335
+ result = data[self.myConfig.response];
330
336
  }
331
337
  );
332
338
  return result;
@@ -344,7 +350,7 @@ export default {
344
350
  if (obj.name === 'editData') {
345
351
  let tempData = this.$refs.grid.getSelection();
346
352
  if (tempData.length === 0) {
347
- this.alert('请先选中行');
353
+ this.alert(this.$t('请先选中行'));
348
354
  return ;
349
355
  }
350
356
  this.myConfig.detailGridsConfig.forEach(el => {
@@ -355,7 +361,7 @@ export default {
355
361
  this.$refs.menutoolbar.setAllReadOnly(false);
356
362
  this.$refs.menutoolbar.setReadOnly('editData', true);
357
363
  }
358
-
364
+
359
365
  if (this.$parent[methodAfter]) {
360
366
  this.$parent[methodAfter]();
361
367
  }
@@ -372,7 +378,7 @@ export default {
372
378
  }
373
379
  });
374
380
  if (checkflag) {
375
- this.alert('必填项不允许为空');
381
+ this.alert(this.$t('必填项不允许为空'));
376
382
  return false;
377
383
  }
378
384
  obj.para = [];
@@ -419,8 +425,8 @@ export default {
419
425
  if (tempData && tempData.length>0) {
420
426
  let self = this;
421
427
  self.$Modal.confirm({
422
- title: '确认',
423
- content: '数据存在数据未确认,是否放弃?',
428
+ title: this.$t('确认'),
429
+ content: this.$t('数据存在数据未确认,是否放弃?'),
424
430
  onOk: () => {
425
431
  obj.onOk();
426
432
  },
@@ -49,12 +49,12 @@ export default {
49
49
  data () {
50
50
  return {
51
51
  myConfig:{
52
- gridtitle:'列表',
52
+ gridtitle:this.$t('列表'),
53
53
  billKey:'ph_key',
54
54
  splitNum:0.25,
55
55
  resources:'',
56
56
  className:'',
57
- formTitle:'详情',
57
+ formTitle:this.$t('详情'),
58
58
  adjustHeight:200,
59
59
  treeConfig:{},
60
60
  gridConfig:{},
@@ -66,7 +66,7 @@ export default {
66
66
  menuToolbar:{
67
67
  enablePermissions:true
68
68
  },
69
- searchPlaceholder:'请输入编码或名称',
69
+ searchPlaceholder:this.$t('请输入编码或名称'),
70
70
  showTree:true,
71
71
  ph_key:'',
72
72
  treeSeletedNode:[],
@@ -171,7 +171,7 @@ export default {
171
171
  this.menuToolbar = Object.assign({}, this.menuToolbar, this.myConfig.menuToolbar);
172
172
  }
173
173
  this.menuToolbar.mainButton = 'editData';
174
- this.menuToolbar.mainButtonText = '修改';
174
+ this.menuToolbar.mainButtonText = this.$t('修改');
175
175
  this.myConfig.detailConfig.modetype = '2';
176
176
  this.myConfig.detailConfig.billKey = this.myConfig.billKey;
177
177
  this.myConfig.detailConfig.showAnchorLink = false;
@@ -389,13 +389,13 @@ export default {
389
389
  }
390
390
  if (obj.name === 'editData') {
391
391
  if (this.treeSeletedNode.length === 0) {
392
- this.alert('请先选择节点');
392
+ this.alert(this.$t('请先选择节点'));
393
393
  return false;
394
394
  }
395
395
 
396
396
  let obj = this.$refs.tree.getRootNode();
397
397
  if (obj[this.myConfig.treeConfig.responseCode] === this.treeSeletedNode[0][this.myConfig.treeConfig.responseCode]) {
398
- this.alert('当前节点不允许修改');
398
+ this.alert(this.$t('当前节点不允许修改'));
399
399
  return false;
400
400
  }
401
401
 
@@ -413,12 +413,12 @@ export default {
413
413
  if (obj.name === 'saveData') {
414
414
  let flag = this.$refs.form.checkValidate();
415
415
  if (flag) {
416
- this.alert('必填项不允许为空');
416
+ this.alert(this.$t('必填项不允许为空'));
417
417
  return false;
418
418
  }
419
419
  flag = this.$refs.form.isEdit();
420
420
  if (flag) {
421
- this.alert('存在数据未确认');
421
+ this.alert(this.$t('存在数据未确认'));
422
422
  return false;
423
423
  }
424
424
  let data = this.$refs.form.getChangeData();
@@ -440,14 +440,14 @@ export default {
440
440
  return;
441
441
  }
442
442
  if (obj.name === 'delData') {
443
- let text = '保存';
443
+ let text = this.$t('保存');
444
444
  if (obj.name === 'delData') {
445
- text = '删除';
445
+ text = this.$t('删除');
446
446
  }
447
447
  let self = this;
448
448
  self.$Modal.confirm({
449
- title:'确认',
450
- content:'是否确认'+text+'数据?',
449
+ title:this.$t('确认'),
450
+ content:this.$t('是否确认{text}数据?', { text: text }),
451
451
  onOk:() => {
452
452
  self.$emit('doAction', obj);
453
453
  }
@@ -488,8 +488,8 @@ export default {
488
488
  if (tempflag) {
489
489
  let self = this;
490
490
  self.$Modal.confirm({
491
- title:'确认',
492
- content:'数据存在数据未确认,是否放弃?',
491
+ title:this.$t('确认'),
492
+ content:this.$t('数据存在数据未确认,是否放弃?'),
493
493
  onOk:() => {
494
494
  this.checkChangeData(obj);
495
495
  },
@@ -509,8 +509,8 @@ export default {
509
509
  if (flag) {
510
510
  let self = this;
511
511
  self.$Modal.confirm({
512
- title:'确认',
513
- content:'数据有修改未保存,是否放弃修改?',
512
+ title:this.$t('确认'),
513
+ content:this.$t('数据有修改未保存,是否放弃修改?'),
514
514
  onOk:() => {
515
515
  if (obj.onOk) {
516
516
  obj.onOk();
@@ -633,4 +633,4 @@ export default {
633
633
 
634
634
  <style>
635
635
 
636
- </style>
636
+ </style>
@@ -46,15 +46,15 @@ export default {
46
46
  titleType:2,
47
47
  divStyle:'padding:5px',
48
48
  showMaxRow:2,
49
- title:'查询条件',
49
+ title:this.$t('查询条件'),
50
50
  showAsyncImportExport:false
51
51
  },
52
52
  menuToolbar:{},
53
53
  gridToolbar:{},
54
54
  frontBtn: [{
55
- name:'searchData',text:'查询',icon:'custom-search'
55
+ name:'searchData',text:this.$t('查询'),icon:'custom-search'
56
56
  },{
57
- name:'clearData',text:'清除',icon:'custom-clean'
57
+ name:'clearData',text:this.$t('清除'),icon:'custom-clean'
58
58
  }],
59
59
  oldLevelidSearchBefore:null,
60
60
  showSearchPara:true,
@@ -127,7 +127,7 @@ export default {
127
127
  });
128
128
  this.menuToolbar.items = frontBtn.concat(this.menuToolbar.items);
129
129
  this.menuToolbar.mainButton = 'searchData';
130
- this.menuToolbar.mainButtonText ='查询';
130
+ this.menuToolbar.mainButtonText =this.$t('查询');
131
131
  this.menuToolbar.ignoreModule = ['searchData','clearData'];
132
132
 
133
133
  let index = this.myConfig.formConfig.items.findIndex(el => el.name === this.levelIdName);
@@ -372,7 +372,7 @@ export default {
372
372
  this.$refs.form.checkValidate();
373
373
  let flag = this.$refs.form.isError();
374
374
  if (flag) {
375
- this.alert('必填项不允许为空');
375
+ this.alert(this.$t('必填项不允许为空'));
376
376
  return false;
377
377
  }
378
378
  let data = this.$refs.form.getData();
@@ -407,7 +407,7 @@ export default {
407
407
  exportData () {
408
408
  let data = this.$refs.grid.getData();
409
409
  if (data.length === 0) {
410
- this.alert('请先查询数据');
410
+ this.alert(this.$t('请先查询数据'));
411
411
  return false;
412
412
  }
413
413
  if (this.myConfig.showAsyncImportExport) {
@@ -29,13 +29,13 @@
29
29
  </Col>
30
30
  </Row>
31
31
  <Row v-else type="flex" :gutter="0" justify="start" align="middle">
32
- <Icon custom="iconfont icon-custom-tishi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold">注意:当前页面您没有操作权限</span>
32
+ <Icon custom="iconfont icon-custom-tishi" size="20" color="#F3B352"/> <span style="margin-left: 12px;font-size:18px;color:#F3B352;font-weight:bold">{{ $t('注意') }}:{{ $t('当前页面您没有操作权限') }}</span>
33
33
  </Row>
34
34
  </Col>
35
35
  <Col span="6">
36
36
  <Row type="flex" :gutter="0" justify="end" align="middle">
37
37
  <Col v-if="billoperlog">
38
- <Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog">操作日志</Button>
38
+ <Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog">{{ $t('操作日志') }}</Button>
39
39
  </Col>
40
40
  <Col v-if="billoperlog">
41
41
  <Divider type="vertical" class="dividercommon"/>
@@ -65,7 +65,7 @@ export default {
65
65
  modulecode:'',
66
66
  items:[],
67
67
  mainButton:'addData',
68
- mainButtonText:'新增',
68
+ mainButtonText:this.$t('新增'),
69
69
  mainButtonIcon:null,
70
70
  mainButtonCustomIcon:'iconfont icon-custom-add'
71
71
  },