eoss-mobiles 0.3.0 → 0.3.2

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.0",
3
+ "version": "0.3.2",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -408,8 +408,8 @@
408
408
  @confirm="onConfirmTimeList"
409
409
  />
410
410
  </van-popup>
411
- <!-- <ProcessSetting
412
- v-if="isCustomPreset"
411
+ <ProcessSetting
412
+ v-if="isCustomPreset && isPreset"
413
413
  ref="processSetting"
414
414
  :processDefinitionId="taskExamineInfo.processDefinitionId"
415
415
  :nodeId="form.nextNodeId"
@@ -418,10 +418,11 @@
418
418
  :businessId="taskExamineInfo.businessId"
419
419
  :apiBaseUrl="apiBaseUrl"
420
420
  :paddingTop="paddingTop"
421
+ :customPresetHintMessage="customPresetHintMessage"
421
422
  :choiceOrgId="choiceOrgId"
422
423
  :pOrgId="pOrgId"
423
424
  :choiceDeptId="choiceDeptId"
424
- /> -->
425
+ />
425
426
  <!-- 催办通知方式 -->
426
427
  <div class="item-msg item-msg1" v-if="isLimitedTimeHandling">
427
428
  <Message
@@ -511,6 +512,10 @@ export default {
511
512
  type: Boolean,
512
513
  default: false
513
514
  },
515
+ isPreset: {
516
+ type: Boolean,
517
+ default: true
518
+ },
514
519
  esign: {
515
520
  type: Boolean,
516
521
  default: false
@@ -666,6 +671,7 @@ export default {
666
671
  isEndUserTask: '',
667
672
  tagKey: '',
668
673
  pOrgId: '',
674
+ customPresetHintMessage:'',
669
675
  needRetrialAuth: false
670
676
  };
671
677
  },
@@ -915,18 +921,18 @@ export default {
915
921
  if (this.isMainSubProcess && typeof this.form.mainSubId == 'object') {
916
922
  this.form.mainSubId = this.form.mainSubId.value;
917
923
  }
918
- // if (this.isCustomPreset ) {
919
- // if (this.$refs.processSetting.active.length != 0) {
920
- // if(!this.$refs.processSetting.getValue())return
921
- // this.form.customPresetUserJson = this.$refs.processSetting.getValue();
922
- // this.form.isCustomPreset = true;
923
- // this.form.presetUserJson = JSON.stringify([])
924
- // } else {
925
- // delete this.form.customPresetUserJson;
926
- // delete this.form.isCustomPreset;
927
- // delete this.form.presetUserJson;
928
- // }
929
- // }
924
+ if (this.isCustomPreset && this.isPreset) {
925
+ if (this.$refs.processSetting.active.length != 0) {
926
+ if(!this.$refs.processSetting.getValue())return
927
+ this.form.customPresetUserJson = this.$refs.processSetting.getValue();
928
+ this.form.isCustomPreset = true;
929
+ this.form.presetUserJson = JSON.stringify([])
930
+ } else {
931
+ delete this.form.customPresetUserJson;
932
+ delete this.form.isCustomPreset;
933
+ delete this.form.presetUserJson;
934
+ }
935
+ }
930
936
  this.$toast.loading({
931
937
  message: '加载中...',
932
938
  forbidClick: true,
@@ -1106,7 +1112,8 @@ export default {
1106
1112
  } else {
1107
1113
  }
1108
1114
  }
1109
- if (this.nodeList) {
1115
+ if (this.nodeList && this.nodeList.length > 0) {
1116
+ console.log(this.nodeList);
1110
1117
  this.form.nextNodeId = this.nodeList[this.nextNodeDefault].nodeId;
1111
1118
  this.form.nextNodeName = this.nodeList[this.nextNodeDefault].nodeName;
1112
1119
  this.$toast.loading({
@@ -1252,6 +1259,7 @@ export default {
1252
1259
  choiceDeptId,
1253
1260
  pOrgId,
1254
1261
  taskExamine,
1262
+ customPresetHintMessage,
1255
1263
  currentOrgName,
1256
1264
  notificationMessageReadOnly,
1257
1265
  readOnlyNotificationType,
@@ -1261,6 +1269,7 @@ export default {
1261
1269
  isCanPreAddSign
1262
1270
  }
1263
1271
  } = res;
1272
+ that.customPresetHintMessage=customPresetHintMessage
1264
1273
  that.currentOrgName = currentOrgName;
1265
1274
  that.notificationMessageReadOnly =
1266
1275
  notificationMessageReadOnly == 'true';
@@ -1,13 +1,12 @@
1
1
  <template>
2
2
  <div class="em-flow-setting">
3
3
  <van-collapse v-model="active">
4
- <van-collapse-item title="预设自定义节点信息(折叠不作处理)" name="1">
4
+ <van-collapse-item :title="customPresetHintMessage || '预设节点信息(折叠不作处理)'" name="1">
5
5
  <div
6
6
  class="em-flow-setting-item"
7
7
  v-for="(item, index) in flowList"
8
8
  :key="index"
9
9
  >
10
- <!-- <em-input v-model="name" :label="`节点${index + 1}`" /> -->
11
10
  <em-picker
12
11
  :title="`节点${index + 1}`"
13
12
  :label="`节点${index + 1}`"
@@ -66,6 +65,10 @@ export default {
66
65
  type: String,
67
66
  default: ''
68
67
  },
68
+ customPresetHintMessage: {
69
+ type: String,
70
+ default: ''
71
+ },
69
72
  pendingId: {
70
73
  type: String,
71
74
  default: ''
@@ -122,7 +125,10 @@ export default {
122
125
  let PresetData = [];
123
126
  let newFlowList = this.flowList.filter((x) => x.nodeId);
124
127
  for (let i = 0; i < newFlowList.length; i++) {
125
- if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
128
+ if (
129
+ newFlowList[i].nextUserSelectList.length == 0 &&
130
+ newFlowList[i].showSelectUser
131
+ ) {
126
132
  pass = false;
127
133
  this.$toast(`请选择节点${i + 1}的办理人`);
128
134
  return false;
@@ -130,15 +136,15 @@ export default {
130
136
  }
131
137
  if (pass) {
132
138
  newFlowList.map((x, i) => {
133
- PresetData.push({
134
- name: typeof x.nodeId == 'object'? x.nodeId.nodeId : x.nodeId,
139
+ PresetData.push({
140
+ name: typeof x.nodeId == 'object' ? x.nodeId.nodeId : x.nodeId,
135
141
  value: x.nextUserSelectList
136
142
  .map((y) => {
137
143
  return y.showid;
138
144
  })
139
145
  .join(','),
140
146
  lastName: i == 0 ? this.nodeId : PresetData[i - 1].name,
141
- sequence: i + 1 +''
147
+ sequence: i + 1 + ''
142
148
  });
143
149
  });
144
150
  }
@@ -80,10 +80,11 @@
80
80
  label="办理人"
81
81
  />
82
82
  </div>
83
- <!-- <ProcessSetting
84
- v-if="processObj.isCustomPreset"
83
+ <ProcessSetting
84
+ v-if="processObj.isCustomPreset && isPreset"
85
85
  ref="processSetting"
86
86
  :processDefinitionId="processObj.processDefinitionId"
87
+ :customPresetHintMessage="processObj.customPresetHintMessage"
87
88
  :nodeId="form.nextNodeId"
88
89
  :taskId="processObj.taskId"
89
90
  :pendingId="processObj.pendingId"
@@ -93,7 +94,7 @@
93
94
  :choiceOrgId="orgId"
94
95
  :pOrgId="orgId"
95
96
  :choiceDeptId="depId"
96
- /> -->
97
+ />
97
98
  <!-- 通知方式 -->
98
99
  <Message
99
100
  ref="message"
@@ -159,6 +160,10 @@ export default {
159
160
  type: Boolean,
160
161
  default: false
161
162
  },
163
+ isPreset: {
164
+ type: Boolean,
165
+ default: true
166
+ },
162
167
  esign: {
163
168
  type: Boolean,
164
169
  default: false
@@ -312,16 +317,16 @@ export default {
312
317
  userId: this.userId || $.getStorage('userId'),
313
318
  mobileKey: $.getStorage('deviceId') || '123'
314
319
  };
315
- // if (this.processObj.isCustomPreset ) {
316
- // if (this.$refs.processSetting.active.length != 0) {
317
- // if(!this.$refs.processSetting.getValue())return
318
- // info.customPresetUserJson = this.$refs.processSetting.getValue();
319
- // info.isCustomPreset = true;
320
- // } else {
321
- // delete info.customPresetUserJson;
322
- // delete info.isCustomPreset;
323
- // }
324
- // }
320
+ if (this.processObj.isCustomPreset && this.isPreset) {
321
+ if (this.$refs.processSetting.active.length != 0) {
322
+ if(!this.$refs.processSetting.getValue())return
323
+ info.customPresetUserJson = this.$refs.processSetting.getValue();
324
+ info.isCustomPreset = true;
325
+ } else {
326
+ delete info.customPresetUserJson;
327
+ delete info.isCustomPreset;
328
+ }
329
+ }
325
330
  if (this.beforeSubmit) {
326
331
  this.beforeSubmit(info);
327
332
  return;
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.0',
108
+ version: '0.3.2',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,