eoss-mobiles 0.3.81 → 0.3.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-mobiles",
3
- "version": "0.3.81",
3
+ "version": "0.3.83",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -593,7 +593,7 @@
593
593
  </div>
594
594
  <div v-else-if="showFlowBtn" class="btn-list">
595
595
  <div class="btn" @click="navigateBack">取消</div>
596
- <div class="btn" @click="onSubmit()">{{submitButtonName || 确定}}</div>
596
+ <div class="btn" @click="onSubmit()">{{submitButtonName || '确定'}}</div>
597
597
  </div>
598
598
  </div>
599
599
  <Reject
@@ -888,6 +888,8 @@ export default {
888
888
  created() {
889
889
  // 获取用户信息
890
890
  // 生成时间数组
891
+ this.currentOrgSelectorParams={pid:this.orgId}
892
+ console.log(this.currentOrgSelectorParams,'this.currentOrgSelectorParams')
891
893
  this.timeList = new Array();
892
894
  for (let i = 0; i < 25; i++) {
893
895
  this.timeList.push(i);
@@ -31,7 +31,7 @@
31
31
  </div>
32
32
  <div class="item" v-if="taskReadType === '分阅' && type != 'transfer'">
33
33
  <em-selector
34
- label="分阅人员"
34
+ :label="isSyncCopy ? '接收人' : '分阅人员'"
35
35
  required
36
36
  :multiple="multiple"
37
37
  tabs="employee,persongroup"
@@ -43,6 +43,19 @@
43
43
  @change="disposeAppUser"
44
44
  />
45
45
  </div>
46
+ <div class="item" v-if="isSyncCopy">
47
+ <em-input label="分阅模式" readonly>
48
+ <template slot="input">
49
+ <div class="template-input-two" style="width: 100%">
50
+ <em-radio-group
51
+ v-model="isSync"
52
+ :data="radioData"
53
+ direction="horizontal"
54
+ />
55
+ </div>
56
+ </template>
57
+ </em-input>
58
+ </div>
46
59
  <div class="item" v-if="taskReadType === '阅结'">
47
60
  <em-input
48
61
  readonly
@@ -77,7 +90,7 @@
77
90
  </div>
78
91
  <div class="item">
79
92
  <Message
80
- v-if="!hideMessage"
93
+ v-if="!hideMessage"
81
94
  ref="message"
82
95
  :code="msgCode"
83
96
  :readOnlyNotificationType="readOnlyNotificationType"
@@ -118,9 +131,15 @@ export default {
118
131
  data() {
119
132
  return {
120
133
  nextNode: {},
134
+ isSync: '0',
135
+ radioData: [
136
+ { name: '普通分阅', value: '0' },
137
+ { name: '同步办理', value: '1' }
138
+ ],
139
+ isSyncCopy: false,
121
140
  readOnlyNotificationType: '',
122
141
  defaultNotificationMessage: '',
123
- selectPersonValue:0,
142
+ selectPersonValue: 0,
124
143
  notificationMessageReadOnly: false,
125
144
  dataJson: {
126
145
  isCdjxjTaskHandle: undefined
@@ -184,7 +203,7 @@ export default {
184
203
  },
185
204
  computed: {
186
205
  getSubText() {
187
- return this.processObj.rereadButtonName || '确定'
206
+ return this.processObj.rereadButtonName || '确定';
188
207
  },
189
208
  params() {
190
209
  return {
@@ -210,9 +229,9 @@ export default {
210
229
  // this.getProcessObjNew();
211
230
  // }
212
231
  this.getFind();
213
- request({url:findUserBaseInfo}).then(res => {
214
- console.log(res)
215
- })
232
+ request({ url: findUserBaseInfo }).then((res) => {
233
+ console.log(res);
234
+ });
216
235
  if (!this.readParams) {
217
236
  this.getHandleInfoHtml();
218
237
  } else {
@@ -306,7 +325,7 @@ export default {
306
325
  .then((res) => {
307
326
  const { status, message, data } = res;
308
327
  if (status === 'success') {
309
- if(this.hideMessage) return
328
+ if (this.hideMessage) return;
310
329
  this.form.notificationMsgType = message.split(',');
311
330
  this.defaultNotificationType = message.split(',');
312
331
  if (data) {
@@ -437,13 +456,13 @@ export default {
437
456
  } else if (this.selectPersonValue == 6) {
438
457
  this.multiple = true;
439
458
  this.params.pid = 'root';
440
- }else if(this.selectPersonValue == 7){
441
- this.multiple = false
442
- this.params.pid = orgId
443
- }else if(this.selectPersonValue == 8){
444
- this.multiple = true
445
- this.params.pid = orgId
446
- }else{
459
+ } else if (this.selectPersonValue == 7) {
460
+ this.multiple = false;
461
+ this.params.pid = orgId;
462
+ } else if (this.selectPersonValue == 8) {
463
+ this.multiple = true;
464
+ this.params.pid = orgId;
465
+ } else {
447
466
  this.params.pid = 'root';
448
467
  }
449
468
  },
@@ -452,25 +471,29 @@ export default {
452
471
  this.form.notificationMsgType = obj.notificationType.join(',');
453
472
  this.form.notificationMsg = obj.notificationMsg;
454
473
  },
455
- getTaskRead(){
456
- let params = {
474
+ getTaskRead() {
475
+ let params = {
457
476
  appId: this.processObj.taskExamine.appId,
458
477
  businessId: this.processObj.taskExamine.businessId,
459
478
  // taskAction: this.newType,
460
479
  userId: this.userId,
461
480
  mobileKey: util.getStorage('deviceId') || '123'
462
481
  };
463
- request({
482
+ request({
464
483
  url: this.baseUrl
465
484
  ? this.baseUrl + toStartTaskReadNew
466
485
  : toStartTaskReadNew,
467
486
  params: params
468
487
  }).then((res) => {
469
- if(res.status == 'success' || res.rCode == 0){
470
- this.selectPersonValue = res.data.selectPersonValue
471
- this.isMultiple()
472
- }
473
- })
488
+ if (res.status == 'success' || res.rCode == 0) {
489
+ this.selectPersonValue = res.data.selectPersonValue;
490
+ this.isSyncCopy = res.data.isSyncCopy == 1;
491
+ if(res.data.taskHandleReadUserSelectLabelName){
492
+ this.radioData[1].name = res.data.taskHandleReadUserSelectLabelName
493
+ }
494
+ this.isMultiple();
495
+ }
496
+ });
474
497
  },
475
498
  getProcessObjNew() {
476
499
  const _that = this;
@@ -494,7 +517,7 @@ export default {
494
517
  // this.notificationMsgType = res.data.defaultNotificationType.split(',');
495
518
  // this.isMultiple()
496
519
 
497
- this.getTaskRead()
520
+ this.getTaskRead();
498
521
  // this.taskExamine = res.data.taskExamine;
499
522
  // console.log(this.taskExamine, 'taskExaminetaskExaminetaskExamine');
500
523
  } else {
@@ -589,7 +612,7 @@ export default {
589
612
  defaultNotificationMessage
590
613
  }
591
614
  } = res;
592
- console.log(status,'来了')
615
+ console.log(status, '来了');
593
616
  if (status == 'success') {
594
617
  this.defaultNotificationMessage = defaultNotificationMessage;
595
618
  this.form.notificationMsg = defaultNotificationMessage;
@@ -636,7 +659,7 @@ export default {
636
659
  params: {
637
660
  ...this.form,
638
661
  pendingId: this.pendingId,
639
- appId,
662
+ appId: appId || this.appid,
640
663
  businessId,
641
664
  choiceDeptId,
642
665
  choiceOrgId,
@@ -649,12 +672,17 @@ export default {
649
672
  handleExplain: this.form.handleExplain,
650
673
  currentOrgProcessKey: processDefinitionId,
651
674
  noticeType: this.form.notificationMsgType,
652
- taskAction:this.type== "taskReadAndEnd"? "taskReadAndEnd" : "create",
675
+ taskAction:
676
+ this.type == 'taskReadAndEnd' ? 'taskReadAndEnd' : 'create',
653
677
  userId: this.userId,
654
678
  // notificationMsg: this.form.notificationMsg,
655
679
  nextReadUserId: ids
656
680
  }
657
681
  };
682
+ if(this.isSyncCopy && this.isSync ==1){
683
+ params.params.nextHandleReadUserId = params.params.nextReadUserId;
684
+ delete params.params.nextReadUserId;
685
+ }
658
686
  if (this.readParams) {
659
687
  params.params = { ...params.params, ...this.readParams };
660
688
  }
package/src/index.js CHANGED
@@ -105,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
105
105
  }
106
106
 
107
107
  export default {
108
- version: '0.3.81',
108
+ version: '0.3.83',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,