Source/plt-web/plt-web-ui/src/components/actions/base/StartWorkflowAction.js
@@ -8,36 +8,37 @@
export const doAction = (options,callback) => {
  //modelName 流程名称 默认为 当前用户+'启动流程'+当前分类
  //multi 是否开启多选
  //checknotprocess 是否允许发起流程
  //templateType 流程模板type 必填
  //filterTemplate 流程过滤模板信息
  options.sourceData = options.sourceData || {};
  options.dataStore = options.dataStore || [];
  // if (!options.dataStore || options.dataStore.length < 1) {
  //   Vue.prototype.$message.error("请选择需要发起流程的数据");
  //   return false;
  // }
  // if (!options.paramVOS.multi && options.dataStore.length > 1) {
  //   Vue.prototype.$message.error("仅能选择一条数据发起流程");
  //   return false;
  // }
  //
  // //验证不允许启动的条件
  // if(!validatenull(options.paramVOS.checknotprocess)) {
  //   let notprocess = options.paramVOS.checknotprocess.split('&');
  //   let checknotprocess=false;
  //   notprocess.forEach((item,i)=>{
  //     if (options.dataStore[0][item.split('=')[0]] == item.split('=')[1]) {
  //       checknotprocess=true;
  //       return false;
  //     }
  //   })
  //   if (checknotprocess) {
  //     Vue.prototype.$message.error(replaceFreeMarker(options.paramVOS.checknotprocessmsg,options.dataStore,{}) || "当前数据不允许发起流程");
  //     return false;
  //   }
  // }
  if (!options.dataStore || options.dataStore.length < 1) {
    Vue.prototype.$message.error("请选择需要发起流程的数据");
    return false;
  }
  if (!options.paramVOS.multi && options.dataStore.length > 1) {
    Vue.prototype.$message.error("仅能选择一条数据发起流程");
    return false;
  }
  //验证不允许启动的条件
  if(!validatenull(options.paramVOS.checknotprocess)) {
    let notprocess = options.paramVOS.checknotprocess.split('&');
    let checknotprocess=false;
    notprocess.forEach((item,i)=>{
      if (options.dataStore[0][item.split('=')[0]] == item.split('=')[1]) {
        checknotprocess=true;
        return false;
      }
    })
    if (checknotprocess) {
      Vue.prototype.$message.error(replaceFreeMarker(options.paramVOS.checknotprocessmsg,options.dataStore,{}) || "当前数据不允许发起流程");
      return false;
    }
  }
  callPreEvent(options, doBefore, function (options) {
    showStartWindow(options, function () {