eoss-mobiles 0.2.67 → 0.2.69

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.
@@ -14,6 +14,7 @@
14
14
  v-show="isImageOpinion === 1"
15
15
  @save="handleSave"
16
16
  :file-path="esignPath"
17
+ :esign-line-width="esignLineWidth"
17
18
  />
18
19
  <div
19
20
  v-show="isImageOpinion === 0"
@@ -136,6 +137,10 @@ export default {
136
137
  type: Boolean,
137
138
  default: false
138
139
  },
140
+ esignLineWidth:{
141
+ type:[String,Number],
142
+ default:10
143
+ },
139
144
  userId: {
140
145
  type: String,
141
146
  default: ''
@@ -9,6 +9,9 @@
9
9
  :code="processObj.attachedCode"
10
10
  :ownId="$route.query.pendingId"
11
11
  :esign="esign"
12
+ :esignLineWidth="
13
+ $attrs['esign-line-width'] || $attrs['esignLineWidth']
14
+ "
12
15
  @onInputOpintion="onInputOpintion"
13
16
  :placeholder="opinionHandleExplainText"
14
17
  :isOpinionRequired="isBanInputOpinion"
@@ -139,6 +142,7 @@ export default {
139
142
  this.beforeSubmit({ pendingId: this.pendingId, ...this.form });
140
143
  return;
141
144
  }
145
+ this.form.mobileKey = $.getStorage('deviceId') || '123'
142
146
  let formData = new FormData();
143
147
  if (this.form.isImageOpinion == 1) {
144
148
  formData.append('file', this.file);
@@ -13,6 +13,9 @@
13
13
  :code="processObj.attachedCode"
14
14
  :ownId="businessId"
15
15
  :esign="esign"
16
+ :esignLineWidth="
17
+ $attrs['esign-line-width'] || $attrs['esignLineWidth']
18
+ "
16
19
  :isFile="false"
17
20
  :baseUrl="baseUrl"
18
21
  @onInputOpintion="onInputOpintion"
@@ -288,7 +291,8 @@ export default {
288
291
  notificationMsg: this.form.notificationMsg,
289
292
  loginType: 2, //登录方式
290
293
  isImageOpinion: this.form.isImageOpinion,
291
- userId: this.userId || $.getStorage('userId')
294
+ userId: this.userId || $.getStorage('userId'),
295
+ mobileKey:$.getStorage('deviceId') || '123',
292
296
  };
293
297
  if (this.beforeSubmit) {
294
298
  this.beforeSubmit(info);
@@ -215,7 +215,8 @@ export default {
215
215
  pendingId,
216
216
  isSubFlow: taskExamine.isSubFlow,
217
217
  isSinglePage: taskExamine.isSinglePage,
218
- userId: this.userId
218
+ userId: this.userId,
219
+ mobileKey:util.getStorage('deviceId') || '123'
219
220
  }
220
221
  };
221
222
  request(params)
@@ -280,7 +281,8 @@ export default {
280
281
  let params = {
281
282
  pendingId: this.pendingId,
282
283
  taskAction: _that.newType,
283
- userId: _that.userId
284
+ userId: _that.userId,
285
+ mobileKey:util.getStorage('deviceId') || '123'
284
286
  };
285
287
  if (_that.newType != 'taskReadAndEnd') delete params.taskAction;
286
288
 
@@ -335,7 +337,8 @@ export default {
335
337
  isImageOpinion: 0,
336
338
  loginType: 2,
337
339
  taskAction: this.type,
338
- userId: _that.userId
340
+ userId: _that.userId,
341
+ mobileKey:util.getStorage('deviceId') || '123'
339
342
  }
340
343
  };
341
344
  if (this.beforeSubmit) {
@@ -424,6 +427,7 @@ export default {
424
427
  choiceOrgId,
425
428
  businessName,
426
429
  processDefinitionId,
430
+ mobileKey:util.getStorage('deviceId') || '123',
427
431
  bCode,
428
432
  bName,
429
433
  loginType: 2,
@@ -7,7 +7,10 @@
7
7
  </div>
8
8
  <Opinion
9
9
  @onInputOpintion="onInputOpintion"
10
- :esign="esign"
10
+ :esign="esign"
11
+ :esignLineWidth="
12
+ $attrs['esign-line-width'] || $attrs['esignLineWidth']
13
+ "
11
14
  :baseUrl="baseUrl"
12
15
  ></Opinion>
13
16
  <div class="input-box">
@@ -101,7 +104,7 @@ import {
101
104
  import request from '../../../../src/utils/http.js';
102
105
  import Opinion from './Opinion.vue';
103
106
  import Message from './Message.vue';
104
- import $ from '../../../../src/utils/util'
107
+ import $ from '../../../../src/utils/util';
105
108
  export default {
106
109
  name: 'TaskUnionExamine',
107
110
  props: {
@@ -112,7 +115,7 @@ export default {
112
115
  inevitableNode: { type: String, default: '' },
113
116
  appId: { type: String, default: '' },
114
117
  defaultOpinion: { type: String, default: '' },
115
- userId:{type:String,default:''},
118
+ userId: { type: String, default: '' },
116
119
  // disabled: { type: Boolean, default: false },
117
120
  // multiple: { type: Boolean, default: true },
118
121
  baseUrl: { type: String, default: '' },
@@ -125,16 +128,16 @@ export default {
125
128
  type: Boolean,
126
129
  default: false
127
130
  },
128
- isAllCheck:{
129
- type:Boolean,
130
- default:false
131
+ isAllCheck: {
132
+ type: Boolean,
133
+ default: false
131
134
  }
132
135
  },
133
136
  data() {
134
137
  return {
135
138
  opinion: '', //办理意见
136
- isImageOpinion:0,
137
- file:'',
139
+ isImageOpinion: 0,
140
+ file: '',
138
141
  infoList: {
139
142
  nextOtherOrgObj: [],
140
143
  nextCurrentOrgObj: [],
@@ -197,7 +200,7 @@ export default {
197
200
  }
198
201
  },
199
202
  methods: {
200
- onInputOpintion(val) {
203
+ onInputOpintion(val) {
201
204
  const { opinion, isImageOpinion, file } = val;
202
205
  this.opinion = opinion;
203
206
  this.isImageOpinion = isImageOpinion;
@@ -327,7 +330,7 @@ export default {
327
330
  : this.type == 'twoOfficesDispatch'
328
331
  ? toTwoOfficesDispatch
329
332
  : toTaskUnionExamine,
330
- params: { pendingId: this.pendingId,userId: this.userId },
333
+ params: { pendingId: this.pendingId, userId: this.userId },
331
334
  headers: { Accept: 'application/json,text/plain' }
332
335
  };
333
336
  this.$toast.loading({
@@ -434,16 +437,24 @@ export default {
434
437
  isSubFlow,
435
438
  pendingId
436
439
  } = this;
437
- if ((isOpinionRequired == 1 && !opinion && isImageOpinion == 0) || (isOpinionRequired == 1 && isImageOpinion == 1 && !file) ) {
440
+ if (
441
+ (isOpinionRequired == 1 && !opinion && isImageOpinion == 0) ||
442
+ (isOpinionRequired == 1 && isImageOpinion == 1 && !file)
443
+ ) {
438
444
  return this.$toast('当前步骤必须输入意见!');
439
445
  }
440
446
  if (
441
- ( (type == 'takeAdvice' &&
442
- isHideCurrentOrg == 0 && ( !nextCurrentOrgObj || nextCurrentOrgObj.length == 0)) &&
443
- (isHideOtherOrg == 0 && (!nextOtherOrgObj || nextOtherOrgObj.length == 0))) || (type != 'takeAdvice' && isHideOtherOrg == 0 && (!nextOtherOrgObj || nextOtherOrgObj.length == 0))
447
+ (type == 'takeAdvice' &&
448
+ isHideCurrentOrg == 0 &&
449
+ (!nextCurrentOrgObj || nextCurrentOrgObj.length == 0) &&
450
+ (isHideOtherOrg == 0 &&
451
+ (!nextOtherOrgObj || nextOtherOrgObj.length == 0))) ||
452
+ (type != 'takeAdvice' &&
453
+ isHideOtherOrg == 0 &&
454
+ (!nextOtherOrgObj || nextOtherOrgObj.length == 0))
444
455
  ) {
445
456
  return this.$toast('请选择处理对象!');
446
- }
457
+ }
447
458
  // else if (
448
459
  // isHideCurrentOrg == 0 &&
449
460
  // (nextOtherOrgObj == '' || nextOtherOrgObj == null)
@@ -451,22 +462,23 @@ export default {
451
462
  // return this.$toast('请选择处理对象!');
452
463
  // }
453
464
  let info = {
454
- opinion,
455
- pendingId,
456
- nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
457
- ? nextOtherOrgObj.join(',')
458
- : nextOtherOrgObj,
459
- nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
460
- ? nextCurrentOrgObj.join(',')
461
- : nextCurrentOrgObj,
462
- notificationMsg: noticeInfo,
463
- notificationType: noticeType.join(','),
464
- choiceDeptId,
465
- isSubFlow,
466
- choiceOrgId,
467
- userId: this.userId || $.getStorage('userId')
468
- }
469
- let formData = new FormData();
465
+ opinion,
466
+ pendingId,
467
+ nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
468
+ ? nextOtherOrgObj.join(',')
469
+ : nextOtherOrgObj,
470
+ nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
471
+ ? nextCurrentOrgObj.join(',')
472
+ : nextCurrentOrgObj,
473
+ notificationMsg: noticeInfo,
474
+ notificationType: noticeType.join(','),
475
+ choiceDeptId,
476
+ isSubFlow,
477
+ choiceOrgId,
478
+ userId: this.userId || $.getStorage('userId'),
479
+ mobileKey: $.getStorage('deviceId') || '123'
480
+ };
481
+ let formData = new FormData();
470
482
  if (isImageOpinion == 1) {
471
483
  formData.append('file', file);
472
484
  }
@@ -492,8 +504,7 @@ export default {
492
504
  params: formData,
493
505
  headers: { Accept: 'application/json,text/plain' },
494
506
  type: 'post',
495
- format:false
496
-
507
+ format: false
497
508
  };
498
509
  this.$toast.loading({
499
510
  message: '加载中...',
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.2.67',
108
+ version: '0.2.69',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,