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
@@ -43,7 +43,7 @@
43
43
  class-name="efuture-billapprovalmainframe"
44
44
  v-model="showApproval"
45
45
  fullscreen
46
- title="报批单"
46
+ :title="$t('报批单')"
47
47
  footer-hide
48
48
  >
49
49
  <iframe
@@ -54,7 +54,7 @@
54
54
  ></iframe>
55
55
  </Modal>
56
56
  <Modal
57
- title="单据日志"
57
+ :title="$t('单据日志')"
58
58
  v-model="showBilloperlog"
59
59
  :width="logcurrentWidth"
60
60
  :footer-hide="true"
@@ -229,12 +229,12 @@ export default {
229
229
  if (obj.name === "saveData") {
230
230
  let flag = this.$refs.form.checkValidate();
231
231
  if (flag) {
232
- this.alert("必填项不允许为空");
232
+ this.alert(this.$t("必填项不允许为空"));
233
233
  return false;
234
234
  }
235
235
  flag = this.$refs.form.isEdit();
236
236
  if (flag) {
237
- this.alert("存在数据未确认");
237
+ this.alert(this.$t("存在数据未确认"));
238
238
  return false;
239
239
  }
240
240
  obj.para = this.$refs.form.getChangeData();
@@ -279,18 +279,18 @@ export default {
279
279
  obj.name === "cancelData" ||
280
280
  obj.name === "revokeData"
281
281
  ) {
282
- let text = "删除";
282
+ let text = this.$t("删除");
283
283
  if (obj.name === "auditData") {
284
- text = "审核";
284
+ text = this.$t("审核");
285
285
  obj.para = { billno: data.billno };
286
286
  }
287
287
  if (obj.name === "cancelData") {
288
- text = "作废";
288
+ text = this.$t("作废");
289
289
  obj.para = { billno: data.billno };
290
290
  }
291
291
 
292
292
  if (obj.name === "revokeData") {
293
- text = "撤回";
293
+ text = this.$t("撤回");
294
294
  obj.para = { billno: data.billno };
295
295
  }
296
296
  if (this.$parent.getActionName) {
@@ -299,10 +299,10 @@ export default {
299
299
  text = name;
300
300
  }
301
301
  }
302
- let info = "确定是否" + text + "数据?";
302
+ let info = this.$t('确定是否{text}数据?', { text: text });
303
303
  let self = this;
304
304
  self.$Modal.confirm({
305
- title: "确认",
305
+ title: this.$t("确认"),
306
306
  content: info,
307
307
  onOk: () => {
308
308
  self.$emit("doAction", obj);
@@ -10,7 +10,7 @@
10
10
  <div style="padding-left:24px">
11
11
  <Divider v-if="showTitle" style="margin-top:0px;margin-bottom:10px;"/>
12
12
  <Row v-show="showGrid" type="flex" justify="start" align="middle" :gutter="0" style="margin-bottom:10px;" >
13
- <Button v-if="loadFlag" customIcon="iconfont icon-custom-fileupload" :disabled="btnReadOnly" @click="editGrid" >上传</Button>
13
+ <Button v-if="loadFlag" customIcon="iconfont icon-custom-fileupload" :disabled="btnReadOnly" @click="editGrid" >{{ $t('上传') }}</Button>
14
14
  <Button v-else :loading="true">{{loadingtext}}</Button>
15
15
  </Row>
16
16
  <Upload v-show="false" id="billiviewUp"
@@ -26,7 +26,7 @@
26
26
  :on-format-error="handleFormatError"
27
27
  :max-size="fileSize"
28
28
  :action="uploadfile">
29
- <a>上传</a>
29
+ <a>{{ $t('上传') }}</a>
30
30
  </Upload>
31
31
  <div v-show="showGrid">
32
32
  <EditGridCardS ref="grid" :config="myConfig"></EditGridCardS>
@@ -35,10 +35,10 @@
35
35
  <div ref="photo" v-show="false">
36
36
  <li><img :src="imgUrl" :data-original="`${imgUrl}`" style="width: 100%; height: 100%;" /></li>
37
37
  </div>
38
- <Modal :styles="{top:'20px', width:'80%'}" title="文本" v-model="txtPanelFlag" :footer-hide="true">
38
+ <Modal :styles="{top:'20px', width:'80%'}" :title="$t('文本')" v-model="txtPanelFlag" :footer-hide="true">
39
39
  <div v-html="textStr"/>
40
40
  </Modal>
41
- <Modal :styles="{top:'20px', width:'80%'}" title="PDF" v-model="pdfFlag" :footer-hide="true">
41
+ <Modal :styles="{top:'20px', width:'80%'}" :title="$t('PDF')" v-model="pdfFlag" :footer-hide="true">
42
42
  <div ref="pdf" style="height:630px"/>
43
43
  </Modal>
44
44
  </Card>
@@ -68,36 +68,36 @@ 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
  },{
85
- label:'文件名称',
85
+ label: this.$t('文件名称'),
86
86
  name:'filename',
87
87
  type:'TextBox'
88
88
  },{
89
- label:'文件大小',
89
+ label: this.$t('文件大小'),
90
90
  name:'filesize',
91
91
  render: this.sizeActionRender,
92
92
  width:120
93
93
  },{
94
- label:'上传日期',
94
+ label: this.$t('上传日期'),
95
95
  name:'ph_timestamp',
96
96
  type:'DateBox',
97
97
  vtype:'datetime',
98
98
  width:200
99
99
  },{
100
- label:'操作',
100
+ label: this.$t('操作'),
101
101
  key:'action',
102
102
  align: 'center',
103
103
  render: this.actionRender,
@@ -122,22 +122,22 @@ export default {
122
122
  {
123
123
  icon:'custom-filedel',
124
124
  name:'delFile',
125
- text:'删除'
125
+ text: this.$t('删除')
126
126
  },
127
127
  {
128
128
  icon:'custom-filedown',
129
129
  name:'downFile',
130
- text:'下载'
130
+ text: this.$t('下载')
131
131
  },
132
132
  {
133
133
  icon:'custom-filesearch',
134
134
  name:'searchFile',
135
- text:'查看'
135
+ text: this.$t('查看')
136
136
  },
137
137
  {
138
138
  icon:'custom-filerecall',
139
139
  name:'recall',
140
- text:'撤回'
140
+ text: this.$t('撤回')
141
141
  }
142
142
  ]
143
143
  };
@@ -229,7 +229,7 @@ export default {
229
229
  methods: {
230
230
  handleFormatError (file) {
231
231
  let type = this.myConfig.fileType.join(',');
232
- this.alert('文件[' + file.name + ']的格式不正确,请上传格式为(' + type + ')的文件');
232
+ this.alert(this.$t('文件[{name}]的格式不正确,请上传格式为({type})的文件', { name: file.name, type: type }));
233
233
  this.loadFlag = true;
234
234
  },
235
235
  toggle () {
@@ -322,7 +322,7 @@ export default {
322
322
  this.delCommon(params.row.filekey, 'N');
323
323
  } else {
324
324
  if (params.row.modflag === 'M') {
325
- this.alert('当前状态不允许删除');
325
+ this.alert(this.$t('当前状态不允许删除'));
326
326
  return;
327
327
  }
328
328
  if (params.row.modflag === 'I') {
@@ -341,7 +341,7 @@ export default {
341
341
  },
342
342
  recall(params) {
343
343
  if (params.row.modflag !== 'M') {
344
- this.alert('当前状态不用撤回');
344
+ this.alert(this.$t('当前状态不用撤回'));
345
345
  return;
346
346
  }
347
347
  let row = this.$Method.copy(params.row);
@@ -369,7 +369,7 @@ export default {
369
369
  }
370
370
  },
371
371
  handleMaxSize (file) {
372
- this.alert('文件[' + file.name + ']的文件大小不允许超过' + this.myConfig.fileSize + 'M');
372
+ this.alert(this.$t('文件[{name}]的文件大小不允许超过{size}M', { name: file.name, size: this.myConfig.fileSize }));
373
373
  if (this.myConfig.scenetype === '4') {
374
374
  this.loadFlag = true;
375
375
  } else {
@@ -532,12 +532,12 @@ export default {
532
532
  if (this.$refs.billupload && this.$refs.billupload.fileList) {
533
533
  check = this.$refs.billupload.fileList.length < this.myConfig.fileNum;
534
534
  if (!check) {
535
- this.alert('上传的文件数量过多(一次最多允许上传'+this.myConfig.fileNum+'个文件)');
535
+ this.alert(this.$t('上传的文件数量过多(一次最多允许上传{num}个文件)', { num: this.myConfig.fileNum }));
536
536
  }
537
537
  }
538
538
  if (!this.flag) {
539
539
  this.flag = true;
540
- this.loadingtext = '上传中';
540
+ this.loadingtext = this.$t('上传中');
541
541
  if (this.myConfig.scenetype === '4') {
542
542
  this.loadFlag = false;
543
543
  } else {
@@ -552,7 +552,7 @@ export default {
552
552
  this.myConfig.beforeUpload();
553
553
  }
554
554
  if (!this.billno) {
555
- this.alert('单据主健信息为空,不允许上传');
555
+ this.alert(this.$t('单据主健信息为空,不允许上传'));
556
556
  return;
557
557
  }
558
558
  if (this.checkIsEdit()) {
@@ -1,16 +1,16 @@
1
1
  <template>
2
2
  <div>
3
- <Modal title="人员列表" width="660" v-model="showuser">
3
+ <Modal :title="$t('人员列表')" width="660" v-model="showuser">
4
4
  <Row style="margin-bottom:14px" type="flex" justify="start" align="middle" >
5
5
  <Col span='6' v-if="!showapproval">
6
- 已选抄送人:<span style="color:#AF292E">{{selectuserdata.length}}</span><span v-text="info"></span>
6
+ {{ $t('已选抄送人') }}:<span style="color:#AF292E">{{selectuserdata.length}}</span><span v-text="info"></span>
7
7
  </Col>
8
8
  <Col span='6' v-if="showapproval">
9
- 已选审批<span v-text="info"></span> :<span style="color:#AF292E">{{selectuserdata.length}}</span><span v-text="info"></span>
9
+ {{ $t('已选审批') }}<span v-text="info"></span> :<span style="color:#AF292E">{{selectuserdata.length}}</span><span v-text="info"></span>
10
10
  </Col>
11
11
  <Col span='18'>
12
12
  <Row type="flex" justify="end" align="middle" >
13
- <Button type="text" custom-icon="iconfont icon-custom-quanshan" @click="delAll" >全部删除</Button>
13
+ <Button type="text" custom-icon="iconfont icon-custom-quanshan" @click="delAll" >{{ $t('全部删除') }}</Button>
14
14
  </Row>
15
15
  </Col>
16
16
  </Row>
@@ -21,11 +21,11 @@
21
21
  <template #title>
22
22
  <Row v-if="!showapproval" type="flex" justify="start" align="middle" >
23
23
  <Col span='4'>
24
- 已勾选:<span style="color:#AF292E">{{select.length}}</span><span v-text="info"></span>
24
+ {{ $t('已勾选') }}:<span style="color:#AF292E">{{select.length}}</span><span v-text="info"></span>
25
25
  </Col>
26
26
  <Col span='20'>
27
27
  <Row type="flex" justify="end" align="middle" >
28
- <Input placeholder="请输入用户名称/工号/手机号" v-model="searchValue" search style="width: 380px;border-radius:20px;margin-top:10xp" @on-search="searchUser" @on-enter="searchUser"/>
28
+ <Input :placeholder="$t('请输入用户名称/工号/手机号')" v-model="searchValue" search style="width: 380px;border-radius:20px;margin-top:10xp" @on-search="searchUser" @on-enter="searchUser"/>
29
29
  </Row>
30
30
  </Col>
31
31
  </Row>
@@ -33,16 +33,16 @@
33
33
  <Col span='8'>
34
34
  <RadioGroup v-model="selectType" @on-change="selectTypeChange">
35
35
  <Radio label="USER">
36
- <span>审批人</span>
36
+ <span>{{ $t('审批人') }}</span>
37
37
  </Radio>
38
38
  <Radio label="USERGROUP">
39
- <span>岗位</span>
39
+ <span>{{ $t('岗位') }}</span>
40
40
  </Radio>
41
41
  </RadioGroup>
42
42
  </Col>
43
43
  <Col span='16'>
44
44
  <Row type="flex" justify="end" align="middle" >
45
- <Input placeholder="请输入编码/名称" v-model="searchValue" search style="width: 380px;border-radius:20px;margin-top:10xp" @on-search="searchStation" @on-enter="searchStation"/>
45
+ <Input :placeholder="$t('请输入编码/名称')" v-model="searchValue" search style="width: 380px;border-radius:20px;margin-top:10xp" @on-search="searchStation" @on-enter="searchStation"/>
46
46
  </Row>
47
47
  </Col>
48
48
  </Row>
@@ -64,26 +64,26 @@
64
64
  <div>
65
65
  <Row type="flex" justify="end" align="middle" :gutter="8">
66
66
  <Col>
67
- <Button style="width:66px" @click="userCancel" >取消</Button>
67
+ <Button style="width:66px" @click="userCancel" >{{ $t('取消') }}</Button>
68
68
  </Col>
69
69
  <Col>
70
- <Button style="width:66px;margin-left:14px" type="info" @click="userOk" >确认</Button>
70
+ <Button style="width:66px;margin-left:14px" type="info" @click="userOk" >{{ $t('确认') }}</Button>
71
71
  </Col>
72
72
  </Row>
73
73
  </div>
74
74
  </template>
75
75
  </Modal>
76
- <Drawer class-name="efutureapproval" title="工作流" v-model="showDrawer" :width="534">
76
+ <Drawer class-name="efutureapproval" :title="$t('工作流')" v-model="showDrawer" :width="534">
77
77
  <div class="drawer-box">
78
78
  <div ref="head">
79
79
  <div class="work-head">
80
- <span>单据编号:{{value.billno}}</span>
81
- <span>状态:{{value.statusName}}</span>
80
+ <span>{{ $t('单据编号') }}:{{value.billno}}</span>
81
+ <span>{{ $t('状态') }}:{{value.statusName}}</span>
82
82
  </div>
83
83
  <div v-if='copyuser.length > 0' class="work-head">
84
- <span>已抄送:<span><Tag v-for="(item,index) in copyuser" :key="'taguser_' + index" style="margin-left:10px">{{item.name}}</Tag> </span></span>
84
+ <span>{{ $t('已抄送') }}:<span><Tag v-for="(item,index) in copyuser" :key="'taguser_' + index" style="margin-left:10px">{{item.name}}</Tag> </span></span>
85
85
  </div>
86
- <p class="title"><span class="text">审批日志</span></p>
86
+ <p class="title"><span class="text">{{ $t('审批日志') }}</span></p>
87
87
  </div>
88
88
  <div :style="contentStyle">
89
89
  <ul class="content">
@@ -110,10 +110,10 @@
110
110
  </p>
111
111
  <div>
112
112
  <p v-if="index === auditLog.length - 1 && item.candidateUserList && item.candidateUserList.length > 0" class="desc">
113
- 待审批人:<span>{{ getCandidateUserText(item.candidateUserList) }}</span>
113
+ {{ $t('待审批人') }}:<span>{{ getCandidateUserText(item.candidateUserList) }}</span>
114
114
  </p>
115
115
  <span>{{item.act_time_}}</span>
116
- <p class="desc">意见:<span v-text="getMessage(item.message)"></span></p>
116
+ <p class="desc">{{ $t('意见') }}:<span v-text="getMessage(item.message)"></span></p>
117
117
  </div>
118
118
  <div class="card" v-if="item.tasklist.length > 1">
119
119
  <ul class="main">
@@ -136,8 +136,8 @@
136
136
  </ul>
137
137
  <Row v-if="item.tasklist > maxUser" type="flex" justify="center" align="middle">
138
138
  <Col>
139
- <Button v-if="!item.active" icon="ios-arrow-down" type="text" @click="showGroupUser(index)">展开 </Button>
140
- <Button v-if="item.active" icon="ios-arrow-up" type="text" @click="showGroupUser(index)"> 收起</Button>
139
+ <Button v-if="!item.active" icon="ios-arrow-down" type="text" @click="showGroupUser(index)">{{ $t('展开') }} </Button>
140
+ <Button v-if="item.active" icon="ios-arrow-up" type="text" @click="showGroupUser(index)"> {{ $t('收起') }}</Button>
141
141
  </Col>
142
142
  </Row>
143
143
  </div>
@@ -148,16 +148,16 @@
148
148
  </div>
149
149
  <div ref="foot" class="footer">
150
150
  <Form v-show="showBtn" :label-width="45">
151
- <FormItem label="抄送:">
151
+ <FormItem :label="$t('抄送:')">
152
152
  <Row type="flex" justify="start" align="middle" >
153
153
  <Col span='2'>
154
- <span style="color:#AF292E"> {{copy.length}}</span> <span>人</span>
154
+ <span style="color:#AF292E"> {{copy.length}}</span> <span>{{ $t('人') }}</span>
155
155
  </Col>
156
156
  <Col span='22'>
157
157
  <Row type="flex" justify="end" align="middle">
158
158
  <p @click.stop="addUser" style="cursor:pointer">
159
159
  <Icon custom="iconfont icon-custom-add" size="12" color="#AF292E"/>
160
- <span style="margin-left:9px;color:#AF292E;font-size:14px"> 添加抄送人 </span>
160
+ <span style="margin-left:9px;color:#AF292E;font-size:14px"> {{ $t('添加抄送人') }} </span>
161
161
  </p>
162
162
  </Row>
163
163
  </Col>
@@ -166,7 +166,7 @@
166
166
  <Tag v-for="(item,index) in copy" :key="'tag2_' + index" :name="item.userCode" style="margin-left:8px" closable @on-close="closeCommon(item.userCode,'copy')"> {{item.userName}}</Tag>
167
167
  </Row>
168
168
  </FormItem>
169
- <FormItem v-show="false" label="审批:">
169
+ <FormItem v-show="false" :label="$t('审批:')">
170
170
  <Row type="flex" justify="start" align="middle" >
171
171
  <Col span='2'>
172
172
  <span style="color:#AF292E;cursor:pointer"> {{approvals.length}}</span> <span v-text="info2"></span>
@@ -175,7 +175,7 @@
175
175
  <Row type="flex" justify="end" align="middle">
176
176
  <p @click.stop="addApproval" style="cursor:pointer">
177
177
  <Icon custom="iconfont icon-custom-add" size="12" color="#AF292E"/>
178
- <span style="margin-left:9px;color:#AF292E;font-size:14px"> 添加审批人 </span>
178
+ <span style="margin-left:9px;color:#AF292E;font-size:14px"> {{ $t('添加审批人') }} </span>
179
179
  </p>
180
180
  </Row>
181
181
  </Col>
@@ -184,25 +184,25 @@
184
184
  <Tag v-for="(item,index) in approvals" :key="'tag3_' + index" :name="item.userCode" style="margin-left:8px"> {{item.userName}}</Tag>
185
185
  </Row>
186
186
  </FormItem>
187
- <FormItem label="意见:">
187
+ <FormItem :label="$t('意见:')">
188
188
  <Input v-model="idea" type='textarea' :autosize="rowsConfig"></Input>
189
189
  </FormItem>
190
190
  </Form>
191
191
  <Row type="flex" v-if="showBtn" justify="end" :gutter="10" style="padding-top:20px;padding-bottom:4px">
192
192
  <Col v-if="showSubmit">
193
- <Button customIcon="iconfont icon-custom-submit" @click="comMethod(onSubmit, '提交')" >提交</Button>
193
+ <Button customIcon="iconfont icon-custom-submit" @click="comMethod(onSubmit, $t('提交'))" >{{ $t('提交') }}</Button>
194
194
  </Col>
195
195
  <Col v-if="showReset">
196
- <Button customIcon="iconfont icon-custom-recall" @click="comMethod(billBack, '撤回')" >撤回</Button>
196
+ <Button customIcon="iconfont icon-custom-recall" @click="comMethod(billBack, $t('撤回'))" >{{ $t('撤回') }}</Button>
197
197
  </Col>
198
198
  <Col v-show="false">
199
- <Button customIcon="iconfont icon-custom-jiaqian" @click="comMethod(billBack, '加签')" >加签</Button>
199
+ <Button customIcon="iconfont icon-custom-jiaqian" @click="comMethod(billBack, $t('加签'))" >{{ $t('加签') }}</Button>
200
200
  </Col>
201
201
  <Col v-if="showReject">
202
- <Button customIcon="iconfont icon-custom-reject" @click="comMethod(reject, '驳回')" >驳回</Button>
202
+ <Button customIcon="iconfont icon-custom-reject" @click="comMethod(reject, $t('驳回'))" >{{ $t('驳回') }}</Button>
203
203
  </Col>
204
204
  <Col v-if="showApprove">
205
- <Button customIcon="iconfont icon-custom-approve" @click="comMethod(submitApprove, '审批')" >审批</Button>
205
+ <Button customIcon="iconfont icon-custom-approve" @click="comMethod(submitApprove, $t('审批'))" >{{ $t('审批') }}</Button>
206
206
  </Col>
207
207
  </Row>
208
208
  </div>
@@ -275,16 +275,16 @@ export default {
275
275
  },
276
276
  info () {
277
277
  if (this.selectType === 'USER') {
278
- return '人';
278
+ return this.$t('人');
279
279
  } else {
280
- return '组';
280
+ return this.$t('组');
281
281
  }
282
282
  },
283
283
  info2 () {
284
284
  if (this.curlSelectType === 'USER') {
285
- return '人';
285
+ return this.$t('人');
286
286
  } else {
287
- return '组';
287
+ return this.$t('组');
288
288
  }
289
289
  }
290
290
  },
@@ -297,8 +297,8 @@ export default {
297
297
  methods: {
298
298
  comMethod(callback, msg) {
299
299
  this.$Modal.confirm({
300
- title: "确认",
301
- content: `确定是否${msg}数据?`,
300
+ title: this.$t("确认"),
301
+ content: this.$t('确定是否{text}数据?', { text: msg }),
302
302
  onOk: () => {
303
303
  callback();
304
304
  },
@@ -456,7 +456,7 @@ export default {
456
456
  },
457
457
  reject() { // 审批驳回
458
458
  if (!this.idea) {
459
- this.alert('意见不能为空',null,1);
459
+ this.alert(this.$t('意见不能为空'),null,1);
460
460
  return;
461
461
  }
462
462
  let para = {};
@@ -529,11 +529,11 @@ export default {
529
529
  },
530
530
  addAuditUser() {
531
531
  if (!this.idea) {
532
- this.alert('意见不能为空',null,1);
532
+ this.alert(this.$t('意见不能为空'),null,1);
533
533
  return;
534
534
  }
535
535
  if (this.approvals.length === 0) {
536
- this.alert('审批人不能为空');
536
+ this.alert(this.$t('审批人不能为空'));
537
537
  return;
538
538
  }
539
539
  let param = {
@@ -616,7 +616,7 @@ export default {
616
616
  },
617
617
  getCopyUserData () {
618
618
  if (!this.searchValue) {
619
- this.alert("查询内容不能为空");
619
+ this.alert(this.$t("查询内容不能为空"));
620
620
  return;
621
621
  }
622
622
  let para = {};
@@ -639,7 +639,7 @@ export default {
639
639
  },
640
640
  getStationData () {
641
641
  if (!this.searchValue) {
642
- this.alert("查询内容不能为空");
642
+ this.alert(this.$t("查询内容不能为空"));
643
643
  return;
644
644
  }
645
645
  let para = {};
@@ -407,7 +407,7 @@ export default {
407
407
  obj = this.setDetailAppendix(obj,e.rowinfo);
408
408
  }
409
409
  if (!obj.idkey) {
410
- this.alert('未设定附件绑定信息');
410
+ this.alert(this.$t('未设定附件绑定信息'));
411
411
  return;
412
412
  }
413
413
  this.$refs.detailappendix.setData(obj.billno,obj.billmoduleid,obj.idkey);
@@ -416,7 +416,7 @@ export default {
416
416
  if (e.readOnly) {
417
417
  let data = this.$refs.detailappendix.getData();
418
418
  if (data.length === 0) {
419
- this.alert('没有附件可查看');
419
+ this.alert(this.$t('没有附件可查看'));
420
420
  return;
421
421
  }
422
422
  }
@@ -494,7 +494,7 @@ export default {
494
494
  postData = this.setChangeData(action);
495
495
  }
496
496
  self.asyncPost(this.uiconfig.resources, method, postData, function(data){
497
- let msg = self.loadingtext +'成功!';
497
+ let msg = self.$t('{action}成功!', { action: self.loadingtext });
498
498
  if (data.msg) {
499
499
  msg = data.msg;
500
500
  }
@@ -525,7 +525,7 @@ export default {
525
525
  action.onOk(action, data);
526
526
  }
527
527
  },function(data) {
528
- const msg = self.loadingtext +'失败!' + data;
528
+ const msg = self.$t('{action}失败!{info}', { action: self.loadingtext, info: data });
529
529
  self.hideLoading();
530
530
  self.$nextTick(() =>{
531
531
  setTimeout(() => {
@@ -534,7 +534,7 @@ export default {
534
534
  });
535
535
  flag = false;
536
536
  },function(data) {
537
- const msg = self.loadingtext +'异常!' + data;
537
+ const msg = self.$t('{action}异常!{info}', { action: self.loadingtext, info: data });
538
538
  self.hideLoading();
539
539
  self.$nextTick(() =>{
540
540
  setTimeout(() => {
@@ -552,7 +552,7 @@ export default {
552
552
  }
553
553
  let text = '';
554
554
  if (btnConfig && btnConfig.text) {
555
- text = btnConfig.text;
555
+ text = this.$t(btnConfig.text);
556
556
  }
557
557
  if (this.getCustomActionName) {
558
558
  const temp = this.getCustomActionName(action.name, text);
@@ -835,11 +835,11 @@ export default {
835
835
  pro.type = 'NumberBox';
836
836
  }
837
837
  let sconfig = this.$Method.copy(printConfig);
838
- sconfig.printname = sconfig.printname + '(开始)';
838
+ sconfig.printname = this.$t('{name}(开始)', { name: sconfig.printname });
839
839
  sconfig.printcode = value.sname;
840
840
  list.push(sconfig);
841
841
  let econfig = this.$Method.copy(printConfig);
842
- econfig.printname = sconfig.printname + '(结束)';
842
+ econfig.printname = this.$t('{name}(结束)', { name: sconfig.printname });
843
843
  econfig.printcode = value.ename;
844
844
  list.push(econfig);
845
845
  } else {
@@ -867,7 +867,7 @@ export default {
867
867
  billprintConfig.children = [];
868
868
  let mainConfig = {};
869
869
  mainConfig.printcode = this.uiconfig.response;
870
- mainConfig.printname = '单据主表';
870
+ mainConfig.printname = this.$t('单据主表');
871
871
  mainConfig.printtype = '2';
872
872
  mainConfig.children = [];
873
873
  // if (this.uiconfig.layoutType === 'ListDetails') {
@@ -921,7 +921,7 @@ export default {
921
921
  return billprintConfig;
922
922
  },
923
923
  printBillData() {
924
- this.loadingtext= '打印数据准备中....';
924
+ this.loadingtext= this.$t('打印数据准备中....');
925
925
  this.showLoading();
926
926
  this.checkPrintConfig();
927
927
  },