@kmkf-fe-packages/kmkf-work-order-service-component 2.2.13-beta.82 → 2.2.13-beta.84
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.
- package/dist/esm/FlowTemplateDetailV2/common.d.ts +2 -1
- package/dist/esm/FlowTemplateDetailV2/common.js +6 -1
- package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.d.ts +1 -0
- package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +1 -0
- package/dist/esm/FlowTemplateDetailV2/components/Item/index.d.ts +1 -0
- package/dist/esm/FlowTemplateDetailV2/components/Item/index.js +4 -1
- package/dist/esm/FlowTemplateDetailV2/index.js +5 -2
- package/dist/esm/common/utils/xzSDK.js +65 -21
- package/dist/esm/model/logicFlow/selector.d.ts +0 -3
- package/dist/esm/model/paymentWorkOrder/selector.d.ts +0 -9
- package/dist/esm/model/singleShopWorkOrder/selector.d.ts +0 -5
- package/package.json +2 -2
|
@@ -18,7 +18,8 @@ export declare const verifyHandle: (data: any, componentDtoList: Array<any>) =>
|
|
|
18
18
|
success: boolean;
|
|
19
19
|
message: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const currentUserHasOperatorAuth: ({ currentUserKey, staffIds, operateDataPermission, handlerList, isAllStaff, assistantList, userGroupList, }: {
|
|
21
|
+
export declare const currentUserHasOperatorAuth: ({ isSuperAdmin, currentUserKey, staffIds, operateDataPermission, handlerList, isAllStaff, assistantList, userGroupList, }: {
|
|
22
|
+
isSuperAdmin?: boolean | undefined;
|
|
22
23
|
currentUserKey: string;
|
|
23
24
|
staffIds: Array<string>;
|
|
24
25
|
operateDataPermission: 'HANDLE_DISTRIBUTE' | 'HANDLE_ALL' | 'ONLY_THE_SAME_USER_GROUP';
|
|
@@ -59,7 +59,9 @@ export var verifyHandle = function verifyHandle(data, componentDtoList) {
|
|
|
59
59
|
return res;
|
|
60
60
|
};
|
|
61
61
|
export var currentUserHasOperatorAuth = function currentUserHasOperatorAuth(_ref) {
|
|
62
|
-
var
|
|
62
|
+
var _ref$isSuperAdmin = _ref.isSuperAdmin,
|
|
63
|
+
isSuperAdmin = _ref$isSuperAdmin === void 0 ? false : _ref$isSuperAdmin,
|
|
64
|
+
currentUserKey = _ref.currentUserKey,
|
|
63
65
|
staffIds = _ref.staffIds,
|
|
64
66
|
operateDataPermission = _ref.operateDataPermission,
|
|
65
67
|
handlerList = _ref.handlerList,
|
|
@@ -67,6 +69,9 @@ export var currentUserHasOperatorAuth = function currentUserHasOperatorAuth(_ref
|
|
|
67
69
|
assistantList = _ref.assistantList,
|
|
68
70
|
_ref$userGroupList = _ref.userGroupList,
|
|
69
71
|
userGroupList = _ref$userGroupList === void 0 ? [] : _ref$userGroupList;
|
|
72
|
+
if (isSuperAdmin) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
70
75
|
// handlerList为空数组是没有处理人,都可以处理
|
|
71
76
|
if (Array.isArray(handlerList) && (handlerList === null || handlerList === void 0 ? void 0 : handlerList.length) === 0) {
|
|
72
77
|
return true;
|
|
@@ -13,6 +13,7 @@ declare type CurrentNodeProps = {
|
|
|
13
13
|
flowWorkOrderId?: string;
|
|
14
14
|
queryRemarkList: () => void;
|
|
15
15
|
autoSubmit?: boolean;
|
|
16
|
+
isSuperAdmin?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare const _default: React.ForwardRefExoticComponent<CurrentNodeProps & React.RefAttributes<unknown>>;
|
|
18
19
|
export default _default;
|
|
@@ -105,6 +105,7 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
105
105
|
var isCurrentNodeHandler = useMemo(function () {
|
|
106
106
|
var _currentNodeDetail$no5, _currentNodeDetail$no6, _currentNodeDetail$no7, _currentNodeDetail$no8, _currentNodeDetail$no9, _currentNodeDetail$no10, _currentNodeDetail$no11, _currentNodeDetail$no12, _currentNodeDetail$wo5, _currentNodeDetail$no13, _currentNodeDetail$no14;
|
|
107
107
|
return currentUserHasOperatorAuth({
|
|
108
|
+
isSuperAdmin: props === null || props === void 0 ? void 0 : props.isSuperAdmin,
|
|
108
109
|
assistantList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no5 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no5 === void 0 ? void 0 : _currentNodeDetail$no5.id) && assistantMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no6 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no6 === void 0 ? void 0 : _currentNodeDetail$no6.id] || [],
|
|
109
110
|
userGroupList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no7 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no7 === void 0 ? void 0 : _currentNodeDetail$no7.id) && useGroupMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no8 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no8 === void 0 ? void 0 : _currentNodeDetail$no8.id] || [],
|
|
110
111
|
currentUserKey: plat.userKey,
|
|
@@ -56,7 +56,9 @@ var NodeItem = function NodeItem(props) {
|
|
|
56
56
|
nodeIsAuto = props.nodeIsAuto,
|
|
57
57
|
flowTemplateKey = props.flowTemplateKey,
|
|
58
58
|
onJumpPage = props.onJumpPage,
|
|
59
|
-
eventNodeType = props.eventNodeType
|
|
59
|
+
eventNodeType = props.eventNodeType,
|
|
60
|
+
_props$isSuperAdmin = props.isSuperAdmin,
|
|
61
|
+
isSuperAdmin = _props$isSuperAdmin === void 0 ? false : _props$isSuperAdmin;
|
|
60
62
|
var _useContext = useContext(Context),
|
|
61
63
|
dispatch = _useContext.dispatch;
|
|
62
64
|
var plat = useSelector(selectPlatInfo);
|
|
@@ -261,6 +263,7 @@ var NodeItem = function NodeItem(props) {
|
|
|
261
263
|
var isCurrentNodeHandler = useMemo(function () {
|
|
262
264
|
var _data$data4, _data$data4$nodeInfo, _data$data5, _data$data5$nodeInfo, _data$data6, _data$data6$nodeInfo, _data$data7, _data$data7$nodeInfo, _data$data8, _data$data8$nodeInfo, _data$data8$nodeInfo$, _data$data9, _data$data9$nodeInfo, _data$data9$nodeInfo$, _data$data10, _data$data10$workOrde, _data$data11, _data$data11$nodeInfo, _data$data11$nodeInfo2;
|
|
263
265
|
return currentUserHasOperatorAuth({
|
|
266
|
+
isSuperAdmin: isSuperAdmin,
|
|
264
267
|
// assistantList: data?.data?.nodeInfo?.id && assistantMap['FN00278209550851436544'] || [],
|
|
265
268
|
assistantList: (data === null || data === void 0 ? void 0 : (_data$data4 = data.data) === null || _data$data4 === void 0 ? void 0 : (_data$data4$nodeInfo = _data$data4.nodeInfo) === null || _data$data4$nodeInfo === void 0 ? void 0 : _data$data4$nodeInfo.id) && assistantMap[data === null || data === void 0 ? void 0 : (_data$data5 = data.data) === null || _data$data5 === void 0 ? void 0 : (_data$data5$nodeInfo = _data$data5.nodeInfo) === null || _data$data5$nodeInfo === void 0 ? void 0 : _data$data5$nodeInfo.id] || [],
|
|
266
269
|
userGroupList: (data === null || data === void 0 ? void 0 : (_data$data6 = data.data) === null || _data$data6 === void 0 ? void 0 : (_data$data6$nodeInfo = _data$data6.nodeInfo) === null || _data$data6$nodeInfo === void 0 ? void 0 : _data$data6$nodeInfo.id) && useGroupMap[data === null || data === void 0 ? void 0 : (_data$data7 = data.data) === null || _data$data7 === void 0 ? void 0 : (_data$data7$nodeInfo = _data$data7.nodeInfo) === null || _data$data7$nodeInfo === void 0 ? void 0 : _data$data7$nodeInfo.id] || [],
|
|
@@ -1185,6 +1185,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1185
1185
|
var isCurrentNodeHandler = useMemo(function () {
|
|
1186
1186
|
var _currentNodeDetail$no15, _currentNodeDetail$no16, _currentNodeDetail$no17, _currentNodeDetail$no18, _currentNodeDetail$no19, _currentNodeDetail$no20, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$wo28, _currentNodeDetail$no23, _currentNodeDetail$no24;
|
|
1187
1187
|
return currentUserHasOperatorAuth({
|
|
1188
|
+
isSuperAdmin: isSuperAdmin,
|
|
1188
1189
|
assistantList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no15 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no15 === void 0 ? void 0 : _currentNodeDetail$no15.id) && assistantMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no16 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no16 === void 0 ? void 0 : _currentNodeDetail$no16.id] || [],
|
|
1189
1190
|
userGroupList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no17 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no17 === void 0 ? void 0 : _currentNodeDetail$no17.id) && useGroupMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no18 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no18 === void 0 ? void 0 : _currentNodeDetail$no18.id] || [],
|
|
1190
1191
|
currentUserKey: plat.userKey,
|
|
@@ -1373,7 +1374,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1373
1374
|
openCloseCallback: function openCloseCallback() {
|
|
1374
1375
|
setOpenCloseVisible('');
|
|
1375
1376
|
},
|
|
1376
|
-
eventNodeType: flowRecord.eventNodeType
|
|
1377
|
+
eventNodeType: flowRecord.eventNodeType,
|
|
1378
|
+
isSuperAdmin: isSuperAdmin
|
|
1377
1379
|
}));
|
|
1378
1380
|
}), currentNodeDetail && /*#__PURE__*/React.createElement(Timeline.Item, null, /*#__PURE__*/React.createElement(CurrentNode, {
|
|
1379
1381
|
ref: currentNodeRef,
|
|
@@ -1388,7 +1390,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1388
1390
|
onJumpPage: onJumpPage,
|
|
1389
1391
|
onReminder: handleReminder,
|
|
1390
1392
|
queryRemarkList: queryRemarkList,
|
|
1391
|
-
autoSubmit: autoSubmit
|
|
1393
|
+
autoSubmit: autoSubmit,
|
|
1394
|
+
isSuperAdmin: isSuperAdmin
|
|
1392
1395
|
}))), (remarkList === null || remarkList === void 0 ? void 0 : remarkList.length) > 0 && !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(RemarkShow, _extends({}, remarkList[0], {
|
|
1393
1396
|
readonly: readonly,
|
|
1394
1397
|
handleOpenRemarkList: handleOpenRemarkList,
|
|
@@ -2,6 +2,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
2
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
3
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
4
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
14
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
16
|
import { message } from 'antd';
|
|
6
17
|
var globalResolveMap = new Map();
|
|
7
18
|
window.replyTradeInfo = function (res) {
|
|
@@ -131,30 +142,63 @@ var getTradeInfoByBuyerId = function getTradeInfoByBuyerId(buyerId) {
|
|
|
131
142
|
code: -1,
|
|
132
143
|
msg: '请检查当前环境是否属于小智面板'
|
|
133
144
|
});
|
|
134
|
-
var reqId = "".concat(Date.now(), "_").concat(buyerId);
|
|
135
145
|
setTimeout(function () {
|
|
136
146
|
reject(new Error('window.invokerSDK执行超时,未调用回调函数'));
|
|
137
147
|
}, 30000);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
148
|
+
var allOrders = [];
|
|
149
|
+
var getOrders = function getOrders() {
|
|
150
|
+
var pageNo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
151
|
+
var pageSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
152
|
+
var checkIsGetAll = function checkIsGetAll(res) {
|
|
153
|
+
var _res$data, _res$result;
|
|
154
|
+
var list = 'data' in res ? (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.data) || [] : (res === null || res === void 0 ? void 0 : (_res$result = res.result) === null || _res$result === void 0 ? void 0 : _res$result.orders) || [];
|
|
155
|
+
allOrders.push.apply(allOrders, _toConsumableArray(list));
|
|
156
|
+
if (list.length < pageSize || 'result' in res && res.result.pageNo !== pageNo || 'data' in res && (!res.data.totalSize || res.data.totalSize <= allOrders.length)) {
|
|
157
|
+
if ('data' in res) {
|
|
158
|
+
resolve(_objectSpread(_objectSpread({}, res), {}, {
|
|
159
|
+
data: _objectSpread(_objectSpread({}, res.data), {}, {
|
|
160
|
+
data: allOrders
|
|
161
|
+
})
|
|
162
|
+
}));
|
|
163
|
+
} else {
|
|
164
|
+
resolve(_objectSpread(_objectSpread({}, res), {}, {
|
|
165
|
+
result: _objectSpread(_objectSpread({}, res.result), {}, {
|
|
166
|
+
orders: allOrders
|
|
167
|
+
})
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
171
|
+
getOrders(pageNo + 1, pageSize);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
if (!window.invokerSDK) return reject({
|
|
175
|
+
code: -1,
|
|
176
|
+
msg: '请检查当前环境是否属于小智面板'
|
|
177
|
+
});
|
|
178
|
+
var reqId = "".concat(Date.now(), "_").concat(buyerId);
|
|
179
|
+
// getTradeInfo 同步回调不再执行, 所以默认记录reqId
|
|
180
|
+
globalResolveMap.set(reqId, checkIsGetAll);
|
|
181
|
+
window.invokerSDK(jsonToBase64({
|
|
182
|
+
cmd: 'getTradeInfo',
|
|
183
|
+
param: {
|
|
184
|
+
reqId: reqId,
|
|
185
|
+
buyerId: buyerId,
|
|
186
|
+
ext: {
|
|
187
|
+
pageNo: pageNo,
|
|
188
|
+
// 可选 分页从1开始
|
|
189
|
+
pageSize: pageSize // 可选
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}), function (cmd, res) {
|
|
193
|
+
var jsonRes = JSON.parse(res);
|
|
194
|
+
if (jsonRes.code === 200) {
|
|
195
|
+
// globalResolveMap.set(reqId, resolve);
|
|
196
|
+
} else {
|
|
197
|
+
reject(jsonRes.msg || jsonRes);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
getOrders();
|
|
158
202
|
} catch (e) {
|
|
159
203
|
reject(e);
|
|
160
204
|
}
|
|
@@ -6,7 +6,6 @@ export declare const selectFlowList: ((state: {
|
|
|
6
6
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
7
7
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
8
8
|
logicFlow: import("./types").LogicFlowState;
|
|
9
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
10
9
|
}) => import("./types").LogicFlow[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").LogicFlow[], {
|
|
11
10
|
clearCache: () => void;
|
|
12
11
|
}> & {
|
|
@@ -20,7 +19,6 @@ export declare const selectGroupFlowList: ((state: {
|
|
|
20
19
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
21
20
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
22
21
|
logicFlow: import("./types").LogicFlowState;
|
|
23
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
24
22
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
25
23
|
clearCache: () => void;
|
|
26
24
|
}> & {
|
|
@@ -34,7 +32,6 @@ export declare const selectFlowTemplateGroupWorkOrderTemplateList: ((state: {
|
|
|
34
32
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
35
33
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
36
34
|
logicFlow: import("./types").LogicFlowState;
|
|
37
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
38
35
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
39
36
|
clearCache: () => void;
|
|
40
37
|
}> & {
|
|
@@ -6,7 +6,6 @@ export declare const selectPaymentWorkOrderExamineModalVisible: ((state: {
|
|
|
6
6
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
7
7
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
8
8
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
9
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
10
9
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
11
10
|
clearCache: () => void;
|
|
12
11
|
}> & {
|
|
@@ -20,7 +19,6 @@ export declare const selectCurrentPaymentRecord: ((state: {
|
|
|
20
19
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
21
20
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
22
21
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
23
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
24
22
|
}) => any) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => any, {
|
|
25
23
|
clearCache: () => void;
|
|
26
24
|
}> & {
|
|
@@ -34,7 +32,6 @@ export declare const selectPaymentWorkOrderUnExamineModalVisible: ((state: {
|
|
|
34
32
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
35
33
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
36
34
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
37
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
38
35
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
39
36
|
clearCache: () => void;
|
|
40
37
|
}> & {
|
|
@@ -48,7 +45,6 @@ export declare const selectDeletePaymentWorkOrderVisible: ((state: {
|
|
|
48
45
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
49
46
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
50
47
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
51
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
52
48
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
53
49
|
clearCache: () => void;
|
|
54
50
|
}> & {
|
|
@@ -62,7 +58,6 @@ export declare const selectFlagPayModalVisible: ((state: {
|
|
|
62
58
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
63
59
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
64
60
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
65
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
66
61
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
67
62
|
clearCache: () => void;
|
|
68
63
|
}> & {
|
|
@@ -76,7 +71,6 @@ export declare const selectLogModalVisible: ((state: {
|
|
|
76
71
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
77
72
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
78
73
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
79
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
80
74
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
81
75
|
clearCache: () => void;
|
|
82
76
|
}> & {
|
|
@@ -90,7 +84,6 @@ export declare const selectPaymentFormModalVisible: ((state: {
|
|
|
90
84
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
91
85
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
92
86
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
93
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
94
87
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
95
88
|
clearCache: () => void;
|
|
96
89
|
}> & {
|
|
@@ -104,7 +97,6 @@ export declare const selectRepeatVisible: ((state: {
|
|
|
104
97
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
105
98
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
106
99
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
107
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
108
100
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => boolean, {
|
|
109
101
|
clearCache: () => void;
|
|
110
102
|
}> & {
|
|
@@ -118,7 +110,6 @@ export declare const selectRepeatWorkOrderList: ((state: {
|
|
|
118
110
|
paymentWorkOrder: import("./types").PaymentWorkOrderState;
|
|
119
111
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
120
112
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
121
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
122
113
|
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").PaymentWorkOrderState) => string[], {
|
|
123
114
|
clearCache: () => void;
|
|
124
115
|
}> & {
|
|
@@ -6,7 +6,6 @@ export declare const selectorSingleTemplateList: ((state: {
|
|
|
6
6
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
7
7
|
singleWorkOrder: import("./types").SingleWorkOrderState;
|
|
8
8
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
9
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
10
9
|
}) => import("./types").SelectI[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => import("./types").SelectI[], {
|
|
11
10
|
clearCache: () => void;
|
|
12
11
|
}> & {
|
|
@@ -20,7 +19,6 @@ export declare const selectDeleteCustomizeWorkOrderModalVisible: ((state: {
|
|
|
20
19
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
21
20
|
singleWorkOrder: import("./types").SingleWorkOrderState;
|
|
22
21
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
23
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
24
22
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => boolean, {
|
|
25
23
|
clearCache: () => void;
|
|
26
24
|
}> & {
|
|
@@ -34,7 +32,6 @@ export declare const selectorCurrentCustomizeRecord: ((state: {
|
|
|
34
32
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
35
33
|
singleWorkOrder: import("./types").SingleWorkOrderState;
|
|
36
34
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
37
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
38
35
|
}) => any) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => any, {
|
|
39
36
|
clearCache: () => void;
|
|
40
37
|
}> & {
|
|
@@ -48,7 +45,6 @@ export declare const selectorTemplateId: ((state: {
|
|
|
48
45
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
49
46
|
singleWorkOrder: import("./types").SingleWorkOrderState;
|
|
50
47
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
51
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
52
48
|
}) => string) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => string, {
|
|
53
49
|
clearCache: () => void;
|
|
54
50
|
}> & {
|
|
@@ -62,7 +58,6 @@ export declare const selectorFormModalVisible: ((state: {
|
|
|
62
58
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
63
59
|
singleWorkOrder: import("./types").SingleWorkOrderState;
|
|
64
60
|
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
65
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
66
61
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: import("./types").SingleWorkOrderState) => boolean, {
|
|
67
62
|
clearCache: () => void;
|
|
68
63
|
}> & {
|
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.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.84",
|
|
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": "
|
|
77
|
+
"gitHead": "ec80765d44a2c36cc0167ee3802e8170372d5de0",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|