@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.29 → 2.2.31-beta.30

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.
@@ -30,9 +30,6 @@ var JumpBuyer = function JumpBuyer(param) {
30
30
  order_number: order_number
31
31
  }
32
32
  };
33
- // if (!order_number) {
34
- // return message.error('缺少订单信息无法跳转');
35
- // }
36
33
  var jsonString = JSON.stringify(info);
37
34
  // 使用安全的 Base64 编码
38
35
  var base64String = Base64.encodeURL(jsonString);
@@ -1311,10 +1311,10 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1311
1311
  }), shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopName, "-"), /*#__PURE__*/React.createElement("span", null, flowWorkOrderId), !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(Button, {
1312
1312
  type: "link",
1313
1313
  onClick: handleFollow
1314
- }, !follow ? '关注' : '已关注'), plat.platform === PlatForm.XIAOZHI && ['2'].includes(String(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType)) && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : _currentNodeDetail$wo31.buyerOpenUid) && /*#__PURE__*/React.createElement(JumpBuyer, {
1314
+ }, !follow ? '关注' : '已关注'), plat.platform === PlatForm.XIAOZHI && ['2'].includes(String(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType)) && ((otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : _currentNodeDetail$wo31.buyerOpenUid)) && /*#__PURE__*/React.createElement(JumpBuyer, {
1315
1315
  order_number: tid,
1316
1316
  shop: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.taobaoNick) || '',
1317
- buyer: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo32 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : _currentNodeDetail$wo32.buyerOpenUid,
1317
+ buyer: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo32 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : _currentNodeDetail$wo32.buyerOpenUid),
1318
1318
  platformType: otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType
1319
1319
  })), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo33 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo33 === void 0 ? void 0 : (_currentNodeDetail$wo34 = _currentNodeDetail$wo33.jsonMap) === null || _currentNodeDetail$wo34 === void 0 ? void 0 : _currentNodeDetail$wo34.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
1320
1320
  color: "blue"
@@ -18,6 +18,8 @@ import { queryPanelInfo } from "../../../../../model/flowTemplateDetail/api";
18
18
  import reject from "../../../../../common/imgs/reject.png";
19
19
  import reminder from "../../../../../common/imgs/reminder.png";
20
20
  import ai from "../../../../../common/imgs/ai.png";
21
+ import JumpBuyer from "../../../../../FlowTemplateDetailV2/components/JumpBuyer";
22
+ import { PlatForm } from "../../../../types";
21
23
  import "./index.less";
22
24
  var FlowStatus = {
23
25
  WAIT_COMMIT: {
@@ -50,7 +52,7 @@ var FlowStatus = {
50
52
  }
51
53
  };
52
54
  var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
53
- var _flowRecordList, _newFlowRecordList, _newFlowRecordList$ma, _FlowStatus$item$flow, _FlowStatus$item$flow2;
55
+ var _flowRecordList, _newFlowRecordList, _newFlowRecordList$ma, _FlowStatus$item$flow, _FlowStatus$item$flow2, _platformInfo$otherIn, _platformInfo$otherIn2, _platformInfo$otherIn3;
54
56
  var dispatch = useAppDispatch();
55
57
  var platformInfo = useAppSelector(function (state) {
56
58
  return state.global.platformInfo;
@@ -180,7 +182,12 @@ var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
180
182
  style: {
181
183
  width: '20px'
182
184
  }
183
- })))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement("span", {
185
+ })))), /*#__PURE__*/React.createElement(Space, null, (platformInfo === null || platformInfo === void 0 ? void 0 : platformInfo.platform) === PlatForm.XIAOZHI && ['2'].includes(String(platformInfo === null || platformInfo === void 0 ? void 0 : (_platformInfo$otherIn = platformInfo.otherInfo) === null || _platformInfo$otherIn === void 0 ? void 0 : _platformInfo$otherIn.xzClientPlatformType)) && (item === null || item === void 0 ? void 0 : item.buyerOpenUid) && /*#__PURE__*/React.createElement(JumpBuyer, {
186
+ order_number: item === null || item === void 0 ? void 0 : item.tid,
187
+ shop: (platformInfo === null || platformInfo === void 0 ? void 0 : (_platformInfo$otherIn2 = platformInfo.otherInfo) === null || _platformInfo$otherIn2 === void 0 ? void 0 : _platformInfo$otherIn2.taobaoNick) || '',
188
+ platformType: (platformInfo === null || platformInfo === void 0 ? void 0 : (_platformInfo$otherIn3 = platformInfo.otherInfo) === null || _platformInfo$otherIn3 === void 0 ? void 0 : _platformInfo$otherIn3.xzClientPlatformType) || '',
189
+ buyer: item === null || item === void 0 ? void 0 : item.buyerOpenUid
190
+ }), /*#__PURE__*/React.createElement("span", {
184
191
  className: "order_card_header_detail",
185
192
  onClick: function onClick() {
186
193
  return handleDetailWorkOrderFlow(item);
@@ -670,7 +670,9 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
670
670
  bindERP: bindERP || hasBindWdt,
671
671
  hasSuperAdminRole: hasSuperAdminRole
672
672
  },
673
- otherInfo: otherInfo,
673
+ otherInfo: _objectSpread(_objectSpread({}, otherInfo), {}, {
674
+ buyerOpenUid: (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || ''
675
+ }),
674
676
  callbackDealWorkOrderSuccess: onDealWorkOrderSuccess,
675
677
  onOpenWangWang: onOpenWangWang
676
678
  }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.2.31-beta.29",
3
+ "version": "2.2.31-beta.30",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -75,7 +75,7 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "0a1794bfa45c955aac25c90d7afe9da0f81fa1ce",
78
+ "gitHead": "e09065c05d765d87846ab5f9254523c8ad661672",
79
79
  "gitHooks": {
80
80
  "pre-commit": "lint-staged"
81
81
  }