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

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.
@@ -20,7 +20,7 @@ var JumpBuyer = function JumpBuyer(param) {
20
20
  shop = param.shop,
21
21
  order_number = param.order_number;
22
22
  var onClick = function onClick() {
23
- var _window, _window$xiaozhiSDK;
23
+ var _window;
24
24
  var info = {
25
25
  event: 'open_buyers',
26
26
  param: {
@@ -37,11 +37,14 @@ var JumpBuyer = function JumpBuyer(param) {
37
37
  // 使用安全的 Base64 编码
38
38
  var base64String = Base64.encodeURL(jsonString);
39
39
  console.log('jumpBuyer', info, "zxd:/".concat(base64String));
40
- (_window = window) === null || _window === void 0 ? void 0 : (_window$xiaozhiSDK = _window.xiaozhiSDK) === null || _window$xiaozhiSDK === void 0 ? void 0 : _window$xiaozhiSDK.openUrlWithDefault({
41
- param: {
42
- url: "zxd:/".concat(base64String)
43
- }
44
- });
40
+ if ((_window = window) !== null && _window !== void 0 && _window.xiaozhiSDK) {
41
+ var _window2, _window2$xiaozhiSDK;
42
+ (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$xiaozhiSDK = _window2.xiaozhiSDK) === null || _window2$xiaozhiSDK === void 0 ? void 0 : _window2$xiaozhiSDK.openUrlWithDefault({
43
+ param: {
44
+ url: "zxd:/".concat(base64String)
45
+ }
46
+ });
47
+ }
45
48
  };
46
49
  return /*#__PURE__*/React.createElement("span", {
47
50
  onClick: onClick,
@@ -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.buyerNick) && /*#__PURE__*/React.createElement(JumpBuyer, {
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, {
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.buyerNick,
1317
+ buyer: 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"
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.28",
3
+ "version": "2.2.31-beta.29",
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": "b45109d55002c8b074e4baff0d45ee408992ad42",
78
+ "gitHead": "0a1794bfa45c955aac25c90d7afe9da0f81fa1ce",
79
79
  "gitHooks": {
80
80
  "pre-commit": "lint-staged"
81
81
  }