{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowOtherSetting.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowOtherSetting.vue","mtime":1675071991850},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport flow from '@/api/flow.js';\nimport req from '@/request.js';\nvar statusOptions = [{\n  key: 'deploy',\n  value: '已发布',\n  title: '可以发起和审批。'\n}, {\n  key: 'forbidden',\n  value: '禁止',\n  title: '禁止发起,已发起的可以继续审批。'\n}, {\n  key: 'forbidden_instance',\n  value: '禁止实例',\n  title: '禁止发起和审批。'\n}];\nvar useMainForms = [{\n  key: 'mainVersion',\n  value: '表单主版本',\n  title: '表单主版本：任务审批时使用绑定表单的主版本。'\n}, {\n  key: 'startVersion',\n  value: '启动时版本',\n  title: '启动时版本：任务审批时使用流程启动时绑定的表单版本。'\n}];\nimport model from '@/api/flow.js';\n\nvar FlowVarSelector = function FlowVarSelector() {\n  return import('@/components/flow/FlowVarSelector.vue');\n};\n\nvar MessageTypeSelector = function MessageTypeSelector() {\n  return import('@/components/flow/MessageTypeSelector.vue');\n};\n\nvar FlowNodeUserCondition = function FlowNodeUserCondition() {\n  return import('@/components/flow/FlowNodeUserCondition.vue');\n};\n\nvar FlowAutoStartSetting = function FlowAutoStartSetting() {\n  return import('@/components/flow/FlowAutoStartSetting.vue');\n};\n\nimport { mapState, mapActions } from 'vuex';\nimport { Message } from 'element-ui';\nexport default {\n  props: ['defId'],\n  components: {\n    FlowVarSelector: FlowVarSelector,\n    MessageTypeSelector: MessageTypeSelector,\n    FlowNodeUserCondition: FlowNodeUserCondition,\n    FlowAutoStartSetting: FlowAutoStartSetting\n  },\n  data: function data() {\n    return {\n      curEditSetting: '',\n      //下标，用于记录是哪一条办结抄送的人员配置\n      procNotifyList: [{\n        userAssignRules: [],\n        msgTypes: ''\n      }],\n      //办结抄送的配置信息\n      curEditRuleIndex: '',\n      //下标，用于记录修改某一条办结抄送人员配置的时候是哪条数据\n      dialogEndNotifyVisible: false,\n      //办结抄送设置对话框是否显示\n      loadDataUrl: '',\n      prop: {\n        urgentMailTel: '',\n        urgentSmsTel: ''\n      },\n      handlerTypes: [],\n      skipConditionList: [],\n      statusArr: statusOptions,\n      useMainFormArr: useMainForms,\n      dialogUrgentMailTelVisible: false,\n      dialogUrgentSmsTelVisible: false,\n      urgentMailTel: '',\n      urgentSmsTel: '',\n      checkOpnionLimits: [{\n        value: 'all',\n        label: '查看全部'\n      }, {\n        value: 'self',\n        label: '本人操作'\n      }, {\n        value: 'back',\n        label: '退回自己'\n      }, {\n        value: 'end',\n        label: '显示终止恢复'\n      }],\n      checkLimit: ['all', 'end'],\n      startLimit: ['self', 'back', 'end']\n    };\n  },\n  watch: {\n    checkLimit: {\n      handler: function handler(newVal, oldVal) {\n        if (newVal !== oldVal && newVal.length === 0) {\n          this.$set(this, 'checkLimit', oldVal);\n        }\n      }\n    },\n    startLimit: {\n      handler: function handler(newVal, oldVal) {\n        if (newVal !== oldVal && newVal.length === 0) {\n          this.$set(this, 'startLimit', oldVal);\n        }\n      }\n    }\n  },\n  computed: mapState({\n    defConfigData: function defConfigData(state) {\n      return state.flow.defConfigData;\n    }\n  }),\n  methods: {\n    //保存办结抄送配送的信息\n    saveEndNotify: function saveEndNotify() {\n      var this_ = this;\n      var validate = true;\n      this.procNotifyList.forEach(function (n) {\n        if (!n.msgTypes || !n.userAssignRules || n.userAssignRules.length == 0) {\n          validate = false;\n        }\n      });\n\n      if (!validate) {\n        Message.warning('人员配置或通知类型不能为空');\n        return;\n      }\n\n      var url = '${bpmModel}/flow/plugins/v1/procNotifySave?defId=' + this.defId;\n      req.post(url, this.procNotifyList).then(function (data) {\n        data = data.data;\n\n        if (data.state) {\n          Message.success('办结抄送配置成功');\n          this_.dialogEndNotifyVisible = false;\n        } else {\n          Message.error(data.message);\n        }\n      });\n    },\n    //新增办结抄送\n    addLine: function addLine() {\n      var procNotify = {\n        userAssignRules: [],\n        msgTypes: ''\n      };\n      this.procNotifyList.push(procNotify);\n    },\n    //添加人员配置（办结抄送）\n    addUserCondition: function addUserCondition(setting, index) {\n      this.curEditSetting = setting;\n      this.curEditRuleIndex = index;\n      var conf = {};\n\n      if (index != undefined) {\n        var userAssignRules = this.procNotifyList[setting].userAssignRules;\n        var userRule = userAssignRules[index];\n        conf.userRule = JSON.parse(JSON.stringify(userRule));\n      }\n\n      conf = _objectSpread(_objectSpread({}, conf), {\n        nodeType: '',\n        nodeId: '',\n        defId: this.defId\n      });\n      this.$refs.flowNodeUserCondition.showDialog(conf);\n    },\n    //获取人员配置返回的值（办结抄送）\n    nodeUserConditionConfirm: function nodeUserConditionConfirm(res) {\n      if (this.curEditRuleIndex != undefined) {\n        this.procNotifyList[this.curEditSetting].userAssignRules.splice(this.curEditRuleIndex, 1, res);\n      } else {\n        this.procNotifyList[this.curEditSetting].userAssignRules.push(res);\n      }\n\n      this.$forceUpdate();\n    },\n    //删除\n    deleteSetting: function deleteSetting(list, index) {\n      list.splice(index, 1);\n    },\n    //办结抄送设置\n    setEndNotify: function setEndNotify() {\n      this.dialogEndNotifyVisible = true;\n      this.procNotifyList = [{\n        userAssignRules: [],\n        msgTypes: ''\n      }]; //清空办结抄送的配置信息\n\n      var this_ = this;\n      req.get('${bpmModel}/flow/plugins/v1/procNotifyEdit?defId=' + this_.defId).then(function (data) {\n        data = data.data;\n\n        if (data) {\n          this_.procNotifyList = data;\n        }\n      });\n    },\n    save: function save() {\n      var _this = this;\n\n      if (this.prop.subjectRule.length > 600) {\n        this.$message.warning('超出限制长度！');\n        return false;\n      }\n\n      if (this.checkLimit) {\n        this.prop.checkLimit = this.checkLimit.join(',');\n      }\n\n      if (this.startLimit) {\n        this.prop.startLimit = this.startLimit.join(',');\n      }\n\n      var param = {\n        bpmProp: JSON.parse(JSON.stringify(this.prop)),\n        description: this.prop.description,\n        defId: this.defId,\n        rev: this.defConfigData.initData.bpmDefinition.rev\n      };\n\n      if (!param.bpmProp.testStatus) {\n        param.bpmProp.testStatus = 'test';\n      } else {\n        param.bpmProp.testStatus = 'run';\n      }\n\n      model.flowOtherSettingSave(param).then(function (data) {\n        if (data.state) {\n          _this.$message.success(data.message);\n\n          var _param = {\n            defId: _this.defId,\n            topDefKey: _this.topDefKey || ''\n          }; //重新获取流程最新版本，以免保存流程配置的时候提示不是最新版本\n\n          _this.$store.dispatch('flow/updateDefRev', _this.defId);\n        }\n      }, function (error) {\n        _this.$message.error(error || '保存失败');\n      });\n    },\n    urgentSmsTelConfirm: function urgentSmsTelConfirm(data) {\n      this.urgentSmsTel = this.urgentSmsTel + data.pathValue;\n    },\n    urgentMailTelConfirm: function urgentMailTelConfirm(data) {\n      this.urgentMailTel = this.urgentMailTel + data.pathValue;\n      ro;\n    },\n    urgentSmsTelClick: function urgentSmsTelClick() {\n      this.dialogUrgentSmsTelVisible = true;\n      if (!this.prop.urgentSmsTel) return;\n      this.urgentSmsTel = this.prop.urgentSmsTel;\n    },\n    urgentMailTelClick: function urgentMailTelClick() {\n      this.dialogUrgentMailTelVisible = true;\n      if (!this.prop.urgentMailTel) return;\n      this.urgentMailTel = this.prop.urgentMailTel;\n    },\n    subjectRuleConfirm: function subjectRuleConfirm(data) {\n      this.prop.subjectRule = this.prop.subjectRule + data.pathValue;\n    },\n    afterLoadData: function afterLoadData(data) {\n      var _this2 = this;\n\n      this.prop = data.prop;\n\n      if (data.prop.checkLimit) {\n        this.checkLimit = data.prop.checkLimit.split(',');\n      }\n\n      if (data.prop.startLimit) {\n        this.startLimit = data.prop.startLimit.split(',');\n      }\n\n      if (data.prop.testStatus == 'test') {\n        this.prop.testStatus = false;\n      } else {\n        this.prop.testStatus = true;\n      }\n\n      for (var key in data.handlerTypes) {\n        this.handlerTypes.push({\n          key: key,\n          value: data.handlerTypes[key]\n        });\n      }\n\n      data.skipConditionList.forEach(function (item) {\n        _this2.skipConditionList.push({\n          key: item.type,\n          value: item.title\n        });\n      });\n    }\n  },\n  created: function created() {\n    this.loadDataUrl = '/flow/def/v1/getOtherParam?defId=' + this.defId;\n  }\n};",null]}