@kmkf-fe-packages/kmkf-work-order-service-component 2.0.78 → 2.0.79-beta.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.
@@ -46,7 +46,7 @@ export var FLOW_STATUS_V2 = {
46
46
  RETURNING: '回退中'
47
47
  };
48
48
  //不能回填的组件type
49
- export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE', 'REFUND_TYPE', 'RETURN_EXCHANGE_GOODS_REVIEW_STATUS'];
49
+ export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE', 'REFUND_TYPE', 'RETURN_EXCHANGE_GOODS_REVIEW_STATUS', 'EXECUTE_ACTION_TYPE'];
50
50
  export var verifyHandle = function verifyHandle(data, componentDtoList) {
51
51
  var _componentDtoList$fin, _componentDtoList$fin2, _data$paymentUniqueKe, _data$paymentUniqueKe2;
52
52
  var res = {
@@ -274,7 +274,25 @@ var CurrentNode = function CurrentNode(props, ref) {
274
274
  return _ref2.apply(this, arguments);
275
275
  };
276
276
  }();
277
+ var renderFail = function renderFail() {
278
+ var _currentNodeDetail$fl, _currentNodeDetail$fl2, _currentNodeDetail$fl3, _currentNodeDetail$fl4;
279
+ return currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl === void 0 ? void 0 : (_currentNodeDetail$fl2 = _currentNodeDetail$fl.eventData) === null || _currentNodeDetail$fl2 === void 0 ? void 0 : (_currentNodeDetail$fl3 = _currentNodeDetail$fl2.businessStatus) === null || _currentNodeDetail$fl3 === void 0 ? void 0 : (_currentNodeDetail$fl4 = _currentNodeDetail$fl3[0]) === null || _currentNodeDetail$fl4 === void 0 ? void 0 : _currentNodeDetail$fl4.remark;
280
+ };
281
+ var renderSuccess = function renderSuccess() {
282
+ var _currentNodeDetail$fl5, _currentNodeDetail$fl6, _currentNodeDetail$fl7, _currentNodeDetail$fl8;
283
+ return /*#__PURE__*/React.createElement("div", null, currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl5 = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl5 === void 0 ? void 0 : (_currentNodeDetail$fl6 = _currentNodeDetail$fl5.eventData) === null || _currentNodeDetail$fl6 === void 0 ? void 0 : (_currentNodeDetail$fl7 = _currentNodeDetail$fl6.otherBusinessData) === null || _currentNodeDetail$fl7 === void 0 ? void 0 : (_currentNodeDetail$fl8 = _currentNodeDetail$fl7.ruleDomainList) === null || _currentNodeDetail$fl8 === void 0 ? void 0 : _currentNodeDetail$fl8.map(function (item) {
284
+ var _item$passConditionLi;
285
+ return /*#__PURE__*/React.createElement("div", null, item.ruleName && /*#__PURE__*/React.createElement("p", null, "\u547D\u4E2D\u89C4\u5219\u540D\u79F0: ", item.ruleName), /*#__PURE__*/React.createElement("p", null, (_item$passConditionLi = item.passConditionList) === null || _item$passConditionLi === void 0 ? void 0 : _item$passConditionLi.map(function (item) {
286
+ return /*#__PURE__*/React.createElement("p", null, item);
287
+ })));
288
+ }));
289
+ };
290
+ var renderAutoNodeDetail = function renderAutoNodeDetail() {
291
+ var _currentNodeDetail$fl9, _currentNodeDetail$fl10, _currentNodeDetail$fl11, _currentNodeDetail$fl12, _currentNodeDetail$fl13, _currentNodeDetail$fl14, _currentNodeDetail$fl15, _currentNodeDetail$fl16, _currentNodeDetail$fl17, _currentNodeDetail$fl18, _currentNodeDetail$fl19, _currentNodeDetail$fl20;
292
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl9 = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl9 === void 0 ? void 0 : (_currentNodeDetail$fl10 = _currentNodeDetail$fl9.eventData) === null || _currentNodeDetail$fl10 === void 0 ? void 0 : (_currentNodeDetail$fl11 = _currentNodeDetail$fl10.businessStatus) === null || _currentNodeDetail$fl11 === void 0 ? void 0 : (_currentNodeDetail$fl12 = _currentNodeDetail$fl11[0]) === null || _currentNodeDetail$fl12 === void 0 ? void 0 : _currentNodeDetail$fl12.businessStatusDesc) && "\u6267\u884C\u72B6\u6001: ".concat(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl13 = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl13 === void 0 ? void 0 : (_currentNodeDetail$fl14 = _currentNodeDetail$fl13.eventData) === null || _currentNodeDetail$fl14 === void 0 ? void 0 : (_currentNodeDetail$fl15 = _currentNodeDetail$fl14.businessStatus) === null || _currentNodeDetail$fl15 === void 0 ? void 0 : (_currentNodeDetail$fl16 = _currentNodeDetail$fl15[0]) === null || _currentNodeDetail$fl16 === void 0 ? void 0 : _currentNodeDetail$fl16.businessStatusDesc)), [1, 2].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl17 = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl17 === void 0 ? void 0 : (_currentNodeDetail$fl18 = _currentNodeDetail$fl17.eventData) === null || _currentNodeDetail$fl18 === void 0 ? void 0 : (_currentNodeDetail$fl19 = _currentNodeDetail$fl18.businessStatus) === null || _currentNodeDetail$fl19 === void 0 ? void 0 : (_currentNodeDetail$fl20 = _currentNodeDetail$fl19[0]) === null || _currentNodeDetail$fl20 === void 0 ? void 0 : _currentNodeDetail$fl20.businessStatus) ? renderSuccess() : renderFail());
293
+ };
277
294
  var isArtificialNode = tag === 'artificial';
295
+ var isAutoNode = tag === 'auto';
278
296
  var showEdit = isArtificialNode && isCurrentNodeHandler && !readonly && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.flowStatus) === FlowStatus.COMPLETED;
279
297
  // TODO: 决策节点给后端修复数据加了一个入口
280
298
  // @ts-ignore
@@ -287,7 +305,9 @@ var CurrentNode = function CurrentNode(props, ref) {
287
305
  showRestartAutoTask: showRestartAutoTask,
288
306
  handler: isArtificialNode ? (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo13 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.completedUserName) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : (_currentNodeDetail$wo15 = _currentNodeDetail$wo14.handlerList) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15[0]) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : _currentNodeDetail$wo16.account) : '',
289
307
  showWithdraw: isArtificialNode && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo17 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.flowStatus) === FlowStatus.COMPLETED && isCurrentNodeHandler && !readonly,
290
- showReminder: isArtificialNode && [NodeStatus.WAITING, NodeStatus.STOPPING].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo18 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : _currentNodeDetail$wo18.flowStatus) && isCurrentNodeHandler && !readonly,
308
+ showReminder: isArtificialNode && [NodeStatus.WAITING, NodeStatus.STOPPING].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo18 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : _currentNodeDetail$wo18.flowStatus) &&
309
+ // isCurrentNodeHandler &&
310
+ !readonly,
291
311
  isReminder: JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo19 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : (_currentNodeDetail$wo20 = _currentNodeDetail$wo19.jsonMap) === null || _currentNodeDetail$wo20 === void 0 ? void 0 : _currentNodeDetail$wo20.flowTags) || '[]').includes('REMINDER'),
292
312
  handleWithdraw: handleWithdraw,
293
313
  handleReminder: onReminder,
@@ -327,6 +347,6 @@ var CurrentNode = function CurrentNode(props, ref) {
327
347
  flowAllShowHideRules: allShowHideRules,
328
348
  firstOrderBackfill: flowStatus !== FlowStatus.COMPLETED,
329
349
  autoSubmit: autoSubmit
330
- }))));
350
+ })), isAutoNode && renderAutoNodeDetail()));
331
351
  };
332
352
  export default /*#__PURE__*/forwardRef(CurrentNode);
@@ -33,7 +33,7 @@ import { currentUserHasOperatorAuth } from "../../common";
33
33
  import { useSelector } from "../../context/useSelector";
34
34
  import { Context } from "../../context";
35
35
  var NodeItem = function NodeItem(props) {
36
- var _data$data10, _data$data11, _data$data11$workOrde, _data$data12, _data$data12$workOrde, _data$data13, _data$data13$nodeInfo, _data$data14, _data$data15, _data$data15$nodeInfo, _data$data16, _data$data17, _data$data18, _data$data18$workOrde, _data$data19;
36
+ var _data$data15, _data$data16, _data$data16$workOrde, _data$data17, _data$data17$workOrde, _data$data18, _data$data18$nodeInfo, _data$data19, _data$data20, _data$data20$nodeInfo, _data$data21, _data$data22, _data$data23, _data$data23$workOrde, _data$data24;
37
37
  var tag = props.tag,
38
38
  nodeId = props.nodeId,
39
39
  nodeName = props.nodeName,
@@ -69,6 +69,7 @@ var NodeItem = function NodeItem(props) {
69
69
  setEditing = _useState4[1];
70
70
  // 是否是人工任务
71
71
  var isArtificialNode = tag === 'artificial';
72
+ var isAutoNode = tag === 'auto';
72
73
  var flowStatus = useSelector(selectFlowStatus);
73
74
  var allShowHideRules = useSelector(selectCurrentFlowAllShowHideRules);
74
75
  var assistantMap = useSelector(selectNodeAssistantMap);
@@ -254,14 +255,32 @@ var NodeItem = function NodeItem(props) {
254
255
  // dispatch(setLabelList(data?.map(item => item?.labelShowName) || []))
255
256
  // }
256
257
  // };
257
- var _calcWorkOrderList = calcWorkOrderList([(data === null || data === void 0 ? void 0 : (_data$data10 = data.data) === null || _data$data10 === void 0 ? void 0 : _data$data10.workOrder) || {}], [].concat(_toConsumableArray((data === null || data === void 0 ? void 0 : (_data$data11 = data.data) === null || _data$data11 === void 0 ? void 0 : (_data$data11$workOrde = _data$data11.workOrderTemplateInfo) === null || _data$data11$workOrde === void 0 ? void 0 : _data$data11$workOrde.preNodeComponentDtoList) || []), _toConsumableArray((data === null || data === void 0 ? void 0 : (_data$data12 = data.data) === null || _data$data12 === void 0 ? void 0 : (_data$data12$workOrde = _data$data12.workOrderTemplateInfo) === null || _data$data12$workOrde === void 0 ? void 0 : _data$data12$workOrde.componentDtoList) || []))),
258
+
259
+ var renderFail = function renderFail() {
260
+ var _data$data10, _data$data10$flowEven, _data$data10$flowEven2, _data$data10$flowEven3, _data$data10$flowEven4;
261
+ return data === null || data === void 0 ? void 0 : (_data$data10 = data.data) === null || _data$data10 === void 0 ? void 0 : (_data$data10$flowEven = _data$data10.flowEventData) === null || _data$data10$flowEven === void 0 ? void 0 : (_data$data10$flowEven2 = _data$data10$flowEven.eventData) === null || _data$data10$flowEven2 === void 0 ? void 0 : (_data$data10$flowEven3 = _data$data10$flowEven2.businessStatus) === null || _data$data10$flowEven3 === void 0 ? void 0 : (_data$data10$flowEven4 = _data$data10$flowEven3[0]) === null || _data$data10$flowEven4 === void 0 ? void 0 : _data$data10$flowEven4.remark;
262
+ };
263
+ var renderSuccess = function renderSuccess() {
264
+ var _data$data11, _data$data11$flowEven, _data$data11$flowEven2, _data$data11$flowEven3, _data$data11$flowEven4;
265
+ return /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$data11 = data.data) === null || _data$data11 === void 0 ? void 0 : (_data$data11$flowEven = _data$data11.flowEventData) === null || _data$data11$flowEven === void 0 ? void 0 : (_data$data11$flowEven2 = _data$data11$flowEven.eventData) === null || _data$data11$flowEven2 === void 0 ? void 0 : (_data$data11$flowEven3 = _data$data11$flowEven2.otherBusinessData) === null || _data$data11$flowEven3 === void 0 ? void 0 : (_data$data11$flowEven4 = _data$data11$flowEven3.ruleDomainList) === null || _data$data11$flowEven4 === void 0 ? void 0 : _data$data11$flowEven4.map(function (item) {
266
+ var _item$passConditionLi;
267
+ return /*#__PURE__*/React.createElement("div", null, item.ruleName && /*#__PURE__*/React.createElement("p", null, "\u547D\u4E2D\u89C4\u5219\u540D\u79F0: ", item.ruleName), /*#__PURE__*/React.createElement("p", null, (_item$passConditionLi = item.passConditionList) === null || _item$passConditionLi === void 0 ? void 0 : _item$passConditionLi.map(function (item) {
268
+ return /*#__PURE__*/React.createElement("p", null, item);
269
+ })));
270
+ }));
271
+ };
272
+ var renderAutoNodeDetail = function renderAutoNodeDetail() {
273
+ var _data$data12, _data$data12$flowEven, _data$data12$flowEven2, _data$data12$flowEven3, _data$data12$flowEven4, _data$data13, _data$data13$flowEven, _data$data13$flowEven2, _data$data13$flowEven3, _data$data13$flowEven4, _data$data14, _data$data14$flowEven, _data$data14$flowEven2, _data$data14$flowEven3, _data$data14$flowEven4;
274
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, (data === null || data === void 0 ? void 0 : (_data$data12 = data.data) === null || _data$data12 === void 0 ? void 0 : (_data$data12$flowEven = _data$data12.flowEventData) === null || _data$data12$flowEven === void 0 ? void 0 : (_data$data12$flowEven2 = _data$data12$flowEven.eventData) === null || _data$data12$flowEven2 === void 0 ? void 0 : (_data$data12$flowEven3 = _data$data12$flowEven2.businessStatus) === null || _data$data12$flowEven3 === void 0 ? void 0 : (_data$data12$flowEven4 = _data$data12$flowEven3[0]) === null || _data$data12$flowEven4 === void 0 ? void 0 : _data$data12$flowEven4.businessStatusDesc) && "\u6267\u884C\u72B6\u6001: ".concat(data === null || data === void 0 ? void 0 : (_data$data13 = data.data) === null || _data$data13 === void 0 ? void 0 : (_data$data13$flowEven = _data$data13.flowEventData) === null || _data$data13$flowEven === void 0 ? void 0 : (_data$data13$flowEven2 = _data$data13$flowEven.eventData) === null || _data$data13$flowEven2 === void 0 ? void 0 : (_data$data13$flowEven3 = _data$data13$flowEven2.businessStatus) === null || _data$data13$flowEven3 === void 0 ? void 0 : (_data$data13$flowEven4 = _data$data13$flowEven3[0]) === null || _data$data13$flowEven4 === void 0 ? void 0 : _data$data13$flowEven4.businessStatusDesc)), [1, 2].includes(data === null || data === void 0 ? void 0 : (_data$data14 = data.data) === null || _data$data14 === void 0 ? void 0 : (_data$data14$flowEven = _data$data14.flowEventData) === null || _data$data14$flowEven === void 0 ? void 0 : (_data$data14$flowEven2 = _data$data14$flowEven.eventData) === null || _data$data14$flowEven2 === void 0 ? void 0 : (_data$data14$flowEven3 = _data$data14$flowEven2.businessStatus) === null || _data$data14$flowEven3 === void 0 ? void 0 : (_data$data14$flowEven4 = _data$data14$flowEven3[0]) === null || _data$data14$flowEven4 === void 0 ? void 0 : _data$data14$flowEven4.businessStatus) ? renderSuccess() : renderFail());
275
+ };
276
+ var _calcWorkOrderList = calcWorkOrderList([(data === null || data === void 0 ? void 0 : (_data$data15 = data.data) === null || _data$data15 === void 0 ? void 0 : _data$data15.workOrder) || {}], [].concat(_toConsumableArray((data === null || data === void 0 ? void 0 : (_data$data16 = data.data) === null || _data$data16 === void 0 ? void 0 : (_data$data16$workOrde = _data$data16.workOrderTemplateInfo) === null || _data$data16$workOrde === void 0 ? void 0 : _data$data16$workOrde.preNodeComponentDtoList) || []), _toConsumableArray((data === null || data === void 0 ? void 0 : (_data$data17 = data.data) === null || _data$data17 === void 0 ? void 0 : (_data$data17$workOrde = _data$data17.workOrderTemplateInfo) === null || _data$data17$workOrde === void 0 ? void 0 : _data$data17$workOrde.componentDtoList) || []))),
258
277
  _calcWorkOrderList2 = _slicedToArray(_calcWorkOrderList, 1),
259
278
  transData = _calcWorkOrderList2[0];
260
279
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Header, {
261
280
  tag: tag,
262
281
  nodeName: nodeName,
263
282
  editing: editing,
264
- showLook: isArtificialNode,
283
+ showLook: isArtificialNode || isAutoNode,
265
284
  showEdit: showEdit,
266
285
  opening: open,
267
286
  handleLook: handleOpen,
@@ -282,18 +301,18 @@ var NodeItem = function NodeItem(props) {
282
301
  display: open ? 'block' : 'none',
283
302
  marginTop: '16px'
284
303
  }
285
- }, [NodeType.START_NODE, NodeType.EXECUTE_NODE].includes(data === null || data === void 0 ? void 0 : (_data$data13 = data.data) === null || _data$data13 === void 0 ? void 0 : (_data$data13$nodeInfo = _data$data13.nodeInfo) === null || _data$data13$nodeInfo === void 0 ? void 0 : _data$data13$nodeInfo.nodeType) && (data === null || data === void 0 ? void 0 : (_data$data14 = data.data) === null || _data$data14 === void 0 ? void 0 : _data$data14.workOrderTemplateInfo) && /*#__PURE__*/React.createElement("div", null, editing ? /*#__PURE__*/React.createElement(FormRender, {
286
- isShowShopList: NodeType.START_NODE === (data === null || data === void 0 ? void 0 : (_data$data15 = data.data) === null || _data$data15 === void 0 ? void 0 : (_data$data15$nodeInfo = _data$data15.nodeInfo) === null || _data$data15$nodeInfo === void 0 ? void 0 : _data$data15$nodeInfo.nodeType) && PlatForm.PC === plat.platform,
304
+ }, [NodeType.START_NODE, NodeType.EXECUTE_NODE].includes(data === null || data === void 0 ? void 0 : (_data$data18 = data.data) === null || _data$data18 === void 0 ? void 0 : (_data$data18$nodeInfo = _data$data18.nodeInfo) === null || _data$data18$nodeInfo === void 0 ? void 0 : _data$data18$nodeInfo.nodeType) && (data === null || data === void 0 ? void 0 : (_data$data19 = data.data) === null || _data$data19 === void 0 ? void 0 : _data$data19.workOrderTemplateInfo) && /*#__PURE__*/React.createElement("div", null, editing ? /*#__PURE__*/React.createElement(FormRender, {
305
+ isShowShopList: NodeType.START_NODE === (data === null || data === void 0 ? void 0 : (_data$data20 = data.data) === null || _data$data20 === void 0 ? void 0 : (_data$data20$nodeInfo = _data$data20.nodeInfo) === null || _data$data20$nodeInfo === void 0 ? void 0 : _data$data20$nodeInfo.nodeType) && PlatForm.PC === plat.platform,
287
306
  plat: plat,
288
- templateDetail: data === null || data === void 0 ? void 0 : (_data$data16 = data.data) === null || _data$data16 === void 0 ? void 0 : _data$data16.workOrderTemplateInfo,
307
+ templateDetail: data === null || data === void 0 ? void 0 : (_data$data21 = data.data) === null || _data$data21 === void 0 ? void 0 : _data$data21.workOrderTemplateInfo,
289
308
  shopList: shopList,
290
- record: data === null || data === void 0 ? void 0 : (_data$data17 = data.data) === null || _data$data17 === void 0 ? void 0 : _data$data17.workOrder,
309
+ record: data === null || data === void 0 ? void 0 : (_data$data22 = data.data) === null || _data$data22 === void 0 ? void 0 : _data$data22.workOrder,
291
310
  accountName: plat.accountName,
292
311
  form: form,
293
312
  onOpenWangWang: onOpenWangWang,
294
313
  onJumpPage: onJumpPage,
295
314
  look: !editing || flowStatus === FlowStatus.STOPPING,
296
- shopId: data === null || data === void 0 ? void 0 : (_data$data18 = data.data) === null || _data$data18 === void 0 ? void 0 : (_data$data18$workOrde = _data$data18.workOrder) === null || _data$data18$workOrde === void 0 ? void 0 : _data$data18$workOrde.shopId,
315
+ shopId: data === null || data === void 0 ? void 0 : (_data$data23 = data.data) === null || _data$data23 === void 0 ? void 0 : (_data$data23$workOrde = _data$data23.workOrder) === null || _data$data23$workOrde === void 0 ? void 0 : _data$data23$workOrde.shopId,
297
316
  formProps: {
298
317
  className: 'customizeFormModalClassName',
299
318
  layout: 'vertical'
@@ -303,10 +322,10 @@ var NodeItem = function NodeItem(props) {
303
322
  firstOrderBackfill: false // TODO: 前面节点必然是已完成状态,已完成状态不再调用订单反填
304
323
  // handleChangeTradeId={handleChangeTradeId}
305
324
  }) : /*#__PURE__*/React.createElement(RenderDetail, {
306
- workOrderTemplateInfo: data === null || data === void 0 ? void 0 : (_data$data19 = data.data) === null || _data$data19 === void 0 ? void 0 : _data$data19.workOrderTemplateInfo,
325
+ workOrderTemplateInfo: data === null || data === void 0 ? void 0 : (_data$data24 = data.data) === null || _data$data24 === void 0 ? void 0 : _data$data24.workOrderTemplateInfo,
307
326
  transData: transData,
308
327
  platform: plat.platform,
309
328
  onOpenWangWang: onOpenWangWang
310
- }))));
329
+ })), isAutoNode && renderAutoNodeDetail()));
311
330
  };
312
331
  export default NodeItem;
@@ -243,7 +243,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
243
243
  // 保存
244
244
  var handleSave = /*#__PURE__*/function () {
245
245
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
246
- var _currentNodeDetail$wo4, update, formData, params, res, _currentNodeDetail$wo5;
246
+ var _currentNodeDetail$wo5, update, formData, _currentNodeDetail$wo4, result, params, res, _currentNodeDetail$wo6;
247
247
  return _regeneratorRuntime().wrap(function _callee$(_context) {
248
248
  while (1) switch (_context.prev = _context.next) {
249
249
  case 0:
@@ -260,14 +260,36 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
260
260
  payload: true
261
261
  });
262
262
  update = !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder); // 如果workOrder有值的情况下,表示我们是更新操作
263
+ formData = {};
264
+ if (!(flowTemplateType === 'SINGLE_PAGE')) {
265
+ _context.next = 18;
266
+ break;
267
+ }
268
+ _context.next = 10;
269
+ return form.validateFields();
270
+ case 10:
271
+ formData = _context.sent;
272
+ result = verifyHandle(formData, (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo4 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo4 === void 0 ? void 0 : _currentNodeDetail$wo4.componentDtoList) || []);
273
+ if (result.success) {
274
+ _context.next = 16;
275
+ break;
276
+ }
277
+ message.error(result.message);
278
+ saveRequestUnlock();
279
+ return _context.abrupt("return");
280
+ case 16:
281
+ _context.next = 19;
282
+ break;
283
+ case 18:
263
284
  formData = form.getFieldsValue();
285
+ case 19:
264
286
  if (formData.shopId) {
265
- _context.next = 10;
287
+ _context.next = 22;
266
288
  break;
267
289
  }
268
290
  saveRequestUnlock();
269
291
  return _context.abrupt("return", message.error('请选择店铺'));
270
- case 10:
292
+ case 22:
271
293
  params = submitParams({
272
294
  update: update,
273
295
  formData: formData,
@@ -276,16 +298,15 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
276
298
  operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
277
299
  flowTemplateId: flowTemplateId,
278
300
  flowWorkOrderId: flowWorkOrderIdState,
279
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo4 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo4 === void 0 ? void 0 : _currentNodeDetail$wo4.id
301
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo5 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo5 === void 0 ? void 0 : _currentNodeDetail$wo5.id
280
302
  }),
281
303
  shopUniqueKey: get(find(shopList, function (s) {
282
304
  return s.shopId === formData.shopId;
283
305
  }), 'accessToken', '')
284
- }); // console.log(params);
285
- // return;
286
- _context.next = 13;
306
+ });
307
+ _context.next = 25;
287
308
  return saveWorkOrder(params);
288
- case 13:
309
+ case 25:
289
310
  res = _context.sent;
290
311
  saveRequestUnlock();
291
312
  if (res.success) {
@@ -303,7 +324,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
303
324
  }
304
325
  //删除缓存的订单信息
305
326
  deleteCacheOrder({
306
- templateList: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo5 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo5 === void 0 ? void 0 : _currentNodeDetail$wo5.componentDtoList,
327
+ templateList: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo6 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo6 === void 0 ? void 0 : _currentNodeDetail$wo6.componentDtoList,
307
328
  values: formData,
308
329
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrderTemplateInfo.flowTemplateConfig.nodeId,
309
330
  flowTemplateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrderTemplateInfo.flowTemplateConfig.flowTemplateId,
@@ -311,17 +332,17 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
311
332
  unDeleteOrderInfo: true
312
333
  });
313
334
  }
314
- _context.next = 21;
335
+ _context.next = 33;
315
336
  break;
316
- case 18:
317
- _context.prev = 18;
337
+ case 30:
338
+ _context.prev = 30;
318
339
  _context.t0 = _context["catch"](0);
319
340
  saveRequestUnlock();
320
- case 21:
341
+ case 33:
321
342
  case "end":
322
343
  return _context.stop();
323
344
  }
324
- }, _callee, null, [[0, 18]]);
345
+ }, _callee, null, [[0, 30]]);
325
346
  }));
326
347
  return function handleSave() {
327
348
  return _ref.apply(this, arguments);
@@ -331,7 +352,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
331
352
  // 开启
332
353
  var handleStart = /*#__PURE__*/function () {
333
354
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
334
- var _currentNodeDetail$no3, _currentNodeDetail$wo6, _res$data4, _res$data4$failList, res, _res$data5, _res$data5$failList, _res$data5$failList$;
355
+ var _currentNodeDetail$no3, _currentNodeDetail$wo7, _res$data4, _res$data4$failList, res, _res$data5, _res$data5$failList, _res$data5$failList$;
335
356
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
336
357
  while (1) switch (_context2.prev = _context2.next) {
337
358
  case 0:
@@ -342,7 +363,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
342
363
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no3 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no3 === void 0 ? void 0 : _currentNodeDetail$no3.id,
343
364
  flowWorkOrderId: flowWorkOrderIdState,
344
365
  flowTemplateId: flowTemplateId,
345
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo6 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo6 === void 0 ? void 0 : _currentNodeDetail$wo6.id
366
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo7 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo7 === void 0 ? void 0 : _currentNodeDetail$wo7.id
346
367
  })
347
368
  });
348
369
  case 3:
@@ -416,7 +437,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
416
437
  // 提交
417
438
  var handleSubmit = /*#__PURE__*/function () {
418
439
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
419
- var _currentNodeDetail$wo7, _currentNodeDetail$wo8, formData, result, params, res, _currentNodeDetail$wo9;
440
+ var _currentNodeDetail$wo8, _currentNodeDetail$wo9, formData, result, params, res, _currentNodeDetail$wo10;
420
441
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
421
442
  while (1) switch (_context4.prev = _context4.next) {
422
443
  case 0:
@@ -436,7 +457,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
436
457
  return form.validateFields();
437
458
  case 7:
438
459
  formData = _context4.sent;
439
- result = verifyHandle(formData, (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo7 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo7 === void 0 ? void 0 : _currentNodeDetail$wo7.componentDtoList) || []);
460
+ result = verifyHandle(formData, (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo8 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : _currentNodeDetail$wo8.componentDtoList) || []);
440
461
  if (result.success) {
441
462
  _context4.next = 13;
442
463
  break;
@@ -453,7 +474,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
453
474
  operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
454
475
  flowTemplateId: flowTemplateId,
455
476
  flowWorkOrderId: flowWorkOrderIdState,
456
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo8 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : _currentNodeDetail$wo8.id
477
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo9 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.id
457
478
  }),
458
479
  shopUniqueKey: get(find(shopList, function (s) {
459
480
  return s.shopId === formData.shopId;
@@ -477,7 +498,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
477
498
  handleSuccessCallBack('submit');
478
499
  //删除缓存的订单信息
479
500
  deleteCacheOrder({
480
- templateList: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo9 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.componentDtoList,
501
+ templateList: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.componentDtoList,
481
502
  values: formData,
482
503
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrderTemplateInfo.flowTemplateConfig.nodeId,
483
504
  flowTemplateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrderTemplateInfo.flowTemplateConfig.flowTemplateId,
@@ -559,9 +580,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
559
580
  }
560
581
  };
561
582
  var checkOnlySubmit = function checkOnlySubmit() {
562
- var _currentNodeRef$curre, _currentNodeDetail$wo10;
583
+ var _currentNodeRef$curre, _currentNodeDetail$wo11;
563
584
  var replaceValue = currentNodeRef === null || currentNodeRef === void 0 ? void 0 : (_currentNodeRef$curre = currentNodeRef.current) === null || _currentNodeRef$curre === void 0 ? void 0 : _currentNodeRef$curre.getReplaceValue();
564
- var componentList = ((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.componentDtoList) || []).filter(function (t) {
585
+ var componentList = ((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.componentDtoList) || []).filter(function (t) {
565
586
  var _t$componentConfig;
566
587
  return (_t$componentConfig = t.componentConfig) === null || _t$componentConfig === void 0 ? void 0 : _t$componentConfig.repeatCheck;
567
588
  });
@@ -642,7 +663,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
642
663
  // 暂停工单
643
664
  var handleStop = /*#__PURE__*/function () {
644
665
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(formData) {
645
- var _currentNodeDetail$no4, _currentNodeDetail$wo11, _res$data6, _res$data6$failList, res, _res$data7, _res$data7$failList, _res$data7$failList$;
666
+ var _currentNodeDetail$no4, _currentNodeDetail$wo12, _res$data6, _res$data6$failList, res, _res$data7, _res$data7$failList, _res$data7$failList$;
646
667
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
647
668
  while (1) switch (_context6.prev = _context6.next) {
648
669
  case 0:
@@ -653,7 +674,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
653
674
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no4 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no4 === void 0 ? void 0 : _currentNodeDetail$no4.id,
654
675
  flowWorkOrderId: flowWorkOrderIdState,
655
676
  flowTemplateId: flowTemplateId,
656
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.id
677
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.id
657
678
  })
658
679
  }));
659
680
  case 3:
@@ -694,19 +715,19 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
694
715
  // 关闭工单
695
716
  var handleClose = /*#__PURE__*/function () {
696
717
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(formData, form) {
697
- var _currentNodeDetail$wo12, _currentNodeDetail$no5, _currentNodeDetail$wo13, _res$data8, _res$data8$failList, res, _res$data9, _res$data9$failList, _res$data9$failList$;
718
+ var _currentNodeDetail$wo13, _currentNodeDetail$no5, _currentNodeDetail$wo14, _res$data8, _res$data8$failList, res, _res$data9, _res$data9$failList, _res$data9$failList$;
698
719
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
699
720
  while (1) switch (_context7.prev = _context7.next) {
700
721
  case 0:
701
722
  _context7.prev = 0;
702
723
  _context7.next = 3;
703
724
  return closeWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
704
- workOrderFlowStatus: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.flowStatus,
725
+ workOrderFlowStatus: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo13 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.flowStatus,
705
726
  operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
706
727
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no5 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no5 === void 0 ? void 0 : _currentNodeDetail$no5.id,
707
728
  flowWorkOrderId: flowWorkOrderIdState,
708
729
  flowTemplateId: flowTemplateId,
709
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo13 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.id
730
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : _currentNodeDetail$wo14.id
710
731
  })
711
732
  }));
712
733
  case 3:
@@ -743,7 +764,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
743
764
  // 转交处理人
744
765
  var handleForWard = /*#__PURE__*/function () {
745
766
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(formData) {
746
- var _currentNodeDetail$no6, _currentNodeDetail$wo14, _res$data10, _res$data10$failList, res, _res$data11, _res$data11$failList, _res$data11$failList$;
767
+ var _currentNodeDetail$no6, _currentNodeDetail$wo15, _res$data10, _res$data10$failList, res, _res$data11, _res$data11$failList, _res$data11$failList$;
747
768
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
748
769
  while (1) switch (_context8.prev = _context8.next) {
749
770
  case 0:
@@ -754,7 +775,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
754
775
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no6 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no6 === void 0 ? void 0 : _currentNodeDetail$no6.id,
755
776
  flowWorkOrderId: flowWorkOrderIdState,
756
777
  flowTemplateId: flowTemplateId,
757
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : _currentNodeDetail$wo14.id
778
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo15 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : _currentNodeDetail$wo15.id
758
779
  })
759
780
  }));
760
781
  case 3:
@@ -791,7 +812,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
791
812
  // 驳回
792
813
  var handleReturnWorkOrder = /*#__PURE__*/function () {
793
814
  var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(formData) {
794
- var handleFail, handleSuccess, handleTimeOut, _currentNodeDetail$no7, _currentNodeDetail$wo15, res, _res$data$failList$0$, _res$data12, _res$data12$failList, _res$data12$failList$;
815
+ var handleFail, handleSuccess, handleTimeOut, _currentNodeDetail$no7, _currentNodeDetail$wo16, res, _res$data$failList$0$, _res$data12, _res$data12$failList, _res$data12$failList$;
795
816
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
796
817
  while (1) switch (_context9.prev = _context9.next) {
797
818
  case 0:
@@ -834,7 +855,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
834
855
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no7 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no7 === void 0 ? void 0 : _currentNodeDetail$no7.id,
835
856
  flowWorkOrderId: flowWorkOrderIdState,
836
857
  flowTemplateId: flowTemplateId,
837
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo15 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : _currentNodeDetail$wo15.id
858
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo16 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : _currentNodeDetail$wo16.id
838
859
  })
839
860
  }));
840
861
  case 7:
@@ -880,7 +901,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
880
901
  // 撤回
881
902
  var handleWithdraw = /*#__PURE__*/function () {
882
903
  var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(formData) {
883
- var handleFail, handleSuccess, handleTimeOut, _currentNodeDetail$no8, _currentNodeDetail$wo16, res, _res$data$failList$0$2, _res$data13, _res$data13$failList, _res$data13$failList$;
904
+ var handleFail, handleSuccess, handleTimeOut, _currentNodeDetail$no8, _currentNodeDetail$wo17, res, _res$data$failList$0$2, _res$data13, _res$data13$failList, _res$data13$failList$;
884
905
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
885
906
  while (1) switch (_context10.prev = _context10.next) {
886
907
  case 0:
@@ -924,7 +945,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
924
945
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no8 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no8 === void 0 ? void 0 : _currentNodeDetail$no8.id,
925
946
  flowWorkOrderId: flowWorkOrderIdState,
926
947
  flowTemplateId: flowTemplateId,
927
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo16 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : _currentNodeDetail$wo16.id
948
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo17 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.id
928
949
  })
929
950
  }));
930
951
  case 7:
@@ -970,7 +991,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
970
991
  //催单
971
992
  var handleReminder = /*#__PURE__*/function () {
972
993
  var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(type) {
973
- var _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$no9, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$wo22, _currentNodeDetail$no10, _currentNodeDetail$wo23, api, flowTags, newFlowTags, params, res;
994
+ var _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$no9, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$wo22, _currentNodeDetail$wo23, _currentNodeDetail$no10, _currentNodeDetail$wo24, api, flowTags, newFlowTags, params, res;
974
995
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
975
996
  while (1) switch (_context11.prev = _context11.next) {
976
997
  case 0:
@@ -980,20 +1001,20 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
980
1001
  payload: true
981
1002
  });
982
1003
  api = type === 'reminder' ? reminder : cancelReminder;
983
- flowTags = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo17 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : (_currentNodeDetail$wo18 = _currentNodeDetail$wo17.jsonMap) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : _currentNodeDetail$wo18.flowTags) || '[]');
1004
+ flowTags = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo18 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : (_currentNodeDetail$wo19 = _currentNodeDetail$wo18.jsonMap) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : _currentNodeDetail$wo19.flowTags) || '[]');
984
1005
  newFlowTags = type === 'reminder' ? flowTags.concat('REMINDER') : flowTags.filter(function (t) {
985
1006
  return t !== 'REMINDER';
986
1007
  });
987
1008
  params = {
988
1009
  updateInfo: {
989
1010
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no9 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no9 === void 0 ? void 0 : _currentNodeDetail$no9.id,
990
- templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo19 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : _currentNodeDetail$wo19.templateId,
991
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo20 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo20 === void 0 ? void 0 : _currentNodeDetail$wo20.id,
1011
+ templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo20 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo20 === void 0 ? void 0 : _currentNodeDetail$wo20.templateId,
1012
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo21 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo21 === void 0 ? void 0 : _currentNodeDetail$wo21.id,
992
1013
  updateList: [{
993
1014
  dataKey: 'flowTags',
994
1015
  name: '标签',
995
1016
  dataValue: newFlowTags,
996
- oldValue: JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo21 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo21 === void 0 ? void 0 : (_currentNodeDetail$wo22 = _currentNodeDetail$wo21.jsonMap) === null || _currentNodeDetail$wo22 === void 0 ? void 0 : _currentNodeDetail$wo22.flowTags) || '[]')
1017
+ oldValue: JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo22 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo22 === void 0 ? void 0 : (_currentNodeDetail$wo23 = _currentNodeDetail$wo22.jsonMap) === null || _currentNodeDetail$wo23 === void 0 ? void 0 : _currentNodeDetail$wo23.flowTags) || '[]')
997
1018
  }],
998
1019
  updateTime: operateParams === null || operateParams === void 0 ? void 0 : operateParams.workOrderUpdateTime,
999
1020
  needTransForm: false
@@ -1001,7 +1022,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1001
1022
  operateParams: {
1002
1023
  nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no10 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no10 === void 0 ? void 0 : _currentNodeDetail$no10.id,
1003
1024
  flowWorkOrderId: flowWorkOrderIdState,
1004
- workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo23 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo23 === void 0 ? void 0 : _currentNodeDetail$wo23.id,
1025
+ workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo24 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo24 === void 0 ? void 0 : _currentNodeDetail$wo24.id,
1005
1026
  flowTemplateId: flowTemplateId,
1006
1027
  workOrderUpdateTime: operateParams === null || operateParams === void 0 ? void 0 : operateParams.workOrderUpdateTime,
1007
1028
  flowWorkOrderUpdateTime: operateParams === null || operateParams === void 0 ? void 0 : operateParams.flowWorkOrderUpdateTime
@@ -1090,7 +1111,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1090
1111
  }, [plat]);
1091
1112
  useEffect(function () {
1092
1113
  if (autoSubmit && !isNull(currentNodeDetail)) {
1093
- var _currentNodeDetail$wo24;
1114
+ var _currentNodeDetail$wo25;
1094
1115
  // TODO: 兼容后端一些时候生成的数据异常情况,防止批量提交出现卡顿不执行情况
1095
1116
  if (isEmpty(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder) && typeof callbackAutoSubmitResult === 'function') {
1096
1117
  return callbackAutoSubmitResult({
@@ -1098,7 +1119,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1098
1119
  message: '当前流程工单无工单数据,请联系实施处理'
1099
1120
  });
1100
1121
  }
1101
- if (flowWorkOrderId === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo24 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo24 === void 0 ? void 0 : _currentNodeDetail$wo24.flowWorkOrderId)) {
1122
+ if (flowWorkOrderId === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo25 === void 0 ? void 0 : _currentNodeDetail$wo25.flowWorkOrderId)) {
1102
1123
  setTimeout(function () {
1103
1124
  handleSubmit();
1104
1125
  }, 0);
@@ -1106,13 +1127,13 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1106
1127
  }
1107
1128
  }, [currentNodeDetail]);
1108
1129
  var isCurrentNodeHandler = useMemo(function () {
1109
- var _currentNodeDetail$no11, _currentNodeDetail$no12, _currentNodeDetail$no13, _currentNodeDetail$no14, _currentNodeDetail$no15, _currentNodeDetail$no16, _currentNodeDetail$wo25, _currentNodeDetail$no17, _currentNodeDetail$no18;
1130
+ var _currentNodeDetail$no11, _currentNodeDetail$no12, _currentNodeDetail$no13, _currentNodeDetail$no14, _currentNodeDetail$no15, _currentNodeDetail$no16, _currentNodeDetail$wo26, _currentNodeDetail$no17, _currentNodeDetail$no18;
1110
1131
  return currentUserHasOperatorAuth({
1111
1132
  assistantList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no11 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no11 === void 0 ? void 0 : _currentNodeDetail$no11.id) && assistantMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no12 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no12 === void 0 ? void 0 : _currentNodeDetail$no12.id] || [],
1112
1133
  currentUserKey: plat.userKey,
1113
1134
  staffIds: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no13 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no13 === void 0 ? void 0 : (_currentNodeDetail$no14 = _currentNodeDetail$no13.assistants) === null || _currentNodeDetail$no14 === void 0 ? void 0 : _currentNodeDetail$no14.staffIds) || [],
1114
1135
  operateDataPermission: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no15 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no15 === void 0 ? void 0 : (_currentNodeDetail$no16 = _currentNodeDetail$no15.assistants) === null || _currentNodeDetail$no16 === void 0 ? void 0 : _currentNodeDetail$no16.operateDataPermission,
1115
- handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo25 === void 0 ? void 0 : _currentNodeDetail$wo25.handlerList) || [],
1136
+ handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo26 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo26 === void 0 ? void 0 : _currentNodeDetail$wo26.handlerList) || [],
1116
1137
  isAllStaff: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no17 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no17 === void 0 ? void 0 : (_currentNodeDetail$no18 = _currentNodeDetail$no17.assistants) === null || _currentNodeDetail$no18 === void 0 ? void 0 : _currentNodeDetail$no18.isAllStaff
1117
1138
  });
1118
1139
  }, [currentNodeDetail, plat, assistantMap]);
@@ -1121,9 +1142,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1121
1142
  return item.accessToken === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no19 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no19 === void 0 ? void 0 : (_currentNodeDetail$no20 = _currentNodeDetail$no19.relationEvent) === null || _currentNodeDetail$no20 === void 0 ? void 0 : _currentNodeDetail$no20.defaultShopUniqueKey);
1122
1143
  })) === null || _shopList$find === void 0 ? void 0 : _shopList$find.shopId;
1123
1144
  var ReportOrderRender = function ReportOrderRender(props) {
1124
- var _currentNodeDetail$wo26, _currentNodeDetail$wo27;
1145
+ var _currentNodeDetail$wo27, _currentNodeDetail$wo28;
1125
1146
  var details = props.details;
1126
- var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo26 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo26 === void 0 ? void 0 : _currentNodeDetail$wo26.componentDtoList.filter(function (t) {
1147
+ var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo27 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo27 === void 0 ? void 0 : _currentNodeDetail$wo27.componentDtoList.filter(function (t) {
1127
1148
  return !CANNOT_BACK_FILL.includes(t.workOrderComponentType || '');
1128
1149
  });
1129
1150
  //获取可以返填的组件值
@@ -1131,7 +1152,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1131
1152
  _calcWorkOrderList2 = _slicedToArray(_calcWorkOrderList, 1),
1132
1153
  transData = _calcWorkOrderList2[0];
1133
1154
  //获取表单显示值
1134
- var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo27 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo27 === void 0 ? void 0 : _currentNodeDetail$wo27.componentDtoList),
1155
+ var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo28 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo28 === void 0 ? void 0 : _currentNodeDetail$wo28.componentDtoList),
1135
1156
  _calcWorkOrderList4 = _slicedToArray(_calcWorkOrderList3, 1),
1136
1157
  transDataall = _calcWorkOrderList4[0];
1137
1158
  return /*#__PURE__*/React.createElement("div", {
@@ -111,3 +111,11 @@
111
111
  .fillButton {
112
112
  display: contents;
113
113
  }
114
+
115
+
116
+ @media screen and (max-width: 520px) {
117
+ .ant-image-preview-operations .ant-image-preview-operations-progress {
118
+ left: 0;
119
+ transform: translateX(10px);
120
+ }
121
+ }
@@ -4,6 +4,7 @@ export declare const COMMON_HOST = "https://kefu.kuaimai.com";
4
4
  export declare const HD_HOST = "https://kefuab.kuaimai.com";
5
5
  interface LoginProps {
6
6
  loginCallBack?: (val: any) => void;
7
+ clickImgCallBack?: () => void;
7
8
  platform?: PlatForm;
8
9
  }
9
10
  declare const ProviderLogin: (props: LoginProps) => React.JSX.Element;
@@ -24,6 +24,7 @@ export var COMMON_HOST = 'https://kefu.kuaimai.com';
24
24
  export var HD_HOST = 'https://kefuab.kuaimai.com';
25
25
  var Login = function Login(props) {
26
26
  var loginCallBack = props.loginCallBack,
27
+ clickImgCallBack = props.clickImgCallBack,
27
28
  platform = props.platform;
28
29
  var _useState = useState(''),
29
30
  _useState2 = _slicedToArray(_useState, 2),
@@ -263,7 +264,8 @@ var Login = function Login(props) {
263
264
  className: styles.logo
264
265
  }, /*#__PURE__*/React.createElement("img", {
265
266
  src: logo,
266
- alt: "logo"
267
+ alt: "logo",
268
+ onClick: clickImgCallBack
267
269
  })), /*#__PURE__*/React.createElement(Form, {
268
270
  className: styles.container
269
271
  }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const COMMON_HOST = "https://kefu.kuaimai.com";
3
+ export declare const HD_HOST = "https://kefuab.kuaimai.com";
4
+ interface LoginProps {
5
+ loginCallBack?: (val: any) => void;
6
+ }
7
+ declare const ProviderLogin: (props: LoginProps) => React.JSX.Element;
8
+ export default ProviderLogin;