eoss-mobiles 0.3.84 → 0.3.85

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.84",
3
+ "version": "0.3.85",
4
4
  "description": "eoss内部移动端业务组件",
5
5
  "main": "lib/eoss-mobile.common.js",
6
6
  "files": [
@@ -206,7 +206,7 @@
206
206
  "
207
207
  >
208
208
  <em-picker
209
- v-if="nextNodeCheckType == 'select'"
209
+ v-if="nextNodeCheckType == 'select' && flowSelectType == 'picker'"
210
210
  title="下步节点"
211
211
  label="下步节点"
212
212
  required
@@ -218,6 +218,19 @@
218
218
  label-key="nodeName"
219
219
  @confirm="onConfirmNextNode"
220
220
  />
221
+ <em-input
222
+ v-else-if="nextNodeCheckType == 'select' && flowSelectType == 'popup'"
223
+ label="下步节点"
224
+ required
225
+ :readonly="true"
226
+ @click="showFlowSelect = true"
227
+ label-position="top"
228
+ right-icon="arrow"
229
+ >
230
+ <template slot="input">
231
+ <div style="width: calc(100% - 40px);">{{ form.nextNodeName }}</div>
232
+ </template>
233
+ </em-input>
221
234
  <em-input
222
235
  v-else
223
236
  value="下步节点"
@@ -623,6 +636,30 @@
623
636
  </div>
624
637
  </div>
625
638
  </em-popup>
639
+ <em-popup
640
+ lass="em-flow-popup"
641
+ v-model="showFlowSelect"
642
+ position="center"
643
+ style="width: 80%;"
644
+ >
645
+ <div class="em-flow-popup-box" >
646
+ <div class="em-flow-popup-box-top">
647
+ <div></div>
648
+ <span>下步节点 </span
649
+ ><van-icon name="cross" @click="showFlowSelect = false" />
650
+ </div>
651
+ <div class="em-flow-popup-box-content">
652
+ <div
653
+ class="em-flow-popup-box-item"
654
+ v-for="item in nodeList"
655
+ :key="item.nodeId"
656
+ @click="handleClickFlow(item)"
657
+ >
658
+ {{ item.nodeName }}
659
+ </div>
660
+ </div>
661
+ </div>
662
+ </em-popup>
626
663
  </div>
627
664
  </template>
628
665
 
@@ -703,6 +740,10 @@ export default {
703
740
  type: Object,
704
741
  default: () => ({})
705
742
  },
743
+ flowSelectType: {
744
+ type: Boolean,
745
+ default: 'picker'
746
+ },
706
747
  hideMessage: {
707
748
  type: Boolean,
708
749
  default: false
@@ -717,8 +758,9 @@ export default {
717
758
  showFlowBtn: false,
718
759
  endFlow: false,
719
760
  submitButtonName:'',
761
+ showFlowSelect:false,
720
762
  currentOrgSelectorParams: {},
721
- currentOrgSelectorTabs: 'employee,persongroup',
763
+ currentOrgSelectorTabs: 'department,employee',
722
764
  foreignOrgSelectorTabs: 'enterprise,filgroupobj',
723
765
  foreignOrgSelectorParams: { roleid: '' },
724
766
  otherOrgDisabledObjId: [],
@@ -888,8 +930,7 @@ export default {
888
930
  created() {
889
931
  // 获取用户信息
890
932
  // 生成时间数组
891
- this.currentOrgSelectorParams={pid:this.orgId}
892
- console.log(this.currentOrgSelectorParams,'this.currentOrgSelectorParams')
933
+ this.currentOrgSelectorParams={pid:this.orgId,only_filid: true,onlyMyOrg: true}
893
934
  this.timeList = new Array();
894
935
  for (let i = 0; i < 25; i++) {
895
936
  this.timeList.push(i);
@@ -945,6 +986,14 @@ export default {
945
986
  }
946
987
  },
947
988
  methods: {
989
+ handleClickFlow(val){
990
+ console.log(val)
991
+ if(val.nodeId === this.form.nextNodeId) return this.showFlowSelect = false;
992
+ this.form.nextNodeId = val.nodeId;
993
+ this.form.nextNodeName = val.nodeName;
994
+ this.showFlowSelect = false;
995
+ this.onConfirmNextNode(val);
996
+ },
948
997
  handleSuccess() {
949
998
  this.$parent.$emit('success');
950
999
  },
@@ -1664,6 +1713,7 @@ export default {
1664
1713
  customPresetHintMessage,
1665
1714
  currentOrgName,
1666
1715
  currentOrgSelectorParams,
1716
+ isChoiceOtherOrgDept,
1667
1717
  notificationMessageReadOnly,
1668
1718
  readOnlyNotificationType,
1669
1719
  otherOrgName,
@@ -1725,6 +1775,18 @@ export default {
1725
1775
  });
1726
1776
  that.foreignOrgSelectorTabs =
1727
1777
  that.foreignOrgSelectorTabs.join(',');
1778
+ }else if(isChoiceOtherOrgDept == 'true'){
1779
+ that.foreignOrgSelectorTabs = 'enterprise,department'
1780
+ that.foreignOrgSelectorParams.pid = 'root'
1781
+ that.foreignOrgSelectorParams.nofilid = 1
1782
+ that.foreignOrgSelectorParams = {...that.foreignOrgSelectorParams, ...that.selectorParams}
1783
+ console.log(that.foreignOrgSelectorParams,1)
1784
+ }else{
1785
+ that.foreignOrgSelectorTabs = 'enterprise'
1786
+ that.foreignOrgSelectorParams.pid = 'root'
1787
+ that.foreignOrgSelectorParams.nofilid = 1
1788
+ that.foreignOrgSelectorParams = {...that.foreignOrgSelectorParams, ...that.selectorParams}
1789
+ console.log(that.foreignOrgSelectorParams,2)
1728
1790
  }
1729
1791
  if (
1730
1792
  taskOperationShiftedNodeList &&
@@ -2055,7 +2117,7 @@ export default {
2055
2117
  this.nextUserList.map((r) => {
2056
2118
  _this.$set(r, 'checked', false);
2057
2119
  });
2058
-
2120
+ _that.currentOrgSelectorParams.roleid = _that.deptRoleCode
2059
2121
  this.isHandleExplain =
2060
2122
  res.data.nodeExtAttr.isHandleExplain == 1 ? true : false; //判断是否隐藏办理说明
2061
2123
  this.isCustomUserClick =
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.84',
108
+ version: '0.3.85',
109
109
  install,
110
110
  Button,
111
111
  ButtonGroup,