@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.26 → 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,12 +20,12 @@ 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
|
|
23
|
+
var _window;
|
|
24
24
|
var info = {
|
|
25
25
|
event: 'open_buyers',
|
|
26
26
|
param: {
|
|
27
27
|
platformType: Number(platformType),
|
|
28
|
-
buyer: buyer
|
|
28
|
+
buyer: buyer,
|
|
29
29
|
shop: shop,
|
|
30
30
|
order_number: order_number
|
|
31
31
|
}
|
|
@@ -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)
|
|
41
|
-
|
|
42
|
-
|
|
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,
|
|
@@ -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,
|
|
65
|
+
var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _currentNodeDetail$no14, _shopList$find, _currentNodeDetail$wo31, _currentNodeDetail$wo32, _JSON$parse, _currentNodeDetail$wo33, _currentNodeDetail$wo34, _currentNodeDetail$wo35, _currentNodeDetail$wo36, _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,
|
|
@@ -1311,14 +1311,14 @@ 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'
|
|
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$
|
|
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
|
-
})), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
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"
|
|
1321
|
-
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1321
|
+
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo35 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo35 === void 0 ? void 0 : (_currentNodeDetail$wo36 = _currentNodeDetail$wo35.jsonMap) === null || _currentNodeDetail$wo36 === void 0 ? void 0 : _currentNodeDetail$wo36.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
1322
1322
|
justify: 'space-between',
|
|
1323
1323
|
className: "header"
|
|
1324
1324
|
}, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("div", {
|
package/dist/esm/WorkOrder/components/WorkOrderList/components/CustomizeWorkOrderCard/index.js
CHANGED
|
@@ -18,8 +18,6 @@ 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";
|
|
23
21
|
import "./index.less";
|
|
24
22
|
var FlowStatus = {
|
|
25
23
|
WAIT_COMMIT: {
|
|
@@ -52,7 +50,7 @@ var FlowStatus = {
|
|
|
52
50
|
}
|
|
53
51
|
};
|
|
54
52
|
var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
|
|
55
|
-
var _flowRecordList, _newFlowRecordList, _newFlowRecordList$ma, _FlowStatus$item$flow, _FlowStatus$item$flow2
|
|
53
|
+
var _flowRecordList, _newFlowRecordList, _newFlowRecordList$ma, _FlowStatus$item$flow, _FlowStatus$item$flow2;
|
|
56
54
|
var dispatch = useAppDispatch();
|
|
57
55
|
var platformInfo = useAppSelector(function (state) {
|
|
58
56
|
return state.global.platformInfo;
|
|
@@ -182,11 +180,7 @@ var CustomizeWorkOrderCard = function CustomizeWorkOrderCard(props) {
|
|
|
182
180
|
style: {
|
|
183
181
|
width: '20px'
|
|
184
182
|
}
|
|
185
|
-
})))), /*#__PURE__*/React.createElement(Space, null,
|
|
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
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
183
|
+
})))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement("span", {
|
|
190
184
|
className: "order_card_header_detail",
|
|
191
185
|
onClick: function onClick() {
|
|
192
186
|
return handleDetailWorkOrderFlow(item);
|
|
@@ -211,7 +211,6 @@ var WorkOrder = function WorkOrder(props) {
|
|
|
211
211
|
})).unwrap().then(function (res) {
|
|
212
212
|
var success = res.success;
|
|
213
213
|
if (success) {
|
|
214
|
-
console.log('xzlogOut3');
|
|
215
214
|
onEmpowerCallback === null || onEmpowerCallback === void 0 ? void 0 : onEmpowerCallback();
|
|
216
215
|
}
|
|
217
216
|
});
|
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.
|
|
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": "
|
|
78
|
+
"gitHead": "0a1794bfa45c955aac25c90d7afe9da0f81fa1ce",
|
|
79
79
|
"gitHooks": {
|
|
80
80
|
"pre-commit": "lint-staged"
|
|
81
81
|
}
|