@kmkf-fe-packages/kmkf-work-order-service-component 2.2.28 → 2.2.30
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.
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare type OrderListProps = {
|
|
4
4
|
tabActive: string;
|
|
5
|
-
|
|
5
|
+
otherInfo?: any;
|
|
6
6
|
onOpenWangWang?: (nick: string, id: string) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const CustomizeWorkOrderList: ({ tabActive, onOpenWangWang,
|
|
8
|
+
declare const CustomizeWorkOrderList: ({ tabActive, onOpenWangWang, otherInfo }: OrderListProps) => React.JSX.Element;
|
|
9
9
|
export default CustomizeWorkOrderList;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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
|
+
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
|
+
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); }); }; }
|
|
2
5
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
7
|
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); }
|
|
@@ -133,8 +136,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
133
136
|
var _nodesData$data, _nodesData$data$workO;
|
|
134
137
|
var tabActive = _ref4.tabActive,
|
|
135
138
|
onOpenWangWang = _ref4.onOpenWangWang,
|
|
136
|
-
|
|
137
|
-
deleteHeight = _ref4$deleteHeight === void 0 ? 0 : _ref4$deleteHeight;
|
|
139
|
+
otherInfo = _ref4.otherInfo;
|
|
138
140
|
var dispatch = useAppDispatch();
|
|
139
141
|
var _useState = useState(false),
|
|
140
142
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -234,7 +236,8 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
234
236
|
}, form.getFieldsValue());
|
|
235
237
|
}, {
|
|
236
238
|
target: allRef,
|
|
237
|
-
|
|
239
|
+
manual: true,
|
|
240
|
+
// reloadDeps: [currentBuyerChecked, shopList],
|
|
238
241
|
isNoMore: function isNoMore(d) {
|
|
239
242
|
var _d$list;
|
|
240
243
|
return (d === null || d === void 0 ? void 0 : d.total) <= (d === null || d === void 0 ? void 0 : (_d$list = d.list) === null || _d$list === void 0 ? void 0 : _d$list.length);
|
|
@@ -254,7 +257,8 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
254
257
|
}, form.getFieldsValue());
|
|
255
258
|
}, {
|
|
256
259
|
target: selfRef,
|
|
257
|
-
|
|
260
|
+
manual: true,
|
|
261
|
+
// reloadDeps: [currentBuyerChecked, shopList],
|
|
258
262
|
isNoMore: function isNoMore(d) {
|
|
259
263
|
var _d$list2;
|
|
260
264
|
return (d === null || d === void 0 ? void 0 : d.total) <= (d === null || d === void 0 ? void 0 : (_d$list2 = d.list) === null || _d$list2 === void 0 ? void 0 : _d$list2.length);
|
|
@@ -269,9 +273,6 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
269
273
|
reload();
|
|
270
274
|
selfReload();
|
|
271
275
|
};
|
|
272
|
-
useEffect(function () {
|
|
273
|
-
dispatch(fetchCompanyUserList);
|
|
274
|
-
}, []);
|
|
275
276
|
var queryPanelInfoHandle = function queryPanelInfoHandle(item) {
|
|
276
277
|
if (!item) return;
|
|
277
278
|
queryAllWorkOrderList('/qy/flow/queryFlowWorkOrders', {
|
|
@@ -311,7 +312,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
311
312
|
var listHeight = useMemo(function () {
|
|
312
313
|
var _platFormHeightMap;
|
|
313
314
|
var wHeight = window.innerHeight;
|
|
314
|
-
var platFormHeightMap = (_platFormHeightMap = {}, _defineProperty(_platFormHeightMap, PlatForm.FXG, wHeight - 216 - height - searchHeight), _defineProperty(_platFormHeightMap, PlatForm.TB, wHeight - 205 - searchHeight), _defineProperty(_platFormHeightMap, "default", wHeight - 123 - height - searchHeight - deleteHeight), _platFormHeightMap);
|
|
315
|
+
var platFormHeightMap = (_platFormHeightMap = {}, _defineProperty(_platFormHeightMap, PlatForm.FXG, wHeight - 216 - height - searchHeight), _defineProperty(_platFormHeightMap, PlatForm.TB, wHeight - 205 - searchHeight), _defineProperty(_platFormHeightMap, "default", wHeight - 123 - height - searchHeight - ((otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.deleteHeight) || 0)), _platFormHeightMap);
|
|
315
316
|
if (platFormHeightMap[platform]) {
|
|
316
317
|
return platFormHeightMap[platform];
|
|
317
318
|
} else {
|
|
@@ -319,6 +320,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
319
320
|
}
|
|
320
321
|
}, [open, height, searchHeight, platform, isTbZnkf]);
|
|
321
322
|
useEffect(function () {
|
|
323
|
+
dispatch(fetchCompanyUserList);
|
|
322
324
|
var handleResize = function handleResize() {
|
|
323
325
|
if (templateRef.current) {
|
|
324
326
|
setHeight(templateRef.current.scrollHeight); // 或者使用 clientHeight[citation:8]
|
|
@@ -352,6 +354,42 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
352
354
|
}
|
|
353
355
|
};
|
|
354
356
|
}, []);
|
|
357
|
+
var initHandle = /*#__PURE__*/function () {
|
|
358
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(otherInfo, buyerId, orderNo) {
|
|
359
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
360
|
+
while (1) switch (_context.prev = _context.next) {
|
|
361
|
+
case 0:
|
|
362
|
+
if (!([6, 7].includes(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.showFrom) && (otherInfo !== null && otherInfo !== void 0 && otherInfo.flowWorkOrderId || orderNo) || !buyerId)) {
|
|
363
|
+
_context.next = 6;
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
form.setFieldsValue({
|
|
367
|
+
flowWorkOrderId: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.flowWorkOrderId) || '',
|
|
368
|
+
tid: orderNo
|
|
369
|
+
});
|
|
370
|
+
_context.next = 4;
|
|
371
|
+
return dispatch(setCurrentBuyerChecked(false));
|
|
372
|
+
case 4:
|
|
373
|
+
_context.next = 8;
|
|
374
|
+
break;
|
|
375
|
+
case 6:
|
|
376
|
+
_context.next = 8;
|
|
377
|
+
return dispatch(setCurrentBuyerChecked(true));
|
|
378
|
+
case 8:
|
|
379
|
+
searchList();
|
|
380
|
+
case 9:
|
|
381
|
+
case "end":
|
|
382
|
+
return _context.stop();
|
|
383
|
+
}
|
|
384
|
+
}, _callee);
|
|
385
|
+
}));
|
|
386
|
+
return function initHandle(_x2, _x3, _x4) {
|
|
387
|
+
return _ref5.apply(this, arguments);
|
|
388
|
+
};
|
|
389
|
+
}();
|
|
390
|
+
useEffect(function () {
|
|
391
|
+
initHandle(otherInfo, buyerId, orderNo);
|
|
392
|
+
}, [otherInfo, buyerId, orderNo]);
|
|
355
393
|
var searchHandle = function searchHandle() {
|
|
356
394
|
var templateList = form.getFieldValue('templateIdList');
|
|
357
395
|
if (templateList && templateList.length) {
|
|
@@ -384,12 +422,31 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
384
422
|
}, /*#__PURE__*/React.createElement(Col, null, platform !== PlatForm.WEB && /*#__PURE__*/React.createElement(Checkbox, {
|
|
385
423
|
className: "custom_box_search_buyer",
|
|
386
424
|
checked: currentBuyerChecked,
|
|
387
|
-
onChange: function
|
|
388
|
-
|
|
389
|
-
return
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
425
|
+
onChange: /*#__PURE__*/function () {
|
|
426
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
427
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
428
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
429
|
+
case 0:
|
|
430
|
+
if (buyerId) {
|
|
431
|
+
_context2.next = 2;
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
return _context2.abrupt("return", message.warning('请先选择买家,再查询工单!'));
|
|
435
|
+
case 2:
|
|
436
|
+
_context2.next = 4;
|
|
437
|
+
return dispatch(setCurrentBuyerChecked(e.target.checked));
|
|
438
|
+
case 4:
|
|
439
|
+
searchHandle();
|
|
440
|
+
case 5:
|
|
441
|
+
case "end":
|
|
442
|
+
return _context2.stop();
|
|
443
|
+
}
|
|
444
|
+
}, _callee2);
|
|
445
|
+
}));
|
|
446
|
+
return function (_x5) {
|
|
447
|
+
return _ref6.apply(this, arguments);
|
|
448
|
+
};
|
|
449
|
+
}()
|
|
393
450
|
}, "\u5F53\u524D\u4E70\u5BB6")), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("span", {
|
|
394
451
|
className: "action_collapse",
|
|
395
452
|
onClick: function onClick() {
|
|
@@ -504,9 +561,9 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
504
561
|
dispatch(setFormModalVisible(false));
|
|
505
562
|
queryPanelInfoHandle(record);
|
|
506
563
|
};
|
|
507
|
-
var handleCreateWorkOrderByFlowId = function handleCreateWorkOrderByFlowId(
|
|
508
|
-
var logicFlowId =
|
|
509
|
-
name =
|
|
564
|
+
var handleCreateWorkOrderByFlowId = function handleCreateWorkOrderByFlowId(_ref7) {
|
|
565
|
+
var logicFlowId = _ref7.id,
|
|
566
|
+
name = _ref7.name;
|
|
510
567
|
setTitle(name);
|
|
511
568
|
dispatch(setLogicFlowId(logicFlowId));
|
|
512
569
|
dispatch(setFlowWorkOrderId(''));
|
|
@@ -20,7 +20,7 @@ import { Provider } from 'react-redux';
|
|
|
20
20
|
import { useAppSelector, useAppDispatch } from "../model/hooks";
|
|
21
21
|
import { fetchQueryCurrentCompanyUser } from "../model/workOrder";
|
|
22
22
|
import { fetchLogicFlowList } from "../model/logicFlow";
|
|
23
|
-
import {
|
|
23
|
+
import { showPayment } from "../model/customizeWorkOrder";
|
|
24
24
|
import store from "../model/store";
|
|
25
25
|
import { fetchLogOut, fetchxzLogOut } from "../model/login";
|
|
26
26
|
import { Global } from '@kmkf-fe-packages/services-components';
|
|
@@ -106,13 +106,6 @@ var WorkOrder = function WorkOrder(props) {
|
|
|
106
106
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
107
107
|
visible = _useState6[0],
|
|
108
108
|
setVisible = _useState6[1];
|
|
109
|
-
useEffect(function () {
|
|
110
|
-
if (buyerId) {
|
|
111
|
-
dispatch(setCurrentBuyerChecked(true));
|
|
112
|
-
} else {
|
|
113
|
-
dispatch(setCurrentBuyerChecked(false));
|
|
114
|
-
}
|
|
115
|
-
}, [buyerId]);
|
|
116
109
|
useEffect(function () {
|
|
117
110
|
//存储平台信息
|
|
118
111
|
dispatch({
|
|
@@ -291,7 +284,7 @@ var WorkOrder = function WorkOrder(props) {
|
|
|
291
284
|
src: avatarImg
|
|
292
285
|
})) : null), /*#__PURE__*/React.createElement(OrderList, {
|
|
293
286
|
tabActive: tabActive,
|
|
294
|
-
|
|
287
|
+
otherInfo: otherInfo,
|
|
295
288
|
onOpenWangWang: onOpenWangWang
|
|
296
289
|
}), /*#__PURE__*/React.createElement(PaymentWorkOrderList, {
|
|
297
290
|
tabActive: tabActive,
|
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.30",
|
|
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.30",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.30",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.30",
|
|
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": "4a0966470313ad60542fff7c83154f346a3a1880",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|