@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.0 → 2.2.31-beta.5

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Image } from 'antd';
2
+ import { Image, message } from 'antd';
3
3
  import contact from "../../../common/imgs/contact.png";
4
4
  //工单通需要加一个联系买家按钮跳转到买家聊天框
5
5
  var JumpBuyer = function JumpBuyer(param) {
@@ -9,6 +9,7 @@ var JumpBuyer = function JumpBuyer(param) {
9
9
  order_number = param.order_number,
10
10
  flowTemplateKey = param.flowTemplateKey;
11
11
  var onClick = function onClick() {
12
+ var _window, _window$xiaozhiSDK;
12
13
  var info = {
13
14
  event: 'open_buyers',
14
15
  param: {
@@ -18,11 +19,15 @@ var JumpBuyer = function JumpBuyer(param) {
18
19
  order_number: order_number
19
20
  }
20
21
  };
21
- // if (!order_number && !buyer) {
22
- // getBuyerInfo({ flowTemplateKey });
23
- // }
24
- console.log('jumpBuyer', info, "zxd:".concat(btoa(encodeURIComponent(JSON.stringify(info)))));
25
- window.open("zxd:".concat(btoa(encodeURIComponent(JSON.stringify(info)))));
22
+ if (!order_number) {
23
+ return message.error('缺少订单信息无法跳转');
24
+ }
25
+ console.log('jumpBuyer', info, "zxd:/".concat(btoa(encodeURIComponent(JSON.stringify(info)))));
26
+ (_window = window) === null || _window === void 0 ? void 0 : (_window$xiaozhiSDK = _window.xiaozhiSDK) === null || _window$xiaozhiSDK === void 0 ? void 0 : _window$xiaozhiSDK.openUrlWithDefault({
27
+ param: {
28
+ url: "zxd:/".concat(btoa(encodeURIComponent(JSON.stringify(info))))
29
+ }
30
+ });
26
31
  };
27
32
  return /*#__PURE__*/React.createElement("span", {
28
33
  onClick: onClick,
@@ -62,7 +62,7 @@ import { PlatForm } from "../WorkOrder/types";
62
62
  var Text = Typography.Text,
63
63
  Link = Typography.Link;
64
64
  var FlowTemplateDetail = function FlowTemplateDetail(props) {
65
- var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _currentNodeDetail$no14, _shopList$find, _currentNodeDetail$wo31, _JSON$parse, _currentNodeDetail$wo32, _currentNodeDetail$wo33, _currentNodeDetail$wo34, _currentNodeDetail$wo35, _currentNodeDetail$no27, _currentNodeDetail$no28, _currentNodeDetail$no29, _currentNodeDetail$no30;
65
+ var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _currentNodeDetail$no14, _shopList$find, _JSON$parse, _currentNodeDetail$wo31, _currentNodeDetail$wo32, _currentNodeDetail$wo33, _currentNodeDetail$wo34, _currentNodeDetail$no27, _currentNodeDetail$no28, _currentNodeDetail$no29, _currentNodeDetail$no30;
66
66
  var flowTemplateKey = props.flowTemplateKey,
67
67
  _props$shopList = props.shopList,
68
68
  shopList = _props$shopList === void 0 ? [] : _props$shopList,
@@ -1315,11 +1315,10 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1315
1315
  order_number: tid,
1316
1316
  shop: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.taobaoNick) || '',
1317
1317
  platformType: otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType,
1318
- buyer: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : _currentNodeDetail$wo31.buyerNick,
1319
1318
  flowTemplateKey: flowTemplateKey
1320
- })), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo32 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : (_currentNodeDetail$wo33 = _currentNodeDetail$wo32.jsonMap) === null || _currentNodeDetail$wo33 === void 0 ? void 0 : _currentNodeDetail$wo33.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
1319
+ })), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : (_currentNodeDetail$wo32 = _currentNodeDetail$wo31.jsonMap) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : _currentNodeDetail$wo32.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
1321
1320
  color: "blue"
1322
- }, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo34 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo34 === void 0 ? void 0 : (_currentNodeDetail$wo35 = _currentNodeDetail$wo34.jsonMap) === null || _currentNodeDetail$wo35 === void 0 ? void 0 : _currentNodeDetail$wo35.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
1321
+ }, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[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.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
1323
1322
  justify: 'space-between',
1324
1323
  className: "header"
1325
1324
  }, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("div", {
@@ -93,4 +93,3 @@ export declare const getH5SharePermission: () => Promise<serverProps<any>>;
93
93
  export declare const shortLink: (data: any) => Promise<serverProps<any>>;
94
94
  export declare const createNodeLink: (data: any) => Promise<serverProps<any>>;
95
95
  export declare const createLink: (data: any) => Promise<serverProps<any>>;
96
- export declare const getBuyerInfo: (data: any) => Promise<serverProps<any>>;
@@ -257,13 +257,4 @@ export var createLink = function createLink(data) {
257
257
  method: 'get',
258
258
  data: data
259
259
  });
260
- };
261
-
262
- //获取买家信息
263
- export var getBuyerInfo = function getBuyerInfo(data) {
264
- return request({
265
- url: "/qy/workOrder/share/createLink",
266
- method: 'get',
267
- data: data
268
- });
269
260
  };
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.0",
3
+ "version": "2.2.31-beta.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -74,7 +74,7 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "928fc0aab4cc2599cedc3a515671c914febe3857",
77
+ "gitHead": "bbd6168c374979e0280aab710d8dd3cb746045bd",
78
78
  "gitHooks": {
79
79
  "pre-commit": "lint-staged"
80
80
  }