eoss-mobiles 0.3.40 → 0.3.42

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.
@@ -1,14 +1,11 @@
1
1
  <template>
2
2
  <div class="process-handle">
3
-
4
- <div
5
- style="display: flex; flex-direction: column; height: 100%"
6
- >
3
+ <div style="display: flex; flex-direction: column; height: 100%">
7
4
  <div class="process-content">
8
5
  <!-- 当前节点 -->
9
6
  <div class="present-node">
10
7
  <div class="label">当前节点:</div>
11
- <div>{{itemName }}</div>
8
+ <div>{{ nodeName }}</div>
12
9
  </div>
13
10
  <!-- 意见 -->
14
11
  <Opinion
@@ -31,20 +28,12 @@
31
28
  ></Opinion>
32
29
  <!-- 审核内容 -->
33
30
  <div class="special-box input-box" v-if="typeCode != 'fenyue'">
34
-
35
- <div >
36
-
31
+ <div>
37
32
  <!-- 下一步所有相关操作-->
38
- <div
39
-
40
- >
41
- <div class="next-box" >
33
+ <div>
34
+ <div class="next-box">
42
35
  <!-- 下步节点 -->
43
- <div
44
- class="item"
45
- v-if="
46
- nodeList && nodeList.length > 0"
47
- >
36
+ <div class="item" v-if="nodeList && nodeList.length > 0">
48
37
  <em-picker
49
38
  v-if="nextNodeCheckType == 'select'"
50
39
  title="下步节点"
@@ -80,7 +69,7 @@
80
69
  </div>
81
70
  <!-- 本单位-->
82
71
  <!-- v-if="isHideCurrentOrg" -->
83
- <div class="item" >
72
+ <div class="item">
84
73
  <em-selector
85
74
  v-model="nextCurrentOrgObjSelect"
86
75
  multiple
@@ -116,35 +105,36 @@
116
105
  />
117
106
  </div>
118
107
  </div>
119
-
108
+
120
109
  <!-- 通知方式 -->
121
- <div class="item-msg item-msg2">
110
+ <!-- <div class="item-msg item-msg2">
122
111
  <Message
123
112
  ref="message"
124
113
  :code="'notification_type'"
125
114
  :baseUrl="baseUrl"
126
115
  :defaultNotificationType="defaultNotificationType"
116
+ :pendingId="pendingId"
127
117
  :defaultNotificationMsg="form.notificationMsg"
128
118
  @onInputMsg="onInputMsg"
129
119
  ></Message>
130
- </div>
120
+ </div> -->
131
121
  </div>
132
122
  </div>
133
123
  </div>
134
-
124
+
135
125
  <div class="btn-list">
136
126
  <div class="btn" @click="navigateBack">取消</div>
137
127
  <div class="btn" @click="onSubmit()">确定</div>
138
128
  </div>
139
129
  </div>
140
-
141
130
  </div>
142
131
  </template>
143
132
 
144
133
  <script>
145
134
  import {
146
135
  directStartTaskCircularRead,
147
- getNotificationMsg,
136
+ endFlowAndStartTaskCircularRead
137
+ // getNotificationMsg
148
138
  } from '../../../../src/config/api.js';
149
139
  import request from '../../../../src/utils/http.js';
150
140
  import Opinion from './Opinion.vue';
@@ -154,10 +144,11 @@ export default {
154
144
  inheritAttrs: false,
155
145
  components: {
156
146
  Opinion,
157
- Message,
147
+ Message
158
148
  },
159
149
  props: {
160
- businessId: String,
150
+ businessId: String,
151
+ pendingId: String,
161
152
  identityIds: String, //用户id
162
153
  beforeSubmit: Function,
163
154
  orgId: String, //单位id
@@ -170,9 +161,9 @@ export default {
170
161
  type: [String, Number],
171
162
  default: 0
172
163
  },
173
- defId:{
174
- type: String,
175
- default: ''
164
+ defId: {
165
+ type: String,
166
+ default: ''
176
167
  },
177
168
  isAllCheck: {
178
169
  type: Boolean,
@@ -190,17 +181,17 @@ export default {
190
181
  type: String,
191
182
  default: ''
192
183
  },
193
- itemName:{
194
- type: String,
195
- default: '拟稿'
184
+ nodeName: {
185
+ type: String,
186
+ default: '拟稿'
196
187
  },
197
- nextNodeCheckType:{
198
- type: String,
199
- default: ''
188
+ nextNodeCheckType: {
189
+ type: String,
190
+ default: ''
200
191
  },
201
- title:{
202
- type: String,
203
- default: ''
192
+ title: {
193
+ type: String,
194
+ default: ''
204
195
  }
205
196
  },
206
197
  data() {
@@ -209,10 +200,10 @@ export default {
209
200
  { name: '前置加签', value: 'preAddSign' },
210
201
  { name: '后置加签', value: 'postAddSign' }
211
202
  ],
212
- currentOrgSelectorParams: { },
203
+ currentOrgSelectorParams: {},
213
204
  currentOrgSelectorTabs: 'employee, persongroup',
214
205
  foreignOrgSelectorTabs: 'enterprise,filgroupobj',
215
- foreignOrgSelectorParams: { roleid: '' },
206
+ foreignOrgSelectorParams: { roleid: '' },
216
207
  otherOrgDisabledObjId: [],
217
208
  currentNodeEnableItemHandleDescription: false,
218
209
  pendingItemHandleDescription: '',
@@ -260,18 +251,18 @@ export default {
260
251
  nextOtherOrgObj: undefined, //外单位对象
261
252
  nextOtherOrgObjSerialId: undefined, //外单位办理对象序列id
262
253
  notificationMsg: undefined, //通知消息
263
- nextNodeName:3,
264
- nextNodeId:3
254
+ nextNodeName: 3,
255
+ nextNodeId: 3
265
256
  },
266
257
  isCanFenyue: '0',
267
-
258
+
268
259
  nextCurrentOrgObjSelect: [], // 选中本单位
269
260
  nextOtherOrgObjSelect: [], //选中外单位
270
261
  nextReadUserSelectList: [], //分阅选择数组
271
- nodeList: [{nodeId:3,nodeName:'传阅'}], // 流程节点列表
272
-
262
+ nodeList: [{ nodeId: 3, nodeName: '传阅' }], // 流程节点列表
263
+
273
264
  opinionList: [], // 意见列表
274
-
265
+
275
266
  userInfo: {}, // 用户信息
276
267
  isCanAddSign: false, //是否显示加签
277
268
  isCanRemoveSign: false, //是否显示减签
@@ -330,69 +321,80 @@ export default {
330
321
  };
331
322
  },
332
323
  created() {
333
- this.getMessage()
334
- this.currentOrgSelectorParams.employee ={pid: this.orgId}
335
- this.foreignOrgSelectorParams.filgroup ={pid: 'root',myUserid:this.userId}
336
- },
337
- computed: {
324
+ // this.getMessage();
325
+ this.currentOrgSelectorParams.employee = { pid: this.orgId };
326
+ this.foreignOrgSelectorParams.nofilid = this.orgId
327
+ this.foreignOrgSelectorParams.myUserid = ''
328
+ this.foreignOrgSelectorParams.filgroup = {
329
+ pid: 'root',
330
+ myUserid: this.userId
331
+ };
338
332
  },
333
+ computed: {},
339
334
  methods: {
340
- getMessage(){
341
- let params = {
342
- url:getNotificationMsg,
343
- params:{
344
- processDefinitionId:this.defId,
345
- businessId:this.businessId,
346
- openMode:'samepage'
347
- }
335
+ getMessage() {
336
+ let params = {
337
+ url: getNotificationMsg,
338
+ params: {
339
+ processDefinitionId: this.defId,
340
+ businessId: this.businessId,
341
+ pendingId:this.pendingId,
342
+ openMode: this.pendingId ? '' : 'samepage'
348
343
  }
349
- request(params).then((res) => {
350
- if(res.rCode == 0 || res.status == "success"){
351
- this.form.notificationMsg = res.message.replace('{title}',this.title || '')
352
- }
353
- });
344
+ };
345
+ request(params).then((res) => {
346
+ if (res.rCode == 0 || res.status == 'success') {
347
+ this.form.notificationMsg = res.message.replace(
348
+ '{title}',
349
+ this.title || ''
350
+ );
351
+ }
352
+ });
354
353
  },
355
- navigateBack() {
354
+ navigateBack() {
356
355
  this.$parent.$emit('close');
357
356
  },
358
- // 通知消息回调
357
+ // 通知消息回调
359
358
  onInputMsg(obj) {
360
359
  this.form.notificationType = obj.notificationType.join(',');
361
360
  this.form.notificationMsg = obj.notificationMsg;
362
361
  },
363
- onSubmit() {
364
- let params = {
365
- url:directStartTaskCircularRead,
366
- params:{
367
- businessId:this.businessId,
368
- processDefinitionId:this.defId,
369
- notificationMsg:this.form.notificationMsg,
370
- notificationType:this.form.notificationType,
371
- opinion:this.form.opinion,
372
- nextOtherOrgObj:this.form.nextOtherOrgObj,
373
- nextCurrentOrgObj:this.form.nextCurrentOrgObj,
362
+ onSubmit() {
363
+ let params = {
364
+ url: this.pendingId?endFlowAndStartTaskCircularRead : directStartTaskCircularRead,
365
+ params: {
366
+ businessId: this.businessId,
367
+ pendingId:this.pendingId,
368
+ processDefinitionId: this.defId,
369
+ notificationMsg: this.form.notificationMsg,
370
+ notificationType: this.form.notificationType,
371
+ opinion: this.form.opinion,
372
+ nextOtherOrgObj: this.form.nextOtherOrgObj,
373
+ nextCurrentOrgObj: this.form.nextCurrentOrgObj,
374
+ mobileKey: 'ceshi',
375
+ loginType: 2
374
376
  },
375
- type:'post'
376
- }
377
- this.$toast.loading({
377
+ type: 'post'
378
+ };
379
+ this.$toast.loading({
378
380
  message: '提交中...',
379
381
  forbidClick: true,
380
382
  loadingType: 'spinner',
381
383
  overlay: true,
382
384
  duration: 0
383
385
  });
384
- request(params).then(res => {
385
- this.$toast.clear();
386
- if (res.rCode == 0 || res.status == 'success') {
387
- this.$toast.success('提交成功');
388
- this.$parent.$emit('success');
389
- } else {
390
- this.$toast(res.message || '系统错误,请联系管理员!');
391
- setTimeout(() => {
392
- this.$parent.$emit('error');
393
- }, 1000);
394
- }
395
- })
386
+ request(params).then((res) => {
387
+ this.$toast.clear();
388
+ if (res.rCode == 0 || res.status == 'success') {
389
+ this.$toast.success('提交成功');
390
+ this.$parent.$emit('success');
391
+ } else {
392
+ this.$toast(res.message || '系统错误,请联系管理员!');
393
+ setTimeout(() => {
394
+ this.$parent.$emit('error');
395
+ }, 1000);
396
+ }
397
+ });
396
398
  },
397
399
  // 删除
398
400
  delteList(label, i) {
@@ -428,7 +430,6 @@ onSubmit() {
428
430
  });
429
431
  },
430
432
 
431
-
432
433
  // 意见回调
433
434
  onInputOpintion(val) {
434
435
  const { opinion, isImageOpinion, file } = val;
@@ -524,9 +525,7 @@ onSubmit() {
524
525
  this.form[label + 'SerialId'] = SerialId.join(',');
525
526
  this.form[label + 'Json'] = JSON.stringify(res.list);
526
527
  },
527
-
528
528
 
529
-
530
529
  // 修改默认办理人
531
530
  changeDefPeople(def, all) {
532
531
  this.nextUserSelectList = [];
@@ -551,7 +550,7 @@ onSubmit() {
551
550
  this.nextUserSelectList.push(this.nextUserList[0]);
552
551
  this.form.nextUserId = this.nextUserSelectList[0].userId;
553
552
  }
554
- },
553
+ }
555
554
  }
556
555
  };
557
556
  </script>
@@ -108,7 +108,7 @@ export default {
108
108
  }
109
109
  },
110
110
  mounted() {
111
- this.newType = this.type;
111
+ this.newType = this.isCirculate ? 'circulate' : this.type;
112
112
  }
113
113
  };
114
114
  </script>
@@ -5,6 +5,7 @@
5
5
  v-if="showNavBar && !showTree"
6
6
  :class="isBgColor ? 'em-selector-nav-bar' : ''"
7
7
  :paddingTop="paddingTop"
8
+ :disabled="newTabs[selectIndex].name == 'persongroupobj'"
8
9
  @click-left="navigateBack"
9
10
  >
10
11
  <template slot="left">
package/src/config/api.js CHANGED
@@ -152,3 +152,4 @@ export const directStartTaskCircularRead =
152
152
  '/bpm/bpmBackend/directStartTaskCircularRead';
153
153
  export const endFlowAndStartTaskCircularRead =
154
154
  '/bpm/bpmBackend/endFlowAndStartTaskCircularRead';
155
+
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.39',
108
+ version: '0.3.42',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,