@kmkf-fe-packages/kmkf-work-order-service-component 2.2.44-beta.89 → 2.2.44-beta.90
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.
|
@@ -86,7 +86,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
86
86
|
var _useContext = useContext(Context),
|
|
87
87
|
dispatch = _useContext.dispatch;
|
|
88
88
|
var flowRecordList = useSelector(selectFlowRecordList);
|
|
89
|
-
console.log('flowRecordList', flowRecordList);
|
|
90
89
|
var remarkList = useSelector(selectRemarkRecordList);
|
|
91
90
|
var currentNodeDetail = useSelector(selectCurrentNodeDetail);
|
|
92
91
|
var sTid = useSelector(selectTid);
|
|
@@ -126,9 +125,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
126
125
|
var _Form$useForm3 = Form.useForm(),
|
|
127
126
|
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
128
127
|
feedbackForm = _Form$useForm4[0];
|
|
129
|
-
var feedbackClickCountRef = useRef(0);
|
|
130
|
-
var feedbackLastClickTimeRef = useRef(0);
|
|
131
|
-
var FEEDBACK_CLICK_INTERVAL_MS = 800; // 连续点击间隔不超过此毫秒数视为“连续”
|
|
132
128
|
var controllerRef = useSignal();
|
|
133
129
|
var currentNodeRef = useRef(null);
|
|
134
130
|
var _useState7 = useState(sTid),
|
|
@@ -152,6 +148,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
152
148
|
setOpenCloseVisible = _useState14[1];
|
|
153
149
|
var ShareLinkModalRef = useRef(null);
|
|
154
150
|
var feedbackImageRef = useRef();
|
|
151
|
+
var showImplementationEnter = [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && document.cookie.includes('ray-authentication');
|
|
155
152
|
var componentDtoList = (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo2 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo2 === void 0 ? void 0 : _currentNodeDetail$wo2.componentDtoList) || [];
|
|
156
153
|
var isSuperAdmin = !!(plat !== null && plat !== void 0 && plat.hasSuperAdminRole) || (plat === null || plat === void 0 ? void 0 : plat.userKey) === (plat === null || plat === void 0 ? void 0 : plat.companyKey);
|
|
157
154
|
var tradeIdComponentDto = componentDtoList.find(function (item) {
|
|
@@ -1330,18 +1327,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1330
1327
|
});
|
|
1331
1328
|
setFeedbackModalVisible(true);
|
|
1332
1329
|
};
|
|
1333
|
-
var handleFeedbackTriggerClick = function handleFeedbackTriggerClick() {
|
|
1334
|
-
var now = Date.now();
|
|
1335
|
-
if (now - feedbackLastClickTimeRef.current > FEEDBACK_CLICK_INTERVAL_MS) {
|
|
1336
|
-
feedbackClickCountRef.current = 0;
|
|
1337
|
-
}
|
|
1338
|
-
feedbackLastClickTimeRef.current = now;
|
|
1339
|
-
feedbackClickCountRef.current += 1;
|
|
1340
|
-
if (feedbackClickCountRef.current >= 3) {
|
|
1341
|
-
feedbackClickCountRef.current = 0;
|
|
1342
|
-
openFeedbackModal();
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
1330
|
var closeFeedbackModal = function closeFeedbackModal() {
|
|
1346
1331
|
setFeedbackModalVisible(false);
|
|
1347
1332
|
feedbackForm.resetFields();
|
|
@@ -1416,26 +1401,18 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1416
1401
|
display: 'flex',
|
|
1417
1402
|
justifyContent: 'space-between'
|
|
1418
1403
|
}
|
|
1419
|
-
}, /*#__PURE__*/React.createElement("div", null, [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && /*#__PURE__*/React.createElement("span", {
|
|
1420
|
-
role: "button",
|
|
1421
|
-
tabIndex: 0,
|
|
1422
|
-
onClick: handleFeedbackTriggerClick,
|
|
1423
|
-
onKeyDown: function onKeyDown(e) {
|
|
1424
|
-
return e.key === 'Enter' && handleFeedbackTriggerClick();
|
|
1425
|
-
},
|
|
1426
|
-
style: {
|
|
1427
|
-
cursor: 'pointer',
|
|
1428
|
-
userSelect: 'none'
|
|
1429
|
-
}
|
|
1430
|
-
}, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
1404
|
+
}, /*#__PURE__*/React.createElement("div", null, [PlatForm.PC, PlatForm.WEB].includes(plat.platform) && /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
1431
1405
|
type: shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopSource,
|
|
1432
1406
|
styles: {
|
|
1433
1407
|
marginRight: 5
|
|
1434
1408
|
}
|
|
1435
|
-
}), shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopName, "-", flowWorkOrderId), !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(Button, {
|
|
1409
|
+
}), shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopName, "-"), /*#__PURE__*/React.createElement("span", null, flowWorkOrderId), !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(Button, {
|
|
1436
1410
|
type: "link",
|
|
1437
1411
|
onClick: handleFollow
|
|
1438
|
-
}, !follow ? '关注' : '已关注'),
|
|
1412
|
+
}, !follow ? '关注' : '已关注'), showImplementationEnter && /*#__PURE__*/React.createElement(Button, {
|
|
1413
|
+
onClick: openFeedbackModal,
|
|
1414
|
+
type: "primary"
|
|
1415
|
+
}, "\u5FEB\u901F\u521B\u5EFA\u5B9E\u65BD\u5DE5\u5355"), 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$wo30 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo30 === void 0 ? void 0 : _currentNodeDetail$wo30.buyerOpenUid)) && /*#__PURE__*/React.createElement(JumpBuyer, {
|
|
1439
1416
|
order_number: tid,
|
|
1440
1417
|
shop: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.taobaoNick) || '',
|
|
1441
1418
|
buyer: (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),
|
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.44-beta.
|
|
3
|
+
"version": "2.2.44-beta.90",
|
|
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": "e674bc71de937451a456ad44eb273a957d9543bf",
|
|
79
79
|
"gitHooks": {
|
|
80
80
|
"pre-commit": "lint-staged"
|
|
81
81
|
}
|