ocpview-pro 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ocpviewplus.min.esm.js +2309 -1260
- package/dist/ocpviewplus.min.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/base/controlbox.vue +3 -3
- package/src/components/base/load.js +1 -1
- package/src/components/conditionbox/conditionbase.vue +3 -3
- package/src/components/conditionbox/conditionfilterbox.vue +9 -9
- package/src/components/conditionbox/conditionselectorbox.vue +52 -50
- package/src/components/conditionbox/queryconditionbox.vue +2 -2
- package/src/components/conditionbox/searchconditionbox.vue +2 -2
- package/src/components/conditionbox/searchgrid.vue +87 -86
- package/src/components/datebox/DateBoxV1.vue +1 -1
- package/src/components/form/detailsbox.vue +5 -3
- package/src/components/form/formcardbox.vue +3 -0
- package/src/components/form/formcardbox2.vue +3 -0
- package/src/components/form/formcardgroupbox.vue +2 -0
- package/src/components/form/formdetail.vue +2 -2
- package/src/components/form/formdetailtwo.vue +7 -7
- package/src/components/grid/basegrid.vue +5 -5
- package/src/components/grid/editgrid.vue +1 -1
- package/src/components/grid/editgridbase.vue +10 -1
- package/src/components/grid/editgridcard.vue +1 -1
- package/src/components/grid/viewgrid.vue +3 -3
- package/src/components/grid/viewgridbase.vue +10 -10
- package/src/components/map/mapbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +6 -6
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTableControlbox.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelQueryBar.vue +4 -4
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +2 -2
- package/src/components/masterplate/RewriteBillListDetails/index.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/BillListPanelV3QueryBar.vue +4 -4
- package/src/components/masterplate/RewriteListdetails/indexV2.vue +10 -10
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +10 -10
- package/src/components/masterplate/appendix.vue +23 -23
- package/src/components/masterplate/approval.vue +42 -42
- package/src/components/masterplate/base.vue +10 -10
- package/src/components/masterplate/billasyncimport.vue +39 -39
- package/src/components/masterplate/billconditionbox.vue +11 -11
- package/src/components/masterplate/billconditionsbox.vue +8 -8
- package/src/components/masterplate/billdetailform.vue +4 -4
- package/src/components/masterplate/billimport.vue +12 -12
- package/src/components/masterplate/billquerygrid.vue +2 -2
- package/src/components/masterplate/billsinglegrid.vue +4 -4
- package/src/components/masterplate/birtreport.vue +5 -5
- package/src/components/masterplate/contractappendix.vue +27 -27
- package/src/components/masterplate/detailbtntoolbar.vue +11 -11
- package/src/components/masterplate/detailsbox.vue +7 -7
- package/src/components/masterplate/editgridcard.vue +7 -7
- package/src/components/masterplate/editgridcard2.vue +5 -5
- package/src/components/masterplate/formdetailtwo.vue +8 -8
- package/src/components/masterplate/gridcolset.vue +6 -6
- package/src/components/masterplate/layouttemplate.vue +3 -3
- package/src/components/masterplate/leftlistrightdetails.vue +15 -13
- package/src/components/masterplate/leftlistrightlist.vue +24 -18
- package/src/components/masterplate/lefttreerightdetails.vue +17 -17
- package/src/components/masterplate/levelreport.vue +6 -6
- package/src/components/masterplate/listbtntoolbar.vue +3 -3
- package/src/components/masterplate/listdetails.vue +45 -45
- package/src/components/masterplate/operlog.vue +19 -19
- package/src/components/masterplate/promptmessage.vue +1 -1
- package/src/components/masterplate/querybar.vue +7 -7
- package/src/components/masterplate/report.vue +7 -7
- package/src/components/masterplate/rowbtntoolbar.vue +1 -1
- package/src/components/masterplate/simpletree.vue +3 -3
- package/src/components/masterplate/simpleviewgrid.vue +4 -4
- package/src/components/mychart/gauge/gauge.vue +1 -1
- package/src/components/numberbox/numberbox.vue +4 -4
- package/src/components/numberbox/numberrangebox.vue +11 -11
- package/src/components/picturebox/filebox.vue +6 -5
- package/src/components/picturebox/uploadbox.vue +3 -3
- package/src/components/poptagbox/poptagbox.vue +4 -3
- package/src/components/poptextbox/poptextbox.vue +5 -5
- package/src/components/richtextbox/editor.vue +36 -36
- package/src/components/richtextbox/richtextbox.vue +6 -6
- package/src/components/toolbar/toolbar.vue +7 -7
- package/src/components/tree/basetree.vue +3 -2
- package/src/components/tree/treedatabase.vue +1 -1
- package/src/components/upload/billimport.vue +8 -8
- package/src/components/videobox/uploadbox.vue +3 -9
- package/src/components/videobox/videobox.vue +1 -1
- package/src/components/wrichtextbox/editor.vue +26 -26
- package/src/index.js +1 -1
- package/src/localePlus/en-US.js +331 -1
- package/src/localePlus/zh-CN.js +331 -1
- package/src/localePlus/zh-TW.js +331 -1
- package/src/method/case/case.js +10 -10
- package/src/method/const/const.js +1 -1
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
</BillDetailForm>
|
|
12
12
|
<ApprovalBox ref="approval" :config="billApprovalConfig" @approvalOk="approvalOk" />
|
|
13
|
-
<Modal class-name="efuture-billapprovalmainframe" v-model="showApproval" fullscreen title="报批单" footer-hide>
|
|
13
|
+
<Modal class-name="efuture-billapprovalmainframe" v-model="showApproval" fullscreen :title="$t('报批单')" footer-hide>
|
|
14
14
|
<iframe frameborder="0" ref="billapprovalmainframe" style="width:100%;height:100%;" border="0"></iframe>
|
|
15
15
|
</Modal>
|
|
16
|
-
<Modal title="单据日志" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
|
|
16
|
+
<Modal :title="$t('单据日志')" v-model="showBilloperlog" :width="logcurrentWidth" :footer-hide="true">
|
|
17
17
|
<BillOperLog ref="billoperlog" :config="billOperLogConfig"/>
|
|
18
18
|
</Modal>
|
|
19
19
|
</div>
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
moduleMethod:{
|
|
69
69
|
type:Array,
|
|
70
70
|
default: () => {
|
|
71
|
-
return [];
|
|
71
|
+
return [];
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
|
|
117
117
|
// 处理详情
|
|
118
118
|
if (this.myConfig.detailConfig.showAnchorLink === undefined) {
|
|
@@ -126,8 +126,8 @@ export default {
|
|
|
126
126
|
this.myConfig.detailConfig.billKey = this.billKey;
|
|
127
127
|
this.myConfig.detailConfig.adjustHeight = 0;
|
|
128
128
|
this.myConfig.detailConfig.modulecode = this.myConfig.modulecode;
|
|
129
|
-
this.myConfig.detailConfig.resources = this.myConfig.resources;
|
|
130
|
-
this.myConfig.detailConfig.response = this.myConfig.response;
|
|
129
|
+
this.myConfig.detailConfig.resources = this.myConfig.resources;
|
|
130
|
+
this.myConfig.detailConfig.response = this.myConfig.response;
|
|
131
131
|
this.menuToolbar = Object.assign({},this.menutoolbar,this.myConfig.menuToolbar);
|
|
132
132
|
this.menuToolbar.billisworkflow = this.myConfig.billisworkflow;
|
|
133
133
|
if (this.myConfig.detailConfig.billapproveurl) {
|
|
@@ -152,10 +152,10 @@ export default {
|
|
|
152
152
|
}
|
|
153
153
|
if (this.myConfig.billPrintConfig) {
|
|
154
154
|
if (this.myConfig.billPrintConfig.showPrint) {
|
|
155
|
-
this.menuToolbar.printmodel = this.myConfig.billPrintConfig.showPrint;
|
|
155
|
+
this.menuToolbar.printmodel = this.myConfig.billPrintConfig.showPrint;
|
|
156
156
|
}
|
|
157
157
|
if (this.myConfig.billPrintConfig.showContPrint) {
|
|
158
|
-
this.menuToolbar.contprintmodel = this.myConfig.billPrintConfig.showContPrint;
|
|
158
|
+
this.menuToolbar.contprintmodel = this.myConfig.billPrintConfig.showContPrint;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
168
168
|
},
|
|
169
169
|
methods:{
|
|
170
170
|
setLogName() {
|
|
171
|
-
this.logName.push({code:this.myConfig.detailConfig.response,name:'主表'});
|
|
171
|
+
this.logName.push({code:this.myConfig.detailConfig.response,name:this.$t('主表')});
|
|
172
172
|
this.myConfig.detailConfig.formsConfig.items.forEach(el => {
|
|
173
173
|
this.initLogName(el.items,this.myConfig.detailConfig.response,el.title)
|
|
174
174
|
});
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
// '打印初期化'
|
|
268
268
|
if (obj.name === 'initPrintConfig') {
|
|
269
269
|
this.initPrintConfig();
|
|
270
270
|
}
|
|
@@ -287,11 +287,11 @@ export default {
|
|
|
287
287
|
this.ph_key = '';
|
|
288
288
|
this.$refs.billqureygrid.refurbish();
|
|
289
289
|
*/
|
|
290
|
-
}
|
|
290
|
+
}
|
|
291
291
|
// 重置
|
|
292
292
|
if (obj.name === 'resetData') {
|
|
293
293
|
this.$refs.billqureygrid.getQuick().clearData();
|
|
294
|
-
}
|
|
294
|
+
}
|
|
295
295
|
|
|
296
296
|
// 编辑
|
|
297
297
|
if (obj.name === 'editData') {
|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
319
319
|
};
|
|
320
320
|
this.checkData(temp);
|
|
321
321
|
return true;
|
|
322
|
-
|
|
322
|
+
} else {
|
|
323
323
|
this.$refs.form.setReadOnly(false);
|
|
324
324
|
this.$refs.form.clearData();
|
|
325
325
|
this.getMenuToolbar().setAllReadOnly(true);
|
|
@@ -328,15 +328,15 @@ export default {
|
|
|
328
328
|
this.logData = null;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
// 上一单
|
|
331
|
+
// 上一单
|
|
332
332
|
if (obj.name === 'preBill') {
|
|
333
333
|
this.preBill();
|
|
334
334
|
}
|
|
335
|
-
// 下一单
|
|
335
|
+
// 下一单
|
|
336
336
|
if (obj.name === 'nextBill') {
|
|
337
337
|
this.nextBill();
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
|
|
340
340
|
if (this.$parent[methodAfter]) {
|
|
341
341
|
this.$parent[methodAfter]();
|
|
342
342
|
}
|
|
@@ -346,20 +346,20 @@ export default {
|
|
|
346
346
|
if (obj.name === 'saveData') {
|
|
347
347
|
let flag = this.$refs.form.checkValidate();
|
|
348
348
|
if (flag) {
|
|
349
|
-
this.alert('必填项不允许为空');
|
|
349
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
350
350
|
return false;
|
|
351
351
|
}
|
|
352
352
|
flag = this.$refs.form.isEdit();
|
|
353
353
|
if (flag) {
|
|
354
|
-
this.alert('存在数据未确认');
|
|
355
|
-
return false;
|
|
354
|
+
this.alert(this.$t('存在数据未确认'));
|
|
355
|
+
return false;
|
|
356
356
|
}
|
|
357
357
|
obj.para = this.$refs.form.getChangeData();
|
|
358
|
-
}
|
|
358
|
+
}
|
|
359
359
|
if (obj.name === 'saveDetails') {
|
|
360
360
|
obj.para = this.$refs.form.getChangeData(obj.detailsname);
|
|
361
361
|
obj.name = 'saveData';
|
|
362
|
-
}
|
|
362
|
+
}
|
|
363
363
|
if (obj.name === 'delData') {
|
|
364
364
|
if (this.showHead) {
|
|
365
365
|
obj.para = data;
|
|
@@ -375,7 +375,7 @@ export default {
|
|
|
375
375
|
obj.para = temp;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
}
|
|
378
|
+
}
|
|
379
379
|
if (obj.name === 'copyData') {
|
|
380
380
|
if (!obj.para) {
|
|
381
381
|
obj.para = {};
|
|
@@ -391,18 +391,18 @@ export default {
|
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
393
|
if (obj.name === 'delData' || obj.name === 'auditData' || obj.name === 'cancelData' || obj.name === 'revokeData') {
|
|
394
|
-
let text = '删除';
|
|
394
|
+
let text = this.$t('删除');
|
|
395
395
|
if (obj.name === 'auditData') {
|
|
396
|
-
text = '审核';
|
|
396
|
+
text = this.$t('审核');
|
|
397
397
|
obj.para ={billno:data.billno};
|
|
398
398
|
}
|
|
399
399
|
if (obj.name === 'cancelData') {
|
|
400
|
-
text = '作废';
|
|
400
|
+
text = this.$t('作废');
|
|
401
401
|
obj.para ={billno:data.billno};
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
|
|
404
404
|
if (obj.name === 'revokeData') {
|
|
405
|
-
text = '撤回';
|
|
405
|
+
text = this.$t('撤回');
|
|
406
406
|
obj.para ={billno:data.billno};
|
|
407
407
|
}
|
|
408
408
|
if (this.$parent.getActionName) {
|
|
@@ -410,11 +410,11 @@ export default {
|
|
|
410
410
|
if (name) {
|
|
411
411
|
text = name;
|
|
412
412
|
}
|
|
413
|
-
}
|
|
414
|
-
let info = '确定是否'
|
|
413
|
+
}
|
|
414
|
+
let info = this.$t('确定是否{text}数据?', { text: text });
|
|
415
415
|
let self = this;
|
|
416
416
|
self.$Modal.confirm({
|
|
417
|
-
title:'确认',
|
|
417
|
+
title:this.$t('确认'),
|
|
418
418
|
content: info,
|
|
419
419
|
onOk:() => {
|
|
420
420
|
self.$emit('doAction', obj);
|
|
@@ -432,7 +432,7 @@ export default {
|
|
|
432
432
|
} else {
|
|
433
433
|
if (this.$refs.form) {
|
|
434
434
|
this.$resfs.form.doAnchorClick();
|
|
435
|
-
}
|
|
435
|
+
}
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
setRowBtnVisible(value) {
|
|
@@ -474,7 +474,7 @@ export default {
|
|
|
474
474
|
},
|
|
475
475
|
initForm(para,methodName) {
|
|
476
476
|
if (!this.showHead) {
|
|
477
|
-
this.loadingtext ='加载';
|
|
477
|
+
this.loadingtext =this.$t('加载');
|
|
478
478
|
this.showLoading();
|
|
479
479
|
}
|
|
480
480
|
this.$nextTick(() => {
|
|
@@ -490,7 +490,7 @@ export default {
|
|
|
490
490
|
if (this.$parent.setBillData) {
|
|
491
491
|
data = this.$parent.setBillData(data);
|
|
492
492
|
}
|
|
493
|
-
this.$refs.form.setData(data);
|
|
493
|
+
this.$refs.form.setData(data);
|
|
494
494
|
this.customPrintData = this.$Method.copy(data);
|
|
495
495
|
this.$nextTick(() => {
|
|
496
496
|
this.$refs.form.setReadOnly(true);
|
|
@@ -512,7 +512,7 @@ export default {
|
|
|
512
512
|
this.getMenuToolbar().setReadOnly(['addData'], false);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
|
|
516
516
|
if (this.$parent.initFormAfter) {
|
|
517
517
|
this.$parent.initFormAfter(data);
|
|
518
518
|
}
|
|
@@ -522,9 +522,9 @@ export default {
|
|
|
522
522
|
this.$nextTick(() => {
|
|
523
523
|
this.showHead = true;
|
|
524
524
|
});
|
|
525
|
-
},20);
|
|
525
|
+
},20);
|
|
526
526
|
});
|
|
527
|
-
|
|
527
|
+
|
|
528
528
|
},
|
|
529
529
|
getMenuToolbar() {
|
|
530
530
|
return this.$refs.menutoolbar;
|
|
@@ -569,7 +569,7 @@ export default {
|
|
|
569
569
|
formdata = data[self.config.response];
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
|
|
573
573
|
result.billkey = para[this.billKey];
|
|
574
574
|
result.formdata = formdata;
|
|
575
575
|
return result;
|
|
@@ -629,9 +629,9 @@ export default {
|
|
|
629
629
|
}
|
|
630
630
|
} else {
|
|
631
631
|
this.setPhkey(this.ph_key);
|
|
632
|
-
this.$refs.billqureygrid.refurbish();
|
|
632
|
+
this.$refs.billqureygrid.refurbish();
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
|
|
635
635
|
},
|
|
636
636
|
checkData (obj) {
|
|
637
637
|
let tempflag = false;
|
|
@@ -639,8 +639,8 @@ export default {
|
|
|
639
639
|
if (tempflag) {
|
|
640
640
|
let self = this;
|
|
641
641
|
self.$Modal.confirm({
|
|
642
|
-
title:'确认',
|
|
643
|
-
content:'数据存在数据未确认,是否放弃?',
|
|
642
|
+
title:this.$t('确认'),
|
|
643
|
+
content:this.$t('数据存在数据未确认,是否放弃?'),
|
|
644
644
|
onOk:() => {
|
|
645
645
|
this.checkChangeData(obj);
|
|
646
646
|
},
|
|
@@ -660,8 +660,8 @@ export default {
|
|
|
660
660
|
if (flag) {
|
|
661
661
|
let self = this;
|
|
662
662
|
self.$Modal.confirm({
|
|
663
|
-
title:'确认',
|
|
664
|
-
content:'数据有修改未保存,是否放弃修改?',
|
|
663
|
+
title:this.$t('确认'),
|
|
664
|
+
content:this.$t('数据有修改未保存,是否放弃修改?'),
|
|
665
665
|
onOk:() => {
|
|
666
666
|
if (obj.onOk) {
|
|
667
667
|
obj.onOk();
|
|
@@ -700,7 +700,7 @@ export default {
|
|
|
700
700
|
data = this.$parent.getApprovalData();
|
|
701
701
|
}
|
|
702
702
|
if (!data || !data.billno || !data.billmoduleid || !data.billstatus) {
|
|
703
|
-
this.alert('数据信息不全,无法打开工作流');
|
|
703
|
+
this.alert(this.$t('数据信息不全,无法打开工作流'));
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
this.$refs.approval.setData(data);
|
|
@@ -734,7 +734,7 @@ export default {
|
|
|
734
734
|
this.$refs.billoperlog.setData(this.logData[this.billOperLogConfig.operLogKey],this.logData);
|
|
735
735
|
this.showBilloperlog = true;
|
|
736
736
|
} else {
|
|
737
|
-
this.alert('未产生日志');
|
|
737
|
+
this.alert(this.$t('未产生日志'));
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
740
|
setEffectData(data) {
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
dynamicHeight:false,
|
|
25
25
|
resources:'operbilllog',
|
|
26
26
|
height:360,
|
|
27
|
-
title:'操作日志',
|
|
27
|
+
title:this.$t('操作日志'),
|
|
28
28
|
method:'mss.sysconf.operationlog.search',
|
|
29
29
|
generalOrientation:true,
|
|
30
30
|
showPage:false,
|
|
@@ -34,41 +34,41 @@ export default {
|
|
|
34
34
|
},
|
|
35
35
|
response:'operationlog',
|
|
36
36
|
items:[{
|
|
37
|
-
label:'操作类型',
|
|
37
|
+
label:this.$t('操作类型'),
|
|
38
38
|
name:'upstatus',
|
|
39
39
|
type:'ComboBox',
|
|
40
40
|
data:[{
|
|
41
|
-
code:'U',name:'修改'
|
|
41
|
+
code:'U',name:this.$t('修改')
|
|
42
42
|
}, {
|
|
43
|
-
code:'I',name:'新增'
|
|
43
|
+
code:'I',name:this.$t('新增')
|
|
44
44
|
}, {
|
|
45
|
-
code:'D',name:'删除'
|
|
45
|
+
code:'D',name:this.$t('删除')
|
|
46
46
|
}],
|
|
47
47
|
codeWithName:false,
|
|
48
48
|
width:100
|
|
49
49
|
},{
|
|
50
|
-
label:'操作日期',
|
|
50
|
+
label:this.$t('操作日期'),
|
|
51
51
|
name:'operdate',
|
|
52
52
|
type:'DateBox',
|
|
53
53
|
vtype:'datetime',
|
|
54
54
|
width:150
|
|
55
55
|
}, {
|
|
56
|
-
label:'操作人',
|
|
56
|
+
label:this.$t('操作人'),
|
|
57
57
|
name:'username',
|
|
58
58
|
type:'TextBox',
|
|
59
59
|
width:150
|
|
60
60
|
}, {
|
|
61
|
-
label:'操作主体',
|
|
61
|
+
label:this.$t('操作主体'),
|
|
62
62
|
name:'upmain',
|
|
63
63
|
type:'TextBox',
|
|
64
64
|
tooltip:true
|
|
65
65
|
},{
|
|
66
|
-
label:'操作字段',
|
|
66
|
+
label:this.$t('操作字段'),
|
|
67
67
|
name:'upfield',
|
|
68
68
|
type:'TextBox',
|
|
69
69
|
tooltip:true
|
|
70
70
|
},{
|
|
71
|
-
label:'操作内容',
|
|
71
|
+
label:this.$t('操作内容'),
|
|
72
72
|
name:'memo',
|
|
73
73
|
type:'TextBox',
|
|
74
74
|
tooltip:true
|
|
@@ -159,7 +159,7 @@ export default {
|
|
|
159
159
|
let index = detaildata.findIndex(el3 => el3.ph_key === el.idkey);
|
|
160
160
|
if (index > -1) {
|
|
161
161
|
let rowNum = index + 1;
|
|
162
|
-
rowInfo = '第'
|
|
162
|
+
rowInfo = this.$t('第{row}行', { row: rowNum });
|
|
163
163
|
}
|
|
164
164
|
} else {
|
|
165
165
|
let flag = false;
|
|
@@ -180,21 +180,21 @@ export default {
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
if (flag) {
|
|
183
|
-
rowInfo = tmp.headtitle
|
|
183
|
+
rowInfo = this.$t('{title}[{code}]第{row}行', { title: tmp.headtitle, code: headcode, row: row });
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
if (rowInfo) {
|
|
188
188
|
memo = memo + rowInfo;
|
|
189
189
|
} else {
|
|
190
|
-
memo = memo + '明细物理主健['
|
|
190
|
+
memo = memo + this.$t('明细物理主健[{idkey}]', { idkey: bean.idkey });
|
|
191
191
|
}
|
|
192
192
|
} else{
|
|
193
|
-
memo = memo + '主表';
|
|
193
|
+
memo = memo + this.$t('主表');
|
|
194
194
|
if (bean.masterslavekey) {
|
|
195
|
-
memo = memo + '业务主键['
|
|
195
|
+
memo = memo + this.$t('业务主键[{masterslavekey}]', { masterslavekey: bean.masterslavekey });
|
|
196
196
|
} else {
|
|
197
|
-
memo = memo + '物理主健['
|
|
197
|
+
memo = memo + this.$t('物理主健[{idkey}]', { idkey: bean.idkey });
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
bean.memo = memo;
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
222
222
|
newvalue = this.$Method.formatDataBox(newvalue,tmp);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
bean2.memo = '原值['
|
|
225
|
+
bean2.memo = this.$t('原值[{oldvalue}],新值[{newvalue}]', { oldvalue: oldvalue, newvalue: newvalue });
|
|
226
226
|
if (tmp.isdetail) {
|
|
227
227
|
if (!tmp.headcode) {
|
|
228
228
|
let detaildata = this.form[el.uptabname];
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
231
231
|
let index = detaildata.findIndex(el3 => el3.ph_key === el.idkey);
|
|
232
232
|
if (index > -1) {
|
|
233
233
|
let rowNum = index + 1;
|
|
234
|
-
bean2.upfield = '(第'
|
|
234
|
+
bean2.upfield = this.$t('(第{row}行){field}', { row: rowNum, field: bean2.upfield })
|
|
235
235
|
}
|
|
236
236
|
} else if(tmp.isdetail === '2') {
|
|
237
237
|
let flag = false;
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
if (flag) {
|
|
255
|
-
bean2.upfield = '('
|
|
255
|
+
bean2.upfield = this.$t('({title}[{code}]第{row}行){field}', { title: tmp.headtitle, code: headcode, row: row, field: bean2.upfield });
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<Col v-if="showHelpBtn">
|
|
7
7
|
<p @click="openHelp" style="cursor:pointer;height:32px;line-height: 32px;">
|
|
8
8
|
<Row type="flex" justify="start" align="middle">
|
|
9
|
-
<Icon custom='iconfont icon-custom-help' size="16" /> <span style="margin-left: 4px;"
|
|
9
|
+
<Icon custom='iconfont icon-custom-help' size="16" /> <span style="margin-left: 4px;">{{ $t('帮助中心') }}</span>
|
|
10
10
|
</Row>
|
|
11
11
|
</p>
|
|
12
12
|
</Col>
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<ControlBox v-if="hackReset" ref="editors" :config="editorsConfig" ></ControlBox>
|
|
11
11
|
</Col>
|
|
12
12
|
<Col style="margin-right:10px">
|
|
13
|
-
<Button customIcon="iconfont icon-custom-search" type="primary" @click="search"
|
|
13
|
+
<Button customIcon="iconfont icon-custom-search" type="primary" @click="search" >{{ $t('查询') }}</Button>
|
|
14
14
|
</Col>
|
|
15
15
|
<Col>
|
|
16
|
-
<Button customIcon="iconfont icon-custom-reset" @click="clear"
|
|
16
|
+
<Button customIcon="iconfont icon-custom-reset" @click="clear">{{ $t('重置') }}</Button>
|
|
17
17
|
</Col>
|
|
18
18
|
<Col>
|
|
19
19
|
<Divider type="vertical" class="dividercommon"/>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<Dropdown trigger="custom" :visible="filterSceneFlag" @on-click="filterAction" placement="bottom-start" @on-clickoutside="closeFilterScene">
|
|
23
23
|
<Badge class-name="badgeclass" :count="sceneNum">
|
|
24
24
|
<ButtonGroup>
|
|
25
|
-
<Button customIcon="iconfont icon-custom-filter" @click="updataFilterScene"
|
|
25
|
+
<Button customIcon="iconfont icon-custom-filter" @click="updataFilterScene">{{ $t('高级查询') }}</Button>
|
|
26
26
|
<Button v-if="!filterSceneFlag && sceneFlag" icon="ios-arrow-down" @click="openFilterScene"> </Button>
|
|
27
27
|
<Button v-if="filterSceneFlag && sceneFlag" icon="ios-arrow-up" @click="closeFilterScene"> </Button>
|
|
28
28
|
</ButtonGroup>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<Col style="padding-right:10px;">
|
|
42
42
|
<Dropdown trigger="custom" :visible="btnFlag" @on-click="action" placement="bottom-start" @on-clickoutside="closeBtn">
|
|
43
43
|
<ButtonGroup>
|
|
44
|
-
<Button customIcon="iconfont icon-custom-add" v-if="addDataBtnFlag" @click="addData"
|
|
44
|
+
<Button customIcon="iconfont icon-custom-add" v-if="addDataBtnFlag" @click="addData">{{ $t('新增') }}</Button>
|
|
45
45
|
<Button v-if="!btnFlag && moreBtnFlag" icon="ios-arrow-down" @click="openBtn"> </Button>
|
|
46
46
|
<Button v-if="btnFlag && moreBtnFlag" icon="ios-arrow-up" @click="closeBtn"> </Button>
|
|
47
47
|
</ButtonGroup>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
name:'field',
|
|
115
115
|
type:'ComboBox',
|
|
116
116
|
codeWithName:false,
|
|
117
|
-
placeholder:'请选择',
|
|
117
|
+
placeholder:this.$t('请选择'),
|
|
118
118
|
valueChanged:this.fieldChanged
|
|
119
119
|
},
|
|
120
120
|
editorsConfig:{
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
if (obj.para.flag === 'I') {
|
|
387
387
|
let index = this.sceneData.findIndex(el => el.scenename === obj.para.scenename);
|
|
388
388
|
if (index > -1) {
|
|
389
|
-
this.alert('场景名称['
|
|
389
|
+
this.alert(this.$t('场景名称[{name}]已存在,请检查', { name: obj.para.scenename }));
|
|
390
390
|
return false;
|
|
391
391
|
} else {
|
|
392
392
|
this.sceneData.push(obj.para);
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
if (this.selectedScence !== obj.para.scenename) {
|
|
398
398
|
let index = this.sceneData.findIndex(el => el.scenename === obj.para.scenename);
|
|
399
399
|
if (index > -1) {
|
|
400
|
-
this.alert('场景名称['
|
|
400
|
+
this.alert(this.$t('场景名称[{name}]已存在,请检查', { name: obj.para.scenename }));
|
|
401
401
|
return false;
|
|
402
402
|
}
|
|
403
403
|
} else {
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
myConfig:{
|
|
35
35
|
titleType:2,
|
|
36
36
|
divStyle:'padding:5px',
|
|
37
|
-
title:'查询条件',
|
|
37
|
+
title:this.$t('查询条件'),
|
|
38
38
|
showMaxRow:2,
|
|
39
39
|
tabFlag:false,
|
|
40
40
|
showAsyncImportExport:false,
|
|
@@ -45,9 +45,9 @@ export default {
|
|
|
45
45
|
gridToolbar:{},
|
|
46
46
|
hideItems:[],
|
|
47
47
|
frontBtn: [{
|
|
48
|
-
name:'searchData',text:'查询',icon:'custom-search'
|
|
48
|
+
name:'searchData',text:this.$t('查询'),icon:'custom-search'
|
|
49
49
|
},{
|
|
50
|
-
name:'clearData',text:'清除',icon:'custom-clean'
|
|
50
|
+
name:'clearData',text:this.$t('清除'),icon:'custom-clean'
|
|
51
51
|
}]
|
|
52
52
|
};
|
|
53
53
|
},
|
|
@@ -100,7 +100,7 @@ export default {
|
|
|
100
100
|
});
|
|
101
101
|
this.menuToolbar.items = frontBtn.concat(this.menuToolbar.items);
|
|
102
102
|
this.menuToolbar.mainButton = 'searchData';
|
|
103
|
-
this.menuToolbar.mainButtonText ='查询';
|
|
103
|
+
this.menuToolbar.mainButtonText =this.$t('查询');
|
|
104
104
|
this.menuToolbar.ignoreModule = ['searchData','clearData'];
|
|
105
105
|
let lineNum = this.myConfig.formConfig.lineNum;
|
|
106
106
|
let culLineNum = 0;
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
this.$refs.form.checkValidate();
|
|
219
219
|
let flag = this.$refs.form.isError();
|
|
220
220
|
if (flag) {
|
|
221
|
-
this.alert('必填项不允许为空');
|
|
221
|
+
this.alert(this.$t('必填项不允许为空'));
|
|
222
222
|
return false;
|
|
223
223
|
}
|
|
224
224
|
if (this.$parent.searchCheck) {
|
|
@@ -270,7 +270,7 @@ export default {
|
|
|
270
270
|
commonExport(grid) {
|
|
271
271
|
let data = grid.getData();
|
|
272
272
|
if (data.length === 0) {
|
|
273
|
-
this.alert('请先查询数据');
|
|
273
|
+
this.alert(this.$t('请先查询数据'));
|
|
274
274
|
return false;
|
|
275
275
|
}
|
|
276
276
|
if (grid.config.dynamicColumnFlag) {
|
|
@@ -288,7 +288,7 @@ export default {
|
|
|
288
288
|
if (moduleCode) {
|
|
289
289
|
_param.moduleCode = moduleCode;
|
|
290
290
|
} else {
|
|
291
|
-
this.alert('模块号不能为空');
|
|
291
|
+
this.alert(this.$t('模块号不能为空'));
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
_param.exporttype = 'excel';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
<Col v-if="moreFlag">
|
|
12
12
|
<Dropdown size="small" :transfer="transferFlag" >
|
|
13
|
-
<Button type="text"><span style="color:#AF292E;"
|
|
13
|
+
<Button type="text"><span style="color:#AF292E;">{{ $t('更多') }}</span></Button>
|
|
14
14
|
<template #list>
|
|
15
15
|
<DropdownMenu>
|
|
16
16
|
<DropdownItem>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
extends: Base,
|
|
20
20
|
data () {
|
|
21
21
|
return {
|
|
22
|
-
searchPlaceholder:'请输入编码或名称',
|
|
22
|
+
searchPlaceholder:this.$t('请输入编码或名称'),
|
|
23
23
|
searchValue:'',
|
|
24
24
|
gridReset:true
|
|
25
25
|
}
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
this.gridConfig.items = [];
|
|
45
45
|
}
|
|
46
46
|
let code = {
|
|
47
|
-
label:'编码',
|
|
47
|
+
label:this.$t('编码'),
|
|
48
48
|
name:this.myConfig.responseCode,
|
|
49
49
|
type:'TextBox',
|
|
50
50
|
}
|
|
51
51
|
let name = {
|
|
52
|
-
label:'名称',
|
|
52
|
+
label:this.$t('名称'),
|
|
53
53
|
name:this.myConfig.responseName,
|
|
54
54
|
type:'TextBox',
|
|
55
55
|
}
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
</Col>
|
|
51
51
|
<Col span= '2'>
|
|
52
52
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
53
|
-
<Tooltip content="添加" placement="right">
|
|
53
|
+
<Tooltip :content="$t('添加')" placement="right">
|
|
54
54
|
<Button type="primary" size="small" icon="ios-arrow-forward" :disabled="!leftActive" @click="moveToRight"></Button>
|
|
55
55
|
</Tooltip>
|
|
56
56
|
</Row>
|
|
57
57
|
<Row type="flex" justify="center" align="middle" style="padding:5px;" >
|
|
58
|
-
<Tooltip content="删除" placement="left">
|
|
58
|
+
<Tooltip :content="$t('删除')" placement="left">
|
|
59
59
|
<Button type="primary" size="small" icon="ios-arrow-back" :disabled="!rightActive" @click="moveToLeft"></Button>
|
|
60
60
|
</Tooltip>
|
|
61
61
|
</Row>
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
if (this.myConfig.showIndex) {
|
|
98
98
|
if (this.myConfig.showSumGroup) {
|
|
99
99
|
let indexConfig = {
|
|
100
|
-
label: '行号',
|
|
100
|
+
label: this.$t('行号'),
|
|
101
101
|
name: 'sumindex',
|
|
102
102
|
type: 'TextBox',
|
|
103
103
|
align: 'center',
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
index.type = 'index';
|
|
112
112
|
index.key = 'index';
|
|
113
113
|
index.width = 45;
|
|
114
|
-
index.title = '行号';
|
|
114
|
+
index.title = this.$t('行号');
|
|
115
115
|
index.align = 'center';
|
|
116
116
|
if (this.myConfig.fixedIndex){
|
|
117
117
|
index.fixed = 'left';
|
|
@@ -116,21 +116,21 @@ export default {
|
|
|
116
116
|
}
|
|
117
117
|
if (this.myConfig.boundaryValue) {
|
|
118
118
|
if (Number(this.label) < this.myConfig.min) {
|
|
119
|
-
this.alert('输入值不能小于'
|
|
119
|
+
this.alert(this.$t('输入值不能小于{min}', { min: this.myConfig.min }));
|
|
120
120
|
this.label = this.myConfig.min;
|
|
121
121
|
}
|
|
122
122
|
if (Number(this.label) > this.myConfig.max) {
|
|
123
|
-
this.alert('输入值不能大于'
|
|
123
|
+
this.alert(this.$t('输入值不能大于{max}', { max: this.myConfig.max }));
|
|
124
124
|
this.label = this.myConfig.max;
|
|
125
125
|
}
|
|
126
126
|
} else {
|
|
127
127
|
if (Number(this.label) <= this.myConfig.min) {
|
|
128
|
-
this.alert('输入值不能小于等于'
|
|
128
|
+
this.alert(this.$t('输入值不能小于等于{min}', { min: this.myConfig.min }));
|
|
129
129
|
this.setFatherValueFail();
|
|
130
130
|
return false;
|
|
131
131
|
}
|
|
132
132
|
if (Number(this.label) >= this.myConfig.max) {
|
|
133
|
-
this.alert('输入值不能大于等于'
|
|
133
|
+
this.alert(this.$t('输入值不能大于等于{max}', { max: this.myConfig.max }));
|
|
134
134
|
this.setFatherValueFail();
|
|
135
135
|
return false;
|
|
136
136
|
}
|