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.
Files changed (90) hide show
  1. package/dist/ocpviewplus.min.esm.js +3599 -2520
  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 +16 -7
  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 +16 -7
  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 +60 -57
  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/index.js +1 -1
  54. package/src/components/masterplate/layouttemplate.vue +3 -3
  55. package/src/components/masterplate/leftlistrightdetails.vue +15 -13
  56. package/src/components/masterplate/leftlistrightlist.vue +24 -18
  57. package/src/components/masterplate/lefttreerightdetails.vue +17 -17
  58. package/src/components/masterplate/levelreport.vue +6 -6
  59. package/src/components/masterplate/listbtntoolbar.vue +3 -3
  60. package/src/components/masterplate/listdetails.vue +45 -45
  61. package/src/components/masterplate/operlog.vue +19 -19
  62. package/src/components/masterplate/promptmessage.vue +1 -1
  63. package/src/components/masterplate/querybar.vue +33 -21
  64. package/src/components/masterplate/report.vue +7 -7
  65. package/src/components/masterplate/rowbtntoolbar.vue +1 -1
  66. package/src/components/masterplate/simpletree.vue +3 -3
  67. package/src/components/masterplate/simpleviewgrid.vue +4 -4
  68. package/src/components/mychart/gauge/gauge.vue +1 -1
  69. package/src/components/numberbox/numberbox.vue +4 -4
  70. package/src/components/numberbox/numberrangebox.vue +11 -11
  71. package/src/components/picturebox/filebox.vue +6 -5
  72. package/src/components/picturebox/uploadbox.vue +3 -3
  73. package/src/components/poptagbox/poptagbox.vue +4 -3
  74. package/src/components/poptextbox/poptextbox.vue +5 -5
  75. package/src/components/richtextbox/editor.vue +36 -36
  76. package/src/components/richtextbox/richtextbox.vue +6 -6
  77. package/src/components/toolbar/toolbar.vue +7 -7
  78. package/src/components/tree/basetree.vue +3 -2
  79. package/src/components/tree/treedatabase.vue +1 -1
  80. package/src/components/upload/billimport.vue +8 -8
  81. package/src/components/videobox/uploadbox.vue +3 -9
  82. package/src/components/videobox/videobox.vue +1 -1
  83. package/src/components/wrichtextbox/editor.vue +26 -26
  84. package/src/index.js +2 -2
  85. package/src/localePlus/en-US.js +331 -1
  86. package/src/localePlus/zh-CN.js +331 -1
  87. package/src/localePlus/zh-TW.js +331 -1
  88. package/src/method/case/case.js +10 -10
  89. package/src/method/const/const.js +1 -1
  90. package/src/plugins/vxeTable/index.js +1 -1
@@ -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">全量导入</Radio>
26
- <Radio label="add">增量导入</Radio>
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;">选择文件</Button>
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>导入中</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('文件[' + file.name + ']的格式不正确,请上传格式为(' + type + ')的文件');
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:'是否确认' + text + '数据?',
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();
@@ -22,7 +22,7 @@
22
22
  :on-format-error="handleFormatError"
23
23
  :max-size="fileSize"
24
24
  :action="uploadfile">
25
- <a>上传</a>
25
+ <a>{{ $t('上传') }}</a>
26
26
  </Upload>
27
27
  <div v-show="showGrid">
28
28
  <EditGridCardS ref="grid" :config="myConfig" :dictData="dictData"></EditGridCardS>
@@ -31,10 +31,10 @@
31
31
  <div ref="photo" v-show="false">
32
32
  <li><img :src="imgUrl" :data-original="`${imgUrl}`" style="width: 100%; height: 100%;"/></li>
33
33
  </div>
34
- <Modal :styles="{top:'20px', width:'80%'}" title="文本" v-model="txtPanelFlag" :footer-hide="true">
34
+ <Modal :styles="{top:'20px', width:'80%'}" :title="$t('文本')" v-model="txtPanelFlag" :footer-hide="true">
35
35
  <div v-html="textStr"/>
36
36
  </Modal>
37
- <Modal :styles="{top:'20px', width:'80%'}" title="PDF" v-model="pdfFlag" :footer-hide="true">
37
+ <Modal :styles="{top:'20px', width:'80%'}" :title="$t('PDF')" v-model="pdfFlag" :footer-hide="true">
38
38
  <div ref="pdf" style="height:630px"/>
39
39
  </Modal>
40
40
  </Card>
@@ -68,22 +68,22 @@ export default {
68
68
  showPage: false,
69
69
  fileSize: 20,
70
70
  fileNum: 10,
71
- title: '附件',
71
+ title: this.$t('附件'),
72
72
  dynamicHeight: true,
73
73
  showTitle: true,
74
74
  scenetype: '3',
75
75
  height: 840,
76
76
  items: [{
77
- label: '操作状态',
77
+ label: this.$t('操作状态'),
78
78
  name: 'modflag',
79
79
  type: 'ComboBox',
80
- data: [{code: 'N', name: '初始'}, {code: 'M', name: '待删除'},
81
- {code: 'I', name: '新增'}, {code: 'D', name: '删除'}],
80
+ data: [{code: 'N', name: this.$t('初始')}, {code: 'M', name: this.$t('待删除')},
81
+ {code: 'I', name: this.$t('新增')}, {code: 'D', name: this.$t('删除')}],
82
82
  visible: false,
83
83
  width: 100,
84
84
  readOnly: true
85
85
  }, {
86
- label: '附件类型',
86
+ label: this.$t('附件类型'),
87
87
  name: 'filememo',
88
88
  type: 'ComboBox',
89
89
  dictkey: 'CUSTFILETYPE',
@@ -92,32 +92,32 @@ export default {
92
92
  visible: false,
93
93
  readOnly: true
94
94
  }, {
95
- label: '附件类型',
95
+ label: this.$t('附件类型'),
96
96
  name: 'filemode',
97
97
  type: 'TextBox',
98
98
  width: 300,
99
99
  readOnly: true
100
100
  }, {
101
- label: '文件名称',
101
+ label: this.$t('文件名称'),
102
102
  name: 'filename',
103
103
  type: 'TextBox',
104
104
  minWidth: 200,
105
105
  readOnly: true
106
106
  }, {
107
- label: '文件大小',
107
+ label: this.$t('文件大小'),
108
108
  name: 'filesize',
109
109
  render: this.sizeActionRender,
110
110
  width: 120,
111
111
  readOnly: true
112
112
  }, {
113
- label: '上传日期',
113
+ label: this.$t('上传日期'),
114
114
  name: 'ph_timestamp',
115
115
  type: 'DateBox',
116
116
  vtype: 'datetime',
117
117
  width: 150,
118
118
  readOnly: true
119
119
  }, {
120
- label: '操作',
120
+ label: this.$t('操作'),
121
121
  key: 'action',
122
122
  align: 'center',
123
123
  render: this.actionRender,
@@ -144,32 +144,32 @@ export default {
144
144
  {
145
145
  icon: 'custom-fileupload',
146
146
  name: 'upFile',
147
- text: '上传'
147
+ text: this.$t('上传')
148
148
  },
149
149
  {
150
150
  icon: 'custom-filedel',
151
151
  name: 'delFile',
152
- text: '删除'
152
+ text: this.$t('删除')
153
153
  },
154
154
  {
155
155
  icon: 'custom-filedown',
156
156
  name: 'downFile',
157
- text: '下载'
157
+ text: this.$t('下载')
158
158
  },
159
159
  {
160
160
  icon: 'custom-filesearch',
161
161
  name: 'searchFile',
162
- text: '查看'
162
+ text: this.$t('查看')
163
163
  },
164
164
  {
165
165
  icon: 'custom-filerecall',
166
166
  name: 'recall',
167
- text: '撤回'
167
+ text: this.$t('撤回')
168
168
  },
169
169
  {
170
170
  icon: 'custom-fileupload',
171
171
  name: 'reupFile',
172
- text: '变更'
172
+ text: this.$t('变更')
173
173
  },
174
174
  ]
175
175
  };
@@ -274,7 +274,7 @@ export default {
274
274
  methods: {
275
275
  handleFormatError (file) {
276
276
  let type = this.myConfig.fileType.join(',');
277
- this.alert('文件[' + file.name + ']的格式不正确,请上传格式为(' + type + ')的文件');
277
+ this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
278
278
  this.loadFlag = true;
279
279
  },
280
280
  toggle () {
@@ -398,7 +398,7 @@ export default {
398
398
  // this.$refs.grid.delRow(params.index);
399
399
  } else {
400
400
  if (params.row.modflag === 'M') {
401
- this.alert('当前状态不允许删除');
401
+ this.alert(this.$t('当前状态不允许删除'));
402
402
  return;
403
403
  }
404
404
  if (params.row.modflag === 'I') {
@@ -417,7 +417,7 @@ export default {
417
417
  },
418
418
  recall (params) {
419
419
  if (params.row.modflag !== 'M') {
420
- this.alert('当前状态不用撤回');
420
+ this.alert(this.$t('当前状态不用撤回'));
421
421
  return;
422
422
  }
423
423
  let row = this.$Method.copy(params.row);
@@ -446,7 +446,7 @@ export default {
446
446
  this.$emit('handleSuccessAfter' , response, file, fileList);
447
447
  },
448
448
  handleMaxSize (file) {
449
- this.alert('文件[' + file.name + ']的文件大小不允许超过' + this.myConfig.fileSize + 'M');
449
+ this.alert(this.$t('文件[{name}]的文件大小不允许超过{size}M', { name: file.name, size: this.myConfig.fileSize }));
450
450
  if (this.myConfig.scenetype === '4') {
451
451
  this.loadFlag = true;
452
452
  } else {
@@ -615,12 +615,12 @@ export default {
615
615
  if (this.$refs.billupload && this.$refs.billupload.fileList) {
616
616
  check = this.$refs.billupload.fileList.length < this.myConfig.fileNum;
617
617
  if (!check) {
618
- this.alert('上传的文件数量过多(一次最多允许上传' + this.myConfig.fileNum + '个文件)');
618
+ this.alert(this.$t('上传的文件数量过多(一次最多允许上传{num}个文件)', { num: this.myConfig.fileNum }));
619
619
  }
620
620
  }
621
621
  if (!this.flag) {
622
622
  this.flag = true;
623
- this.loadingtext = '上传中';
623
+ this.loadingtext = this.$t('上传中');
624
624
  if (this.myConfig.scenetype === '4') {
625
625
  this.loadFlag = false;
626
626
  } else {
@@ -635,7 +635,7 @@ export default {
635
635
  this.myConfig.beforeUpload();
636
636
  }
637
637
  if (!this.billno) {
638
- this.alert('单据主健信息为空,不允许上传');
638
+ this.alert(this.$t('单据主健信息为空,不允许上传'));
639
639
  return;
640
640
  }
641
641
  if (this.checkIsEdit()) {
@@ -654,7 +654,7 @@ export default {
654
654
  this.myConfig.beforeUpload();
655
655
  }
656
656
  if (!this.billno) {
657
- this.alert('单据主健信息为空,不允许上传');
657
+ this.alert(this.$t('单据主健信息为空,不允许上传'));
658
658
  return;
659
659
  }
660
660
  if (this.checkIsEdit()) {
@@ -3,7 +3,7 @@
3
3
  <Col span="14">
4
4
  <Row type="flex" :gutter="0" justify="start" align="middle">
5
5
  <Col v-if="addDataBtnFlag">
6
- <Button customIcon="iconfont icon-custom-add" type="primary" @click="addData" >新增</Button>
6
+ <Button customIcon="iconfont icon-custom-add" type="primary" @click="addData" >{{ $t('新增') }}</Button>
7
7
  </Col>
8
8
  <Col v-if="addDataBtnFlag ">
9
9
  <Divider type="vertical" class="dividercommon"/>
@@ -28,41 +28,41 @@
28
28
  <Col span="10">
29
29
  <Row type="flex" :gutter="0" justify="end" align="middle">
30
30
  <Col v-if="billisworkflow">
31
- <Button customIcon="iconfont icon-custom-flow" type="info" @click="openWorkFlow">工作流</Button>
31
+ <Button customIcon="iconfont icon-custom-flow" type="info" @click="openWorkFlow">{{ $t('工作流') }}</Button>
32
32
  </Col>
33
33
  <Col v-if="billisworkflow">
34
34
  <Divider type="vertical" class="dividercommon"/>
35
35
  </Col>
36
36
  <Col v-if="billapproval">
37
- <Button customIcon="iconfont icon-custom-baopidan" @click="openBillapproval">报批单</Button>
37
+ <Button customIcon="iconfont icon-custom-baopidan" @click="openBillapproval">{{ $t('报批单') }}</Button>
38
38
  </Col>
39
39
 
40
40
  <Col v-if="billapproval">
41
41
  <Divider type="vertical" class="dividercommon"/>
42
42
  </Col>
43
43
  <Col v-if="billoperlog">
44
- <Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog">操作日志</Button>
44
+ <Button customIcon="iconfont icon-custom-baopidan" @click="openBilloperlog">{{ $t('操作日志') }}</Button>
45
45
  </Col>
46
46
  <Col v-if="billoperlog">
47
47
  <Divider type="vertical" class="dividercommon"/>
48
48
  </Col>
49
49
  <Col v-if="printmodel">
50
- <Button customIcon="iconfont icon-custom-print" @click="printBillData">打印</Button>
50
+ <Button customIcon="iconfont icon-custom-print" @click="printBillData">{{ $t('打印') }}</Button>
51
51
  </Col>
52
52
  <Col v-if="printmodel">
53
53
  <Divider type="vertical" class="dividercommon"/>
54
54
  </Col>
55
55
  <Col v-if="showPreNex" style="margin-right:10px">
56
- <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-pre" type="text" @click="preBill">上一单</Button>
56
+ <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-pre" type="text" @click="preBill">{{ $t('上一单') }}</Button>
57
57
  </Col>
58
58
  <Col v-if="showPreNex" >
59
- <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-next" type="text" @click="nextBill" >下一单</Button>
59
+ <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-next" type="text" @click="nextBill" >{{ $t('下一单') }}</Button>
60
60
  </Col>
61
61
  <Col>
62
62
  <Divider type="vertical" class="dividercommon"/>
63
63
  </Col>
64
64
  <Col >
65
- <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-back" type="text" @click="backData">返回</Button>
65
+ <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-back" type="text" @click="backData">{{ $t('返回') }}</Button>
66
66
  </Col>
67
67
  </Row>
68
68
  </Col>
@@ -85,13 +85,13 @@ export default {
85
85
  btnItems:[],
86
86
  apporval:[{
87
87
  name:'submitData',
88
- text:'提交'
88
+ text:this.$t('提交')
89
89
  },{
90
90
  name:'revokeData',
91
- text:'撤回'
91
+ text:this.$t('撤回')
92
92
  },{
93
93
  name:'approveData',
94
- text:'审批'
94
+ text:this.$t('审批')
95
95
  }],
96
96
  ignoreModule:['downTemplate'],
97
97
 
@@ -10,16 +10,16 @@
10
10
  <Row type="flex" justify="end" :gutter="0" align="middle">
11
11
  <Dropdown placement="bottom-start" style="float:right">
12
12
  <Button style="height:21px" type="info">
13
- 更多操作
13
+ {{ $t('更多操作') }}
14
14
  <Icon type="ios-arrow-down"></Icon>
15
15
  </Button>
16
16
  <template #list>
17
17
  <DropdownMenu>
18
18
  <DropdownItem>
19
- <Button @click.stop="openForm" >全部展开</Button>
19
+ <Button @click.stop="openForm" >{{ $t('全部展开') }}</Button>
20
20
  </DropdownItem>
21
21
  <DropdownItem >
22
- <Button @click.stop="closeForm">全部收起</Button>
22
+ <Button @click.stop="closeForm">{{ $t('全部收起') }}</Button>
23
23
  </DropdownItem>
24
24
  </DropdownMenu>
25
25
  </template>
@@ -31,7 +31,7 @@
31
31
  <Divider style="margin-left:24px;margin-bottom:10px;margin-top: 0px;"/>
32
32
  <div style="margin-left:24px;" v-show="showForm" >
33
33
  <Row style="margin-bottom:10px;">
34
- <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="btnReadOnly" @click="add" >添加</Button>
34
+ <Button style="padding-left:0px;padding-right:0px" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="btnReadOnly" @click="add" >{{ $t('添加') }}</Button>
35
35
  </Row>
36
36
  <FormDetail v-if="showAdd" ref="addform" :config="myConfig" :isAdd="true" @doAction="newDoAction" :dictData="dictData"/>
37
37
  <FormDetail v-for="(temp,index) in data" :ref="temp.curlIndex" :key="temp.curlIndex" :valueData="temp" :curlIndex="temp.curlIndex" :index="index" :config="myConfig" @doAction="doAction" :dictData="dictData"/>
@@ -57,8 +57,8 @@ export default {
57
57
  titleType:1,
58
58
  addBtnType:'1',
59
59
  hide:true,
60
- addBtnName:'新增',
61
- editBtnName:'编辑'
60
+ addBtnName:this.$t('新增'),
61
+ editBtnName:this.$t('编辑')
62
62
  },
63
63
  showForm:true,
64
64
  editFlag:false,
@@ -350,7 +350,7 @@ export default {
350
350
  }
351
351
  });
352
352
  if (flag) {
353
- this.alert('必填项不允许为空');
353
+ this.alert(this.$t('必填项不允许为空'));
354
354
  }
355
355
  return flag;
356
356
  },
@@ -20,16 +20,16 @@
20
20
  </div>
21
21
  <Row class-name="row-box" v-else v-show="showGrid" type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;">
22
22
  <Col v-if="showAddBtn">
23
- <Button :style="btnStyle" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="myConfig.readOnly" @click="addRow" >添加</Button>
23
+ <Button :style="btnStyle" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="myConfig.readOnly" @click="addRow" >{{ $t('添加') }}</Button>
24
24
  </Col>
25
25
  <Col v-if="showAddBtn && showDelBatchBtn">
26
26
  <Divider type="vertical" style="margin: 0 6px 0 6px;"/>
27
27
  </Col>
28
28
  <Col v-if="showDelBatchBtn">
29
- <Button :style="btnStyle" customIcon="iconfont icon-custom-rowdel3" type="text" :disabled="myConfig.readOnly" @click="delBatchRow">删除</Button>
29
+ <Button :style="btnStyle" customIcon="iconfont icon-custom-rowdel3" type="text" :disabled="myConfig.readOnly" @click="delBatchRow">{{ $t('删除') }}</Button>
30
30
  </Col>
31
31
  <Col class="col-align" v-if="showZoom">
32
- <Button type="ghost" shape="circle" :title="isFull ? '还原' : '全屏'" :customIcon="[isFull ? 'iconfont icon-custom-minimize' : 'iconfont icon-custom-fullscreen']" @click="setZoom"></Button>
32
+ <Button type="ghost" shape="circle" :title="isFull ? $t('还原') : $t('全屏')" :customIcon="[isFull ? 'iconfont icon-custom-minimize' : 'iconfont icon-custom-fullscreen']" @click="setZoom"></Button>
33
33
  </Col>
34
34
  </Row>
35
35
  <Row v-show="showGrid" >
@@ -50,7 +50,7 @@
50
50
  </div>
51
51
  </Row>
52
52
  <p v-show="showGrid && showEffectValue" @click="toggleEffect" style="cursor:pointer;background-color:#FFF2DE;height:36px;line-height:36px;border: 1px solid #F3B352;margin-top: 10px;" >
53
- <Icon custom='iconfont icon-custom-help' size="20" style="margin-left: 10px;" color="#D5882E" /> <span style="margin-left: 4px;color:#D5882E">参考数据</span>
53
+ <Icon custom='iconfont icon-custom-help' size="20" style="margin-left: 10px;" color="#D5882E" /> <span style="margin-left: 4px;color:#D5882E">{{ $t('参考数据') }}</span>
54
54
  </p>
55
55
  <Row v-show="showGrid && showEffectValue && showEffectGrid" class="efuture-effect-grid" style="margin-top: 10px;">
56
56
  <Table ref="effect_table" :row-class-name="rowClassName" :loading="loading" :size="myConfig.tableSize" :border="myConfig.showBorder" :stripe="myConfig.showStripe" :maxHeight="tableMaxHeight" :columns="tableColumns" :data="curlEffectData" @on-column-width-resize="onColumnWidthResize" >
@@ -60,7 +60,7 @@
60
60
  </Table>
61
61
  </Row>
62
62
  </div>
63
- <Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" title="编辑" @on-ok="editRow">
63
+ <Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" :title="$t('编辑')" @on-ok="editRow">
64
64
  <div>
65
65
  <ExpandRow ref="rowForm" :config="myConfig" :dictData="dictData" />
66
66
  </div>
@@ -82,7 +82,7 @@ export default {
82
82
  showCheckBox:true,
83
83
  showPage:false,
84
84
  showAppendixCol:false,
85
- appedixLable:'附件'
85
+ appedixLable:this.$t('附件')
86
86
  },
87
87
  btnStyle:'padding-left:0px;padding-right:0px',
88
88
  divStyle:'padding-left:24px',
@@ -95,7 +95,7 @@ export default {
95
95
  showEffectValue:false,
96
96
  showEffectGrid:true,
97
97
  actionAppendixConfig:{
98
- label:'附件',
98
+ label:this.$t('附件'),
99
99
  key:'actionappendix',
100
100
  align: 'center',
101
101
  fixed: 'right',
@@ -5,13 +5,13 @@
5
5
  </div>
6
6
  <Row class-name="row-box" v-else v-show="showGrid" type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom: 10px;">
7
7
  <Col v-if="showAddBtn">
8
- <Button :style="btnStyle" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="myConfig.readOnly" @click="addRow" >添加</Button>
8
+ <Button :style="btnStyle" customIcon="iconfont icon-custom-rowadd3" type="text" :disabled="myConfig.readOnly" @click="addRow" >{{ $t('添加') }}</Button>
9
9
  </Col>
10
10
  <Col v-if="showAddBtn && showDelBatchBtn">
11
11
  <Divider type="vertical" style="margin: 0 6px 0 6px;"/>
12
12
  </Col>
13
13
  <Col v-if="showDelBatchBtn">
14
- <Button :style="btnStyle" customIcon="iconfont icon-custom-rowdel3" type="text" :disabled="myConfig.readOnly" @click="delBatchRow">删除</Button>
14
+ <Button :style="btnStyle" customIcon="iconfont icon-custom-rowdel3" type="text" :disabled="myConfig.readOnly" @click="delBatchRow">{{ $t('删除') }}</Button>
15
15
  </Col>
16
16
  </Row>
17
17
  <Row style="margin-top: 10px;">
@@ -31,7 +31,7 @@
31
31
  </Card>
32
32
  </div>
33
33
  </Row>
34
- <Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" title="编辑" @on-ok="editRow">
34
+ <Modal v-if="!editRowFlag" v-model="showEditRowForm" width="90%" :title="$t('编辑')" @on-ok="editRow">
35
35
  <div>
36
36
  <ExpandRow ref="rowForm" :config="myConfig" :dictData="dictData"/>
37
37
  </div>
@@ -53,7 +53,7 @@ export default {
53
53
  showCheckBox:true,
54
54
  showPage:false,
55
55
  showAppendixCol:false,
56
- appedixLable:'附件'
56
+ appedixLable:this.$t('附件')
57
57
  },
58
58
  btnStyle:'padding-left:0px;padding-right:0px',
59
59
  showAddBtn:false,
@@ -61,7 +61,7 @@ export default {
61
61
  showGrid:true,
62
62
  showTitle:true,
63
63
  actionAppendixConfig:{
64
- label:'附件',
64
+ label:this.$t('附件'),
65
65
  key:'actionappendix',
66
66
  align: 'center',
67
67
  render:this.actionAppendixRender,