@kmkf-fe-packages/kmkf-work-order-service-component 2.2.14 → 2.2.15
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.
|
@@ -56,12 +56,13 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
56
56
|
flowWorkOrderId: info.flowWorkOrderId,
|
|
57
57
|
flowNodeId: info.flowNodeId
|
|
58
58
|
}).then(function (res) {
|
|
59
|
-
var _res$data, _res$data2;
|
|
59
|
+
var _res$data, _res$data2, _res$data3;
|
|
60
60
|
if (res.data) {
|
|
61
61
|
setVisible(true);
|
|
62
62
|
}
|
|
63
63
|
setUrl((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.link);
|
|
64
|
-
|
|
64
|
+
var shortLink = (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.shortShareLink) : '';
|
|
65
|
+
setShortUrl(shortLink);
|
|
65
66
|
});
|
|
66
67
|
return;
|
|
67
68
|
}
|
|
@@ -70,30 +71,33 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
70
71
|
companyKey: info.companyKey,
|
|
71
72
|
flowTemplateKey: info.flowTemplateKey
|
|
72
73
|
}).then(function (res) {
|
|
73
|
-
var _res$
|
|
74
|
+
var _res$data4, _res$data5, _res$data6;
|
|
74
75
|
if (res.data) {
|
|
75
76
|
setVisible(true);
|
|
76
77
|
}
|
|
77
|
-
setUrl((_res$
|
|
78
|
-
|
|
78
|
+
setUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.link);
|
|
79
|
+
var shortLink = (_res$data5 = res.data) !== null && _res$data5 !== void 0 && _res$data5.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.shortShareLink) : '';
|
|
80
|
+
setShortUrl(shortLink);
|
|
79
81
|
});
|
|
80
82
|
return;
|
|
81
83
|
}
|
|
82
84
|
setVisible(true);
|
|
85
|
+
var regex = /^(https?:\/\/)/;
|
|
83
86
|
if (info.url) {
|
|
84
|
-
var regex = /^(https?:\/\/)/;
|
|
85
87
|
var formatUrl = info.url.match(regex) ? info.url : "".concat(window.location.protocol, "//").concat(info.url);
|
|
86
88
|
setUrl(formatUrl);
|
|
87
89
|
}
|
|
88
90
|
if ((info === null || info === void 0 ? void 0 : info.showType) !== 'shortUrl') return;
|
|
89
91
|
if (info.shortUrl) {
|
|
90
|
-
|
|
92
|
+
var formaShortUrl = info.shortUrl.match(regex) ? info.shortUrl : "".concat(window.location.protocol, "//").concat(info.shortUrl);
|
|
93
|
+
setShortUrl(formaShortUrl);
|
|
91
94
|
} else if (info.mongoId && info.url) {
|
|
92
95
|
shortLink({
|
|
93
96
|
mongoId: info.mongoId,
|
|
94
97
|
longUrl: info.url
|
|
95
98
|
}).then(function (res) {
|
|
96
|
-
|
|
99
|
+
var shortUrl = res.data ? "".concat(window.location.protocol, "//").concat(res.data) : '';
|
|
100
|
+
setShortUrl(shortUrl);
|
|
97
101
|
});
|
|
98
102
|
}
|
|
99
103
|
};
|
|
@@ -149,7 +153,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
149
153
|
}, "\u590D\u5236")), info.platform === 'pc' && /*#__PURE__*/React.createElement(Button, {
|
|
150
154
|
type: "primary",
|
|
151
155
|
onClick: function onClick() {
|
|
152
|
-
window.open(
|
|
156
|
+
window.open(shortUrl);
|
|
153
157
|
}
|
|
154
158
|
}, "\u6253\u5F00"))), /*#__PURE__*/React.createElement(Text, null, shortUrl))), /*#__PURE__*/React.createElement("li", {
|
|
155
159
|
className: styles.shareLi
|
|
@@ -51,7 +51,6 @@ import RenderDetail from "./components/RenderDetail";
|
|
|
51
51
|
import { orderDetail } from "../model/servers/api";
|
|
52
52
|
import cache from "../common/cache";
|
|
53
53
|
import "./index.less";
|
|
54
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
55
54
|
import { PlatformAvatar } from '@kmkf-fe-packages/services-components';
|
|
56
55
|
import { Provide, Context } from "./context";
|
|
57
56
|
import { WORK_ORDER_STATUS_AI_BUILD } from "../common/constant";
|
|
@@ -1147,7 +1146,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1147
1146
|
}
|
|
1148
1147
|
};
|
|
1149
1148
|
useEffect(function () {
|
|
1150
|
-
if (autoSubmit && !
|
|
1149
|
+
if (autoSubmit && !isEmpty(currentNodeDetail)) {
|
|
1151
1150
|
var _currentNodeDetail$wo25, _currentNodeDetail$wo26;
|
|
1152
1151
|
// SKX首节点满足下列条件、此时批量提交会等订单数据反填再提交, 其余企业批量提交还是原先逻辑,不涉及订单数据反填
|
|
1153
1152
|
if (currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo25 !== void 0 && _currentNodeDetail$wo25.notAutoFillWithFirstSubmit && autoSubmitFlag) {
|
|
@@ -73,7 +73,7 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
|
73
73
|
case 4:
|
|
74
74
|
res = _context.sent;
|
|
75
75
|
if (!res.success) {
|
|
76
|
-
_context.next =
|
|
76
|
+
_context.next = 19;
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
79
|
recordList = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$flowRecordL = _res$data.flowRecordList) === null || _res$data$flowRecordL === void 0 ? void 0 : (_res$data$flowRecordL2 = _res$data$flowRecordL.filter(function (t) {
|
|
@@ -178,24 +178,44 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
case 17:
|
|
181
|
-
_context.next =
|
|
181
|
+
_context.next = 20;
|
|
182
182
|
break;
|
|
183
183
|
case 19:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
dispatch({
|
|
185
|
+
type: 'setCurrentNode',
|
|
186
|
+
payload: {
|
|
187
|
+
currentNodeDetail: {
|
|
188
|
+
workOrder: {}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
case 20:
|
|
193
|
+
_context.next = 26;
|
|
194
|
+
break;
|
|
187
195
|
case 22:
|
|
188
196
|
_context.prev = 22;
|
|
197
|
+
_context.t0 = _context["catch"](0);
|
|
198
|
+
console.error(_context.t0);
|
|
199
|
+
dispatch({
|
|
200
|
+
type: 'setCurrentNode',
|
|
201
|
+
payload: {
|
|
202
|
+
currentNodeDetail: {
|
|
203
|
+
workOrder: {}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
case 26:
|
|
208
|
+
_context.prev = 26;
|
|
189
209
|
dispatch({
|
|
190
210
|
type: 'setLoading',
|
|
191
211
|
payload: false
|
|
192
212
|
});
|
|
193
|
-
return _context.finish(
|
|
194
|
-
case
|
|
213
|
+
return _context.finish(26);
|
|
214
|
+
case 29:
|
|
195
215
|
case "end":
|
|
196
216
|
return _context.stop();
|
|
197
217
|
}
|
|
198
|
-
}, _callee, null, [[0,
|
|
218
|
+
}, _callee, null, [[0, 22, 26, 29]]);
|
|
199
219
|
}));
|
|
200
220
|
return function (_x) {
|
|
201
221
|
return _ref.apply(this, arguments);
|
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.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "2.2.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.2.15",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.15",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.15",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "fcfdedb4dd62e3aae672079a7dc7a285db5bf8dd",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|