epx-frame 4.1.7 → 4.1.8

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.
@@ -2467,10 +2467,10 @@ var EntityListvue_type_script_lang_js = __webpack_require__(100);
2467
2467
  var injectStylesIntoStyleTag = __webpack_require__(17);
2468
2468
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
2469
2469
 
2470
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2471
- var EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss = __webpack_require__(135);
2470
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2471
+ var EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss = __webpack_require__(135);
2472
2472
 
2473
- // CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2473
+ // CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2474
2474
 
2475
2475
 
2476
2476
 
@@ -2479,12 +2479,12 @@ var options = {};
2479
2479
  options.insert = "head";
2480
2480
  options.singleton = false;
2481
2481
 
2482
- var update = injectStylesIntoStyleTag_default()(EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss["a" /* default */], options);
2482
+ var update = injectStylesIntoStyleTag_default()(EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss["a" /* default */], options);
2483
2483
 
2484
2484
 
2485
2485
 
2486
- /* harmony default export */ var entity_list_EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss = (EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss["a" /* default */].locals || {});
2487
- // CONCATENATED MODULE: ./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2486
+ /* harmony default export */ var entity_list_EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss = (EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss["a" /* default */].locals || {});
2487
+ // CONCATENATED MODULE: ./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2488
2488
 
2489
2489
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2490
2490
  var componentNormalizer = __webpack_require__(13);
@@ -5847,9 +5847,22 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5847
5847
  };
5848
5848
  return _context.abrupt("return", _this39.$http.get(params).then(function (data) {
5849
5849
  return Promise.resolve(data.map(function (item) {
5850
- return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), {}, {
5850
+ if (item.id === 'save') {
5851
+ return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), item), {}, {
5852
+ openOpinion: false,
5853
+ text: item.name || item.id,
5854
+ destActivityId: item.id,
5855
+ ui: item.ui || operate.ui,
5856
+ type: item.type || operate.type,
5857
+ icon: item.icon || operate.icon
5858
+ });
5859
+ }
5860
+ return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), item), {}, {
5851
5861
  text: item.name || item.id,
5852
- destActivityId: item.id
5862
+ destActivityId: item.id,
5863
+ ui: item.ui || operate.ui,
5864
+ type: item.type || operate.type,
5865
+ icon: item.icon || operate.icon
5853
5866
  });
5854
5867
  }));
5855
5868
  }).catch(function () {
@@ -5865,19 +5878,25 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5865
5878
  batchCheck: function batchCheck(operate, row) {
5866
5879
  var _this40 = this;
5867
5880
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])( /*#__PURE__*/Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().mark(function _callee3() {
5868
- var _operate$action2, action, params, _operate$num4, num, _operate$successMsg2, successMsg, _operate$failMsg2, failMsg, _operate$checkOpinion, checkOpinion, checkOpinionValue, _operate$checkSign, checkSign, _operate$opinionRequi, opinionRequire, _operate$signRequire, signRequire, _operate$mask, mask, signFile, _params, formatParams, selections, key, value, valueKey, operates, isEmptySign, checkSignUrl, data, opinion, submitFn;
5881
+ var _operate$action2, action, params, _operate$num4, num, _operate$successMsg2, successMsg, _operate$failMsg2, failMsg, _operate$checkOpinion, checkOpinion, checkOpinionValue, _operate$checkSign, checkSign, opinionRequire, signRequire, checkRequireFields, _operate$mask, mask, signFile, _params, _formatParams, selections, key, value, valueKey, operates, _this40$checkOptionDi, formatParams, _this40$checkOptionDi2, checkOperates, isEmptySign, checkSignUrl, data, opinion, checkOperate, submitFn;
5869
5882
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().wrap(function _callee3$(_context3) {
5870
5883
  while (1) switch (_context3.prev = _context3.next) {
5871
5884
  case 0:
5872
- // const that = this
5873
- _operate$action2 = operate.action, action = _operate$action2 === void 0 ? 'batchHandleTask' : _operate$action2, params = operate.params, _operate$num4 = operate.num, num = _operate$num4 === void 0 ? 'n' : _operate$num4, _operate$successMsg2 = operate.successMsg, successMsg = _operate$successMsg2 === void 0 ? _this40.$t('handle a successful') : _operate$successMsg2, _operate$failMsg2 = operate.failMsg, failMsg = _operate$failMsg2 === void 0 ? _this40.$t('deal with failure') : _operate$failMsg2, _operate$checkOpinion = operate.checkOpinion, checkOpinion = _operate$checkOpinion === void 0 ? false : _operate$checkOpinion, checkOpinionValue = operate.checkOpinionValue, _operate$checkSign = operate.checkSign, checkSign = _operate$checkSign === void 0 ? false : _operate$checkSign, _operate$opinionRequi = operate.opinionRequire, opinionRequire = _operate$opinionRequi === void 0 ? false : _operate$opinionRequi, _operate$signRequire = operate.signRequire, signRequire = _operate$signRequire === void 0 ? false : _operate$signRequire, _operate$mask = operate.mask, mask = _operate$mask === void 0 ? true : _operate$mask;
5885
+ _operate$action2 = operate.action, action = _operate$action2 === void 0 ? 'batchHandleTask' : _operate$action2, params = operate.params, _operate$num4 = operate.num, num = _operate$num4 === void 0 ? 'n' : _operate$num4, _operate$successMsg2 = operate.successMsg, successMsg = _operate$successMsg2 === void 0 ? _this40.$t('handle a successful') : _operate$successMsg2, _operate$failMsg2 = operate.failMsg, failMsg = _operate$failMsg2 === void 0 ? _this40.$t('deal with failure') : _operate$failMsg2, _operate$checkOpinion = operate.checkOpinion, checkOpinion = _operate$checkOpinion === void 0 ? false : _operate$checkOpinion, checkOpinionValue = operate.checkOpinionValue, _operate$checkSign = operate.checkSign, checkSign = _operate$checkSign === void 0 ? false : _operate$checkSign, opinionRequire = operate.opinionRequire, signRequire = operate.signRequire, checkRequireFields = operate.checkRequireFields, _operate$mask = operate.mask, mask = _operate$mask === void 0 ? true : _operate$mask;
5886
+ if (!checkRequireFields) checkRequireFields = [];
5887
+ if (_this40.$_.isNil(opinionRequire)) {
5888
+ opinionRequire = checkRequireFields.includes('opinion');
5889
+ }
5890
+ if (_this40.$_.isNil(signRequire)) {
5891
+ signRequire = checkRequireFields.includes('sign');
5892
+ }
5874
5893
  signFile = null; // 判断是否显示弹窗窗
5875
5894
  if (_this40.checkOptionDialogVisible) {
5876
- _context3.next = 27;
5895
+ _context3.next = 30;
5877
5896
  break;
5878
5897
  }
5879
5898
  _params = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, params);
5880
- formatParams = {};
5899
+ _formatParams = {};
5881
5900
  selections = [];
5882
5901
  if (row) {
5883
5902
  selections = [Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, row)];
@@ -5885,27 +5904,27 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5885
5904
  if (_this40.selection) selections = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(_this40.selection);
5886
5905
  }
5887
5906
  if (!(num !== 0 && num !== '0')) {
5888
- _context3.next = 17;
5907
+ _context3.next = 20;
5889
5908
  break;
5890
5909
  }
5891
5910
  if (!(selections.length === 0)) {
5892
- _context3.next = 13;
5911
+ _context3.next = 16;
5893
5912
  break;
5894
5913
  }
5895
5914
  _this40.$message.error(_this40.$t('please select a record'));
5896
5915
  return _context3.abrupt("return");
5897
- case 13:
5916
+ case 16:
5898
5917
  if (!(selections.length > 1)) {
5899
- _context3.next = 17;
5918
+ _context3.next = 20;
5900
5919
  break;
5901
5920
  }
5902
5921
  if (!(num === 1)) {
5903
- _context3.next = 17;
5922
+ _context3.next = 20;
5904
5923
  break;
5905
5924
  }
5906
5925
  _this40.$message.error(_this40.$t('Only one record can be selected'));
5907
5926
  return _context3.abrupt("return");
5908
- case 17:
5927
+ case 20:
5909
5928
  if (!_params.id) {
5910
5929
  _params.id = "#[".concat(_this40.$metaKey, "]");
5911
5930
  }
@@ -5933,17 +5952,17 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5933
5952
  return values.join(',');
5934
5953
  });
5935
5954
  }
5936
- formatParams[key] = value;
5955
+ _formatParams[key] = value;
5937
5956
  }
5938
- _context3.next = 22;
5957
+ _context3.next = 25;
5939
5958
  return _this40.getCheckOperateList(operate, selections.map(function (item) {
5940
5959
  return item[_this40.$metaKey];
5941
5960
  })[0]);
5942
- case 22:
5961
+ case 25:
5943
5962
  operates = _context3.sent;
5944
5963
  _this40.checkOptionDialogVisible = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), {}, {
5945
5964
  checkOperates: operates,
5946
- formatParams: formatParams
5965
+ formatParams: _formatParams
5947
5966
  });
5948
5967
  if (checkSign) {
5949
5968
  if (!_this40.signQrCode) _this40.getSignQrCode();
@@ -5952,55 +5971,62 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5952
5971
  _this40.option = checkOpinionValue;
5953
5972
  }
5954
5973
  return _context3.abrupt("return");
5955
- case 27:
5974
+ case 30:
5975
+ _this40$checkOptionDi = _this40.checkOptionDialogVisible, formatParams = _this40$checkOptionDi.formatParams, _this40$checkOptionDi2 = _this40$checkOptionDi.checkOperates, checkOperates = _this40$checkOptionDi2 === void 0 ? [] : _this40$checkOptionDi2;
5956
5976
  if (!(checkSign && _this40.signaturePad)) {
5957
- _context3.next = 36;
5977
+ _context3.next = 40;
5958
5978
  break;
5959
5979
  }
5960
5980
  // 获取是否需要签名
5961
5981
  isEmptySign = _this40.signaturePad.isEmpty();
5962
5982
  if (isEmptySign) {
5963
- _context3.next = 36;
5983
+ _context3.next = 40;
5964
5984
  break;
5965
5985
  }
5966
5986
  checkSignUrl = _this40.signaturePad.toDataURL();
5967
- _context3.next = 33;
5987
+ _context3.next = 37;
5968
5988
  return _this40.uploadSign(checkSignUrl);
5969
- case 33:
5989
+ case 37:
5970
5990
  data = _context3.sent;
5971
5991
  signFile = data.bean;
5972
5992
  if (_this40.isSaveUserSign) _this40.updateSign(signFile);
5973
- case 36:
5993
+ case 40:
5974
5994
  opinion = _this40.option;
5975
5995
  if (_this40.checkEntityWay) {
5976
- _context3.next = 40;
5996
+ _context3.next = 44;
5977
5997
  break;
5978
5998
  }
5979
5999
  _this40.$message.error('请选择审核操作');
5980
6000
  return _context3.abrupt("return");
5981
- case 40:
6001
+ case 44:
6002
+ checkOperate = checkOperates.find(function (item) {
6003
+ return item.destActivityId === _this40.checkEntityWay;
6004
+ });
6005
+ if (checkOperate && checkOperate.showCheckFields) {
6006
+ checkOpinion = checkOperate.showCheckFields.includes('opinion');
6007
+ checkSign = checkOperate.showCheckFields.includes('sign');
6008
+ }
5982
6009
  if (!(checkOpinion && opinionRequire && !opinion)) {
5983
- _context3.next = 43;
6010
+ _context3.next = 49;
5984
6011
  break;
5985
6012
  }
5986
6013
  // 必填校验
5987
6014
  _this40.$message.error('请填写审核意见');
5988
6015
  return _context3.abrupt("return");
5989
- case 43:
6016
+ case 49:
5990
6017
  if (!(checkSign && signRequire && !signFile)) {
5991
- _context3.next = 46;
6018
+ _context3.next = 52;
5992
6019
  break;
5993
6020
  }
5994
6021
  _this40.$message.error('请填写签名字段');
5995
6022
  return _context3.abrupt("return");
5996
- case 46:
6023
+ case 52:
5997
6024
  submitFn = /*#__PURE__*/function () {
5998
6025
  var _ref22 = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])( /*#__PURE__*/Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().mark(function _callee2(destActivityId) {
5999
- var formatParams, checkParams, loading;
6026
+ var checkParams, loading;
6000
6027
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().wrap(function _callee2$(_context2) {
6001
6028
  while (1) switch (_context2.prev = _context2.next) {
6002
6029
  case 0:
6003
- formatParams = _this40.checkOptionDialogVisible.formatParams;
6004
6030
  checkParams = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({
6005
6031
  action: action,
6006
6032
  entityId: _this40.$metaId,
@@ -6014,11 +6040,11 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6014
6040
  checkParams['check.SIGN'] = signFile;
6015
6041
  }
6016
6042
  if (!_this40.isRequesting) {
6017
- _context2.next = 6;
6043
+ _context2.next = 5;
6018
6044
  break;
6019
6045
  }
6020
6046
  return _context2.abrupt("return");
6021
- case 6:
6047
+ case 5:
6022
6048
  _this40.isRequesting = true;
6023
6049
  loading = null;
6024
6050
  if (mask) {
@@ -6042,7 +6068,7 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6042
6068
  _this40.$message.error(err.message || failMsg);
6043
6069
  _this40.checkEntityWay = null;
6044
6070
  });
6045
- case 10:
6071
+ case 9:
6046
6072
  case "end":
6047
6073
  return _context2.stop();
6048
6074
  }
@@ -6053,7 +6079,7 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6053
6079
  };
6054
6080
  }();
6055
6081
  submitFn();
6056
- case 48:
6082
+ case 54:
6057
6083
  case "end":
6058
6084
  return _context3.stop();
6059
6085
  }
@@ -8321,6 +8347,15 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
8321
8347
  checkSign = _ref35$checkSign === void 0 ? false : _ref35$checkSign,
8322
8348
  _ref35$checkOperates = _ref35.checkOperates,
8323
8349
  checkOperates = _ref35$checkOperates === void 0 ? [] : _ref35$checkOperates;
8350
+ if (this.checkEntityWay) {
8351
+ var operate = checkOperates.find(function (item) {
8352
+ return item.destActivityId === _this68.checkEntityWay;
8353
+ });
8354
+ if (operate && operate.showCheckFields) {
8355
+ checkOpinion = operate.showCheckFields.includes('opinion');
8356
+ checkSign = operate.showCheckFields.includes('sign');
8357
+ }
8358
+ }
8324
8359
  return h("el-dialog", {
8325
8360
  "ref": "checkDialog",
8326
8361
  "attrs": {
@@ -2467,10 +2467,10 @@ var EntityListvue_type_script_lang_js = __webpack_require__(100);
2467
2467
  var injectStylesIntoStyleTag = __webpack_require__(17);
2468
2468
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
2469
2469
 
2470
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2471
- var EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss = __webpack_require__(135);
2470
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2471
+ var EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss = __webpack_require__(135);
2472
2472
 
2473
- // CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2473
+ // CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2474
2474
 
2475
2475
 
2476
2476
 
@@ -2479,12 +2479,12 @@ var options = {};
2479
2479
  options.insert = "head";
2480
2480
  options.singleton = false;
2481
2481
 
2482
- var update = injectStylesIntoStyleTag_default()(EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss["a" /* default */], options);
2482
+ var update = injectStylesIntoStyleTag_default()(EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss["a" /* default */], options);
2483
2483
 
2484
2484
 
2485
2485
 
2486
- /* harmony default export */ var entity_list_EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss = (EntityListvue_type_style_index_0_id_ccde5c9e_prod_lang_scss["a" /* default */].locals || {});
2487
- // CONCATENATED MODULE: ./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=ccde5c9e&prod&lang=scss
2486
+ /* harmony default export */ var entity_list_EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss = (EntityListvue_type_style_index_0_id_0a9bf554_prod_lang_scss["a" /* default */].locals || {});
2487
+ // CONCATENATED MODULE: ./src/frame/packages/entity-list/EntityList.vue?vue&type=style&index=0&id=0a9bf554&prod&lang=scss
2488
2488
 
2489
2489
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2490
2490
  var componentNormalizer = __webpack_require__(13);
@@ -5847,9 +5847,22 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5847
5847
  };
5848
5848
  return _context.abrupt("return", _this39.$http.get(params).then(function (data) {
5849
5849
  return Promise.resolve(data.map(function (item) {
5850
- return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), {}, {
5850
+ if (item.id === 'save') {
5851
+ return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), item), {}, {
5852
+ openOpinion: false,
5853
+ text: item.name || item.id,
5854
+ destActivityId: item.id,
5855
+ ui: item.ui || operate.ui,
5856
+ type: item.type || operate.type,
5857
+ icon: item.icon || operate.icon
5858
+ });
5859
+ }
5860
+ return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), item), {}, {
5851
5861
  text: item.name || item.id,
5852
- destActivityId: item.id
5862
+ destActivityId: item.id,
5863
+ ui: item.ui || operate.ui,
5864
+ type: item.type || operate.type,
5865
+ icon: item.icon || operate.icon
5853
5866
  });
5854
5867
  }));
5855
5868
  }).catch(function () {
@@ -5865,19 +5878,25 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5865
5878
  batchCheck: function batchCheck(operate, row) {
5866
5879
  var _this40 = this;
5867
5880
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])( /*#__PURE__*/Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().mark(function _callee3() {
5868
- var _operate$action2, action, params, _operate$num4, num, _operate$successMsg2, successMsg, _operate$failMsg2, failMsg, _operate$checkOpinion, checkOpinion, checkOpinionValue, _operate$checkSign, checkSign, _operate$opinionRequi, opinionRequire, _operate$signRequire, signRequire, _operate$mask, mask, signFile, _params, formatParams, selections, key, value, valueKey, operates, isEmptySign, checkSignUrl, data, opinion, submitFn;
5881
+ var _operate$action2, action, params, _operate$num4, num, _operate$successMsg2, successMsg, _operate$failMsg2, failMsg, _operate$checkOpinion, checkOpinion, checkOpinionValue, _operate$checkSign, checkSign, opinionRequire, signRequire, checkRequireFields, _operate$mask, mask, signFile, _params, _formatParams, selections, key, value, valueKey, operates, _this40$checkOptionDi, formatParams, _this40$checkOptionDi2, checkOperates, isEmptySign, checkSignUrl, data, opinion, checkOperate, submitFn;
5869
5882
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().wrap(function _callee3$(_context3) {
5870
5883
  while (1) switch (_context3.prev = _context3.next) {
5871
5884
  case 0:
5872
- // const that = this
5873
- _operate$action2 = operate.action, action = _operate$action2 === void 0 ? 'batchHandleTask' : _operate$action2, params = operate.params, _operate$num4 = operate.num, num = _operate$num4 === void 0 ? 'n' : _operate$num4, _operate$successMsg2 = operate.successMsg, successMsg = _operate$successMsg2 === void 0 ? _this40.$t('handle a successful') : _operate$successMsg2, _operate$failMsg2 = operate.failMsg, failMsg = _operate$failMsg2 === void 0 ? _this40.$t('deal with failure') : _operate$failMsg2, _operate$checkOpinion = operate.checkOpinion, checkOpinion = _operate$checkOpinion === void 0 ? false : _operate$checkOpinion, checkOpinionValue = operate.checkOpinionValue, _operate$checkSign = operate.checkSign, checkSign = _operate$checkSign === void 0 ? false : _operate$checkSign, _operate$opinionRequi = operate.opinionRequire, opinionRequire = _operate$opinionRequi === void 0 ? false : _operate$opinionRequi, _operate$signRequire = operate.signRequire, signRequire = _operate$signRequire === void 0 ? false : _operate$signRequire, _operate$mask = operate.mask, mask = _operate$mask === void 0 ? true : _operate$mask;
5885
+ _operate$action2 = operate.action, action = _operate$action2 === void 0 ? 'batchHandleTask' : _operate$action2, params = operate.params, _operate$num4 = operate.num, num = _operate$num4 === void 0 ? 'n' : _operate$num4, _operate$successMsg2 = operate.successMsg, successMsg = _operate$successMsg2 === void 0 ? _this40.$t('handle a successful') : _operate$successMsg2, _operate$failMsg2 = operate.failMsg, failMsg = _operate$failMsg2 === void 0 ? _this40.$t('deal with failure') : _operate$failMsg2, _operate$checkOpinion = operate.checkOpinion, checkOpinion = _operate$checkOpinion === void 0 ? false : _operate$checkOpinion, checkOpinionValue = operate.checkOpinionValue, _operate$checkSign = operate.checkSign, checkSign = _operate$checkSign === void 0 ? false : _operate$checkSign, opinionRequire = operate.opinionRequire, signRequire = operate.signRequire, checkRequireFields = operate.checkRequireFields, _operate$mask = operate.mask, mask = _operate$mask === void 0 ? true : _operate$mask;
5886
+ if (!checkRequireFields) checkRequireFields = [];
5887
+ if (_this40.$_.isNil(opinionRequire)) {
5888
+ opinionRequire = checkRequireFields.includes('opinion');
5889
+ }
5890
+ if (_this40.$_.isNil(signRequire)) {
5891
+ signRequire = checkRequireFields.includes('sign');
5892
+ }
5874
5893
  signFile = null; // 判断是否显示弹窗窗
5875
5894
  if (_this40.checkOptionDialogVisible) {
5876
- _context3.next = 27;
5895
+ _context3.next = 30;
5877
5896
  break;
5878
5897
  }
5879
5898
  _params = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, params);
5880
- formatParams = {};
5899
+ _formatParams = {};
5881
5900
  selections = [];
5882
5901
  if (row) {
5883
5902
  selections = [Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, row)];
@@ -5885,27 +5904,27 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5885
5904
  if (_this40.selection) selections = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(_this40.selection);
5886
5905
  }
5887
5906
  if (!(num !== 0 && num !== '0')) {
5888
- _context3.next = 17;
5907
+ _context3.next = 20;
5889
5908
  break;
5890
5909
  }
5891
5910
  if (!(selections.length === 0)) {
5892
- _context3.next = 13;
5911
+ _context3.next = 16;
5893
5912
  break;
5894
5913
  }
5895
5914
  _this40.$message.error(_this40.$t('please select a record'));
5896
5915
  return _context3.abrupt("return");
5897
- case 13:
5916
+ case 16:
5898
5917
  if (!(selections.length > 1)) {
5899
- _context3.next = 17;
5918
+ _context3.next = 20;
5900
5919
  break;
5901
5920
  }
5902
5921
  if (!(num === 1)) {
5903
- _context3.next = 17;
5922
+ _context3.next = 20;
5904
5923
  break;
5905
5924
  }
5906
5925
  _this40.$message.error(_this40.$t('Only one record can be selected'));
5907
5926
  return _context3.abrupt("return");
5908
- case 17:
5927
+ case 20:
5909
5928
  if (!_params.id) {
5910
5929
  _params.id = "#[".concat(_this40.$metaKey, "]");
5911
5930
  }
@@ -5933,17 +5952,17 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5933
5952
  return values.join(',');
5934
5953
  });
5935
5954
  }
5936
- formatParams[key] = value;
5955
+ _formatParams[key] = value;
5937
5956
  }
5938
- _context3.next = 22;
5957
+ _context3.next = 25;
5939
5958
  return _this40.getCheckOperateList(operate, selections.map(function (item) {
5940
5959
  return item[_this40.$metaKey];
5941
5960
  })[0]);
5942
- case 22:
5961
+ case 25:
5943
5962
  operates = _context3.sent;
5944
5963
  _this40.checkOptionDialogVisible = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({}, operate), {}, {
5945
5964
  checkOperates: operates,
5946
- formatParams: formatParams
5965
+ formatParams: _formatParams
5947
5966
  });
5948
5967
  if (checkSign) {
5949
5968
  if (!_this40.signQrCode) _this40.getSignQrCode();
@@ -5952,55 +5971,62 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
5952
5971
  _this40.option = checkOpinionValue;
5953
5972
  }
5954
5973
  return _context3.abrupt("return");
5955
- case 27:
5974
+ case 30:
5975
+ _this40$checkOptionDi = _this40.checkOptionDialogVisible, formatParams = _this40$checkOptionDi.formatParams, _this40$checkOptionDi2 = _this40$checkOptionDi.checkOperates, checkOperates = _this40$checkOptionDi2 === void 0 ? [] : _this40$checkOptionDi2;
5956
5976
  if (!(checkSign && _this40.signaturePad)) {
5957
- _context3.next = 36;
5977
+ _context3.next = 40;
5958
5978
  break;
5959
5979
  }
5960
5980
  // 获取是否需要签名
5961
5981
  isEmptySign = _this40.signaturePad.isEmpty();
5962
5982
  if (isEmptySign) {
5963
- _context3.next = 36;
5983
+ _context3.next = 40;
5964
5984
  break;
5965
5985
  }
5966
5986
  checkSignUrl = _this40.signaturePad.toDataURL();
5967
- _context3.next = 33;
5987
+ _context3.next = 37;
5968
5988
  return _this40.uploadSign(checkSignUrl);
5969
- case 33:
5989
+ case 37:
5970
5990
  data = _context3.sent;
5971
5991
  signFile = data.bean;
5972
5992
  if (_this40.isSaveUserSign) _this40.updateSign(signFile);
5973
- case 36:
5993
+ case 40:
5974
5994
  opinion = _this40.option;
5975
5995
  if (_this40.checkEntityWay) {
5976
- _context3.next = 40;
5996
+ _context3.next = 44;
5977
5997
  break;
5978
5998
  }
5979
5999
  _this40.$message.error('请选择审核操作');
5980
6000
  return _context3.abrupt("return");
5981
- case 40:
6001
+ case 44:
6002
+ checkOperate = checkOperates.find(function (item) {
6003
+ return item.destActivityId === _this40.checkEntityWay;
6004
+ });
6005
+ if (checkOperate && checkOperate.showCheckFields) {
6006
+ checkOpinion = checkOperate.showCheckFields.includes('opinion');
6007
+ checkSign = checkOperate.showCheckFields.includes('sign');
6008
+ }
5982
6009
  if (!(checkOpinion && opinionRequire && !opinion)) {
5983
- _context3.next = 43;
6010
+ _context3.next = 49;
5984
6011
  break;
5985
6012
  }
5986
6013
  // 必填校验
5987
6014
  _this40.$message.error('请填写审核意见');
5988
6015
  return _context3.abrupt("return");
5989
- case 43:
6016
+ case 49:
5990
6017
  if (!(checkSign && signRequire && !signFile)) {
5991
- _context3.next = 46;
6018
+ _context3.next = 52;
5992
6019
  break;
5993
6020
  }
5994
6021
  _this40.$message.error('请填写签名字段');
5995
6022
  return _context3.abrupt("return");
5996
- case 46:
6023
+ case 52:
5997
6024
  submitFn = /*#__PURE__*/function () {
5998
6025
  var _ref22 = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])( /*#__PURE__*/Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().mark(function _callee2(destActivityId) {
5999
- var formatParams, checkParams, loading;
6026
+ var checkParams, loading;
6000
6027
  return Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])().wrap(function _callee2$(_context2) {
6001
6028
  while (1) switch (_context2.prev = _context2.next) {
6002
6029
  case 0:
6003
- formatParams = _this40.checkOptionDialogVisible.formatParams;
6004
6030
  checkParams = Object(E_workspace_gitrepo_epx_group_frame_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])({
6005
6031
  action: action,
6006
6032
  entityId: _this40.$metaId,
@@ -6014,11 +6040,11 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6014
6040
  checkParams['check.SIGN'] = signFile;
6015
6041
  }
6016
6042
  if (!_this40.isRequesting) {
6017
- _context2.next = 6;
6043
+ _context2.next = 5;
6018
6044
  break;
6019
6045
  }
6020
6046
  return _context2.abrupt("return");
6021
- case 6:
6047
+ case 5:
6022
6048
  _this40.isRequesting = true;
6023
6049
  loading = null;
6024
6050
  if (mask) {
@@ -6042,7 +6068,7 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6042
6068
  _this40.$message.error(err.message || failMsg);
6043
6069
  _this40.checkEntityWay = null;
6044
6070
  });
6045
- case 10:
6071
+ case 9:
6046
6072
  case "end":
6047
6073
  return _context2.stop();
6048
6074
  }
@@ -6053,7 +6079,7 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
6053
6079
  };
6054
6080
  }();
6055
6081
  submitFn();
6056
- case 48:
6082
+ case 54:
6057
6083
  case "end":
6058
6084
  return _context3.stop();
6059
6085
  }
@@ -8321,6 +8347,15 @@ var _excluded = ["num", "printWay", "printCode", "cptName", "params"];
8321
8347
  checkSign = _ref35$checkSign === void 0 ? false : _ref35$checkSign,
8322
8348
  _ref35$checkOperates = _ref35.checkOperates,
8323
8349
  checkOperates = _ref35$checkOperates === void 0 ? [] : _ref35$checkOperates;
8350
+ if (this.checkEntityWay) {
8351
+ var operate = checkOperates.find(function (item) {
8352
+ return item.destActivityId === _this68.checkEntityWay;
8353
+ });
8354
+ if (operate && operate.showCheckFields) {
8355
+ checkOpinion = operate.showCheckFields.includes('opinion');
8356
+ checkSign = operate.showCheckFields.includes('sign');
8357
+ }
8358
+ }
8324
8359
  return h("el-dialog", {
8325
8360
  "ref": "checkDialog",
8326
8361
  "attrs": {