eoss-mobiles 0.2.99 → 0.3.0

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.
@@ -12872,8 +12872,8 @@ mainvue_type_template_id_8558f576_render._withStripped = true
12872
12872
 
12873
12873
  // CONCATENATED MODULE: ./packages/flow/src/main.vue?vue&type=template&id=8558f576
12874
12874
 
12875
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=20f21730
12876
- var StartFlowvue_type_template_id_20f21730_render = function () {
12875
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=template&id=a96be16e
12876
+ var StartFlowvue_type_template_id_a96be16e_render = function () {
12877
12877
  var _vm = this
12878
12878
  var _h = _vm.$createElement
12879
12879
  var _c = _vm._self._c || _h
@@ -13064,11 +13064,11 @@ var StartFlowvue_type_template_id_20f21730_render = function () {
13064
13064
  ]),
13065
13065
  ])
13066
13066
  }
13067
- var StartFlowvue_type_template_id_20f21730_staticRenderFns = []
13068
- StartFlowvue_type_template_id_20f21730_render._withStripped = true
13067
+ var StartFlowvue_type_template_id_a96be16e_staticRenderFns = []
13068
+ StartFlowvue_type_template_id_a96be16e_render._withStripped = true
13069
13069
 
13070
13070
 
13071
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=20f21730
13071
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=template&id=a96be16e
13072
13072
 
13073
13073
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Opinion.vue?vue&type=template&id=2dab6204
13074
13074
  var Opinionvue_type_template_id_2dab6204_render = function () {
@@ -13871,8 +13871,124 @@ var Message_component = normalizeComponent(
13871
13871
  )
13872
13872
 
13873
13873
  /* harmony default export */ var Message = (Message_component.exports);
13874
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
13875
- var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
13874
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=56fbc1bf
13875
+ var ProcessSettingsvue_type_template_id_56fbc1bf_render = function () {
13876
+ var _vm = this
13877
+ var _h = _vm.$createElement
13878
+ var _c = _vm._self._c || _h
13879
+ return _c(
13880
+ "div",
13881
+ { staticClass: "em-flow-setting" },
13882
+ [
13883
+ _c(
13884
+ "van-collapse",
13885
+ {
13886
+ model: {
13887
+ value: _vm.active,
13888
+ callback: function ($$v) {
13889
+ _vm.active = $$v
13890
+ },
13891
+ expression: "active",
13892
+ },
13893
+ },
13894
+ [
13895
+ _c(
13896
+ "van-collapse-item",
13897
+ {
13898
+ attrs: { title: "预设自定义节点信息(折叠不作处理)", name: "1" },
13899
+ },
13900
+ _vm._l(_vm.flowList, function (item, index) {
13901
+ return _c(
13902
+ "div",
13903
+ { key: index, staticClass: "em-flow-setting-item" },
13904
+ [
13905
+ _c("em-picker", {
13906
+ attrs: {
13907
+ title: "节点" + (index + 1),
13908
+ label: "节点" + (index + 1),
13909
+ "show-toolbar": "",
13910
+ columns: item.nodeList,
13911
+ "value-key": "nodeId",
13912
+ "label-key": "nodeName",
13913
+ },
13914
+ on: {
13915
+ confirm: function ($event) {
13916
+ _vm.onConfirmNextNode($event, index)
13917
+ },
13918
+ },
13919
+ model: {
13920
+ value: item.nodeId,
13921
+ callback: function ($$v) {
13922
+ _vm.$set(item, "nodeId", $$v)
13923
+ },
13924
+ expression: "item.nodeId",
13925
+ },
13926
+ }),
13927
+ _c("em-selector", {
13928
+ directives: [
13929
+ {
13930
+ name: "show",
13931
+ rawName: "v-show",
13932
+ value: item.showSelectUser,
13933
+ expression: "item.showSelectUser",
13934
+ },
13935
+ ],
13936
+ attrs: {
13937
+ multiple: !item.isRadio,
13938
+ nextUserList: item.nextUserList,
13939
+ label: "办理人",
13940
+ objType: item.objType,
13941
+ param: {
13942
+ pid: item.pid,
13943
+ },
13944
+ required: item.nodeId != "",
13945
+ tabs: "employee,persongroup",
13946
+ baseUrl: _vm.apiBaseUrl,
13947
+ paddingTop: _vm.paddingTop,
13948
+ },
13949
+ model: {
13950
+ value: item.nextUserSelectList,
13951
+ callback: function ($$v) {
13952
+ _vm.$set(item, "nextUserSelectList", $$v)
13953
+ },
13954
+ expression: "item.nextUserSelectList",
13955
+ },
13956
+ }),
13957
+ _c("van-icon", {
13958
+ directives: [
13959
+ {
13960
+ name: "show",
13961
+ rawName: "v-show",
13962
+ value: index + 1 != _vm.flowList.length,
13963
+ expression: "index + 1 != flowList.length",
13964
+ },
13965
+ ],
13966
+ staticStyle: { "margin-top": "10px" },
13967
+ attrs: { name: "down" },
13968
+ }),
13969
+ ],
13970
+ 1
13971
+ )
13972
+ }),
13973
+ 0
13974
+ ),
13975
+ ],
13976
+ 1
13977
+ ),
13978
+ ],
13979
+ 1
13980
+ )
13981
+ }
13982
+ var ProcessSettingsvue_type_template_id_56fbc1bf_staticRenderFns = []
13983
+ ProcessSettingsvue_type_template_id_56fbc1bf_render._withStripped = true
13984
+
13985
+
13986
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=56fbc1bf
13987
+
13988
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
13989
+ var ProcessSettingsvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
13990
+
13991
+ var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
13876
13992
 
13877
13993
  //
13878
13994
  //
@@ -13918,270 +14034,175 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
13918
14034
  //
13919
14035
  //
13920
14036
  //
13921
- //
13922
- //
13923
- //
13924
- //
13925
- //
13926
- //
13927
- //
13928
- //
13929
- //
13930
- //
13931
- //
13932
- //
13933
- //
13934
- //
13935
- //
13936
- //
13937
- //
13938
- //
13939
- //
13940
- //
13941
- //
13942
- //
13943
- //
13944
- //
13945
- //
13946
- //
13947
- //
13948
- //
13949
- //
13950
- //
13951
- //
13952
- //
13953
- //
13954
- //
13955
- //
13956
- //
13957
- //
13958
- //
13959
- //
13960
- //
13961
- //
13962
- //
13963
- //
13964
- //
13965
- //
13966
- //
13967
- //
13968
- //
13969
- //
13970
- //
13971
- //
13972
- //
13973
- //
13974
- //
13975
- //
13976
- //
13977
- //
13978
- //
13979
- //
13980
- //
13981
- //
13982
- //
13983
- //
13984
- //
13985
- //
13986
- //
13987
- //
13988
- //
13989
-
13990
14037
 
13991
14038
 
13992
14039
 
13993
-
13994
-
13995
-
13996
- /* harmony default export */ var StartFlowvue_type_script_lang_js = ({
13997
- name: 'StartFlow',
13998
- inheritAttrs: false,
14040
+ /* harmony default export */ var ProcessSettingsvue_type_script_lang_js = ({
13999
14041
  props: {
14000
- showPresentNode: {
14001
- type: Boolean,
14002
- default: true // 是否当前节点
14042
+ processDefinitionId: {
14043
+ type: String,
14044
+ default: ''
14045
+ },
14046
+ nodeId: {
14047
+ type: String,
14048
+ default: ''
14049
+ },
14050
+ businessId: {
14051
+ type: String,
14052
+ default: ''
14053
+ },
14054
+ taskId: {
14055
+ type: String,
14056
+ default: ''
14057
+ },
14058
+ pendingId: {
14059
+ type: String,
14060
+ default: ''
14061
+ },
14062
+ apiBaseUrl: {
14063
+ type: String,
14064
+ default: ''
14003
14065
  },
14004
- beforeSubmit: Function,
14005
- businessId: String, //提交意见附件所需id一般是业务id
14006
- defId: String, //流程id
14007
- baseUrl: String, //流程地址
14008
- apiBaseUrl: String,
14009
- orgId: String,
14010
- depId: String,
14011
14066
  paddingTop: {
14012
- type: [String, Number],
14067
+ type: Number,
14013
14068
  default: 0
14014
14069
  },
14015
- isAllCheck: {
14016
- type: Boolean,
14017
- default: false
14070
+ choiceOrgId: {
14071
+ type: String,
14072
+ default: ''
14018
14073
  },
14019
- esign: {
14020
- type: Boolean,
14021
- default: false
14074
+ pOrgId: {
14075
+ type: String,
14076
+ default: ''
14022
14077
  },
14023
- userId: {
14078
+ choiceDeptId: {
14024
14079
  type: String,
14025
14080
  default: ''
14026
14081
  }
14027
14082
  },
14028
14083
  data: function data() {
14029
14084
  return {
14030
- showOpinion: true,
14031
- readOnlyNotificationType: '',
14032
- notificationMessageReadOnly: false,
14033
- form: {
14034
- nextNodeId: undefined, // 流程节点id
14035
- nextNodeName: undefined, // 流程节点名称
14036
- nextUserName: undefined, // 办理人
14037
- nextUserId: undefined, // 办理人id
14038
- nextName: undefined, //下一步
14039
- opinion: undefined, // 审批意见
14040
- nodeId: undefined,
14041
- notificationMsg: undefined, //系统消息
14042
- notificationType: [],
14043
- isImageOpinion: 0
14044
- },
14045
- file: '',
14046
- nextUserList: [],
14047
- isChooseNextNode: 0,
14048
- isOpinionRequired: 0, //办理意见是否必填
14049
- isBanInputOpinion: 0, //是否禁用意见
14050
- isNextBox: true, // 是否展开隐藏下步操作
14051
- defaultNotificationType: [], //选中消息数组
14052
- // showAppUser: false, // 办理人遮罩层
14053
- showNextList: false, // 下一步遮罩层
14054
- showNextNodeList: false, // 流程节点遮罩层
14055
- nextList: [], //下一步列表
14056
- nodeList: [], // 流程节点列表
14057
- processObj: {}, //流程信息
14058
- peopleObj: {}, //办理人信息
14059
- isRadio: false, //办理人是否单选
14060
- treeType: undefined, //办理人选择类别
14061
- pid: undefined, // 办理人树选择pid
14062
- objType: 'enterprise', //办理人树选择objType
14063
- selectType: '', //办理人树选择selectType
14064
- nextUserSelectList: [], //选中人数组
14065
- flowObj: {} //流程参数信息
14066
- };
14067
- },
14068
-
14069
- components: {
14070
- Opinion: Opinion,
14071
- Message: Message
14072
- },
14073
- mounted: function mounted() {
14074
- var obj = {
14075
- processDefinitionId: this.defId,
14076
- // isOnly: true,
14077
- // hideTempSave: true,
14078
- businessId: this.businessId
14085
+ name: '',
14086
+ pid: 'root',
14087
+ objType: 'enterprise',
14088
+ selectType: 'employee',
14089
+ active: ['1'],
14090
+ flowList: [],
14091
+ selectList: [],
14092
+ isRadio: true,
14093
+ nodeList: []
14079
14094
  };
14080
- this.geAllData(obj);
14081
14095
  },
14082
14096
 
14097
+ watch: {
14098
+ nodeId: {
14099
+ handler: function handler(val) {
14100
+ if (val) {
14101
+ // this.getProList(val);
14102
+ this.getNodeInfo(val);
14103
+ }
14104
+ },
14083
14105
 
14106
+ immediate: true,
14107
+ deep: true
14108
+ }
14109
+ },
14084
14110
  methods: {
14085
- goBack: function goBack() {
14086
- this.$parent.$emit('close');
14087
- },
14088
- handleChange: function handleChange(val, selectLabel) {
14089
- // this[res.label] = res.list;
14090
- // this.showAppUser = false;
14091
- var label = selectLabel.substring(0, selectLabel.lastIndexOf('SelectList'));
14092
- var idStr = '';
14093
- val.list.map(function (r, i) {
14094
- idStr = idStr + r.showid + (i === val.list.length - 1 ? '' : ',');
14095
- });
14096
- this.form[label + 'Id'] = idStr;
14097
- },
14098
- geAllData: function geAllData(res) {
14111
+ getValue: function getValue() {
14099
14112
  var _this = this;
14100
14113
 
14101
- this.flowObj = res;
14102
- this.$toast.loading({
14103
- message: '加载中...',
14104
- forbidClick: true,
14105
- loadingType: 'spinner',
14106
- overlay: true,
14107
- duration: 0
14108
- });
14109
- //获取流程发起信息后去获取节点信息和办理人信息
14110
- Promise.all([this.getProcessObj(res)]).then(function () {
14111
- _this.getPeopleObj(_this.form.nextNodeId);
14114
+ var pass = true;
14115
+ var PresetData = [];
14116
+ var newFlowList = this.flowList.filter(function (x) {
14117
+ return x.nodeId;
14112
14118
  });
14119
+ for (var i = 0; i < newFlowList.length; i++) {
14120
+ if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
14121
+ pass = false;
14122
+ this.$toast('\u8BF7\u9009\u62E9\u8282\u70B9' + (i + 1) + '\u7684\u529E\u7406\u4EBA');
14123
+ return false;
14124
+ }
14125
+ }
14126
+ if (pass) {
14127
+ newFlowList.map(function (x, i) {
14128
+ PresetData.push({
14129
+ name: ProcessSettingsvue_type_script_lang_js_typeof(x.nodeId) == 'object' ? x.nodeId.nodeId : x.nodeId,
14130
+ value: x.nextUserSelectList.map(function (y) {
14131
+ return y.showid;
14132
+ }).join(','),
14133
+ lastName: i == 0 ? _this.nodeId : PresetData[i - 1].name,
14134
+ sequence: i + 1 + ''
14135
+ });
14136
+ });
14137
+ }
14138
+ return JSON.stringify(PresetData);
14113
14139
  },
14114
14140
 
14115
- // 通知消息回调
14116
- onInputMsg: function onInputMsg(obj) {
14117
- this.form.notificationType = obj.notificationType.join(',');
14118
- this.form.notificationMsg = obj.notificationMsg;
14119
- },
14120
-
14121
- // 删除.
14122
- delteList: function delteList(label, i) {
14123
- this[label].splice(i, 1);
14124
- },
14125
-
14126
- // 意见回调
14127
- onInputOpintion: function onInputOpintion(val) {
14128
- var opinion = val.opinion,
14129
- isImageOpinion = val.isImageOpinion,
14130
- file = val.file;
14131
-
14132
- this.form.opinion = opinion;
14133
- this.form.isImageOpinion = isImageOpinion;
14134
- this.file = file;
14141
+ // 根据返回的办理人类型来判断 选择人员树的范围
14142
+ changePidObjtype: function changePidObjtype(val, choiceOrgId, choiceDeptId, pOrgId, obj) {
14143
+ if (val === 1 || val === 2) {
14144
+ obj.pid = choiceOrgId || this.orgId;
14145
+ obj.objType = 'enterprise';
14146
+ obj.selectType = 'employee';
14147
+ } else if (val === 3 || val === 4) {
14148
+ obj.pid = 'root';
14149
+ obj.objType = 'employee';
14150
+ } else if (val === 5 || val === 6) {
14151
+ obj.pid = choiceDeptId || this.depId;
14152
+ obj.objType = 'department';
14153
+ } else if (val === 11 || val === 12) {
14154
+ obj.selectType = 'employee';
14155
+ obj.objType = 'enterprise';
14156
+ } else if (val === 13) {
14157
+ obj.pid = choiceDeptId || this.depId;
14158
+ obj.selectType = 'employee';
14159
+ obj.objType = 'department';
14160
+ } else if (val === 14) {
14161
+ obj.pid = pOrgId || this.orgId;
14162
+ obj.selectType = 'employee';
14163
+ } else if (val === 15 || val === 16) {
14164
+ obj.pid = pOrgId || this.orgId;
14165
+ obj.selectType = 'employee';
14166
+ }
14167
+ // userSelectionType 机构内单选人1,机构内多选人2,所有机构单选人3,所有部门多选人4,本部门单选人5,本部门多选人6,本单位单选部门7,本单位多选部门8,单选单位9,多选单位10,单选机构11,多选机构12,本部门角色13,本单位角色14
14168
+ val == 2 || val == 4 || val == 6 || val == 8 || val == 10 || val == 11 || val == 12 ? obj.isRadio = false : obj.isRadio = true; //判断办理人单选多选
14135
14169
  },
14136
14170
 
14137
- // 提交流程
14138
- onSubmit: function onSubmit() {
14171
+ // 修改默认办理人
14172
+ changeDefPeople: function changeDefPeople(def, all, data) {
14139
14173
  var _this2 = this;
14140
14174
 
14141
- if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
14142
- this.$toast('请选择输入审批意见');
14143
- return;
14144
- }
14145
- if (!this.form.nextUserId) {
14146
- this.$toast('请选择办理人');
14147
- return;
14175
+ data.nextUserSelectList = [];
14176
+ if (def == 1 && all == 1 || def == 0 && all == 1) {
14177
+ var ids = '';
14178
+ data.nextUserList.map(function (r, i) {
14179
+ r.showid = r.userId;
14180
+ r.showname = r.username;
14181
+ _this2.$set(r, 'checked', true);
14182
+ data.nextUserSelectList.push(r);
14183
+ ids += r.userId + (i === data.nextUserList.length - 1 ? '' : ',');
14184
+ });
14185
+ // this.form.nextUserId = ids;
14186
+ } else if (def == 1 && (!all || all == 0) && data.nextUserList.length > 0) {
14187
+ data.nextUserList[0].showid = data.nextUserList[0].userId;
14188
+ data.nextUserList[0].showname = data.nextUserList[0].username;
14189
+ this.$set(data.nextUserList[0], 'checked', true);
14190
+ data.nextUserSelectList.push(data.nextUserList[0]);
14191
+ // this.form.nextUserId = this.nextUserSelectList[0].userId;
14148
14192
  }
14149
- if (!this.form.nextNodeId) {
14150
- this.$toast('请选择流程节点');
14151
- return;
14193
+ },
14194
+ onConfirmNextNode: function onConfirmNextNode(val, i) {
14195
+ this.flowList = this.flowList.splice(0, i + 1);
14196
+ if (val.nodeId == '-2') {
14197
+ this.flowList[i].nextUserList = [];
14198
+ this.flowList[i].nextUserSelectList = [];
14199
+ } else {
14200
+ this.getNodeInfo(val.nodeId, i);
14152
14201
  }
14153
- // if (!this.form.notificationType) {
14154
- // this.$toast('请选择通知消息');
14155
- // return;
14156
- // }
14202
+ },
14203
+ getNodeInfo: function getNodeInfo(nodeId, i) {
14204
+ var _this3 = this;
14157
14205
 
14158
- var info = {
14159
- processDefinitionId: this.flowObj.processDefinitionId,
14160
- nextUserId: this.form.nextUserId,
14161
- nextNodeId: this.form.nextNodeId,
14162
- businessId: this.businessId,
14163
- notificationType: Array.isArray(this.form.notificationType) ? '' : this.form.notificationType,
14164
- opinion: this.form.opinion,
14165
- nodeId: this.form.nodeId,
14166
- notificationMsg: this.form.notificationMsg,
14167
- loginType: 2, //登录方式
14168
- isImageOpinion: this.form.isImageOpinion,
14169
- userId: this.userId || util["a" /* default */].getStorage('userId'),
14170
- mobileKey: util["a" /* default */].getStorage('deviceId') || '123'
14171
- };
14172
- if (this.beforeSubmit) {
14173
- this.beforeSubmit(info);
14174
- return;
14175
- }
14176
- var formData = new FormData();
14177
- // if (this.form.isImageOpinion == 1) {
14178
- // formData.append('file', this.file);
14179
- // }
14180
- // for (let key in info) {
14181
- // if (info[key] !== '' && info[key] !== undefined) {
14182
- // formData.append(key, info[key]);
14183
- // }
14184
- // }
14185
14206
  this.$toast.loading({
14186
14207
  message: '加载中...',
14187
14208
  forbidClick: true,
@@ -14189,230 +14210,81 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
14189
14210
  overlay: true,
14190
14211
  duration: 0
14191
14212
  });
14192
- var _that = this;
14193
14213
  utils_http({
14194
- url: _that.apiBaseUrl ? _that.apiBaseUrl + registerNew : registerNew,
14195
- type: 'get',
14196
- params: { params: info
14197
- // format: false
14198
- } }).then(function (res) {
14199
- _this2.$toast.clear();
14200
- if (res.rCode == 0) {
14201
- _this2.$toast('操作成功');
14202
- _this2.$parent.$emit('success');
14203
- } else {
14204
- _this2.$toast(res.msg);
14214
+ url: getNodeInfoHtml,
14215
+ params: {
14216
+ processDefinitionId: this.processDefinitionId,
14217
+ nextNodeId: nodeId,
14218
+ businessId: this.businessId,
14219
+ taskId: this.taskId,
14220
+ pendingId: this.pendingId
14205
14221
  }
14206
- });
14207
- },
14222
+ }).then(function (res) {
14223
+ if (res.status == 'success') {
14224
+ // this.nodeList = res.data.taskNodeMap;
14225
+ var obj = {};
14226
+ if (i != undefined) {
14227
+ res.data.nextUserList.map(function (res) {
14228
+ res.checked = false;
14229
+ });
14208
14230
 
14209
- // 确认常用意见
14210
- onConfirmOpinion: function onConfirmOpinion(val) {
14211
- this.form.opinion = val.content;
14212
- this.showOpinion = false;
14213
- },
14214
-
14215
- // 选择办理人
14216
- onClickPeople: function onClickPeople(label) {
14217
- this.$nextTick(function () {
14218
- this.$refs.selectTree.getContent(label);
14219
- });
14220
- var obj = {
14221
- label: '请选择办理人',
14222
- show: true
14223
- };
14224
- this.$emit('informNav', obj);
14225
- this.showAppUser = true;
14226
- },
14227
-
14228
- // 获取树选择范围
14229
- getTreeChangeType: function getTreeChangeType() {
14230
- /**
14231
- * 办理人选择方式(1:机构内单选人;2:机构内多选;3:所有机构单选人;4:所有机构多选人;5:科室内单选人;6:科室内多选人;11:单选机构;12:多选机构;13:本部门角色;14:本单位角色;15:上级单位单选人;16:上级单位多选人;)
14232
- */
14233
- this.treeType % 2 == 0 ? this.isRadio = false : this.isRadio = true;
14234
- if (this.treeType === 1 || this.treeType === 2) {
14235
- this.pid = this.orgId;
14236
- this.objType = 'enterprise';
14237
- this.selectType = 'employee';
14238
- } else if (this.treeType === 3 || this.treeType === 4) {
14239
- this.pid = 'root';
14240
- this.selectType = 'employee';
14241
- this.objType = 'employee';
14242
- } else if (this.treeType === 5 || this.treeType === 6) {
14243
- this.pid = this.depId;
14244
- this.selectType = 'employee';
14245
- this.objType = 'employee';
14246
- } else if (this.treeType === 11 || this.treeType === 12) {
14247
- this.selectType = 'employee';
14248
- this.objType = 'enterprise';
14249
- this.pid = '';
14250
- } else if (this.treeType === 13) {
14251
- this.pid = this.depId;
14252
- this.selectType = 'employee';
14253
- } else if (this.treeType === 14) {
14254
- this.pid = this.orgId;
14255
- this.selectType = 'employee';
14256
- } else if (this.treeType === 15 || this.treeType === 16) {
14257
- this.pid = this.orgId;
14258
- this.selectType = 'employee';
14259
- } else if (this.treeType == 'department') {
14260
- this.pid = '';
14261
- this.selectType = 'department';
14262
- this.objType = 'department';
14263
- }
14264
- },
14265
-
14266
- // 确认下一步操作
14267
- onConfirmNext: function onConfirmNext(val) {
14268
- this.form.nextName = val.itemName;
14269
- this.nodeList = val.list;
14270
- this.form.nextNodeId = val.list[0].nodeId;
14271
- this.form.nextNodeName = val.list[0].nodeName;
14272
- val.list[0].transactorInfos && (this.nextUserList = val.list[0].transactorInfos);
14273
- this.showNextList = false;
14274
- this.getPeopleObj(this.form.nextNodeId);
14275
- },
14276
-
14277
- // 确认流程节点操作
14278
- onConfirmNextNode: function onConfirmNextNode(val) {
14279
- this.form.nextNodeId = val.nodeId;
14280
- this.form.nextNodeName = val.nodeName;
14281
- this.showNextNodeList = false;
14282
- this.getPeopleObj(this.form.nextNodeId);
14283
- },
14284
-
14285
- // 办理人选择完回调
14286
- disposeAppUser: function disposeAppUser(res) {
14287
- this[res.label] = res.list;
14288
- this.showAppUser = false;
14289
- var label = res.label.substring(0, res.label.lastIndexOf('SelectList'));
14290
- var idStr = '';
14291
- res.list.map(function (r, i) {
14292
- idStr = idStr + r.showid + (i === res.list.length - 1 ? '' : ',');
14293
- });
14294
- this.form[label + 'Id'] = idStr;
14295
- },
14296
-
14297
- // 获取发起流程信息
14298
- getProcessObj: function getProcessObj(res) {
14299
- var that = this;
14300
- return new Promise(function (resolve, reiect) {
14301
- utils_http({
14302
- url: that.apiBaseUrl ? that.apiBaseUrl + toStartFlow : toStartFlow,
14303
- params: {
14304
- params: StartFlowvue_type_script_lang_js_extends({}, res, {
14305
- userId: that.userId || util["a" /* default */].getStorage('userId')
14306
- })
14307
- }
14308
- }).then(function (res) {
14309
- if (res.rCode == 0) {
14310
- res.results.nodeExtr.submitTipsMsg && external_eoss_mobile_vant_["Dialog"].confirm({
14311
- title: '提示',
14312
- message: res.results.nodeExtr.submitTipsMsg
14313
- }).then(function () {
14314
- // on confirm
14315
- }).catch(function () {
14316
- that.goBack();
14317
- // on cancel
14318
- });
14319
- if (res.results.extendData) {
14320
- that.notificationMessageReadOnly = res.results.extendData.notificationMessageReadOnly == 'true';
14321
- that.readOnlyNotificationType = res.results.extendData.readOnlyNotificationType;
14322
- }
14323
- that.processObj = res.results;
14324
- that.nextList = res.results.nodeList;
14325
- that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
14326
- that.isBanInputOpinion = res.results.nodeExtr.isBanInputOpinion;
14327
- if (!that.isOpinionRequired) {
14328
- that.isOpinionRequired = 0;
14329
- }
14330
- if (!that.isBanInputOpinion) {
14331
- that.isBanInputOpinion = 0;
14332
- }
14333
- that.isChooseNextNode = res.results.nodeExtr.isChooseNextNode;
14334
- that.nodeList = res.results.nodeList[0].list;
14335
- that.form.nextName = that.nextList[0].itemName;
14336
- that.form.nextNodeId = that.nextList[0].list[0].nodeId;
14337
- that.form.nextNodeName = that.nextList[0].list[0].nodeName;
14338
- that.nextList[0].list[0].transactorInfos && (that.nextUserList = that.nextList[0].list[0].transactorInfos);
14339
- if (that.nextUserList) {
14340
- that.nextUserList.map(function (x) {
14341
- x.checked = false;
14342
- });
14343
- }
14344
- that.form.notificationMsg = res.results.notificationMsg;
14345
- that.form.nodeId = res.results.nodeId;
14346
- var defaultNotificationTypes = [];
14347
- if (res.results.notificationTypes && that.defaultNotificationType.length == 0) {
14348
- defaultNotificationTypes = res.results.notificationTypes.filter(function (x) {
14349
- return x.defaultSelected == 'true';
14350
- });
14351
- }
14352
- defaultNotificationTypes.map(function (x) {
14353
- that.defaultNotificationType.push(x.notificationCode);
14354
- });
14355
- resolve();
14231
+ _this3.flowList[i].nextUserList = res.data.nextUserList || [];
14232
+ _this3.flowList[i].nextUserSelectList = res.data.nextUserList || [];
14233
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, _this3.flowList[i]);
14234
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, _this3.flowList[i]);
14356
14235
  } else {
14357
- that.$toast(res.message);
14358
- reiect();
14236
+ obj.nextUserList = [];
14237
+ obj.nextUserSelectList = [];
14238
+ _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, obj);
14239
+ _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, obj);
14359
14240
  }
14360
- });
14241
+ _this3.getProList(nodeId, obj);
14242
+ }
14361
14243
  });
14362
14244
  },
14245
+ getProList: function getProList(nodeId, obj) {
14246
+ var _this4 = this;
14363
14247
 
14364
- // 获取节点信息(获取节点属性及办理人)
14365
- getPeopleObj: function getPeopleObj(res) {
14366
- var _this3 = this;
14367
-
14368
- var _that = this;
14369
14248
  utils_http({
14370
- url: _that.apiBaseUrl ? _that.apiBaseUrl + api_getNodeInfo : api_getNodeInfo,
14249
+ url: getPresetCustomInfo,
14371
14250
  params: {
14372
- params: {
14373
- processDefinitionId: this.flowObj.processDefinitionId,
14374
- nodeId: res,
14375
- // taskId: this.processObj.taskId,
14376
- userId: _that.userId
14377
- }
14251
+ processDefinitionId: this.processDefinitionId,
14252
+ nodeId: nodeId,
14253
+ taskAction: 'withExtendData'
14378
14254
  }
14379
14255
  }).then(function (res) {
14380
- _this3.$toast.clear();
14381
- if (res.rCode == 0) {
14382
- _this3.peopleObj = res.results.nodeExtr;
14383
- if (res.results.nodeExtr.userSelectionType) {
14384
- _this3.treeType = res.results.nodeExtr.userSelectionType;
14385
- if (res.results.nodeExtr) {
14386
- var idStr = '';
14387
- if (res.results.nodeExtr.isDefSelectedObj == 1 && _this3.nextUserList.length > 0) {
14388
- _this3.nextUserList[0].checked = true;
14389
- _this3.nextUserSelectList = [_this3.nextUserList[0]];
14390
- idStr = _this3.nextUserSelectList[0].showid;
14391
- }
14392
- if (res.results.nodeExtr.isSelectedAllObj == 1 && _this3.nextUserList.length > 0) {
14393
- _this3.nextUserSelectList = [];
14394
- idStr = '';
14395
- _this3.nextUserList.map(function (x) {
14396
- x.checked = true;
14397
- _this3.nextUserSelectList.push(x);
14398
- idStr = idStr ? idStr + ',' + x.showid : idStr;
14399
- });
14400
- }
14401
- _this3.form.nextUserId = idStr;
14256
+ _this4.$toast.clear();
14257
+ if (res.status == 'success') {
14258
+ var _extends2;
14259
+
14260
+ var arr = [{ nodeId: '-2', nodeName: '请选择' }];
14261
+ var isEnd = false;
14262
+ if (res.data.taskNodeMap) {
14263
+ for (var i in res.data.taskNodeMap || res.data || {}) {
14264
+ var _obj = {
14265
+ nodeId: i,
14266
+ nodeName: res.data.taskNodeMap[i]
14267
+ };
14268
+ isEnd = i == 'endEvent';
14269
+ arr.push(_obj);
14402
14270
  }
14403
- // this.nextUserSelectList = list.filter(x => x.showname && x.showid);
14404
- _this3.getTreeChangeType();
14405
14271
  }
14406
- } else {
14407
- _this3.$toast(res.message);
14272
+ if (isEnd) {
14273
+ arr = arr.slice(1);
14274
+ }
14275
+ obj = ProcessSettingsvue_type_script_lang_js_extends({}, obj, (_extends2 = {
14276
+ nodeList: arr,
14277
+ nodeId: ''
14278
+ }, _extends2['nodeId'] = isEnd ? arr[0].nodeId : '', _extends2.showSelectUser = !isEnd, _extends2));
14279
+ _this4.flowList.push(obj);
14408
14280
  }
14409
14281
  });
14410
14282
  }
14411
14283
  }
14412
14284
  });
14413
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
14414
- /* harmony default export */ var components_StartFlowvue_type_script_lang_js = (StartFlowvue_type_script_lang_js);
14415
- // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue
14285
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
14286
+ /* harmony default export */ var components_ProcessSettingsvue_type_script_lang_js = (ProcessSettingsvue_type_script_lang_js);
14287
+ // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue
14416
14288
 
14417
14289
 
14418
14290
 
@@ -14420,10 +14292,10 @@ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target
14420
14292
 
14421
14293
  /* normalize component */
14422
14294
 
14423
- var StartFlow_component = normalizeComponent(
14424
- components_StartFlowvue_type_script_lang_js,
14425
- StartFlowvue_type_template_id_20f21730_render,
14426
- StartFlowvue_type_template_id_20f21730_staticRenderFns,
14295
+ var ProcessSettings_component = normalizeComponent(
14296
+ components_ProcessSettingsvue_type_script_lang_js,
14297
+ ProcessSettingsvue_type_template_id_56fbc1bf_render,
14298
+ ProcessSettingsvue_type_template_id_56fbc1bf_staticRenderFns,
14427
14299
  false,
14428
14300
  null,
14429
14301
  null,
@@ -14431,1230 +14303,9 @@ var StartFlow_component = normalizeComponent(
14431
14303
 
14432
14304
  )
14433
14305
 
14434
- /* harmony default export */ var StartFlow = (StartFlow_component.exports);
14435
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=548395aa
14436
- var Handlevue_type_template_id_548395aa_render = function () {
14437
- var _vm = this
14438
- var _h = _vm.$createElement
14439
- var _c = _vm._self._c || _h
14440
- return _c(
14441
- "div",
14442
- { staticClass: "process-handle" },
14443
- [
14444
- _vm.handleFlow
14445
- ? _c(
14446
- "div",
14447
- {
14448
- staticStyle: {
14449
- display: "flex",
14450
- "flex-direction": "column",
14451
- height: "100%",
14452
- },
14453
- },
14454
- [
14455
- _c(
14456
- "div",
14457
- { staticClass: "process-content" },
14458
- [
14459
- _c("div", { staticClass: "present-node" }, [
14460
- _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
14461
- _c("div", [
14462
- _vm._v(_vm._s(_vm.processObj.taskExamine.nodeName)),
14463
- ]),
14464
- ]),
14465
- _c("Opinion", {
14466
- attrs: {
14467
- code: _vm.processObj.attachedCode,
14468
- ownId: _vm.pendingId,
14469
- esign: _vm.esign,
14470
- esignLineWidth:
14471
- _vm.$attrs["esign-line-width"] ||
14472
- _vm.$attrs["esignLineWidth"],
14473
- isOpinionRequired: _vm.isOpinionRequired,
14474
- disabled: _vm.isBanInputOpinion != 0,
14475
- baseUrl: _vm.baseUrl,
14476
- isForceDisplayDefaultOptionForPrefix:
14477
- _vm.isForceDisplayDefaultOptionForPrefix,
14478
- placeholder: _vm.opinionHandleExplainText,
14479
- nodeDefaultSubmitOpinion: _vm.nodeDefaultSubmitOpinion,
14480
- nodeFixedOpinionSelectList:
14481
- _vm.nodeFixedOpinionSelectList,
14482
- isHiddenOftenOpinion:
14483
- _vm.isHiddenOftenOpinion == 1 ? false : true,
14484
- },
14485
- on: { onInputOpintion: _vm.onInputOpintion },
14486
- }),
14487
- _vm.typeCode != "fenyue"
14488
- ? _c("div", { staticClass: "special-box input-box" }, [
14489
- _vm.isCanAddSign
14490
- ? _c(
14491
- "div",
14492
- {
14493
- staticClass: "item",
14494
- class: {
14495
- itemRadio: _vm.form.isAddSign === "1",
14496
- },
14497
- },
14498
- [
14499
- _c(
14500
- "em-input",
14501
- {
14502
- attrs: {
14503
- name: "radio",
14504
- label: "是否增加本环节办理人",
14505
- required: true,
14506
- },
14507
- },
14508
- [
14509
- _c(
14510
- "template",
14511
- { slot: "input" },
14512
- [
14513
- _c("em-radio-group", {
14514
- attrs: {
14515
- data: _vm.isAddSignList,
14516
- direction: "horizontal",
14517
- },
14518
- model: {
14519
- value: _vm.form.isAddSign,
14520
- callback: function ($$v) {
14521
- _vm.$set(
14522
- _vm.form,
14523
- "isAddSign",
14524
- $$v
14525
- )
14526
- },
14527
- expression: "form.isAddSign",
14528
- },
14529
- }),
14530
- ],
14531
- 1
14532
- ),
14533
- ],
14534
- 2
14535
- ),
14536
- ],
14537
- 1
14538
- )
14539
- : _vm._e(),
14540
- _vm.form.isAddSign === "1"
14541
- ? _c(
14542
- "div",
14543
- {
14544
- staticClass: "item item-user",
14545
- attrs: { label: "增加办理人" },
14546
- },
14547
- [
14548
- _c("em-selector", {
14549
- attrs: {
14550
- label: "增加办理人",
14551
- required: "",
14552
- multiple: "",
14553
- isAllCheck: _vm.isAllCheck,
14554
- baseUrl: _vm.apiBaseUrl,
14555
- paddingTop: _vm.paddingTop,
14556
- objType: _vm.objType,
14557
- },
14558
- on: {
14559
- change: function ($event) {
14560
- _vm.disposeAppUser(
14561
- $event,
14562
- "addSignUserSelectList"
14563
- )
14564
- },
14565
- },
14566
- model: {
14567
- value: _vm.addSignUserSelectList,
14568
- callback: function ($$v) {
14569
- _vm.addSignUserSelectList = $$v
14570
- },
14571
- expression: "addSignUserSelectList",
14572
- },
14573
- }),
14574
- _vm.isCanPreAddSign
14575
- ? _c(
14576
- "em-input",
14577
- { attrs: { label: "加签模式" } },
14578
- [
14579
- _c(
14580
- "template",
14581
- { slot: "input" },
14582
- [
14583
- _c("em-radio-group", {
14584
- attrs: {
14585
- direction: "horizontal",
14586
- data: _vm.AddSignList,
14587
- },
14588
- model: {
14589
- value: _vm.form.addSignMode,
14590
- callback: function ($$v) {
14591
- _vm.$set(
14592
- _vm.form,
14593
- "addSignMode",
14594
- $$v
14595
- )
14596
- },
14597
- expression: "form.addSignMode",
14598
- },
14599
- }),
14600
- ],
14601
- 1
14602
- ),
14603
- ],
14604
- 2
14605
- )
14606
- : _vm._e(),
14607
- ],
14608
- 1
14609
- )
14610
- : _vm._e(),
14611
- _vm.isCanRemoveSign
14612
- ? _c(
14613
- "div",
14614
- {
14615
- staticClass: "item",
14616
- class: {
14617
- itemRadio: _vm.form.isRemoveSign === "1",
14618
- },
14619
- },
14620
- [
14621
- _c(
14622
- "em-input",
14623
- {
14624
- attrs: {
14625
- name: "radio",
14626
- label: "是否减签",
14627
- required: true,
14628
- },
14629
- },
14630
- [
14631
- _c(
14632
- "template",
14633
- { slot: "input" },
14634
- [
14635
- _c("em-radio-group", {
14636
- attrs: {
14637
- data: _vm.isAddSignList,
14638
- direction: "horizontal",
14639
- },
14640
- model: {
14641
- value: _vm.form.isRemoveSign,
14642
- callback: function ($$v) {
14643
- _vm.$set(
14644
- _vm.form,
14645
- "isRemoveSign",
14646
- $$v
14647
- )
14648
- },
14649
- expression: "form.isRemoveSign",
14650
- },
14651
- }),
14652
- ],
14653
- 1
14654
- ),
14655
- ],
14656
- 2
14657
- ),
14658
- ],
14659
- 1
14660
- )
14661
- : _vm._e(),
14662
- _vm.isSpecial && _vm.typeCode != "fenyue"
14663
- ? _c(
14664
- "div",
14665
- [
14666
- _vm.form.isRemoveSign === "1"
14667
- ? _c(
14668
- "div",
14669
- {
14670
- staticClass: "item item-user",
14671
- attrs: { label: "减少办理人" },
14672
- },
14673
- [
14674
- _c("em-selector", {
14675
- attrs: {
14676
- label: "减少办理人",
14677
- isAllCheck: _vm.isAllCheck,
14678
- required: "",
14679
- paddingTop: _vm.paddingTop,
14680
- multiple: "",
14681
- baseUrl: _vm.apiBaseUrl,
14682
- objType: _vm.objType,
14683
- },
14684
- on: {
14685
- change: function ($event) {
14686
- _vm.disposeAppUser(
14687
- $event,
14688
- "removeSignUserSelectList"
14689
- )
14690
- },
14691
- },
14692
- model: {
14693
- value: _vm.removeSignUserSelectList,
14694
- callback: function ($$v) {
14695
- _vm.removeSignUserSelectList = $$v
14696
- },
14697
- expression:
14698
- "removeSignUserSelectList",
14699
- },
14700
- }),
14701
- ],
14702
- 1
14703
- )
14704
- : _vm._e(),
14705
- _vm.form.isRemoveSign !== "1" &&
14706
- _vm.form.isAddSign !== "1" &&
14707
- !_vm.isHiddenNextStepInfo
14708
- ? _c("div", [
14709
- _c(
14710
- "div",
14711
- {
14712
- directives: [
14713
- {
14714
- name: "show",
14715
- rawName: "v-show",
14716
- value:
14717
- _vm.isNextBox || _vm.isReject,
14718
- expression:
14719
- "isNextBox || isReject",
14720
- },
14721
- ],
14722
- staticClass: "next-box",
14723
- },
14724
- [
14725
- !_vm.isHiddenNextStepInfo &&
14726
- _vm.isChooseNextNode == 1
14727
- ? _c(
14728
- "div",
14729
- {
14730
- staticClass: "item next-step",
14731
- },
14732
- [
14733
- _c(
14734
- "em-input",
14735
- {
14736
- staticClass:
14737
- "em-flow-next-steps",
14738
- attrs: {
14739
- value: "下步操作",
14740
- label: "下步操作",
14741
- required: "",
14742
- disabled: true,
14743
- "label-position": "top",
14744
- },
14745
- },
14746
- [
14747
- _c(
14748
- "template",
14749
- { slot: "input" },
14750
- _vm._l(
14751
- _vm.taskOperations,
14752
- function (item) {
14753
- return _c(
14754
- "span",
14755
- {
14756
- key: item.key,
14757
- staticClass:
14758
- "em-flow-tag",
14759
- class: {
14760
- "em-flow-tag-active":
14761
- _vm.tagKey ===
14762
- item.key,
14763
- },
14764
- on: {
14765
- click:
14766
- function (
14767
- $event
14768
- ) {
14769
- _vm.changeNextOperate(
14770
- item
14771
- )
14772
- },
14773
- },
14774
- },
14775
- [
14776
- _vm._v(
14777
- "\n " +
14778
- _vm._s(
14779
- item.value
14780
- ) +
14781
- "\n "
14782
- ),
14783
- ]
14784
- )
14785
- }
14786
- ),
14787
- 0
14788
- ),
14789
- ],
14790
- 2
14791
- ),
14792
- ],
14793
- 1
14794
- )
14795
- : _vm._e(),
14796
- _vm.nodeList &&
14797
- _vm.nodeList.length > 0 &&
14798
- !_vm.isReject &&
14799
- _vm.isShowNode
14800
- ? _c(
14801
- "div",
14802
- { staticClass: "item" },
14803
- [
14804
- _c("em-picker", {
14805
- attrs: {
14806
- title: "下步节点",
14807
- label: "下步节点",
14808
- required: "",
14809
- "show-toolbar": "",
14810
- "label-width": "100%",
14811
- columns: _vm.nodeList,
14812
- "value-key": "nodeId",
14813
- "label-key": "nodeName",
14814
- },
14815
- on: {
14816
- confirm:
14817
- _vm.onConfirmNextNode,
14818
- },
14819
- model: {
14820
- value:
14821
- _vm.form.nextNodeName,
14822
- callback: function ($$v) {
14823
- _vm.$set(
14824
- _vm.form,
14825
- "nextNodeName",
14826
- $$v
14827
- )
14828
- },
14829
- expression:
14830
- "form.nextNodeName",
14831
- },
14832
- }),
14833
- ],
14834
- 1
14835
- )
14836
- : _vm._e(),
14837
- ]
14838
- ),
14839
- _vm.countersignaturetypeCode
14840
- ? _c(
14841
- "div",
14842
- { staticClass: "item" },
14843
- [
14844
- _c("van-field", {
14845
- attrs: {
14846
- label: "处理方式",
14847
- disabled: true,
14848
- },
14849
- model: {
14850
- value:
14851
- _vm.countersignaturetypeText,
14852
- callback: function ($$v) {
14853
- _vm.countersignaturetypeText =
14854
- $$v
14855
- },
14856
- expression:
14857
- "countersignaturetypeText",
14858
- },
14859
- }),
14860
- ],
14861
- 1
14862
- )
14863
- : _vm._e(),
14864
- _vm.isNextUser
14865
- ? _c(
14866
- "div",
14867
- { staticClass: "item item-user" },
14868
- [
14869
- _c("em-selector", {
14870
- attrs: {
14871
- multiple: !_vm.isRadio,
14872
- objType: _vm.objType,
14873
- isAllCheck: _vm.isAllCheck,
14874
- required: "",
14875
- paddingTop: _vm.paddingTop,
14876
- nextUserList:
14877
- _vm.nextUserList,
14878
- baseUrl: _vm.apiBaseUrl,
14879
- tabs: "employee,persongroup",
14880
- disabled:
14881
- !_vm.isCustomUser ||
14882
- _vm.isCurrentNodeForbiddenChangeCandidate ==
14883
- 1,
14884
- selectDisabled:
14885
- _vm.isCurrentNodeForbiddenChangeCandidate ==
14886
- 1,
14887
- placeholder:
14888
- "请选择下步办理人",
14889
- param: {
14890
- pid: _vm.pid,
14891
- },
14892
- label: "下步办理人",
14893
- },
14894
- on: {
14895
- change: function ($event) {
14896
- _vm.disposeAppUser(
14897
- $event,
14898
- "nextUserSelectList"
14899
- )
14900
- },
14901
- },
14902
- model: {
14903
- value: _vm.nextUserSelectList,
14904
- callback: function ($$v) {
14905
- _vm.nextUserSelectList = $$v
14906
- },
14907
- expression:
14908
- "nextUserSelectList",
14909
- },
14910
- }),
14911
- ],
14912
- 1
14913
- )
14914
- : _vm._e(),
14915
- _vm.isDealRole
14916
- ? _c(
14917
- "div",
14918
- { staticClass: "item" },
14919
- [
14920
- _c("em-input", {
14921
- attrs: {
14922
- value: "办理角色",
14923
- label: "办理角色",
14924
- disabled: true,
14925
- placeholder: "请选择",
14926
- },
14927
- }),
14928
- ],
14929
- 1
14930
- )
14931
- : _vm._e(),
14932
- _vm.isDealObject
14933
- ? _c(
14934
- "div",
14935
- { staticClass: "item" },
14936
- [
14937
- _c("em-input", {
14938
- attrs: {
14939
- value: "办理对象",
14940
- label: "办理对象",
14941
- disabled: true,
14942
- placeholder: "请选择",
14943
- },
14944
- }),
14945
- ],
14946
- 1
14947
- )
14948
- : _vm._e(),
14949
- _vm.isHideCurrentOrg
14950
- ? _c(
14951
- "div",
14952
- { staticClass: "item" },
14953
- [
14954
- _c("em-selector", {
14955
- attrs: {
14956
- multiple: "",
14957
- isAllCheck: _vm.isAllCheck,
14958
- paddingTop: _vm.paddingTop,
14959
- objType: "enterprise",
14960
- tabs: "department,myemployee",
14961
- param: {
14962
- pid: _vm.orgId,
14963
- },
14964
- baseUrl: _vm.apiBaseUrl,
14965
- isOtherUnit: false,
14966
- label: _vm.currentOrgName
14967
- ? _vm.currentOrgName
14968
- : "本单位",
14969
- },
14970
- on: {
14971
- change: function ($event) {
14972
- _vm.disposeAppUnit(
14973
- $event,
14974
- "nextCurrentOrgObjSelect"
14975
- )
14976
- },
14977
- },
14978
- model: {
14979
- value:
14980
- _vm.nextCurrentOrgObjSelect,
14981
- callback: function ($$v) {
14982
- _vm.nextCurrentOrgObjSelect =
14983
- $$v
14984
- },
14985
- expression:
14986
- "nextCurrentOrgObjSelect",
14987
- },
14988
- }),
14989
- ],
14990
- 1
14991
- )
14992
- : _vm._e(),
14993
- _vm.isHideOtherOrg
14994
- ? _c(
14995
- "div",
14996
- { staticClass: "item" },
14997
- [
14998
- _c("em-selector", {
14999
- attrs: {
15000
- multiple: "",
15001
- isAllCheck: _vm.isAllCheck,
15002
- paddingTop: _vm.paddingTop,
15003
- objType: "enterprise",
15004
- param: {
15005
- pid: "root",
15006
- },
15007
- tabs: "enterprise",
15008
- baseUrl: _vm.apiBaseUrl,
15009
- isOtherUnit: true,
15010
- label: _vm.otherOrgName
15011
- ? _vm.otherOrgName
15012
- : "外单位",
15013
- },
15014
- on: {
15015
- change: function ($event) {
15016
- _vm.disposeAppUnit(
15017
- $event,
15018
- "nextOtherOrgObjSelect"
15019
- )
15020
- },
15021
- },
15022
- model: {
15023
- value:
15024
- _vm.nextOtherOrgObjSelect,
15025
- callback: function ($$v) {
15026
- _vm.nextOtherOrgObjSelect =
15027
- $$v
15028
- },
15029
- expression:
15030
- "nextOtherOrgObjSelect",
15031
- },
15032
- }),
15033
- ],
15034
- 1
15035
- )
15036
- : _vm._e(),
15037
- _vm.isMainSubProcess &&
15038
- _vm.isNodeShowProcess
15039
- ? _c(
15040
- "div",
15041
- { staticClass: "item" },
15042
- [
15043
- _c("em-picker", {
15044
- attrs: {
15045
- label: "主办",
15046
- title: "主办",
15047
- placeholder: "请选择主办",
15048
- "show-toolbar": "",
15049
- disabled:
15050
- _vm.subProcessColumns
15051
- .length == 0,
15052
- columns:
15053
- _vm.subProcessColumns,
15054
- },
15055
- model: {
15056
- value: _vm.form.mainSubId,
15057
- callback: function ($$v) {
15058
- _vm.$set(
15059
- _vm.form,
15060
- "mainSubId",
15061
- $$v
15062
- )
15063
- },
15064
- expression: "form.mainSubId",
15065
- },
15066
- }),
15067
- ],
15068
- 1
15069
- )
15070
- : _vm._e(),
15071
- _vm.isHandleExplain
15072
- ? _c(
15073
- "div",
15074
- { staticClass: "item" },
15075
- [
15076
- _c("van-field", {
15077
- attrs: {
15078
- value: "办理说明",
15079
- label: "办理说明",
15080
- disabled: true,
15081
- placeholder: "请选择",
15082
- },
15083
- }),
15084
- ],
15085
- 1
15086
- )
15087
- : _vm._e(),
15088
- ])
15089
- : _vm._e(),
15090
- _vm.form.isRemoveSign !== "1" &&
15091
- _vm.form.isAddSign !== "1" &&
15092
- _vm.isTaskread
15093
- ? _c("div", { staticClass: "item" }, [
15094
- _c(
15095
- "div",
15096
- { staticClass: "item item-user" },
15097
- [
15098
- _c("em-selector", {
15099
- attrs: {
15100
- multiple: "",
15101
- isAllCheck: _vm.isAllCheck,
15102
- objType: _vm.objType,
15103
- param: {
15104
- pid: _vm.pid,
15105
- },
15106
- paddingTop: _vm.paddingTop,
15107
- baseUrl: _vm.apiBaseUrl,
15108
- tabs: "employee,persongroup",
15109
- label: "分阅用户",
15110
- },
15111
- on: {
15112
- change: function ($event) {
15113
- _vm.disposeAppUser(
15114
- $event,
15115
- "nextReadUserSelectList"
15116
- )
15117
- },
15118
- },
15119
- model: {
15120
- value: _vm.nextReadUserSelectList,
15121
- callback: function ($$v) {
15122
- _vm.nextReadUserSelectList = $$v
15123
- },
15124
- expression:
15125
- "nextReadUserSelectList",
15126
- },
15127
- }),
15128
- ],
15129
- 1
15130
- ),
15131
- ])
15132
- : _vm._e(),
15133
- _vm.isLimitedTimeHandling
15134
- ? _c(
15135
- "div",
15136
- { staticClass: "item" },
15137
- [
15138
- _c(
15139
- "em-input",
15140
- {
15141
- attrs: {
15142
- name: "radio",
15143
- label: "是否限时办理",
15144
- required: true,
15145
- },
15146
- },
15147
- [
15148
- _c(
15149
- "template",
15150
- { slot: "input" },
15151
- [
15152
- _c("em-radio-group", {
15153
- attrs: {
15154
- data: _vm.isAddSignList,
15155
- direction: "horizontal",
15156
- },
15157
- model: {
15158
- value:
15159
- _vm.form.isLimitedTime,
15160
- callback: function ($$v) {
15161
- _vm.$set(
15162
- _vm.form,
15163
- "isLimitedTime",
15164
- $$v
15165
- )
15166
- },
15167
- expression:
15168
- "form.isLimitedTime",
15169
- },
15170
- }),
15171
- ],
15172
- 1
15173
- ),
15174
- ],
15175
- 2
15176
- ),
15177
- ],
15178
- 1
15179
- )
15180
- : _vm._e(),
15181
- _vm.form.isLimitedTime === "1"
15182
- ? _c(
15183
- "div",
15184
- { staticClass: "item item-limited-time" },
15185
- [
15186
- _c(
15187
- "em-input",
15188
- {
15189
- attrs: {
15190
- name: "radio",
15191
- label: "限时办理时间",
15192
- required: true,
15193
- },
15194
- },
15195
- [
15196
- _c("template", { slot: "input" }, [
15197
- _c(
15198
- "div",
15199
- {
15200
- staticClass:
15201
- "item-limited-time-content",
15202
- },
15203
- [
15204
- _c(
15205
- "div",
15206
- [
15207
- _c("em-input", {
15208
- attrs: {
15209
- placeholder:
15210
- "请输入天数",
15211
- type: "digit",
15212
- },
15213
- model: {
15214
- value:
15215
- _vm.form
15216
- .limitedTimeDay,
15217
- callback: function (
15218
- $$v
15219
- ) {
15220
- _vm.$set(
15221
- _vm.form,
15222
- "limitedTimeDay",
15223
- $$v
15224
- )
15225
- },
15226
- expression:
15227
- "form.limitedTimeDay",
15228
- },
15229
- }),
15230
- ],
15231
- 1
15232
- ),
15233
- _c(
15234
- "div",
15235
- { staticClass: "day-text" },
15236
- [_vm._v("天")]
15237
- ),
15238
- _c(
15239
- "div",
15240
- [
15241
- _c("em-input", {
15242
- attrs: {
15243
- value:
15244
- _vm.form
15245
- .limitedTimeHour,
15246
- clickable: "",
15247
- readonly: "",
15248
- placeholder:
15249
- "请选择小时",
15250
- },
15251
- on: {
15252
- click: function (
15253
- $event
15254
- ) {
15255
- _vm.openTimeList(
15256
- "limitedTimeHour"
15257
- )
15258
- },
15259
- },
15260
- }),
15261
- ],
15262
- 1
15263
- ),
15264
- _c(
15265
- "div",
15266
- { staticClass: "day-text" },
15267
- [_vm._v("时")]
15268
- ),
15269
- ]
15270
- ),
15271
- ]),
15272
- ],
15273
- 2
15274
- ),
15275
- ],
15276
- 1
15277
- )
15278
- : _vm._e(),
15279
- _vm.form.isLimitedTime === "1"
15280
- ? _c(
15281
- "div",
15282
- { staticClass: "item item-limited-time" },
15283
- [
15284
- _c(
15285
- "em-input",
15286
- {
15287
- attrs: {
15288
- name: "radio",
15289
- label: "提前通知时间",
15290
- required: true,
15291
- },
15292
- },
15293
- [
15294
- _c("template", { slot: "input" }, [
15295
- _c(
15296
- "div",
15297
- {
15298
- staticClass:
15299
- "item-limited-time-content",
15300
- },
15301
- [
15302
- _c(
15303
- "div",
15304
- [
15305
- _c("em-input", {
15306
- attrs: {
15307
- placeholder:
15308
- "请输入天数",
15309
- type: "digit",
15310
- },
15311
- model: {
15312
- value:
15313
- _vm.form
15314
- .advanceNoticeDay,
15315
- callback: function (
15316
- $$v
15317
- ) {
15318
- _vm.$set(
15319
- _vm.form,
15320
- "advanceNoticeDay",
15321
- $$v
15322
- )
15323
- },
15324
- expression:
15325
- "form.advanceNoticeDay",
15326
- },
15327
- }),
15328
- ],
15329
- 1
15330
- ),
15331
- _c(
15332
- "div",
15333
- { staticClass: "day-text" },
15334
- [_vm._v("天")]
15335
- ),
15336
- _c(
15337
- "div",
15338
- [
15339
- _c("em-input", {
15340
- attrs: {
15341
- value:
15342
- _vm.form
15343
- .advanceNoticeHour,
15344
- clickable: "",
15345
- placeholder:
15346
- "请选择小时",
15347
- readonly: "",
15348
- },
15349
- on: {
15350
- click: function (
15351
- $event
15352
- ) {
15353
- _vm.openTimeList(
15354
- "advanceNoticeHour"
15355
- )
15356
- },
15357
- },
15358
- }),
15359
- ],
15360
- 1
15361
- ),
15362
- _c(
15363
- "div",
15364
- { staticClass: "day-text" },
15365
- [_vm._v("时")]
15366
- ),
15367
- ]
15368
- ),
15369
- ]),
15370
- ],
15371
- 2
15372
- ),
15373
- ],
15374
- 1
15375
- )
15376
- : _vm._e(),
15377
- _c(
15378
- "van-popup",
15379
- {
15380
- attrs: { round: "", position: "bottom" },
15381
- model: {
15382
- value: _vm.showTimeList,
15383
- callback: function ($$v) {
15384
- _vm.showTimeList = $$v
15385
- },
15386
- expression: "showTimeList",
15387
- },
15388
- },
15389
- [
15390
- _c("van-picker", {
15391
- attrs: {
15392
- "show-toolbar": "",
15393
- columns: _vm.timeList,
15394
- },
15395
- on: {
15396
- cancel: function ($event) {
15397
- _vm.showTimeList = false
15398
- },
15399
- confirm: _vm.onConfirmTimeList,
15400
- },
15401
- }),
15402
- ],
15403
- 1
15404
- ),
15405
- _vm.isCustomPreset
15406
- ? _c("ProcessSetting", {
15407
- ref: "processSetting",
15408
- attrs: {
15409
- processDefinitionId:
15410
- _vm.taskExamineInfo
15411
- .processDefinitionId,
15412
- nodeId: _vm.form.nextNodeId,
15413
- taskId:
15414
- _vm.processObj.taskExamine.taskId,
15415
- pendingId: _vm.pendingId,
15416
- businessId:
15417
- _vm.taskExamineInfo.businessId,
15418
- apiBaseUrl: _vm.apiBaseUrl,
15419
- paddingTop: _vm.paddingTop,
15420
- choiceOrgId: _vm.choiceOrgId,
15421
- pOrgId: _vm.pOrgId,
15422
- choiceDeptId: _vm.choiceDeptId,
15423
- },
15424
- })
15425
- : _vm._e(),
15426
- _vm.isLimitedTimeHandling
15427
- ? _c(
15428
- "div",
15429
- { staticClass: "item-msg item-msg1" },
15430
- [
15431
- _c("Message", {
15432
- ref: "message",
15433
- attrs: {
15434
- label: "催办通知方式",
15435
- code: "notification_type",
15436
- baseUrl: _vm.baseUrl,
15437
- required: true,
15438
- },
15439
- on: {
15440
- onInputMsg: _vm.onInputMsgUrge,
15441
- },
15442
- }),
15443
- ],
15444
- 1
15445
- )
15446
- : _vm._e(),
15447
- _c(
15448
- "div",
15449
- { staticClass: "item-msg item-msg2" },
15450
- [
15451
- _c("Message", {
15452
- ref: "message",
15453
- attrs: {
15454
- code: "notification_type",
15455
- baseUrl: _vm.baseUrl,
15456
- readOnlyNotificationType:
15457
- _vm.readOnlyNotificationType,
15458
- notificationMessageReadOnly:
15459
- _vm.notificationMessageReadOnly,
15460
- defaultNotificationType:
15461
- _vm.defaultNotificationType,
15462
- defaultNotificationMsg:
15463
- _vm.form.notificationMsg,
15464
- },
15465
- on: { onInputMsg: _vm.onInputMsg },
15466
- }),
15467
- ],
15468
- 1
15469
- ),
15470
- ],
15471
- 1
15472
- )
15473
- : _vm._e(),
15474
- ])
15475
- : _vm._e(),
15476
- ],
15477
- 1
15478
- ),
15479
- _vm.isSubmitButtonShowAgreeAndDisagree
15480
- ? _c("div", { staticClass: "btn-list" }, [
15481
- _c(
15482
- "div",
15483
- {
15484
- staticClass: "btn",
15485
- on: {
15486
- click: function ($event) {
15487
- _vm.handleFlow = false
15488
- },
15489
- },
15490
- },
15491
- [_vm._v("不同意")]
15492
- ),
15493
- _c(
15494
- "div",
15495
- {
15496
- staticClass: "btn",
15497
- on: {
15498
- click: function ($event) {
15499
- _vm.onSubmit()
15500
- },
15501
- },
15502
- },
15503
- [_vm._v("同意")]
15504
- ),
15505
- ])
15506
- : _c("div", { staticClass: "btn-list" }, [
15507
- _c(
15508
- "div",
15509
- { staticClass: "btn", on: { click: _vm.navigateBack } },
15510
- [_vm._v("取消")]
15511
- ),
15512
- _c(
15513
- "div",
15514
- {
15515
- staticClass: "btn",
15516
- on: {
15517
- click: function ($event) {
15518
- _vm.onSubmit()
15519
- },
15520
- },
15521
- },
15522
- [_vm._v("确定")]
15523
- ),
15524
- ]),
15525
- ]
15526
- )
15527
- : _c("Reject", {
15528
- attrs: {
15529
- pendingId: _vm.pendingId,
15530
- "before-submit": _vm.beforeSubmit,
15531
- },
15532
- on: {
15533
- close: function ($event) {
15534
- _vm.handleFlow = true
15535
- },
15536
- },
15537
- }),
15538
- ],
15539
- 1
15540
- )
15541
- }
15542
- var Handlevue_type_template_id_548395aa_staticRenderFns = []
15543
- Handlevue_type_template_id_548395aa_render._withStripped = true
15544
-
15545
-
15546
- // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=548395aa
15547
-
15548
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
15549
- var Rejectvue_type_template_id_4fdaf365_render = function () {
15550
- var _vm = this
15551
- var _h = _vm.$createElement
15552
- var _c = _vm._self._c || _h
15553
- return _c("div", { staticClass: "process-reject" }, [
15554
- _c(
15555
- "div",
15556
- { staticClass: "reject-content" },
15557
- [
15558
- _c("div", { staticClass: "present-node" }, [
15559
- _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
15560
- _c("div", [_vm._v(_vm._s(_vm.processObj.taskExamine.nodeName))]),
15561
- ]),
15562
- _c("Opinion", {
15563
- attrs: {
15564
- code: _vm.processObj.attachedCode,
15565
- ownId: _vm.$route.query.pendingId,
15566
- esign: _vm.esign,
15567
- esignLineWidth:
15568
- _vm.$attrs["esign-line-width"] || _vm.$attrs["esignLineWidth"],
15569
- placeholder: _vm.opinionHandleExplainText,
15570
- isOpinionRequired: _vm.isBanInputOpinion,
15571
- disabled: _vm.isBanInputOpinion != 0,
15572
- baseUrl: _vm.baseUrl,
15573
- isHiddenOftenOpinion: _vm.isHiddenOftenOpinion == 1 ? false : true,
15574
- },
15575
- on: { onInputOpintion: _vm.onInputOpintion },
15576
- }),
15577
- _c(
15578
- "div",
15579
- { staticClass: "input-box" },
15580
- [
15581
- _c(
15582
- "div",
15583
- { staticClass: "item" },
15584
- [
15585
- _c(
15586
- "em-input",
15587
- { attrs: { label: "驳回对象" } },
15588
- [
15589
- _c(
15590
- "template",
15591
- { slot: "input" },
15592
- [
15593
- _c("em-radio-group", {
15594
- attrs: { data: _vm.rejectObj },
15595
- model: {
15596
- value: _vm.form.nextNodeId,
15597
- callback: function ($$v) {
15598
- _vm.$set(_vm.form, "nextNodeId", $$v)
15599
- },
15600
- expression: "form.nextNodeId",
15601
- },
15602
- }),
15603
- ],
15604
- 1
15605
- ),
15606
- ],
15607
- 2
15608
- ),
15609
- ],
15610
- 1
15611
- ),
15612
- _c("Message", {
15613
- ref: "message",
15614
- attrs: {
15615
- code: "notification_type",
15616
- baseUrl: _vm.baseUrl,
15617
- readOnlyNotificationType: _vm.readOnlyNotificationType,
15618
- notificationMessageReadOnly: _vm.notificationMessageReadOnly,
15619
- defaultNotificationType: _vm.defaultNotificationType,
15620
- defaultNotificationMsg: _vm.form.notificationMsg,
15621
- type: _vm.type,
15622
- },
15623
- on: { onInputMsg: _vm.onInputMsg },
15624
- }),
15625
- ],
15626
- 1
15627
- ),
15628
- ],
15629
- 1
15630
- ),
15631
- _c("div", { staticClass: "btn-list" }, [
15632
- _c("div", { staticClass: "btn", on: { click: _vm.goBack } }, [
15633
- _vm._v("取消"),
15634
- ]),
15635
- _c(
15636
- "div",
15637
- {
15638
- staticClass: "btn",
15639
- on: {
15640
- click: function ($event) {
15641
- _vm.onSubmit()
15642
- },
15643
- },
15644
- },
15645
- [_vm._v("确定")]
15646
- ),
15647
- ]),
15648
- ])
15649
- }
15650
- var Rejectvue_type_template_id_4fdaf365_staticRenderFns = []
15651
- Rejectvue_type_template_id_4fdaf365_render._withStripped = true
15652
-
15653
-
15654
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
15655
-
15656
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
15657
- var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
14306
+ /* harmony default export */ var ProcessSettings = (ProcessSettings_component.exports);
14307
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
14308
+ var StartFlowvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
15658
14309
 
15659
14310
  //
15660
14311
  //
@@ -15702,20 +14353,117 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
15702
14353
  //
15703
14354
  //
15704
14355
  //
14356
+ //
14357
+ //
14358
+ //
14359
+ //
14360
+ //
14361
+ //
14362
+ //
14363
+ //
14364
+ //
14365
+ //
14366
+ //
14367
+ //
14368
+ //
14369
+ //
14370
+ //
14371
+ //
14372
+ //
14373
+ //
14374
+ //
14375
+ //
14376
+ //
14377
+ //
14378
+ //
14379
+ //
14380
+ //
14381
+ //
14382
+ //
14383
+ //
14384
+ //
14385
+ //
14386
+ //
14387
+ //
14388
+ //
14389
+ //
14390
+ //
14391
+ //
14392
+ //
14393
+ //
14394
+ //
14395
+ //
14396
+ //
14397
+ //
14398
+ //
14399
+ //
14400
+ //
14401
+ //
14402
+ //
14403
+ //
14404
+ //
14405
+ //
14406
+ //
14407
+ //
14408
+ //
14409
+ //
14410
+ //
14411
+ //
14412
+ //
14413
+ //
14414
+ //
14415
+ //
14416
+ //
14417
+ //
14418
+ //
14419
+ //
14420
+ //
14421
+ //
14422
+ //
14423
+ //
14424
+ //
14425
+ //
14426
+ //
14427
+ //
14428
+ //
14429
+ //
14430
+ //
14431
+ //
14432
+ //
14433
+ //
14434
+ //
14435
+ //
15705
14436
 
15706
14437
 
15707
14438
 
15708
14439
 
15709
14440
 
15710
14441
 
15711
- /* harmony default export */ var Rejectvue_type_script_lang_js = ({
15712
- name: 'Reject',
14442
+
14443
+
14444
+ /* harmony default export */ var StartFlowvue_type_script_lang_js = ({
14445
+ name: 'StartFlow',
14446
+ inheritAttrs: false,
15713
14447
  props: {
15714
- appId: String,
15715
- type: String,
15716
- pendingId: String,
14448
+ showPresentNode: {
14449
+ type: Boolean,
14450
+ default: true // 是否当前节点
14451
+ },
15717
14452
  beforeSubmit: Function,
15718
- baseUrl: String,
14453
+ businessId: String, //提交意见附件所需id一般是业务id
14454
+ defId: String, //流程id
14455
+ baseUrl: String, //流程地址
14456
+ apiBaseUrl: String,
14457
+ orgId: String,
14458
+ depId: String,
14459
+ paddingTop: {
14460
+ type: [String, Number],
14461
+ default: 0
14462
+ },
14463
+ isAllCheck: {
14464
+ type: Boolean,
14465
+ default: false
14466
+ },
15719
14467
  esign: {
15720
14468
  type: Boolean,
15721
14469
  default: false
@@ -15727,47 +14475,103 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
15727
14475
  },
15728
14476
  data: function data() {
15729
14477
  return {
15730
- showMsg: false, // 判断是否显示系统消息
15731
- opinionHandleExplainText: undefined,
15732
- showOpinion: false, // 常用意见弹框
14478
+ showOpinion: true,
15733
14479
  readOnlyNotificationType: '',
15734
14480
  notificationMessageReadOnly: false,
15735
14481
  form: {
14482
+ nextNodeId: undefined, // 流程节点id
14483
+ nextNodeName: undefined, // 流程节点名称
14484
+ nextUserName: undefined, // 办理人
14485
+ nextUserId: undefined, // 办理人id
14486
+ nextName: undefined, //下一步
15736
14487
  opinion: undefined, // 审批意见
14488
+ nodeId: undefined,
15737
14489
  notificationMsg: undefined, //系统消息
15738
- nextNodeId: undefined,
15739
- loginType: 2, //登录方式
14490
+ notificationType: [],
15740
14491
  isImageOpinion: 0
15741
14492
  },
15742
14493
  file: '',
15743
- processObj: {
15744
- taskExamine: { nodeName: undefined },
15745
- nodeInfoMap: { nextUserList: [] }
15746
- },
15747
- rejectObj: [], //
15748
- isHiddenOftenOpinion: undefined, //是否隐藏常用意见
15749
- nodeDefaultRejectOpinion: undefined, //默认提交意见
15750
- checked: true, // 系统消息是否选中
15751
- defaultNotificationType: undefined, ///默认选中通知类型
15752
- isBanInputOpinion: 0 //是否禁用意见
14494
+ nextUserList: [],
14495
+ isChooseNextNode: 0,
14496
+ isOpinionRequired: 0, //办理意见是否必填
14497
+ isBanInputOpinion: 0, //是否禁用意见
14498
+ isNextBox: true, // 是否展开隐藏下步操作
14499
+ defaultNotificationType: [], //选中消息数组
14500
+ // showAppUser: false, // 办理人遮罩层
14501
+ showNextList: false, // 下一步遮罩层
14502
+ showNextNodeList: false, // 流程节点遮罩层
14503
+ nextList: [], //下一步列表
14504
+ nodeList: [], // 流程节点列表
14505
+ processObj: {}, //流程信息
14506
+ peopleObj: {}, //办理人信息
14507
+ isRadio: false, //办理人是否单选
14508
+ treeType: undefined, //办理人选择类别
14509
+ pid: undefined, // 办理人树选择pid
14510
+ objType: 'enterprise', //办理人树选择objType
14511
+ selectType: '', //办理人树选择selectType
14512
+ nextUserSelectList: [], //选中人数组
14513
+ flowObj: {} //流程参数信息
15753
14514
  };
15754
14515
  },
15755
14516
 
15756
- components: { Opinion: Opinion, Message: Message },
15757
- created: function created() {
15758
- this.style = {
15759
- 'padding-top': sessionStorage.getItem('pt') ? sessionStorage.getItem('pt') + 'px' : '30px'
14517
+ components: {
14518
+ Opinion: Opinion,
14519
+ Message: Message,
14520
+ ProcessSetting: ProcessSettings
14521
+ },
14522
+ mounted: function mounted() {
14523
+ var obj = {
14524
+ processDefinitionId: this.defId,
14525
+ // isOnly: true,
14526
+ // hideTempSave: true,
14527
+ businessId: this.businessId
15760
14528
  };
15761
- this.getProcessObj();
14529
+ this.geAllData(obj);
15762
14530
  },
15763
14531
 
15764
- methods: {
14532
+
14533
+ methods: {
14534
+ goBack: function goBack() {
14535
+ this.$parent.$emit('close');
14536
+ },
14537
+ handleChange: function handleChange(val, selectLabel) {
14538
+ // this[res.label] = res.list;
14539
+ // this.showAppUser = false;
14540
+ var label = selectLabel.substring(0, selectLabel.lastIndexOf('SelectList'));
14541
+ var idStr = '';
14542
+ val.list.map(function (r, i) {
14543
+ idStr = idStr + r.showid + (i === val.list.length - 1 ? '' : ',');
14544
+ });
14545
+ this.form[label + 'Id'] = idStr;
14546
+ },
14547
+ geAllData: function geAllData(res) {
14548
+ var _this = this;
14549
+
14550
+ this.flowObj = res;
14551
+ this.$toast.loading({
14552
+ message: '加载中...',
14553
+ forbidClick: true,
14554
+ loadingType: 'spinner',
14555
+ overlay: true,
14556
+ duration: 0
14557
+ });
14558
+ //获取流程发起信息后去获取节点信息和办理人信息
14559
+ Promise.all([this.getProcessObj(res)]).then(function () {
14560
+ _this.getPeopleObj(_this.form.nextNodeId);
14561
+ });
14562
+ },
14563
+
15765
14564
  // 通知消息回调
15766
14565
  onInputMsg: function onInputMsg(obj) {
15767
14566
  this.form.notificationType = obj.notificationType.join(',');
15768
14567
  this.form.notificationMsg = obj.notificationMsg;
15769
14568
  },
15770
14569
 
14570
+ // 删除.
14571
+ delteList: function delteList(label, i) {
14572
+ this[label].splice(i, 1);
14573
+ },
14574
+
15771
14575
  // 意见回调
15772
14576
  onInputOpintion: function onInputOpintion(val) {
15773
14577
  var opinion = val.opinion,
@@ -15778,45 +14582,65 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
15778
14582
  this.form.isImageOpinion = isImageOpinion;
15779
14583
  this.file = file;
15780
14584
  },
15781
- goBack: function goBack() {
15782
- this.$parent.$emit('close');
15783
- this.$emit('close');
15784
- },
15785
14585
 
15786
14586
  // 提交流程
15787
14587
  onSubmit: function onSubmit() {
15788
- var _this = this;
14588
+ var _this2 = this;
15789
14589
 
15790
- if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
15791
- this.$toast('请输入审批意见');
14590
+ if (!this.form.opinion && this.isOpinionRequired == 1 && this.form.isImageOpinion == 0 || !this.file && this.isOpinionRequired == 1 && this.form.isImageOpinion == 1) {
14591
+ this.$toast('请选择输入审批意见');
15792
14592
  return;
15793
14593
  }
15794
- var str = '';
15795
- if (this.form.opinion) {
15796
- str = this.form.opinion.replace(/\s+/g, '');
14594
+ if (!this.form.nextUserId) {
14595
+ this.$toast('请选择办理人');
14596
+ return;
15797
14597
  }
15798
- if ((!this.form.opinion || str === '') && this.nodeDefaultRejectOpinion) {
15799
- this.form.opinion = this.nodeDefaultRejectOpinion;
14598
+ if (!this.form.nextNodeId) {
14599
+ this.$toast('请选择流程节点');
14600
+ return;
15800
14601
  }
14602
+ // if (!this.form.notificationType) {
14603
+ // this.$toast('请选择通知消息');
14604
+ // return;
14605
+ // }
14606
+
14607
+ var info = {
14608
+ processDefinitionId: this.flowObj.processDefinitionId,
14609
+ nextUserId: this.form.nextUserId,
14610
+ nextNodeId: this.form.nextNodeId,
14611
+ businessId: this.businessId,
14612
+ notificationType: Array.isArray(this.form.notificationType) ? '' : this.form.notificationType,
14613
+ opinion: this.form.opinion,
14614
+ nodeId: this.form.nodeId,
14615
+ notificationMsg: this.form.notificationMsg,
14616
+ loginType: 2, //登录方式
14617
+ isImageOpinion: this.form.isImageOpinion,
14618
+ userId: this.userId || util["a" /* default */].getStorage('userId'),
14619
+ mobileKey: util["a" /* default */].getStorage('deviceId') || '123'
14620
+ };
14621
+ // if (this.processObj.isCustomPreset ) {
14622
+ // if (this.$refs.processSetting.active.length != 0) {
14623
+ // if(!this.$refs.processSetting.getValue())return
14624
+ // info.customPresetUserJson = this.$refs.processSetting.getValue();
14625
+ // info.isCustomPreset = true;
14626
+ // } else {
14627
+ // delete info.customPresetUserJson;
14628
+ // delete info.isCustomPreset;
14629
+ // }
14630
+ // }
15801
14631
  if (this.beforeSubmit) {
15802
- this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
14632
+ this.beforeSubmit(info);
15803
14633
  return;
15804
14634
  }
15805
- this.form.mobileKey = util["a" /* default */].getStorage('deviceId') || '123';
15806
14635
  var formData = new FormData();
15807
- if (this.form.isImageOpinion == 1) {
15808
- formData.append('file', this.file);
15809
- formData.append('pendingId', this.pendingId);
15810
- this.form.userId = this.userId || util["a" /* default */].getStorage('userId');
15811
- for (var key in this.form) {
15812
- if (this.form[key] !== '' && this.form[key] !== undefined) {
15813
- formData.append(key, this.form[key]);
15814
- }
15815
- }
15816
- } else {
15817
- this.form.pendingId = this.pendingId;
15818
- }
15819
-
14636
+ // if (this.form.isImageOpinion == 1) {
14637
+ // formData.append('file', this.file);
14638
+ // }
14639
+ // for (let key in info) {
14640
+ // if (info[key] !== '' && info[key] !== undefined) {
14641
+ // formData.append(key, info[key]);
14642
+ // }
14643
+ // }
15820
14644
  this.$toast.loading({
15821
14645
  message: '加载中...',
15822
14646
  forbidClick: true,
@@ -15826,237 +14650,1449 @@ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) {
15826
14650
  });
15827
14651
  var _that = this;
15828
14652
  utils_http({
15829
- url: _that.baseUrl ? _that.baseUrl + taskRejectHtml : taskRejectHtml,
15830
- type: 'post',
15831
- params: this.form.isImageOpinion == 1 ? formData : this.form,
15832
- format: false
15833
- }).then(function (res) {
15834
- if (res.status == 'success') {
15835
- _this.$toast('操作成功');
15836
- _this.$parent.$emit('success');
14653
+ url: _that.apiBaseUrl ? _that.apiBaseUrl + registerNew : registerNew,
14654
+ type: 'get',
14655
+ params: { params: info
14656
+ // format: false
14657
+ } }).then(function (res) {
14658
+ _this2.$toast.clear();
14659
+ if (res.rCode == 0) {
14660
+ _this2.$toast('操作成功');
14661
+ _this2.$parent.$emit('success');
15837
14662
  } else {
15838
- _this.$toast(res.message);
14663
+ _this2.$toast(res.msg);
15839
14664
  }
15840
14665
  });
15841
14666
  },
15842
14667
 
15843
- // 确认常用意见
15844
- onConfirmOpinion: function onConfirmOpinion(val) {
15845
- this.form.opinion = val.content;
15846
- this.showOpinion = false;
15847
- },
15848
-
15849
- // 获取驳回信息
15850
- getProcessObj: function getProcessObj() {
15851
- var _this2 = this;
14668
+ // 确认常用意见
14669
+ onConfirmOpinion: function onConfirmOpinion(val) {
14670
+ this.form.opinion = val.content;
14671
+ this.showOpinion = false;
14672
+ },
14673
+
14674
+ // 选择办理人
14675
+ onClickPeople: function onClickPeople(label) {
14676
+ this.$nextTick(function () {
14677
+ this.$refs.selectTree.getContent(label);
14678
+ });
14679
+ var obj = {
14680
+ label: '请选择办理人',
14681
+ show: true
14682
+ };
14683
+ this.$emit('informNav', obj);
14684
+ this.showAppUser = true;
14685
+ },
14686
+
14687
+ // 获取树选择范围
14688
+ getTreeChangeType: function getTreeChangeType() {
14689
+ /**
14690
+ * 办理人选择方式(1:机构内单选人;2:机构内多选;3:所有机构单选人;4:所有机构多选人;5:科室内单选人;6:科室内多选人;11:单选机构;12:多选机构;13:本部门角色;14:本单位角色;15:上级单位单选人;16:上级单位多选人;)
14691
+ */
14692
+ this.treeType % 2 == 0 ? this.isRadio = false : this.isRadio = true;
14693
+ if (this.treeType === 1 || this.treeType === 2) {
14694
+ this.pid = this.orgId;
14695
+ this.objType = 'enterprise';
14696
+ this.selectType = 'employee';
14697
+ } else if (this.treeType === 3 || this.treeType === 4) {
14698
+ this.pid = 'root';
14699
+ this.selectType = 'employee';
14700
+ this.objType = 'employee';
14701
+ } else if (this.treeType === 5 || this.treeType === 6) {
14702
+ this.pid = this.depId;
14703
+ this.selectType = 'employee';
14704
+ this.objType = 'employee';
14705
+ } else if (this.treeType === 11 || this.treeType === 12) {
14706
+ this.selectType = 'employee';
14707
+ this.objType = 'enterprise';
14708
+ this.pid = '';
14709
+ } else if (this.treeType === 13) {
14710
+ this.pid = this.depId;
14711
+ this.selectType = 'employee';
14712
+ } else if (this.treeType === 14) {
14713
+ this.pid = this.orgId;
14714
+ this.selectType = 'employee';
14715
+ } else if (this.treeType === 15 || this.treeType === 16) {
14716
+ this.pid = this.orgId;
14717
+ this.selectType = 'employee';
14718
+ } else if (this.treeType == 'department') {
14719
+ this.pid = '';
14720
+ this.selectType = 'department';
14721
+ this.objType = 'department';
14722
+ }
14723
+ },
14724
+
14725
+ // 确认下一步操作
14726
+ onConfirmNext: function onConfirmNext(val) {
14727
+ this.form.nextName = val.itemName;
14728
+ this.nodeList = val.list;
14729
+ this.form.nextNodeId = val.list[0].nodeId;
14730
+ this.form.nextNodeName = val.list[0].nodeName;
14731
+ val.list[0].transactorInfos && (this.nextUserList = val.list[0].transactorInfos);
14732
+ this.showNextList = false;
14733
+ this.getPeopleObj(this.form.nextNodeId);
14734
+ },
14735
+
14736
+ // 确认流程节点操作
14737
+ onConfirmNextNode: function onConfirmNextNode(val) {
14738
+ this.form.nextNodeId = val.nodeId;
14739
+ this.form.nextNodeName = val.nodeName;
14740
+ this.showNextNodeList = false;
14741
+ this.getPeopleObj(this.form.nextNodeId);
14742
+ },
14743
+
14744
+ // 办理人选择完回调
14745
+ disposeAppUser: function disposeAppUser(res) {
14746
+ this[res.label] = res.list;
14747
+ this.showAppUser = false;
14748
+ var label = res.label.substring(0, res.label.lastIndexOf('SelectList'));
14749
+ var idStr = '';
14750
+ res.list.map(function (r, i) {
14751
+ idStr = idStr + r.showid + (i === res.list.length - 1 ? '' : ',');
14752
+ });
14753
+ this.form[label + 'Id'] = idStr;
14754
+ },
14755
+
14756
+ // 获取发起流程信息
14757
+ getProcessObj: function getProcessObj(res) {
14758
+ var that = this;
14759
+ return new Promise(function (resolve, reiect) {
14760
+ utils_http({
14761
+ url: that.apiBaseUrl ? that.apiBaseUrl + toStartFlow : toStartFlow,
14762
+ params: {
14763
+ params: StartFlowvue_type_script_lang_js_extends({}, res, {
14764
+ userId: that.userId || util["a" /* default */].getStorage('userId')
14765
+ })
14766
+ }
14767
+ }).then(function (res) {
14768
+ if (res.rCode == 0) {
14769
+ res.results.nodeExtr.submitTipsMsg && external_eoss_mobile_vant_["Dialog"].confirm({
14770
+ title: '提示',
14771
+ message: res.results.nodeExtr.submitTipsMsg
14772
+ }).then(function () {
14773
+ // on confirm
14774
+ }).catch(function () {
14775
+ that.goBack();
14776
+ // on cancel
14777
+ });
14778
+ if (res.results.extendData) {
14779
+ that.notificationMessageReadOnly = res.results.extendData.notificationMessageReadOnly == 'true';
14780
+ that.readOnlyNotificationType = res.results.extendData.readOnlyNotificationType;
14781
+ }
14782
+ that.processObj = res.results;
14783
+ that.nextList = res.results.nodeList;
14784
+ that.isOpinionRequired = res.results.nodeExtr.isOpinionRequired;
14785
+ that.isBanInputOpinion = res.results.nodeExtr.isBanInputOpinion;
14786
+ if (!that.isOpinionRequired) {
14787
+ that.isOpinionRequired = 0;
14788
+ }
14789
+ if (!that.isBanInputOpinion) {
14790
+ that.isBanInputOpinion = 0;
14791
+ }
14792
+ that.isChooseNextNode = res.results.nodeExtr.isChooseNextNode;
14793
+ that.nodeList = res.results.nodeList[0].list;
14794
+ that.form.nextName = that.nextList[0].itemName;
14795
+ that.form.nextNodeId = that.nextList[0].list[0].nodeId;
14796
+ that.form.nextNodeName = that.nextList[0].list[0].nodeName;
14797
+ that.nextList[0].list[0].transactorInfos && (that.nextUserList = that.nextList[0].list[0].transactorInfos);
14798
+ if (that.nextUserList) {
14799
+ that.nextUserList.map(function (x) {
14800
+ x.checked = false;
14801
+ });
14802
+ }
14803
+ that.form.notificationMsg = res.results.notificationMsg;
14804
+ that.form.nodeId = res.results.nodeId;
14805
+ var defaultNotificationTypes = [];
14806
+ if (res.results.notificationTypes && that.defaultNotificationType.length == 0) {
14807
+ defaultNotificationTypes = res.results.notificationTypes.filter(function (x) {
14808
+ return x.defaultSelected == 'true';
14809
+ });
14810
+ }
14811
+ defaultNotificationTypes.map(function (x) {
14812
+ that.defaultNotificationType.push(x.notificationCode);
14813
+ });
14814
+ resolve();
14815
+ } else {
14816
+ that.$toast(res.message);
14817
+ reiect();
14818
+ }
14819
+ });
14820
+ });
14821
+ },
14822
+
14823
+ // 获取节点信息(获取节点属性及办理人)
14824
+ getPeopleObj: function getPeopleObj(res) {
14825
+ var _this3 = this;
15852
14826
 
15853
14827
  var _that = this;
15854
- this.$toast.loading({
15855
- message: '加载中...',
15856
- forbidClick: true,
15857
- loadingType: 'spinner',
15858
- overlay: true,
15859
- duration: 0
15860
- });
15861
14828
  utils_http({
15862
- url: _that.baseUrl ? _that.baseUrl + toTaskRejectHtml : toTaskRejectHtml,
14829
+ url: _that.apiBaseUrl ? _that.apiBaseUrl + api_getNodeInfo : api_getNodeInfo,
15863
14830
  params: {
15864
- pendingId: this.pendingId,
15865
- isSinglePage: false,
15866
- opinion: this.form.opinion,
15867
- userId: _that.userId
14831
+ params: {
14832
+ processDefinitionId: this.flowObj.processDefinitionId,
14833
+ nodeId: res,
14834
+ // taskId: this.processObj.taskId,
14835
+ userId: _that.userId
14836
+ }
15868
14837
  }
15869
14838
  }).then(function (res) {
15870
- if (res.status == 'success') {
15871
- var _res$data = res.data,
15872
- rejectTaskNodes = _res$data.rejectTaskNodes,
15873
- taskExamine = _res$data.taskExamine,
15874
- nodeInfoMap = _res$data.nodeInfoMap,
15875
- notificationMessageReadOnly = _res$data.notificationMessageReadOnly,
15876
- readOnlyNotificationType = _res$data.readOnlyNotificationType,
15877
- defaultNotificationMessage = _res$data.defaultNotificationMessage,
15878
- defaultNotificationType = _res$data.defaultNotificationType;
15879
-
15880
- _this2.$toast.clear();
15881
- _this2.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
15882
- _this2.readOnlyNotificationType = readOnlyNotificationType;
15883
- _this2.isHiddenOftenOpinion = nodeInfoMap.nodeExtAttr.isHiddenOftenOpinion;
15884
- _this2.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
15885
- _this2.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
15886
- _this2.opinionHandleExplainText = nodeInfoMap.nodeExtAttr.opinionHandleExplainText;
15887
- if (!_this2.isBanInputOpinion) {
15888
- _this2.isBanInputOpinion = 0;
15889
- }
15890
- _this2.processObj = res.data;
15891
- _this2.form.notificationMsg = defaultNotificationMessage;
15892
- _this2.defaultNotificationType = defaultNotificationType.split(',');
15893
- var list = [];
15894
- if (rejectTaskNodes) {
15895
- for (var i in rejectTaskNodes) {
15896
- var obj = {
15897
- id: i,
15898
- name: rejectTaskNodes[i]
15899
- };
15900
- list.push(obj);
15901
- }
15902
- _this2.rejectObj = list;
15903
- if (_this2.rejectObj.length > 0) {
15904
- _this2.form.nextNodeId = _this2.rejectObj[0].id;
15905
- _this2.rejectObj.map(function (item) {
15906
- item.value = item.id;
15907
- });
14839
+ _this3.$toast.clear();
14840
+ if (res.rCode == 0) {
14841
+ _this3.peopleObj = res.results.nodeExtr;
14842
+ if (res.results.nodeExtr.userSelectionType) {
14843
+ _this3.treeType = res.results.nodeExtr.userSelectionType;
14844
+ if (res.results.nodeExtr) {
14845
+ var idStr = '';
14846
+ if (res.results.nodeExtr.isDefSelectedObj == 1 && _this3.nextUserList.length > 0) {
14847
+ _this3.nextUserList[0].checked = true;
14848
+ _this3.nextUserSelectList = [_this3.nextUserList[0]];
14849
+ idStr = _this3.nextUserSelectList[0].showid;
14850
+ }
14851
+ if (res.results.nodeExtr.isSelectedAllObj == 1 && _this3.nextUserList.length > 0) {
14852
+ _this3.nextUserSelectList = [];
14853
+ idStr = '';
14854
+ _this3.nextUserList.map(function (x) {
14855
+ x.checked = true;
14856
+ _this3.nextUserSelectList.push(x);
14857
+ idStr = idStr ? idStr + ',' + x.showid : idStr;
14858
+ });
14859
+ }
14860
+ _this3.form.nextUserId = idStr;
15908
14861
  }
14862
+ // this.nextUserSelectList = list.filter(x => x.showname && x.showid);
14863
+ _this3.getTreeChangeType();
15909
14864
  }
15910
14865
  } else {
15911
- _this2.$toast(message);
15912
- setTimeout(function () {
15913
- _this2.goBack;
15914
- }, 1000);
14866
+ _this3.$toast(res.message);
15915
14867
  }
15916
14868
  });
15917
14869
  }
15918
14870
  }
15919
14871
  });
15920
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
15921
- /* harmony default export */ var components_Rejectvue_type_script_lang_js = (Rejectvue_type_script_lang_js);
15922
- // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue
14872
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue?vue&type=script&lang=js
14873
+ /* harmony default export */ var components_StartFlowvue_type_script_lang_js = (StartFlowvue_type_script_lang_js);
14874
+ // CONCATENATED MODULE: ./packages/flow/src/components/StartFlow.vue
15923
14875
 
15924
14876
 
15925
14877
 
15926
14878
 
15927
14879
 
15928
- /* normalize component */
14880
+ /* normalize component */
14881
+
14882
+ var StartFlow_component = normalizeComponent(
14883
+ components_StartFlowvue_type_script_lang_js,
14884
+ StartFlowvue_type_template_id_a96be16e_render,
14885
+ StartFlowvue_type_template_id_a96be16e_staticRenderFns,
14886
+ false,
14887
+ null,
14888
+ null,
14889
+ null
14890
+
14891
+ )
14892
+
14893
+ /* harmony default export */ var StartFlow = (StartFlow_component.exports);
14894
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Handle.vue?vue&type=template&id=1d3eb9e8
14895
+ var Handlevue_type_template_id_1d3eb9e8_render = function () {
14896
+ var _vm = this
14897
+ var _h = _vm.$createElement
14898
+ var _c = _vm._self._c || _h
14899
+ return _c(
14900
+ "div",
14901
+ { staticClass: "process-handle" },
14902
+ [
14903
+ _vm.handleFlow
14904
+ ? _c(
14905
+ "div",
14906
+ {
14907
+ staticStyle: {
14908
+ display: "flex",
14909
+ "flex-direction": "column",
14910
+ height: "100%",
14911
+ },
14912
+ },
14913
+ [
14914
+ _c(
14915
+ "div",
14916
+ { staticClass: "process-content" },
14917
+ [
14918
+ _c("div", { staticClass: "present-node" }, [
14919
+ _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
14920
+ _c("div", [
14921
+ _vm._v(_vm._s(_vm.processObj.taskExamine.nodeName)),
14922
+ ]),
14923
+ ]),
14924
+ _c("Opinion", {
14925
+ attrs: {
14926
+ code: _vm.processObj.attachedCode,
14927
+ ownId: _vm.pendingId,
14928
+ esign: _vm.esign,
14929
+ esignLineWidth:
14930
+ _vm.$attrs["esign-line-width"] ||
14931
+ _vm.$attrs["esignLineWidth"],
14932
+ isOpinionRequired: _vm.isOpinionRequired,
14933
+ disabled: _vm.isBanInputOpinion != 0,
14934
+ baseUrl: _vm.baseUrl,
14935
+ isForceDisplayDefaultOptionForPrefix:
14936
+ _vm.isForceDisplayDefaultOptionForPrefix,
14937
+ placeholder: _vm.opinionHandleExplainText,
14938
+ nodeDefaultSubmitOpinion: _vm.nodeDefaultSubmitOpinion,
14939
+ nodeFixedOpinionSelectList:
14940
+ _vm.nodeFixedOpinionSelectList,
14941
+ isHiddenOftenOpinion:
14942
+ _vm.isHiddenOftenOpinion == 1 ? false : true,
14943
+ },
14944
+ on: { onInputOpintion: _vm.onInputOpintion },
14945
+ }),
14946
+ _vm.typeCode != "fenyue"
14947
+ ? _c("div", { staticClass: "special-box input-box" }, [
14948
+ _vm.isCanAddSign
14949
+ ? _c(
14950
+ "div",
14951
+ {
14952
+ staticClass: "item",
14953
+ class: {
14954
+ itemRadio: _vm.form.isAddSign === "1",
14955
+ },
14956
+ },
14957
+ [
14958
+ _c(
14959
+ "em-input",
14960
+ {
14961
+ attrs: {
14962
+ name: "radio",
14963
+ label: "是否增加本环节办理人",
14964
+ required: true,
14965
+ },
14966
+ },
14967
+ [
14968
+ _c(
14969
+ "template",
14970
+ { slot: "input" },
14971
+ [
14972
+ _c("em-radio-group", {
14973
+ attrs: {
14974
+ data: _vm.isAddSignList,
14975
+ direction: "horizontal",
14976
+ },
14977
+ model: {
14978
+ value: _vm.form.isAddSign,
14979
+ callback: function ($$v) {
14980
+ _vm.$set(
14981
+ _vm.form,
14982
+ "isAddSign",
14983
+ $$v
14984
+ )
14985
+ },
14986
+ expression: "form.isAddSign",
14987
+ },
14988
+ }),
14989
+ ],
14990
+ 1
14991
+ ),
14992
+ ],
14993
+ 2
14994
+ ),
14995
+ ],
14996
+ 1
14997
+ )
14998
+ : _vm._e(),
14999
+ _vm.form.isAddSign === "1"
15000
+ ? _c(
15001
+ "div",
15002
+ {
15003
+ staticClass: "item item-user",
15004
+ attrs: { label: "增加办理人" },
15005
+ },
15006
+ [
15007
+ _c("em-selector", {
15008
+ attrs: {
15009
+ label: "增加办理人",
15010
+ required: "",
15011
+ multiple: "",
15012
+ isAllCheck: _vm.isAllCheck,
15013
+ baseUrl: _vm.apiBaseUrl,
15014
+ paddingTop: _vm.paddingTop,
15015
+ objType: _vm.objType,
15016
+ },
15017
+ on: {
15018
+ change: function ($event) {
15019
+ _vm.disposeAppUser(
15020
+ $event,
15021
+ "addSignUserSelectList"
15022
+ )
15023
+ },
15024
+ },
15025
+ model: {
15026
+ value: _vm.addSignUserSelectList,
15027
+ callback: function ($$v) {
15028
+ _vm.addSignUserSelectList = $$v
15029
+ },
15030
+ expression: "addSignUserSelectList",
15031
+ },
15032
+ }),
15033
+ _vm.isCanPreAddSign
15034
+ ? _c(
15035
+ "em-input",
15036
+ { attrs: { label: "加签模式" } },
15037
+ [
15038
+ _c(
15039
+ "template",
15040
+ { slot: "input" },
15041
+ [
15042
+ _c("em-radio-group", {
15043
+ attrs: {
15044
+ direction: "horizontal",
15045
+ data: _vm.AddSignList,
15046
+ },
15047
+ model: {
15048
+ value: _vm.form.addSignMode,
15049
+ callback: function ($$v) {
15050
+ _vm.$set(
15051
+ _vm.form,
15052
+ "addSignMode",
15053
+ $$v
15054
+ )
15055
+ },
15056
+ expression: "form.addSignMode",
15057
+ },
15058
+ }),
15059
+ ],
15060
+ 1
15061
+ ),
15062
+ ],
15063
+ 2
15064
+ )
15065
+ : _vm._e(),
15066
+ ],
15067
+ 1
15068
+ )
15069
+ : _vm._e(),
15070
+ _vm.isCanRemoveSign
15071
+ ? _c(
15072
+ "div",
15073
+ {
15074
+ staticClass: "item",
15075
+ class: {
15076
+ itemRadio: _vm.form.isRemoveSign === "1",
15077
+ },
15078
+ },
15079
+ [
15080
+ _c(
15081
+ "em-input",
15082
+ {
15083
+ attrs: {
15084
+ name: "radio",
15085
+ label: "是否减签",
15086
+ required: true,
15087
+ },
15088
+ },
15089
+ [
15090
+ _c(
15091
+ "template",
15092
+ { slot: "input" },
15093
+ [
15094
+ _c("em-radio-group", {
15095
+ attrs: {
15096
+ data: _vm.isAddSignList,
15097
+ direction: "horizontal",
15098
+ },
15099
+ model: {
15100
+ value: _vm.form.isRemoveSign,
15101
+ callback: function ($$v) {
15102
+ _vm.$set(
15103
+ _vm.form,
15104
+ "isRemoveSign",
15105
+ $$v
15106
+ )
15107
+ },
15108
+ expression: "form.isRemoveSign",
15109
+ },
15110
+ }),
15111
+ ],
15112
+ 1
15113
+ ),
15114
+ ],
15115
+ 2
15116
+ ),
15117
+ ],
15118
+ 1
15119
+ )
15120
+ : _vm._e(),
15121
+ _vm.isSpecial && _vm.typeCode != "fenyue"
15122
+ ? _c(
15123
+ "div",
15124
+ [
15125
+ _vm.form.isRemoveSign === "1"
15126
+ ? _c(
15127
+ "div",
15128
+ {
15129
+ staticClass: "item item-user",
15130
+ attrs: { label: "减少办理人" },
15131
+ },
15132
+ [
15133
+ _c("em-selector", {
15134
+ attrs: {
15135
+ label: "减少办理人",
15136
+ isAllCheck: _vm.isAllCheck,
15137
+ required: "",
15138
+ paddingTop: _vm.paddingTop,
15139
+ multiple: "",
15140
+ baseUrl: _vm.apiBaseUrl,
15141
+ objType: _vm.objType,
15142
+ },
15143
+ on: {
15144
+ change: function ($event) {
15145
+ _vm.disposeAppUser(
15146
+ $event,
15147
+ "removeSignUserSelectList"
15148
+ )
15149
+ },
15150
+ },
15151
+ model: {
15152
+ value: _vm.removeSignUserSelectList,
15153
+ callback: function ($$v) {
15154
+ _vm.removeSignUserSelectList = $$v
15155
+ },
15156
+ expression:
15157
+ "removeSignUserSelectList",
15158
+ },
15159
+ }),
15160
+ ],
15161
+ 1
15162
+ )
15163
+ : _vm._e(),
15164
+ _vm.form.isRemoveSign !== "1" &&
15165
+ _vm.form.isAddSign !== "1" &&
15166
+ !_vm.isHiddenNextStepInfo
15167
+ ? _c("div", [
15168
+ _c(
15169
+ "div",
15170
+ {
15171
+ directives: [
15172
+ {
15173
+ name: "show",
15174
+ rawName: "v-show",
15175
+ value:
15176
+ _vm.isNextBox || _vm.isReject,
15177
+ expression:
15178
+ "isNextBox || isReject",
15179
+ },
15180
+ ],
15181
+ staticClass: "next-box",
15182
+ },
15183
+ [
15184
+ !_vm.isHiddenNextStepInfo &&
15185
+ _vm.isChooseNextNode == 1
15186
+ ? _c(
15187
+ "div",
15188
+ {
15189
+ staticClass: "item next-step",
15190
+ },
15191
+ [
15192
+ _c(
15193
+ "em-input",
15194
+ {
15195
+ staticClass:
15196
+ "em-flow-next-steps",
15197
+ attrs: {
15198
+ value: "下步操作",
15199
+ label: "下步操作",
15200
+ required: "",
15201
+ disabled: true,
15202
+ "label-position": "top",
15203
+ },
15204
+ },
15205
+ [
15206
+ _c(
15207
+ "template",
15208
+ { slot: "input" },
15209
+ _vm._l(
15210
+ _vm.taskOperations,
15211
+ function (item) {
15212
+ return _c(
15213
+ "span",
15214
+ {
15215
+ key: item.key,
15216
+ staticClass:
15217
+ "em-flow-tag",
15218
+ class: {
15219
+ "em-flow-tag-active":
15220
+ _vm.tagKey ===
15221
+ item.key,
15222
+ },
15223
+ on: {
15224
+ click:
15225
+ function (
15226
+ $event
15227
+ ) {
15228
+ _vm.changeNextOperate(
15229
+ item
15230
+ )
15231
+ },
15232
+ },
15233
+ },
15234
+ [
15235
+ _vm._v(
15236
+ "\n " +
15237
+ _vm._s(
15238
+ item.value
15239
+ ) +
15240
+ "\n "
15241
+ ),
15242
+ ]
15243
+ )
15244
+ }
15245
+ ),
15246
+ 0
15247
+ ),
15248
+ ],
15249
+ 2
15250
+ ),
15251
+ ],
15252
+ 1
15253
+ )
15254
+ : _vm._e(),
15255
+ _vm.nodeList &&
15256
+ _vm.nodeList.length > 0 &&
15257
+ !_vm.isReject &&
15258
+ _vm.isShowNode
15259
+ ? _c(
15260
+ "div",
15261
+ { staticClass: "item" },
15262
+ [
15263
+ _c("em-picker", {
15264
+ attrs: {
15265
+ title: "下步节点",
15266
+ label: "下步节点",
15267
+ required: "",
15268
+ "show-toolbar": "",
15269
+ "label-width": "100%",
15270
+ columns: _vm.nodeList,
15271
+ "value-key": "nodeId",
15272
+ "label-key": "nodeName",
15273
+ },
15274
+ on: {
15275
+ confirm:
15276
+ _vm.onConfirmNextNode,
15277
+ },
15278
+ model: {
15279
+ value:
15280
+ _vm.form.nextNodeName,
15281
+ callback: function ($$v) {
15282
+ _vm.$set(
15283
+ _vm.form,
15284
+ "nextNodeName",
15285
+ $$v
15286
+ )
15287
+ },
15288
+ expression:
15289
+ "form.nextNodeName",
15290
+ },
15291
+ }),
15292
+ ],
15293
+ 1
15294
+ )
15295
+ : _vm._e(),
15296
+ ]
15297
+ ),
15298
+ _vm.countersignaturetypeCode
15299
+ ? _c(
15300
+ "div",
15301
+ { staticClass: "item" },
15302
+ [
15303
+ _c("van-field", {
15304
+ attrs: {
15305
+ label: "处理方式",
15306
+ disabled: true,
15307
+ },
15308
+ model: {
15309
+ value:
15310
+ _vm.countersignaturetypeText,
15311
+ callback: function ($$v) {
15312
+ _vm.countersignaturetypeText =
15313
+ $$v
15314
+ },
15315
+ expression:
15316
+ "countersignaturetypeText",
15317
+ },
15318
+ }),
15319
+ ],
15320
+ 1
15321
+ )
15322
+ : _vm._e(),
15323
+ _vm.isNextUser
15324
+ ? _c(
15325
+ "div",
15326
+ { staticClass: "item item-user" },
15327
+ [
15328
+ _c("em-selector", {
15329
+ attrs: {
15330
+ multiple: !_vm.isRadio,
15331
+ objType: _vm.objType,
15332
+ isAllCheck: _vm.isAllCheck,
15333
+ required: "",
15334
+ paddingTop: _vm.paddingTop,
15335
+ nextUserList:
15336
+ _vm.nextUserList,
15337
+ baseUrl: _vm.apiBaseUrl,
15338
+ tabs: "employee,persongroup",
15339
+ disabled:
15340
+ !_vm.isCustomUser ||
15341
+ _vm.isCurrentNodeForbiddenChangeCandidate ==
15342
+ 1,
15343
+ selectDisabled:
15344
+ _vm.isCurrentNodeForbiddenChangeCandidate ==
15345
+ 1,
15346
+ placeholder:
15347
+ "请选择下步办理人",
15348
+ param: {
15349
+ pid: _vm.pid,
15350
+ },
15351
+ label: "下步办理人",
15352
+ },
15353
+ on: {
15354
+ change: function ($event) {
15355
+ _vm.disposeAppUser(
15356
+ $event,
15357
+ "nextUserSelectList"
15358
+ )
15359
+ },
15360
+ },
15361
+ model: {
15362
+ value: _vm.nextUserSelectList,
15363
+ callback: function ($$v) {
15364
+ _vm.nextUserSelectList = $$v
15365
+ },
15366
+ expression:
15367
+ "nextUserSelectList",
15368
+ },
15369
+ }),
15370
+ ],
15371
+ 1
15372
+ )
15373
+ : _vm._e(),
15374
+ _vm.isDealRole
15375
+ ? _c(
15376
+ "div",
15377
+ { staticClass: "item" },
15378
+ [
15379
+ _c("em-input", {
15380
+ attrs: {
15381
+ value: "办理角色",
15382
+ label: "办理角色",
15383
+ disabled: true,
15384
+ placeholder: "请选择",
15385
+ },
15386
+ }),
15387
+ ],
15388
+ 1
15389
+ )
15390
+ : _vm._e(),
15391
+ _vm.isDealObject
15392
+ ? _c(
15393
+ "div",
15394
+ { staticClass: "item" },
15395
+ [
15396
+ _c("em-input", {
15397
+ attrs: {
15398
+ value: "办理对象",
15399
+ label: "办理对象",
15400
+ disabled: true,
15401
+ placeholder: "请选择",
15402
+ },
15403
+ }),
15404
+ ],
15405
+ 1
15406
+ )
15407
+ : _vm._e(),
15408
+ _vm.isHideCurrentOrg
15409
+ ? _c(
15410
+ "div",
15411
+ { staticClass: "item" },
15412
+ [
15413
+ _c("em-selector", {
15414
+ attrs: {
15415
+ multiple: "",
15416
+ isAllCheck: _vm.isAllCheck,
15417
+ paddingTop: _vm.paddingTop,
15418
+ objType: "enterprise",
15419
+ tabs: "department,myemployee",
15420
+ param: {
15421
+ pid: _vm.orgId,
15422
+ },
15423
+ baseUrl: _vm.apiBaseUrl,
15424
+ isOtherUnit: false,
15425
+ label: _vm.currentOrgName
15426
+ ? _vm.currentOrgName
15427
+ : "本单位",
15428
+ },
15429
+ on: {
15430
+ change: function ($event) {
15431
+ _vm.disposeAppUnit(
15432
+ $event,
15433
+ "nextCurrentOrgObjSelect"
15434
+ )
15435
+ },
15436
+ },
15437
+ model: {
15438
+ value:
15439
+ _vm.nextCurrentOrgObjSelect,
15440
+ callback: function ($$v) {
15441
+ _vm.nextCurrentOrgObjSelect =
15442
+ $$v
15443
+ },
15444
+ expression:
15445
+ "nextCurrentOrgObjSelect",
15446
+ },
15447
+ }),
15448
+ ],
15449
+ 1
15450
+ )
15451
+ : _vm._e(),
15452
+ _vm.isHideOtherOrg
15453
+ ? _c(
15454
+ "div",
15455
+ { staticClass: "item" },
15456
+ [
15457
+ _c("em-selector", {
15458
+ attrs: {
15459
+ multiple: "",
15460
+ isAllCheck: _vm.isAllCheck,
15461
+ paddingTop: _vm.paddingTop,
15462
+ objType: "enterprise",
15463
+ param: {
15464
+ pid: "root",
15465
+ },
15466
+ tabs: "enterprise",
15467
+ baseUrl: _vm.apiBaseUrl,
15468
+ isOtherUnit: true,
15469
+ label: _vm.otherOrgName
15470
+ ? _vm.otherOrgName
15471
+ : "外单位",
15472
+ },
15473
+ on: {
15474
+ change: function ($event) {
15475
+ _vm.disposeAppUnit(
15476
+ $event,
15477
+ "nextOtherOrgObjSelect"
15478
+ )
15479
+ },
15480
+ },
15481
+ model: {
15482
+ value:
15483
+ _vm.nextOtherOrgObjSelect,
15484
+ callback: function ($$v) {
15485
+ _vm.nextOtherOrgObjSelect =
15486
+ $$v
15487
+ },
15488
+ expression:
15489
+ "nextOtherOrgObjSelect",
15490
+ },
15491
+ }),
15492
+ ],
15493
+ 1
15494
+ )
15495
+ : _vm._e(),
15496
+ _vm.isMainSubProcess &&
15497
+ _vm.isNodeShowProcess
15498
+ ? _c(
15499
+ "div",
15500
+ { staticClass: "item" },
15501
+ [
15502
+ _c("em-picker", {
15503
+ attrs: {
15504
+ label: "主办",
15505
+ title: "主办",
15506
+ placeholder: "请选择主办",
15507
+ "show-toolbar": "",
15508
+ disabled:
15509
+ _vm.subProcessColumns
15510
+ .length == 0,
15511
+ columns:
15512
+ _vm.subProcessColumns,
15513
+ },
15514
+ model: {
15515
+ value: _vm.form.mainSubId,
15516
+ callback: function ($$v) {
15517
+ _vm.$set(
15518
+ _vm.form,
15519
+ "mainSubId",
15520
+ $$v
15521
+ )
15522
+ },
15523
+ expression: "form.mainSubId",
15524
+ },
15525
+ }),
15526
+ ],
15527
+ 1
15528
+ )
15529
+ : _vm._e(),
15530
+ _vm.isHandleExplain
15531
+ ? _c(
15532
+ "div",
15533
+ { staticClass: "item" },
15534
+ [
15535
+ _c("van-field", {
15536
+ attrs: {
15537
+ value: "办理说明",
15538
+ label: "办理说明",
15539
+ disabled: true,
15540
+ placeholder: "请选择",
15541
+ },
15542
+ }),
15543
+ ],
15544
+ 1
15545
+ )
15546
+ : _vm._e(),
15547
+ ])
15548
+ : _vm._e(),
15549
+ _vm.form.isRemoveSign !== "1" &&
15550
+ _vm.form.isAddSign !== "1" &&
15551
+ _vm.isTaskread
15552
+ ? _c("div", { staticClass: "item" }, [
15553
+ _c(
15554
+ "div",
15555
+ { staticClass: "item item-user" },
15556
+ [
15557
+ _c("em-selector", {
15558
+ attrs: {
15559
+ multiple: "",
15560
+ isAllCheck: _vm.isAllCheck,
15561
+ objType: _vm.objType,
15562
+ param: {
15563
+ pid: _vm.pid,
15564
+ },
15565
+ paddingTop: _vm.paddingTop,
15566
+ baseUrl: _vm.apiBaseUrl,
15567
+ tabs: "employee,persongroup",
15568
+ label: "分阅用户",
15569
+ },
15570
+ on: {
15571
+ change: function ($event) {
15572
+ _vm.disposeAppUser(
15573
+ $event,
15574
+ "nextReadUserSelectList"
15575
+ )
15576
+ },
15577
+ },
15578
+ model: {
15579
+ value: _vm.nextReadUserSelectList,
15580
+ callback: function ($$v) {
15581
+ _vm.nextReadUserSelectList = $$v
15582
+ },
15583
+ expression:
15584
+ "nextReadUserSelectList",
15585
+ },
15586
+ }),
15587
+ ],
15588
+ 1
15589
+ ),
15590
+ ])
15591
+ : _vm._e(),
15592
+ _vm.isLimitedTimeHandling
15593
+ ? _c(
15594
+ "div",
15595
+ { staticClass: "item" },
15596
+ [
15597
+ _c(
15598
+ "em-input",
15599
+ {
15600
+ attrs: {
15601
+ name: "radio",
15602
+ label: "是否限时办理",
15603
+ required: true,
15604
+ },
15605
+ },
15606
+ [
15607
+ _c(
15608
+ "template",
15609
+ { slot: "input" },
15610
+ [
15611
+ _c("em-radio-group", {
15612
+ attrs: {
15613
+ data: _vm.isAddSignList,
15614
+ direction: "horizontal",
15615
+ },
15616
+ model: {
15617
+ value:
15618
+ _vm.form.isLimitedTime,
15619
+ callback: function ($$v) {
15620
+ _vm.$set(
15621
+ _vm.form,
15622
+ "isLimitedTime",
15623
+ $$v
15624
+ )
15625
+ },
15626
+ expression:
15627
+ "form.isLimitedTime",
15628
+ },
15629
+ }),
15630
+ ],
15631
+ 1
15632
+ ),
15633
+ ],
15634
+ 2
15635
+ ),
15636
+ ],
15637
+ 1
15638
+ )
15639
+ : _vm._e(),
15640
+ _vm.form.isLimitedTime === "1"
15641
+ ? _c(
15642
+ "div",
15643
+ { staticClass: "item item-limited-time" },
15644
+ [
15645
+ _c(
15646
+ "em-input",
15647
+ {
15648
+ attrs: {
15649
+ name: "radio",
15650
+ label: "限时办理时间",
15651
+ required: true,
15652
+ },
15653
+ },
15654
+ [
15655
+ _c("template", { slot: "input" }, [
15656
+ _c(
15657
+ "div",
15658
+ {
15659
+ staticClass:
15660
+ "item-limited-time-content",
15661
+ },
15662
+ [
15663
+ _c(
15664
+ "div",
15665
+ [
15666
+ _c("em-input", {
15667
+ attrs: {
15668
+ placeholder:
15669
+ "请输入天数",
15670
+ type: "digit",
15671
+ },
15672
+ model: {
15673
+ value:
15674
+ _vm.form
15675
+ .limitedTimeDay,
15676
+ callback: function (
15677
+ $$v
15678
+ ) {
15679
+ _vm.$set(
15680
+ _vm.form,
15681
+ "limitedTimeDay",
15682
+ $$v
15683
+ )
15684
+ },
15685
+ expression:
15686
+ "form.limitedTimeDay",
15687
+ },
15688
+ }),
15689
+ ],
15690
+ 1
15691
+ ),
15692
+ _c(
15693
+ "div",
15694
+ { staticClass: "day-text" },
15695
+ [_vm._v("天")]
15696
+ ),
15697
+ _c(
15698
+ "div",
15699
+ [
15700
+ _c("em-input", {
15701
+ attrs: {
15702
+ value:
15703
+ _vm.form
15704
+ .limitedTimeHour,
15705
+ clickable: "",
15706
+ readonly: "",
15707
+ placeholder:
15708
+ "请选择小时",
15709
+ },
15710
+ on: {
15711
+ click: function (
15712
+ $event
15713
+ ) {
15714
+ _vm.openTimeList(
15715
+ "limitedTimeHour"
15716
+ )
15717
+ },
15718
+ },
15719
+ }),
15720
+ ],
15721
+ 1
15722
+ ),
15723
+ _c(
15724
+ "div",
15725
+ { staticClass: "day-text" },
15726
+ [_vm._v("时")]
15727
+ ),
15728
+ ]
15729
+ ),
15730
+ ]),
15731
+ ],
15732
+ 2
15733
+ ),
15734
+ ],
15735
+ 1
15736
+ )
15737
+ : _vm._e(),
15738
+ _vm.form.isLimitedTime === "1"
15739
+ ? _c(
15740
+ "div",
15741
+ { staticClass: "item item-limited-time" },
15742
+ [
15743
+ _c(
15744
+ "em-input",
15745
+ {
15746
+ attrs: {
15747
+ name: "radio",
15748
+ label: "提前通知时间",
15749
+ required: true,
15750
+ },
15751
+ },
15752
+ [
15753
+ _c("template", { slot: "input" }, [
15754
+ _c(
15755
+ "div",
15756
+ {
15757
+ staticClass:
15758
+ "item-limited-time-content",
15759
+ },
15760
+ [
15761
+ _c(
15762
+ "div",
15763
+ [
15764
+ _c("em-input", {
15765
+ attrs: {
15766
+ placeholder:
15767
+ "请输入天数",
15768
+ type: "digit",
15769
+ },
15770
+ model: {
15771
+ value:
15772
+ _vm.form
15773
+ .advanceNoticeDay,
15774
+ callback: function (
15775
+ $$v
15776
+ ) {
15777
+ _vm.$set(
15778
+ _vm.form,
15779
+ "advanceNoticeDay",
15780
+ $$v
15781
+ )
15782
+ },
15783
+ expression:
15784
+ "form.advanceNoticeDay",
15785
+ },
15786
+ }),
15787
+ ],
15788
+ 1
15789
+ ),
15790
+ _c(
15791
+ "div",
15792
+ { staticClass: "day-text" },
15793
+ [_vm._v("天")]
15794
+ ),
15795
+ _c(
15796
+ "div",
15797
+ [
15798
+ _c("em-input", {
15799
+ attrs: {
15800
+ value:
15801
+ _vm.form
15802
+ .advanceNoticeHour,
15803
+ clickable: "",
15804
+ placeholder:
15805
+ "请选择小时",
15806
+ readonly: "",
15807
+ },
15808
+ on: {
15809
+ click: function (
15810
+ $event
15811
+ ) {
15812
+ _vm.openTimeList(
15813
+ "advanceNoticeHour"
15814
+ )
15815
+ },
15816
+ },
15817
+ }),
15818
+ ],
15819
+ 1
15820
+ ),
15821
+ _c(
15822
+ "div",
15823
+ { staticClass: "day-text" },
15824
+ [_vm._v("时")]
15825
+ ),
15826
+ ]
15827
+ ),
15828
+ ]),
15829
+ ],
15830
+ 2
15831
+ ),
15832
+ ],
15833
+ 1
15834
+ )
15835
+ : _vm._e(),
15836
+ _c(
15837
+ "van-popup",
15838
+ {
15839
+ attrs: { round: "", position: "bottom" },
15840
+ model: {
15841
+ value: _vm.showTimeList,
15842
+ callback: function ($$v) {
15843
+ _vm.showTimeList = $$v
15844
+ },
15845
+ expression: "showTimeList",
15846
+ },
15847
+ },
15848
+ [
15849
+ _c("van-picker", {
15850
+ attrs: {
15851
+ "show-toolbar": "",
15852
+ columns: _vm.timeList,
15853
+ },
15854
+ on: {
15855
+ cancel: function ($event) {
15856
+ _vm.showTimeList = false
15857
+ },
15858
+ confirm: _vm.onConfirmTimeList,
15859
+ },
15860
+ }),
15861
+ ],
15862
+ 1
15863
+ ),
15864
+ _vm.isLimitedTimeHandling
15865
+ ? _c(
15866
+ "div",
15867
+ { staticClass: "item-msg item-msg1" },
15868
+ [
15869
+ _c("Message", {
15870
+ ref: "message",
15871
+ attrs: {
15872
+ label: "催办通知方式",
15873
+ code: "notification_type",
15874
+ baseUrl: _vm.baseUrl,
15875
+ required: true,
15876
+ },
15877
+ on: {
15878
+ onInputMsg: _vm.onInputMsgUrge,
15879
+ },
15880
+ }),
15881
+ ],
15882
+ 1
15883
+ )
15884
+ : _vm._e(),
15885
+ _c(
15886
+ "div",
15887
+ { staticClass: "item-msg item-msg2" },
15888
+ [
15889
+ _c("Message", {
15890
+ ref: "message",
15891
+ attrs: {
15892
+ code: "notification_type",
15893
+ baseUrl: _vm.baseUrl,
15894
+ readOnlyNotificationType:
15895
+ _vm.readOnlyNotificationType,
15896
+ notificationMessageReadOnly:
15897
+ _vm.notificationMessageReadOnly,
15898
+ defaultNotificationType:
15899
+ _vm.defaultNotificationType,
15900
+ defaultNotificationMsg:
15901
+ _vm.form.notificationMsg,
15902
+ },
15903
+ on: { onInputMsg: _vm.onInputMsg },
15904
+ }),
15905
+ ],
15906
+ 1
15907
+ ),
15908
+ ],
15909
+ 1
15910
+ )
15911
+ : _vm._e(),
15912
+ ])
15913
+ : _vm._e(),
15914
+ ],
15915
+ 1
15916
+ ),
15917
+ _vm.isSubmitButtonShowAgreeAndDisagree
15918
+ ? _c("div", { staticClass: "btn-list" }, [
15919
+ _c(
15920
+ "div",
15921
+ {
15922
+ staticClass: "btn",
15923
+ on: {
15924
+ click: function ($event) {
15925
+ _vm.handleFlow = false
15926
+ },
15927
+ },
15928
+ },
15929
+ [_vm._v("不同意")]
15930
+ ),
15931
+ _c(
15932
+ "div",
15933
+ {
15934
+ staticClass: "btn",
15935
+ on: {
15936
+ click: function ($event) {
15937
+ _vm.onSubmit()
15938
+ },
15939
+ },
15940
+ },
15941
+ [_vm._v("同意")]
15942
+ ),
15943
+ ])
15944
+ : _c("div", { staticClass: "btn-list" }, [
15945
+ _c(
15946
+ "div",
15947
+ { staticClass: "btn", on: { click: _vm.navigateBack } },
15948
+ [_vm._v("取消")]
15949
+ ),
15950
+ _c(
15951
+ "div",
15952
+ {
15953
+ staticClass: "btn",
15954
+ on: {
15955
+ click: function ($event) {
15956
+ _vm.onSubmit()
15957
+ },
15958
+ },
15959
+ },
15960
+ [_vm._v("确定")]
15961
+ ),
15962
+ ]),
15963
+ ]
15964
+ )
15965
+ : _c("Reject", {
15966
+ attrs: {
15967
+ pendingId: _vm.pendingId,
15968
+ "before-submit": _vm.beforeSubmit,
15969
+ },
15970
+ on: {
15971
+ close: function ($event) {
15972
+ _vm.handleFlow = true
15973
+ },
15974
+ },
15975
+ }),
15976
+ ],
15977
+ 1
15978
+ )
15979
+ }
15980
+ var Handlevue_type_template_id_1d3eb9e8_staticRenderFns = []
15981
+ Handlevue_type_template_id_1d3eb9e8_render._withStripped = true
15982
+
15929
15983
 
15930
- var Reject_component = normalizeComponent(
15931
- components_Rejectvue_type_script_lang_js,
15932
- Rejectvue_type_template_id_4fdaf365_render,
15933
- Rejectvue_type_template_id_4fdaf365_staticRenderFns,
15934
- false,
15935
- null,
15936
- null,
15937
- null
15938
-
15939
- )
15984
+ // CONCATENATED MODULE: ./packages/flow/src/components/Handle.vue?vue&type=template&id=1d3eb9e8
15940
15985
 
15941
- /* harmony default export */ var Reject = (Reject_component.exports);
15942
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=50a06dbd
15943
- var ProcessSettingsvue_type_template_id_50a06dbd_render = function () {
15986
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
15987
+ var Rejectvue_type_template_id_4fdaf365_render = function () {
15944
15988
  var _vm = this
15945
15989
  var _h = _vm.$createElement
15946
15990
  var _c = _vm._self._c || _h
15947
- return _c(
15948
- "div",
15949
- { staticClass: "em-flow-setting" },
15950
- [
15991
+ return _c("div", { staticClass: "process-reject" }, [
15992
+ _c(
15993
+ "div",
15994
+ { staticClass: "reject-content" },
15995
+ [
15996
+ _c("div", { staticClass: "present-node" }, [
15997
+ _c("div", { staticClass: "label" }, [_vm._v("当前节点:")]),
15998
+ _c("div", [_vm._v(_vm._s(_vm.processObj.taskExamine.nodeName))]),
15999
+ ]),
16000
+ _c("Opinion", {
16001
+ attrs: {
16002
+ code: _vm.processObj.attachedCode,
16003
+ ownId: _vm.$route.query.pendingId,
16004
+ esign: _vm.esign,
16005
+ esignLineWidth:
16006
+ _vm.$attrs["esign-line-width"] || _vm.$attrs["esignLineWidth"],
16007
+ placeholder: _vm.opinionHandleExplainText,
16008
+ isOpinionRequired: _vm.isBanInputOpinion,
16009
+ disabled: _vm.isBanInputOpinion != 0,
16010
+ baseUrl: _vm.baseUrl,
16011
+ isHiddenOftenOpinion: _vm.isHiddenOftenOpinion == 1 ? false : true,
16012
+ },
16013
+ on: { onInputOpintion: _vm.onInputOpintion },
16014
+ }),
16015
+ _c(
16016
+ "div",
16017
+ { staticClass: "input-box" },
16018
+ [
16019
+ _c(
16020
+ "div",
16021
+ { staticClass: "item" },
16022
+ [
16023
+ _c(
16024
+ "em-input",
16025
+ { attrs: { label: "驳回对象" } },
16026
+ [
16027
+ _c(
16028
+ "template",
16029
+ { slot: "input" },
16030
+ [
16031
+ _c("em-radio-group", {
16032
+ attrs: { data: _vm.rejectObj },
16033
+ model: {
16034
+ value: _vm.form.nextNodeId,
16035
+ callback: function ($$v) {
16036
+ _vm.$set(_vm.form, "nextNodeId", $$v)
16037
+ },
16038
+ expression: "form.nextNodeId",
16039
+ },
16040
+ }),
16041
+ ],
16042
+ 1
16043
+ ),
16044
+ ],
16045
+ 2
16046
+ ),
16047
+ ],
16048
+ 1
16049
+ ),
16050
+ _c("Message", {
16051
+ ref: "message",
16052
+ attrs: {
16053
+ code: "notification_type",
16054
+ baseUrl: _vm.baseUrl,
16055
+ readOnlyNotificationType: _vm.readOnlyNotificationType,
16056
+ notificationMessageReadOnly: _vm.notificationMessageReadOnly,
16057
+ defaultNotificationType: _vm.defaultNotificationType,
16058
+ defaultNotificationMsg: _vm.form.notificationMsg,
16059
+ type: _vm.type,
16060
+ },
16061
+ on: { onInputMsg: _vm.onInputMsg },
16062
+ }),
16063
+ ],
16064
+ 1
16065
+ ),
16066
+ ],
16067
+ 1
16068
+ ),
16069
+ _c("div", { staticClass: "btn-list" }, [
16070
+ _c("div", { staticClass: "btn", on: { click: _vm.goBack } }, [
16071
+ _vm._v("取消"),
16072
+ ]),
15951
16073
  _c(
15952
- "van-collapse",
16074
+ "div",
15953
16075
  {
15954
- model: {
15955
- value: _vm.active,
15956
- callback: function ($$v) {
15957
- _vm.active = $$v
16076
+ staticClass: "btn",
16077
+ on: {
16078
+ click: function ($event) {
16079
+ _vm.onSubmit()
15958
16080
  },
15959
- expression: "active",
15960
16081
  },
15961
16082
  },
15962
- [
15963
- _c(
15964
- "van-collapse-item",
15965
- {
15966
- attrs: { title: "预设自定义节点信息(折叠不作处理)", name: "1" },
15967
- },
15968
- _vm._l(_vm.flowList, function (item, index) {
15969
- return _c(
15970
- "div",
15971
- { key: index, staticClass: "em-flow-setting-item" },
15972
- [
15973
- _c("em-picker", {
15974
- attrs: {
15975
- title: "节点" + (index + 1),
15976
- label: "节点" + (index + 1),
15977
- "show-toolbar": "",
15978
- columns: item.nodeList,
15979
- "value-key": "nodeId",
15980
- "label-key": "nodeName",
15981
- },
15982
- on: {
15983
- confirm: function ($event) {
15984
- _vm.onConfirmNextNode($event, index)
15985
- },
15986
- },
15987
- model: {
15988
- value: item.nodeId,
15989
- callback: function ($$v) {
15990
- _vm.$set(item, "nodeId", $$v)
15991
- },
15992
- expression: "item.nodeId",
15993
- },
15994
- }),
15995
- _c("em-selector", {
15996
- directives: [
15997
- {
15998
- name: "show",
15999
- rawName: "v-show",
16000
- value: item.showSelectUser,
16001
- expression: "item.showSelectUser",
16002
- },
16003
- ],
16004
- attrs: {
16005
- multiple: !item.isRadio,
16006
- nextUserList: item.nextUserList,
16007
- label: "办理人",
16008
- objType: item.objType,
16009
- param: {
16010
- pid: item.pid,
16011
- },
16012
- required: item.nodeId != "",
16013
- tabs: "employee,persongroup",
16014
- baseUrl: _vm.apiBaseUrl,
16015
- paddingTop: _vm.paddingTop,
16016
- },
16017
- model: {
16018
- value: item.nextUserSelectList,
16019
- callback: function ($$v) {
16020
- _vm.$set(item, "nextUserSelectList", $$v)
16021
- },
16022
- expression: "item.nextUserSelectList",
16023
- },
16024
- }),
16025
- _c("van-icon", {
16026
- directives: [
16027
- {
16028
- name: "show",
16029
- rawName: "v-show",
16030
- value: index + 1 != _vm.flowList.length,
16031
- expression: "index + 1 != flowList.length",
16032
- },
16033
- ],
16034
- staticStyle: { "margin-top": "10px" },
16035
- attrs: { name: "down" },
16036
- }),
16037
- ],
16038
- 1
16039
- )
16040
- }),
16041
- 0
16042
- ),
16043
- ],
16044
- 1
16083
+ [_vm._v("确定")]
16045
16084
  ),
16046
- ],
16047
- 1
16048
- )
16085
+ ]),
16086
+ ])
16049
16087
  }
16050
- var ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns = []
16051
- ProcessSettingsvue_type_template_id_50a06dbd_render._withStripped = true
16052
-
16088
+ var Rejectvue_type_template_id_4fdaf365_staticRenderFns = []
16089
+ Rejectvue_type_template_id_4fdaf365_render._withStripped = true
16053
16090
 
16054
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=template&id=50a06dbd
16055
16091
 
16056
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
16057
- var ProcessSettingsvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
16092
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=template&id=4fdaf365
16058
16093
 
16059
- var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
16094
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
16095
+ var Rejectvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
16060
16096
 
16061
16097
  //
16062
16098
  //
@@ -16102,174 +16138,122 @@ var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function"
16102
16138
  //
16103
16139
  //
16104
16140
  //
16141
+ //
16142
+ //
16105
16143
 
16106
16144
 
16107
16145
 
16108
- /* harmony default export */ var ProcessSettingsvue_type_script_lang_js = ({
16146
+
16147
+
16148
+
16149
+ /* harmony default export */ var Rejectvue_type_script_lang_js = ({
16150
+ name: 'Reject',
16109
16151
  props: {
16110
- processDefinitionId: {
16111
- type: String,
16112
- default: ''
16113
- },
16114
- nodeId: {
16115
- type: String,
16116
- default: ''
16117
- },
16118
- businessId: {
16119
- type: String,
16120
- default: ''
16121
- },
16122
- taskId: {
16123
- type: String,
16124
- default: ''
16125
- },
16126
- pendingId: {
16127
- type: String,
16128
- default: ''
16129
- },
16130
- apiBaseUrl: {
16131
- type: String,
16132
- default: ''
16133
- },
16134
- paddingTop: {
16135
- type: Number,
16136
- default: 0
16137
- },
16138
- choiceOrgId: {
16139
- type: String,
16140
- default: ''
16141
- },
16142
- pOrgId: {
16143
- type: String,
16144
- default: ''
16152
+ appId: String,
16153
+ type: String,
16154
+ pendingId: String,
16155
+ beforeSubmit: Function,
16156
+ baseUrl: String,
16157
+ esign: {
16158
+ type: Boolean,
16159
+ default: false
16145
16160
  },
16146
- choiceDeptId: {
16161
+ userId: {
16147
16162
  type: String,
16148
16163
  default: ''
16149
16164
  }
16150
16165
  },
16151
16166
  data: function data() {
16152
16167
  return {
16153
- name: '',
16154
- pid: 'root',
16155
- objType: 'enterprise',
16156
- selectType: 'employee',
16157
- active: ['1'],
16158
- flowList: [],
16159
- selectList: [],
16160
- isRadio: true,
16161
- nodeList: []
16168
+ showMsg: false, // 判断是否显示系统消息
16169
+ opinionHandleExplainText: undefined,
16170
+ showOpinion: false, // 常用意见弹框
16171
+ readOnlyNotificationType: '',
16172
+ notificationMessageReadOnly: false,
16173
+ form: {
16174
+ opinion: undefined, // 审批意见
16175
+ notificationMsg: undefined, //系统消息
16176
+ nextNodeId: undefined,
16177
+ loginType: 2, //登录方式
16178
+ isImageOpinion: 0
16179
+ },
16180
+ file: '',
16181
+ processObj: {
16182
+ taskExamine: { nodeName: undefined },
16183
+ nodeInfoMap: { nextUserList: [] }
16184
+ },
16185
+ rejectObj: [], //
16186
+ isHiddenOftenOpinion: undefined, //是否隐藏常用意见
16187
+ nodeDefaultRejectOpinion: undefined, //默认提交意见
16188
+ checked: true, // 系统消息是否选中
16189
+ defaultNotificationType: undefined, ///默认选中通知类型
16190
+ isBanInputOpinion: 0 //是否禁用意见
16162
16191
  };
16163
16192
  },
16164
16193
 
16165
- watch: {
16166
- nodeId: {
16167
- handler: function handler(val) {
16168
- if (val) {
16169
- // this.getProList(val);
16170
- this.getNodeInfo(val);
16171
- }
16172
- },
16194
+ components: { Opinion: Opinion, Message: Message },
16195
+ created: function created() {
16196
+ this.style = {
16197
+ 'padding-top': sessionStorage.getItem('pt') ? sessionStorage.getItem('pt') + 'px' : '30px'
16198
+ };
16199
+ this.getProcessObj();
16200
+ },
16201
+
16202
+ methods: {
16203
+ // 通知消息回调
16204
+ onInputMsg: function onInputMsg(obj) {
16205
+ this.form.notificationType = obj.notificationType.join(',');
16206
+ this.form.notificationMsg = obj.notificationMsg;
16207
+ },
16208
+
16209
+ // 意见回调
16210
+ onInputOpintion: function onInputOpintion(val) {
16211
+ var opinion = val.opinion,
16212
+ isImageOpinion = val.isImageOpinion,
16213
+ file = val.file;
16214
+
16215
+ this.form.opinion = opinion;
16216
+ this.form.isImageOpinion = isImageOpinion;
16217
+ this.file = file;
16218
+ },
16219
+ goBack: function goBack() {
16220
+ this.$parent.$emit('close');
16221
+ this.$emit('close');
16222
+ },
16173
16223
 
16174
- immediate: true,
16175
- deep: true
16176
- }
16177
- },
16178
- methods: {
16179
- getValue: function getValue() {
16224
+ // 提交流程
16225
+ onSubmit: function onSubmit() {
16180
16226
  var _this = this;
16181
16227
 
16182
- var pass = true;
16183
- var PresetData = [];
16184
- var newFlowList = this.flowList.filter(function (x) {
16185
- return x.nodeId;
16186
- });
16187
- for (var i = 0; i < newFlowList.length; i++) {
16188
- if (newFlowList[i].nextUserSelectList.length == 0 && newFlowList[i].showSelectUser) {
16189
- pass = false;
16190
- this.$toast('\u8BF7\u9009\u62E9\u8282\u70B9' + (i + 1) + '\u7684\u529E\u7406\u4EBA');
16191
- return false;
16192
- }
16228
+ if (!this.form.opinion && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 0 || !this.file && this.isBanInputOpinion == 0 && this.form.isImageOpinion == 1) {
16229
+ this.$toast('请输入审批意见');
16230
+ return;
16193
16231
  }
16194
- if (pass) {
16195
- newFlowList.map(function (x, i) {
16196
- PresetData.push({
16197
- name: ProcessSettingsvue_type_script_lang_js_typeof(x.nodeId) == 'object' ? x.nodeId.nodeId : x.nodeId,
16198
- value: x.nextUserSelectList.map(function (y) {
16199
- return y.showid;
16200
- }).join(','),
16201
- lastName: i == 0 ? _this.nodeId : PresetData[i - 1].name,
16202
- sequence: i + 1 + ''
16203
- });
16204
- });
16232
+ var str = '';
16233
+ if (this.form.opinion) {
16234
+ str = this.form.opinion.replace(/\s+/g, '');
16205
16235
  }
16206
- return JSON.stringify(PresetData);
16207
- },
16208
-
16209
- // 根据返回的办理人类型来判断 选择人员树的范围
16210
- changePidObjtype: function changePidObjtype(val, choiceOrgId, choiceDeptId, pOrgId, obj) {
16211
- if (val === 1 || val === 2) {
16212
- obj.pid = choiceOrgId || this.orgId;
16213
- obj.objType = 'enterprise';
16214
- obj.selectType = 'employee';
16215
- } else if (val === 3 || val === 4) {
16216
- obj.pid = 'root';
16217
- obj.objType = 'employee';
16218
- } else if (val === 5 || val === 6) {
16219
- obj.pid = choiceDeptId || this.depId;
16220
- obj.objType = 'department';
16221
- } else if (val === 11 || val === 12) {
16222
- obj.selectType = 'employee';
16223
- obj.objType = 'enterprise';
16224
- } else if (val === 13) {
16225
- obj.pid = choiceDeptId || this.depId;
16226
- obj.selectType = 'employee';
16227
- obj.objType = 'department';
16228
- } else if (val === 14) {
16229
- obj.pid = pOrgId || this.orgId;
16230
- obj.selectType = 'employee';
16231
- } else if (val === 15 || val === 16) {
16232
- obj.pid = pOrgId || this.orgId;
16233
- obj.selectType = 'employee';
16236
+ if ((!this.form.opinion || str === '') && this.nodeDefaultRejectOpinion) {
16237
+ this.form.opinion = this.nodeDefaultRejectOpinion;
16234
16238
  }
16235
- // userSelectionType 机构内单选人1,机构内多选人2,所有机构单选人3,所有部门多选人4,本部门单选人5,本部门多选人6,本单位单选部门7,本单位多选部门8,单选单位9,多选单位10,单选机构11,多选机构12,本部门角色13,本单位角色14
16236
- val == 2 || val == 4 || val == 6 || val == 8 || val == 10 || val == 11 || val == 12 ? obj.isRadio = false : obj.isRadio = true; //判断办理人单选多选
16237
- },
16238
-
16239
- // 修改默认办理人
16240
- changeDefPeople: function changeDefPeople(def, all, data) {
16241
- var _this2 = this;
16242
-
16243
- data.nextUserSelectList = [];
16244
- if (def == 1 && all == 1 || def == 0 && all == 1) {
16245
- var ids = '';
16246
- data.nextUserList.map(function (r, i) {
16247
- r.showid = r.userId;
16248
- r.showname = r.username;
16249
- _this2.$set(r, 'checked', true);
16250
- data.nextUserSelectList.push(r);
16251
- ids += r.userId + (i === data.nextUserList.length - 1 ? '' : ',');
16252
- });
16253
- // this.form.nextUserId = ids;
16254
- } else if (def == 1 && (!all || all == 0) && data.nextUserList.length > 0) {
16255
- data.nextUserList[0].showid = data.nextUserList[0].userId;
16256
- data.nextUserList[0].showname = data.nextUserList[0].username;
16257
- this.$set(data.nextUserList[0], 'checked', true);
16258
- data.nextUserSelectList.push(data.nextUserList[0]);
16259
- // this.form.nextUserId = this.nextUserSelectList[0].userId;
16239
+ if (this.beforeSubmit) {
16240
+ this.beforeSubmit(Rejectvue_type_script_lang_js_extends({ pendingId: this.pendingId }, this.form));
16241
+ return;
16260
16242
  }
16261
- },
16262
- onConfirmNextNode: function onConfirmNextNode(val, i) {
16263
- this.flowList = this.flowList.splice(0, i + 1);
16264
- if (val.nodeId == '-2') {
16265
- this.flowList[i].nextUserList = [];
16266
- this.flowList[i].nextUserSelectList = [];
16243
+ this.form.mobileKey = util["a" /* default */].getStorage('deviceId') || '123';
16244
+ var formData = new FormData();
16245
+ if (this.form.isImageOpinion == 1) {
16246
+ formData.append('file', this.file);
16247
+ formData.append('pendingId', this.pendingId);
16248
+ this.form.userId = this.userId || util["a" /* default */].getStorage('userId');
16249
+ for (var key in this.form) {
16250
+ if (this.form[key] !== '' && this.form[key] !== undefined) {
16251
+ formData.append(key, this.form[key]);
16252
+ }
16253
+ }
16267
16254
  } else {
16268
- this.getNodeInfo(val.nodeId, i);
16255
+ this.form.pendingId = this.pendingId;
16269
16256
  }
16270
- },
16271
- getNodeInfo: function getNodeInfo(nodeId, i) {
16272
- var _this3 = this;
16273
16257
 
16274
16258
  this.$toast.loading({
16275
16259
  message: '加载中...',
@@ -16278,81 +16262,102 @@ var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function"
16278
16262
  overlay: true,
16279
16263
  duration: 0
16280
16264
  });
16265
+ var _that = this;
16281
16266
  utils_http({
16282
- url: getNodeInfoHtml,
16283
- params: {
16284
- processDefinitionId: this.processDefinitionId,
16285
- nextNodeId: nodeId,
16286
- businessId: this.businessId,
16287
- taskId: this.taskId,
16288
- pendingId: this.pendingId
16289
- }
16267
+ url: _that.baseUrl ? _that.baseUrl + taskRejectHtml : taskRejectHtml,
16268
+ type: 'post',
16269
+ params: this.form.isImageOpinion == 1 ? formData : this.form,
16270
+ format: false
16290
16271
  }).then(function (res) {
16291
16272
  if (res.status == 'success') {
16292
- // this.nodeList = res.data.taskNodeMap;
16293
- var obj = {};
16294
- if (i != undefined) {
16295
- res.data.nextUserList.map(function (res) {
16296
- res.checked = false;
16297
- });
16298
-
16299
- _this3.flowList[i].nextUserList = res.data.nextUserList || [];
16300
- _this3.flowList[i].nextUserSelectList = res.data.nextUserList || [];
16301
- _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, _this3.flowList[i]);
16302
- _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, _this3.flowList[i]);
16303
- } else {
16304
- obj.nextUserList = res.data.nextUserList || [];
16305
- obj.nextUserSelectList = res.data.nextUserList || [];
16306
- _this3.changeDefPeople(res.data.nodeExtAttr.isDefSelectedObj, res.data.nodeExtAttr.isSelectedAllObj, obj);
16307
- _this3.changePidObjtype(res.data.nodeExtAttr.userSelectionType, _this3.choiceOrgId, _this3.choiceDeptId, _this3.pOrgId, obj);
16308
- }
16309
- _this3.getProList(nodeId, obj);
16273
+ _this.$toast('操作成功');
16274
+ _this.$parent.$emit('success');
16275
+ } else {
16276
+ _this.$toast(res.message);
16310
16277
  }
16311
16278
  });
16312
16279
  },
16313
- getProList: function getProList(nodeId, obj) {
16314
- var _this4 = this;
16315
16280
 
16281
+ // 确认常用意见
16282
+ onConfirmOpinion: function onConfirmOpinion(val) {
16283
+ this.form.opinion = val.content;
16284
+ this.showOpinion = false;
16285
+ },
16286
+
16287
+ // 获取驳回信息
16288
+ getProcessObj: function getProcessObj() {
16289
+ var _this2 = this;
16290
+
16291
+ var _that = this;
16292
+ this.$toast.loading({
16293
+ message: '加载中...',
16294
+ forbidClick: true,
16295
+ loadingType: 'spinner',
16296
+ overlay: true,
16297
+ duration: 0
16298
+ });
16316
16299
  utils_http({
16317
- url: getPresetCustomInfo,
16300
+ url: _that.baseUrl ? _that.baseUrl + toTaskRejectHtml : toTaskRejectHtml,
16318
16301
  params: {
16319
- processDefinitionId: this.processDefinitionId,
16320
- nodeId: nodeId,
16321
- taskAction: 'withExtendData'
16302
+ pendingId: this.pendingId,
16303
+ isSinglePage: false,
16304
+ opinion: this.form.opinion,
16305
+ userId: _that.userId
16322
16306
  }
16323
16307
  }).then(function (res) {
16324
- _this4.$toast.clear();
16325
16308
  if (res.status == 'success') {
16326
- var _extends2;
16309
+ var _res$data = res.data,
16310
+ rejectTaskNodes = _res$data.rejectTaskNodes,
16311
+ taskExamine = _res$data.taskExamine,
16312
+ nodeInfoMap = _res$data.nodeInfoMap,
16313
+ notificationMessageReadOnly = _res$data.notificationMessageReadOnly,
16314
+ readOnlyNotificationType = _res$data.readOnlyNotificationType,
16315
+ defaultNotificationMessage = _res$data.defaultNotificationMessage,
16316
+ defaultNotificationType = _res$data.defaultNotificationType;
16327
16317
 
16328
- var arr = [{ nodeId: '-2', nodeName: '请选择' }];
16329
- var isEnd = false;
16330
- if (res.data.taskNodeMap) {
16331
- for (var i in res.data.taskNodeMap || res.data || {}) {
16332
- var _obj = {
16333
- nodeId: i,
16334
- nodeName: res.data.taskNodeMap[i]
16318
+ _this2.$toast.clear();
16319
+ _this2.notificationMessageReadOnly = notificationMessageReadOnly == 'true';
16320
+ _this2.readOnlyNotificationType = readOnlyNotificationType;
16321
+ _this2.isHiddenOftenOpinion = nodeInfoMap.nodeExtAttr.isHiddenOftenOpinion;
16322
+ _this2.nodeDefaultRejectOpinion = nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
16323
+ _this2.isBanInputOpinion = nodeInfoMap.nodeExtAttr.isBanInputOpinion;
16324
+ _this2.opinionHandleExplainText = nodeInfoMap.nodeExtAttr.opinionHandleExplainText;
16325
+ if (!_this2.isBanInputOpinion) {
16326
+ _this2.isBanInputOpinion = 0;
16327
+ }
16328
+ _this2.processObj = res.data;
16329
+ _this2.form.notificationMsg = defaultNotificationMessage;
16330
+ _this2.defaultNotificationType = defaultNotificationType.split(',');
16331
+ var list = [];
16332
+ if (rejectTaskNodes) {
16333
+ for (var i in rejectTaskNodes) {
16334
+ var obj = {
16335
+ id: i,
16336
+ name: rejectTaskNodes[i]
16335
16337
  };
16336
- isEnd = i == 'endEvent';
16337
- arr.push(_obj);
16338
+ list.push(obj);
16339
+ }
16340
+ _this2.rejectObj = list;
16341
+ if (_this2.rejectObj.length > 0) {
16342
+ _this2.form.nextNodeId = _this2.rejectObj[0].id;
16343
+ _this2.rejectObj.map(function (item) {
16344
+ item.value = item.id;
16345
+ });
16338
16346
  }
16339
16347
  }
16340
- if (isEnd) {
16341
- arr = arr.slice(1);
16342
- }
16343
- obj = ProcessSettingsvue_type_script_lang_js_extends({}, obj, (_extends2 = {
16344
- nodeList: arr,
16345
- nodeId: ''
16346
- }, _extends2['nodeId'] = isEnd ? arr[0].nodeId : '', _extends2.showSelectUser = !isEnd, _extends2));
16347
- _this4.flowList.push(obj);
16348
+ } else {
16349
+ _this2.$toast(message);
16350
+ setTimeout(function () {
16351
+ _this2.goBack;
16352
+ }, 1000);
16348
16353
  }
16349
16354
  });
16350
16355
  }
16351
16356
  }
16352
16357
  });
16353
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue?vue&type=script&lang=js
16354
- /* harmony default export */ var components_ProcessSettingsvue_type_script_lang_js = (ProcessSettingsvue_type_script_lang_js);
16355
- // CONCATENATED MODULE: ./packages/flow/src/components/ProcessSettings.vue
16358
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue?vue&type=script&lang=js
16359
+ /* harmony default export */ var components_Rejectvue_type_script_lang_js = (Rejectvue_type_script_lang_js);
16360
+ // CONCATENATED MODULE: ./packages/flow/src/components/Reject.vue
16356
16361
 
16357
16362
 
16358
16363
 
@@ -16360,10 +16365,10 @@ var ProcessSettingsvue_type_script_lang_js_typeof = typeof Symbol === "function"
16360
16365
 
16361
16366
  /* normalize component */
16362
16367
 
16363
- var ProcessSettings_component = normalizeComponent(
16364
- components_ProcessSettingsvue_type_script_lang_js,
16365
- ProcessSettingsvue_type_template_id_50a06dbd_render,
16366
- ProcessSettingsvue_type_template_id_50a06dbd_staticRenderFns,
16368
+ var Reject_component = normalizeComponent(
16369
+ components_Rejectvue_type_script_lang_js,
16370
+ Rejectvue_type_template_id_4fdaf365_render,
16371
+ Rejectvue_type_template_id_4fdaf365_staticRenderFns,
16367
16372
  false,
16368
16373
  null,
16369
16374
  null,
@@ -16371,7 +16376,7 @@ var ProcessSettings_component = normalizeComponent(
16371
16376
 
16372
16377
  )
16373
16378
 
16374
- /* harmony default export */ var ProcessSettings = (ProcessSettings_component.exports);
16379
+ /* harmony default export */ var Reject = (Reject_component.exports);
16375
16380
  // CONCATENATED MODULE: ./packages/flow/src/flowMix.js
16376
16381
 
16377
16382
 
@@ -17452,18 +17457,18 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
17452
17457
  if (this.isMainSubProcess && Handlevue_type_script_lang_js_typeof(this.form.mainSubId) == 'object') {
17453
17458
  this.form.mainSubId = this.form.mainSubId.value;
17454
17459
  }
17455
- if (this.isCustomPreset) {
17456
- if (this.$refs.processSetting.active.length != 0) {
17457
- if (!this.$refs.processSetting.getValue()) return;
17458
- this.form.customPresetUserJson = this.$refs.processSetting.getValue();
17459
- this.form.isCustomPreset = true;
17460
- this.form.presetUserJson = JSON.stringify([]);
17461
- } else {
17462
- delete this.form.customPresetUserJson;
17463
- delete this.form.isCustomPreset;
17464
- delete this.form.presetUserJson;
17465
- }
17466
- }
17460
+ // if (this.isCustomPreset ) {
17461
+ // if (this.$refs.processSetting.active.length != 0) {
17462
+ // if(!this.$refs.processSetting.getValue())return
17463
+ // this.form.customPresetUserJson = this.$refs.processSetting.getValue();
17464
+ // this.form.isCustomPreset = true;
17465
+ // this.form.presetUserJson = JSON.stringify([])
17466
+ // } else {
17467
+ // delete this.form.customPresetUserJson;
17468
+ // delete this.form.isCustomPreset;
17469
+ // delete this.form.presetUserJson;
17470
+ // }
17471
+ // }
17467
17472
  this.$toast.loading({
17468
17473
  message: '加载中...',
17469
17474
  forbidClick: true,
@@ -18102,8 +18107,8 @@ var Handlevue_type_script_lang_js_extends = Object.assign || function (target) {
18102
18107
 
18103
18108
  var Handle_component = normalizeComponent(
18104
18109
  components_Handlevue_type_script_lang_js,
18105
- Handlevue_type_template_id_548395aa_render,
18106
- Handlevue_type_template_id_548395aa_staticRenderFns,
18110
+ Handlevue_type_template_id_1d3eb9e8_render,
18111
+ Handlevue_type_template_id_1d3eb9e8_staticRenderFns,
18107
18112
  false,
18108
18113
  null,
18109
18114
  null,
@@ -25226,7 +25231,7 @@ if (typeof window !== 'undefined' && window.Vue) {
25226
25231
  }
25227
25232
 
25228
25233
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
25229
- version: '0.2.99',
25234
+ version: '0.3.0',
25230
25235
  install: install,
25231
25236
  Button: packages_button,
25232
25237
  ButtonGroup: button_group,