@kmkf-fe-packages/kmkf-work-order-service-component 2.0.18 → 2.0.19-beta.0

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/README.md CHANGED
@@ -40,7 +40,7 @@ Build library via `father`,
40
40
  $ npm run build
41
41
  ```
42
42
 
43
- 1112221111
43
+ 111222111111
44
44
 
45
45
  ## 企业工单工单项目抽离模块
46
46
 
@@ -46,7 +46,7 @@ export var FLOW_STATUS_V2 = {
46
46
  RETURNING: '回退中'
47
47
  };
48
48
  //不能回填的组件type
49
- export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE'];
49
+ export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE'];
50
50
  export var verifyHandle = function verifyHandle(data, componentDtoList) {
51
51
  var _componentDtoList$fin, _componentDtoList$fin2, _data$paymentUniqueKe, _data$paymentUniqueKe2;
52
52
  var res = {
@@ -7,6 +7,7 @@ declare type CurrentNodeProps = {
7
7
  readonly?: boolean;
8
8
  onOpenWangWang?: (nick: string, id: string) => void;
9
9
  onUpdateRemark?: (remark: string, flag: string) => void;
10
+ onJumpPage?: (val: any) => void;
10
11
  onReminder?: (type: string) => void;
11
12
  flowTemplateId: string;
12
13
  flowWorkOrderId?: string;
@@ -64,7 +64,8 @@ var CurrentNode = function CurrentNode(props, ref) {
64
64
  flowTemplateId = props.flowTemplateId,
65
65
  flowWorkOrderId = props.flowWorkOrderId,
66
66
  queryRemarkList = props.queryRemarkList,
67
- autoSubmit = props.autoSubmit;
67
+ autoSubmit = props.autoSubmit,
68
+ onJumpPage = props.onJumpPage;
68
69
  var _useContext = useContext(Context),
69
70
  dispatch = _useContext.dispatch;
70
71
  // 是否是编辑状态
@@ -315,6 +316,7 @@ var CurrentNode = function CurrentNode(props, ref) {
315
316
  shopId: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo22 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo22 === void 0 ? void 0 : _currentNodeDetail$wo22.shopId) || plat.shopId || defaultShopId,
316
317
  accountName: plat === null || plat === void 0 ? void 0 : plat.accountName,
317
318
  onOpenWangWang: onOpenWangWang,
319
+ onJumpPage: onJumpPage,
318
320
  onUpdateRemark: onUpdateRemark,
319
321
  currentNodeTid: currentNodeTid,
320
322
  form: form,
@@ -24,6 +24,7 @@ declare type FormRenderProps = {
24
24
  form: FormInstance;
25
25
  currentNodeTid: string;
26
26
  onOpenWangWang?: (nick: string, id: string) => void;
27
+ onJumpPage?: (val: any) => void;
27
28
  onUpdateRemark?: (remark: string, flag: string) => void;
28
29
  handleChangeTradeId?: (p: string) => void;
29
30
  canModifyPayment?: boolean;
@@ -72,7 +72,8 @@ var FormRender = function FormRender(props, ref) {
72
72
  _props$isErpUse = props.isErpUse,
73
73
  isErpUse = _props$isErpUse === void 0 ? false : _props$isErpUse,
74
74
  _props$autoSubmit = props.autoSubmit,
75
- autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit;
75
+ autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit,
76
+ onJumpPage = props.onJumpPage;
76
77
  var shopIdToUniqueKeyMap = useMemo(function () {
77
78
  var json = {};
78
79
  shopList.forEach(function (shop) {
@@ -1120,7 +1121,8 @@ var FormRender = function FormRender(props, ref) {
1120
1121
  templateDetail: templateDetail,
1121
1122
  disabled: look,
1122
1123
  displayConfig: get(templateDetail, 'flowTemplateConfig.showHideRule.rules', []),
1123
- isPreRender: false
1124
+ isPreRender: false,
1125
+ onJumpPage: onJumpPage
1124
1126
  }));
1125
1127
  // TODO: 这里只是为了把前置组件的值能够set到当前form表单中去
1126
1128
  // TODO: 为什么不直接把前置和当前放在同一个form里面呢?因为放在同一个里面会有必填校验等逻辑,前置节点在当前表单中只是做展示,但是还必须有控制显隐功能
@@ -1236,7 +1238,8 @@ var FormRender = function FormRender(props, ref) {
1236
1238
  templateDetail: templateDetail,
1237
1239
  disabled: true,
1238
1240
  displayConfig: finalDisplayConfig,
1239
- isPreRender: true
1241
+ isPreRender: true,
1242
+ onJumpPage: onJumpPage
1240
1243
  })(t);
1241
1244
  });
1242
1245
  });
@@ -7,6 +7,7 @@ interface NodeItem {
7
7
  flowWorkOrderId?: string;
8
8
  shopList: any[];
9
9
  onOpenWangWang?: (nick: string, id: string) => void;
10
+ onJumpPage?: (val: any) => void;
10
11
  queryRemarkList: () => void;
11
12
  openCloseCallback?: () => void;
12
13
  handler: string;
@@ -51,7 +51,8 @@ var NodeItem = function NodeItem(props) {
51
51
  _props$visibleType = props.visibleType,
52
52
  visibleType = _props$visibleType === void 0 ? '' : _props$visibleType,
53
53
  nodeIsAuto = props.nodeIsAuto,
54
- flowTemplateKey = props.flowTemplateKey;
54
+ flowTemplateKey = props.flowTemplateKey,
55
+ onJumpPage = props.onJumpPage;
55
56
  var _useContext = useContext(Context),
56
57
  dispatch = _useContext.dispatch;
57
58
  var plat = useSelector(selectPlatInfo);
@@ -290,6 +291,7 @@ var NodeItem = function NodeItem(props) {
290
291
  accountName: plat.accountName,
291
292
  form: form,
292
293
  onOpenWangWang: onOpenWangWang,
294
+ onJumpPage: onJumpPage,
293
295
  look: !editing || flowStatus === FlowStatus.STOPPING,
294
296
  shopId: data === null || data === void 0 ? void 0 : (_data$data18 = data.data) === null || _data$data18 === void 0 ? void 0 : (_data$data18$workOrde = _data$data18.workOrder) === null || _data$data18$workOrde === void 0 ? void 0 : _data$data18$workOrde.shopId,
295
297
  formProps: {
@@ -1,2 +1,2 @@
1
1
  // 切换当前店铺时,以下组件字段需要清空
2
- export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS'];
2
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_LOGISTICS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'];
@@ -1259,6 +1259,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1259
1259
  nodeName: flowRecord.nodeName,
1260
1260
  shopList: shopList,
1261
1261
  onOpenWangWang: onOpenWangWang,
1262
+ onJumpPage: onJumpPage,
1262
1263
  queryRemarkList: queryRemarkList,
1263
1264
  handler: flowRecord.operator,
1264
1265
  canWithdraw: canWithdraw,
@@ -1279,6 +1280,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
1279
1280
  readonly: readonly,
1280
1281
  onOpenWangWang: onOpenWangWang,
1281
1282
  onUpdateRemark: onUpdateRemark,
1283
+ onJumpPage: onJumpPage,
1282
1284
  onReminder: handleReminder,
1283
1285
  queryRemarkList: queryRemarkList,
1284
1286
  autoSubmit: autoSubmit
@@ -3,6 +3,7 @@ export declare const COMMON_HOST = "https://kefu.kuaimai.com";
3
3
  export declare const HD_HOST = "https://kefuab.kuaimai.com";
4
4
  interface LoginProps {
5
5
  loginCallBack?: (val: any) => void;
6
+ clickImgCallBack?: () => void;
6
7
  }
7
8
  declare const ProviderLogin: (props: LoginProps) => React.JSX.Element;
8
9
  export default ProviderLogin;
@@ -21,7 +21,8 @@ import styles from "./index.module.less";
21
21
  export var COMMON_HOST = 'https://kefu.kuaimai.com';
22
22
  export var HD_HOST = 'https://kefuab.kuaimai.com';
23
23
  var Login = function Login(props) {
24
- var loginCallBack = props.loginCallBack;
24
+ var loginCallBack = props.loginCallBack,
25
+ clickImgCallBack = props.clickImgCallBack;
25
26
  var _useState = useState(''),
26
27
  _useState2 = _slicedToArray(_useState, 2),
27
28
  name = _useState2[0],
@@ -248,7 +249,8 @@ var Login = function Login(props) {
248
249
  className: styles.logo
249
250
  }, /*#__PURE__*/React.createElement("img", {
250
251
  src: logo,
251
- alt: "logo"
252
+ alt: "logo",
253
+ onClick: clickImgCallBack
252
254
  })), /*#__PURE__*/React.createElement(Form, {
253
255
  className: styles.container
254
256
  }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const COMMON_HOST = "https://kefu.kuaimai.com";
3
+ export declare const HD_HOST = "https://kefuab.kuaimai.com";
4
+ interface LoginProps {
5
+ loginCallBack?: (val: any) => void;
6
+ }
7
+ declare const ProviderLogin: (props: LoginProps) => React.JSX.Element;
8
+ export default ProviderLogin;
@@ -0,0 +1,268 @@
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); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
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."); }
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); }
8
+ 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; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useState, useMemo, useEffect } from 'react';
12
+ import { Input, message, Form, Button } from 'antd';
13
+ import md5 from 'js-md5';
14
+ import { Provider } from 'react-redux';
15
+ import store from "../model/store";
16
+ import cache from "../common/cache";
17
+ import { useAppDispatch } from "../model/hooks";
18
+ import { fetchLoginNew, fetchShopList, setUserInfo } from "../model/login";
19
+ import logo from "../assets/logo.svg";
20
+ import styles from "./index.module.less";
21
+ export var COMMON_HOST = 'https://kefu.kuaimai.com';
22
+ export var HD_HOST = 'https://kefuab.kuaimai.com';
23
+ var Login = function Login(props) {
24
+ var loginCallBack = props.loginCallBack;
25
+ var _useState = useState(''),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ name = _useState2[0],
28
+ setName = _useState2[1];
29
+ var _useState3 = useState(''),
30
+ _useState4 = _slicedToArray(_useState3, 2),
31
+ account = _useState4[0],
32
+ setAccount = _useState4[1];
33
+ var _useState5 = useState(''),
34
+ _useState6 = _slicedToArray(_useState5, 2),
35
+ password = _useState6[0],
36
+ setPassword = _useState6[1];
37
+ var _useState7 = useState(false),
38
+ _useState8 = _slicedToArray(_useState7, 2),
39
+ loading = _useState8[0],
40
+ setLoading = _useState8[1];
41
+ // 直接登陆模式
42
+ var _useState9 = useState(false),
43
+ _useState10 = _slicedToArray(_useState9, 2),
44
+ isDirectProcess = _useState10[0],
45
+ setDirectProcess = _useState10[1];
46
+ // 显示历史记录
47
+ var _useState11 = useState(false),
48
+ _useState12 = _slicedToArray(_useState11, 2),
49
+ showRecommendPwdList = _useState12[0],
50
+ setShowRecommendPwdList = _useState12[1];
51
+ var dispatch = useAppDispatch();
52
+ useEffect(function () {
53
+ localStorage.removeItem('kmkf_kmgd_cookie');
54
+ cache.setHost(COMMON_HOST);
55
+ }, []);
56
+ var processHistoryPwd = function processHistoryPwd(params) {
57
+ var historyList = cache.getHistoryList();
58
+ if (historyList.findIndex(function (item) {
59
+ return item.account === params.account;
60
+ }) < 0) {
61
+ historyList.unshift(params);
62
+ }
63
+ cache.setHistoryList(historyList);
64
+ };
65
+ var changeProcessHistoryPwd = function changeProcessHistoryPwd(params) {
66
+ var historyList = cache.getHistoryList();
67
+ historyList = historyList.filter(function (item) {
68
+ return item.account !== params.account;
69
+ });
70
+ historyList.unshift(params);
71
+ cache.setHistoryList(historyList);
72
+ };
73
+ var onCompanyChange = function onCompanyChange(val) {
74
+ if (isDirectProcess) {
75
+ setDirectProcess(false);
76
+ setPassword('');
77
+ }
78
+ setName(val);
79
+ };
80
+ var onAccountChange = function onAccountChange(val) {
81
+ if (isDirectProcess) {
82
+ setDirectProcess(false);
83
+ setPassword('');
84
+ }
85
+ setAccount(val);
86
+ };
87
+ var handleLoginClick = /*#__PURE__*/function () {
88
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
89
+ var isDirect,
90
+ _args2 = arguments;
91
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
92
+ while (1) switch (_context2.prev = _context2.next) {
93
+ case 0:
94
+ isDirect = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : false;
95
+ if (name) {
96
+ _context2.next = 4;
97
+ break;
98
+ }
99
+ message.error('请输入公司名称');
100
+ return _context2.abrupt("return");
101
+ case 4:
102
+ if (account) {
103
+ _context2.next = 7;
104
+ break;
105
+ }
106
+ message.error('请输入登录账号');
107
+ return _context2.abrupt("return");
108
+ case 7:
109
+ if (password) {
110
+ _context2.next = 10;
111
+ break;
112
+ }
113
+ message.error('请输入密码');
114
+ return _context2.abrupt("return");
115
+ case 10:
116
+ try {
117
+ setLoading(true);
118
+ dispatch(fetchLoginNew({
119
+ name: name.trim(),
120
+ account: account.trim(),
121
+ password: isDirect ? password : md5(password),
122
+ pageReturnType: 'client_jump'
123
+ })).unwrap().then( /*#__PURE__*/function () {
124
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
125
+ var data, success, _data$companyUser;
126
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
127
+ while (1) switch (_context.prev = _context.next) {
128
+ case 0:
129
+ data = res.data, success = res.success; // console.log(data, success);
130
+ if (isDirect) {
131
+ processHistoryPwd({
132
+ name: name,
133
+ account: account,
134
+ password: password
135
+ });
136
+ } else {
137
+ changeProcessHistoryPwd({
138
+ name: name,
139
+ account: account,
140
+ password: md5(password)
141
+ });
142
+ }
143
+ if (!success) {
144
+ _context.next = 10;
145
+ break;
146
+ }
147
+ message.success('登录成功', 1.5);
148
+ dispatch(setUserInfo(data === null || data === void 0 ? void 0 : data.companyUser));
149
+ cache.setHost((data === null || data === void 0 ? void 0 : data.domain) || COMMON_HOST);
150
+ cache.setCookie(data === null || data === void 0 ? void 0 : (_data$companyUser = data.companyUser) === null || _data$companyUser === void 0 ? void 0 : _data$companyUser.ckValue);
151
+ _context.next = 9;
152
+ return dispatch(fetchShopList());
153
+ case 9:
154
+ loginCallBack === null || loginCallBack === void 0 ? void 0 : loginCallBack({
155
+ data: data
156
+ });
157
+ case 10:
158
+ setLoading(false);
159
+ case 11:
160
+ case "end":
161
+ return _context.stop();
162
+ }
163
+ }, _callee);
164
+ }));
165
+ return function (_x2) {
166
+ return _ref2.apply(this, arguments);
167
+ };
168
+ }()).catch(function () {
169
+ setLoading(false);
170
+ });
171
+ } catch (err) {
172
+ setLoading(false);
173
+ console.error(err);
174
+ }
175
+ case 11:
176
+ case "end":
177
+ return _context2.stop();
178
+ }
179
+ }, _callee2);
180
+ }));
181
+ return function handleLoginClick() {
182
+ return _ref.apply(this, arguments);
183
+ };
184
+ }();
185
+ var changeRecommendVisible = function changeRecommendVisible(flag) {
186
+ setTimeout(function () {
187
+ setShowRecommendPwdList(flag);
188
+ }, 500);
189
+ };
190
+ var handleSelectHistoryRecord = function handleSelectHistoryRecord(item) {
191
+ var itemName = item.name,
192
+ itemAccount = item.account,
193
+ itemPassword = item.password;
194
+ setName(itemName);
195
+ setAccount(itemAccount);
196
+ setPassword(itemPassword);
197
+ setDirectProcess(true);
198
+ };
199
+ var filteredHistoryList = useMemo(function () {
200
+ var historyList = cache.getHistoryList();
201
+ return historyList.filter(function (item) {
202
+ if (account) {
203
+ return item.account.includes(account);
204
+ }
205
+ return true;
206
+ });
207
+ }, [account]);
208
+ return /*#__PURE__*/React.createElement("div", {
209
+ className: styles.wrap
210
+ }, /*#__PURE__*/React.createElement("div", {
211
+ className: styles.logo
212
+ }, /*#__PURE__*/React.createElement("img", {
213
+ src: logo,
214
+ alt: "logo"
215
+ })), /*#__PURE__*/React.createElement(Form, {
216
+ className: styles.container
217
+ }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
218
+ value: name,
219
+ onChange: function onChange(e) {
220
+ return onCompanyChange(e.target.value);
221
+ },
222
+ placeholder: "\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0"
223
+ })), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
224
+ className: styles.recomConWrap
225
+ }, /*#__PURE__*/React.createElement(Input, {
226
+ onFocus: function onFocus() {
227
+ return changeRecommendVisible(true);
228
+ },
229
+ onBlur: function onBlur() {
230
+ return changeRecommendVisible(false);
231
+ },
232
+ value: account,
233
+ onChange: function onChange(e) {
234
+ return onAccountChange(e.target.value);
235
+ },
236
+ placeholder: "\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7"
237
+ }), showRecommendPwdList && filteredHistoryList.length > 0 && /*#__PURE__*/React.createElement("div", {
238
+ className: styles.recomListCon
239
+ }, /*#__PURE__*/React.createElement("ul", null, filteredHistoryList.map(function (item) {
240
+ return /*#__PURE__*/React.createElement("li", {
241
+ key: item.account,
242
+ className: styles.recomListItem,
243
+ onClick: function onClick() {
244
+ return handleSelectHistoryRecord(item);
245
+ }
246
+ }, /*#__PURE__*/React.createElement("div", null, "\u4F01\u4E1A\u540D\u79F0\uFF1A", item.name), /*#__PURE__*/React.createElement("div", null, "\u767B\u5F55\u8D26\u53F7:", item.account));
247
+ }))))), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Input, {
248
+ value: password,
249
+ type: "password",
250
+ onChange: function onChange(e) {
251
+ return setPassword(e.target.value);
252
+ },
253
+ placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
254
+ }))), /*#__PURE__*/React.createElement(Button, {
255
+ onClick: function onClick() {
256
+ return handleLoginClick(isDirectProcess);
257
+ },
258
+ type: "primary",
259
+ block: true,
260
+ loading: loading
261
+ }, "\u767B\u5F55"));
262
+ };
263
+ var ProviderLogin = function ProviderLogin(props) {
264
+ return /*#__PURE__*/React.createElement(Provider, {
265
+ store: store
266
+ }, /*#__PURE__*/React.createElement(Login, props));
267
+ };
268
+ export default ProviderLogin;
@@ -0,0 +1,45 @@
1
+ .wrap {
2
+ width: 266px;
3
+ margin: auto;
4
+
5
+ .logo {
6
+ display: flex;
7
+ justify-content: center;
8
+ margin-top: 146px;
9
+ }
10
+
11
+ .container {
12
+ margin-top: 48px;
13
+
14
+ ul {
15
+ margin: 0px;
16
+ padding: 0;
17
+ list-style-type: none;
18
+ }
19
+ }
20
+ }
21
+
22
+ .recomConWrap {
23
+ position: relative;
24
+
25
+ .recomListCon {
26
+ position: absolute;
27
+ left: 28px;
28
+ z-index: 2;
29
+ width: 300px;
30
+ max-height: 160px;
31
+ overflow: auto;
32
+ background-color: #fff;
33
+
34
+ ul {
35
+ margin: 0px;
36
+ padding: 0;
37
+ list-style-type: none;
38
+ }
39
+
40
+ .recomListItem {
41
+ padding: 8px;
42
+ cursor: pointer;
43
+ }
44
+ }
45
+ }
@@ -87,7 +87,8 @@ export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
87
87
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
88
88
  BUSINESS_ORDER_NO: 'businessOrderNo',
89
89
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
90
- BASIC_MULT_SELECT: 'basicMultSelect'
90
+ BASIC_MULT_SELECT: 'basicMultSelect',
91
+ ORDER_TYPE: 'erpOrderType'
91
92
  };
92
93
  export var DEFAULT_ARRAY_COMPONENT_TYPE_FIELD_MAPPING = {
93
94
  RATE: 'rate',
@@ -272,6 +273,12 @@ export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
272
273
  returnTypeKey: 'wdtReturnType',
273
274
  returnGoodsKey: 'wdtReturnGoods',
274
275
  shopCodeKey: 'shopCode'
276
+ },
277
+ GY_RETURN_GOODS: {
278
+ returnTypeKey: 'gyReturnType',
279
+ returnGoodsKey: 'gyReturnGoods',
280
+ gySystemOrderNoKey: 'gySystemOrderNo',
281
+ shopCodeKey: 'shopCode'
275
282
  }
276
283
  };
277
284
  export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
@@ -153,7 +153,7 @@ var handleLogisticsInterception = function handleLogisticsInterception(_ref14) {
153
153
  var addContent = _ref14.addContent,
154
154
  getNowData = _ref14.getNowData;
155
155
  return function (item) {
156
- ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsApiStatus'].map(function (key) {
156
+ ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsApiStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'].map(function (key) {
157
157
  addContent(key, getNowData("".concat(item.uniqueKey, ".").concat(key), ''));
158
158
  });
159
159
  addContent('interceptProvince', getNowData("".concat(item.uniqueKey, ".interceptAddress[0]"), ''));
@@ -553,9 +553,25 @@ var handleBsOrWdtReturnGoods = function handleBsOrWdtReturnGoods(_ref38) {
553
553
  addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey]) || '');
554
554
  };
555
555
  };
556
- var handleBsPosting = function handleBsPosting(_ref39) {
556
+ var handleGYReturnGoods = function handleGYReturnGoods(_ref39) {
557
557
  var addContent = _ref39.addContent,
558
558
  getNowData = _ref39.getNowData;
559
+ return function (item) {
560
+ var currentReturn = getNowData(item.uniqueKey, {});
561
+ var compType = item.workOrderComponentType;
562
+ addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnTypeKey, currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnTypeKey]);
563
+ addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnGoodsKey, currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].returnGoodsKey]);
564
+ addContent(SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].gySystemOrderNoKey, (currentReturn === null || currentReturn === void 0 ? void 0 : currentReturn[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].gySystemOrderNoKey]) || '');
565
+ // addContent(
566
+ // SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey,
567
+ // currentReturn?.[SUBMIT_COMPONENT_RETURN_GOODS_MAP[compType].shopCodeKey] || '',
568
+ // );
569
+ };
570
+ };
571
+
572
+ var handleBsPosting = function handleBsPosting(_ref40) {
573
+ var addContent = _ref40.addContent,
574
+ getNowData = _ref40.getNowData;
559
575
  return function (item) {
560
576
  ['bsPostingProvince', 'bsPostingCity', 'bsPostingDistrict'].map(function (key, index) {
561
577
  addContent(key, getNowData("".concat(item.uniqueKey, ".postingAddress[").concat(index, "]"), ''));
@@ -565,9 +581,9 @@ var handleBsPosting = function handleBsPosting(_ref39) {
565
581
  addContent('bsPostingReceiverMobile', getNowData("".concat(item.uniqueKey, ".postingReceiverMobile"), ''));
566
582
  };
567
583
  };
568
- var handleSystemOrder = function handleSystemOrder(_ref40) {
569
- var addContent = _ref40.addContent,
570
- getNowData = _ref40.getNowData;
584
+ var handleSystemOrder = function handleSystemOrder(_ref41) {
585
+ var addContent = _ref41.addContent,
586
+ getNowData = _ref41.getNowData;
571
587
  return function (item) {
572
588
  var selectIds = getNowData("".concat(item.uniqueKey, ".selectIds"), '');
573
589
  var showOrderInfo = getNowData("".concat(item.uniqueKey, ".showOrderInfo"), []);
@@ -581,16 +597,16 @@ var handleSystemOrder = function handleSystemOrder(_ref40) {
581
597
  }));
582
598
  };
583
599
  };
584
- var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref41) {
585
- var addContent = _ref41.addContent,
586
- getNowData = _ref41.getNowData;
600
+ var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref42) {
601
+ var addContent = _ref42.addContent,
602
+ getNowData = _ref42.getNowData;
587
603
  return function (item) {
588
604
  addContent('buyerMessageNotice', getNowData(item.uniqueKey, '未通知'));
589
605
  };
590
606
  };
591
- var handleBsDeliveryNo = function handleBsDeliveryNo(_ref42) {
592
- var addContent = _ref42.addContent,
593
- getNowData = _ref42.getNowData;
607
+ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref43) {
608
+ var addContent = _ref43.addContent,
609
+ getNowData = _ref43.getNowData;
594
610
  return function (item) {
595
611
  var deliveryNoList = getNowData(item.uniqueKey, []);
596
612
  addContent('deliveryNoList', deliveryNoList);
@@ -599,9 +615,9 @@ var handleBsDeliveryNo = function handleBsDeliveryNo(_ref42) {
599
615
  }));
600
616
  };
601
617
  };
602
- var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref43) {
603
- var addContent = _ref43.addContent,
604
- getNowData = _ref43.getNowData;
618
+ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref44) {
619
+ var addContent = _ref44.addContent,
620
+ getNowData = _ref44.getNowData;
605
621
  return function (item) {
606
622
  var returnGoodsTradeItemList = getNowData(item.uniqueKey, []);
607
623
  addContent('returnGoodsTradeItemList', returnGoodsTradeItemList);
@@ -610,9 +626,9 @@ var handleReturnGoodsTradeId = function handleReturnGoodsTradeId(_ref43) {
610
626
  }));
611
627
  };
612
628
  };
613
- var handleErpTradeId = function handleErpTradeId(_ref44) {
614
- var addContent = _ref44.addContent,
615
- getNowData = _ref44.getNowData;
629
+ var handleErpTradeId = function handleErpTradeId(_ref45) {
630
+ var addContent = _ref45.addContent,
631
+ getNowData = _ref45.getNowData;
616
632
  return function (item) {
617
633
  var tradeItemList = getNowData(item.uniqueKey, []);
618
634
  addContent('tradeItemList', tradeItemList);
@@ -621,18 +637,18 @@ var handleErpTradeId = function handleErpTradeId(_ref44) {
621
637
  }));
622
638
  };
623
639
  };
624
- var handleWlnGoods = function handleWlnGoods(_ref45) {
625
- var addContent = _ref45.addContent,
626
- getNowData = _ref45.getNowData;
640
+ var handleWlnGoods = function handleWlnGoods(_ref46) {
641
+ var addContent = _ref46.addContent,
642
+ getNowData = _ref46.getNowData;
627
643
  return function (item) {
628
644
  var wlnGoods = getNowData(item.uniqueKey, {});
629
645
  addContent('wlnGoods', wlnGoods.wlnGoods);
630
646
  addContent('shopCode', (wlnGoods === null || wlnGoods === void 0 ? void 0 : wlnGoods.shopCode) || '');
631
647
  };
632
648
  };
633
- var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref46) {
634
- var addContent = _ref46.addContent,
635
- getNowData = _ref46.getNowData;
649
+ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref47) {
650
+ var addContent = _ref47.addContent,
651
+ getNowData = _ref47.getNowData;
636
652
  return function (item) {
637
653
  ['bsE3SystemOrderNo', 'bsE3ReissueType', 'bsE3ReissueMemo', 'bsE3ReissueGoods'].map(function (key) {
638
654
  if (key === 'bsE3ReissueGoods') {
@@ -643,24 +659,24 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref46) {
643
659
  });
644
660
  };
645
661
  };
646
- var handleDefault = function handleDefault(_ref47) {
647
- var addContent = _ref47.addContent,
648
- getNowData = _ref47.getNowData;
662
+ var handleDefault = function handleDefault(_ref48) {
663
+ var addContent = _ref48.addContent,
664
+ getNowData = _ref48.getNowData;
649
665
  return function (item) {
650
666
  addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
651
667
  };
652
668
  };
653
- var handleStatusField = function handleStatusField(_ref48) {
654
- var addContent = _ref48.addContent,
655
- getNowData = _ref48.getNowData;
669
+ var handleStatusField = function handleStatusField(_ref49) {
670
+ var addContent = _ref49.addContent,
671
+ getNowData = _ref49.getNowData;
656
672
  return function (item) {
657
673
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
658
674
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
659
675
  };
660
676
  };
661
- var handleGoodStatus = function handleGoodStatus(_ref49) {
662
- var addContent = _ref49.addContent,
663
- getNowData = _ref49.getNowData;
677
+ var handleGoodStatus = function handleGoodStatus(_ref50) {
678
+ var addContent = _ref50.addContent,
679
+ getNowData = _ref50.getNowData;
664
680
  return function (item) {
665
681
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
666
682
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
@@ -668,13 +684,13 @@ var handleGoodStatus = function handleGoodStatus(_ref49) {
668
684
  }));
669
685
  };
670
686
  };
671
- var processComponent = function processComponent(_ref50) {
672
- var params = _ref50.params,
673
- nowData = _ref50.nowData,
674
- updateFlag = _ref50.updateFlag,
675
- detail = _ref50.detail,
676
- accountName = _ref50.accountName,
677
- getValueByField = _ref50.getValueByField;
687
+ var processComponent = function processComponent(_ref51) {
688
+ var params = _ref51.params,
689
+ nowData = _ref51.nowData,
690
+ updateFlag = _ref51.updateFlag,
691
+ detail = _ref51.detail,
692
+ accountName = _ref51.accountName,
693
+ getValueByField = _ref51.getValueByField;
678
694
  return function (item) {
679
695
  var contentVoList = [];
680
696
  var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
@@ -721,6 +737,7 @@ var processComponent = function processComponent(_ref50) {
721
737
  case 'BUSINESS_ORDER_NO':
722
738
  case 'PAYMENT_VOUCHER_CODE':
723
739
  case 'BASIC_MULT_SELECT':
740
+ case 'ORDER_TYPE':
724
741
  wrapFn(handleOnlyAddContent);
725
742
  break;
726
743
  case 'RATE':
@@ -868,6 +885,9 @@ var processComponent = function processComponent(_ref50) {
868
885
  case 'WDT_RETURN_GOODS':
869
886
  wrapFn(handleBsOrWdtReturnGoods);
870
887
  break;
888
+ case 'GY_RETURN_GOODS':
889
+ wrapFn(handleGYReturnGoods);
890
+ break;
871
891
  case 'BS_POSTING':
872
892
  wrapFn(handleBsPosting);
873
893
  break;
@@ -51,6 +51,7 @@ var workTypeKeys = {
51
51
  DATETIME: 'dateTime',
52
52
  TEXTAREA: 'textarea',
53
53
  SELECT: 'select',
54
+ ORDER_TYPE: 'erpOrderType',
54
55
  SYSTEM_ORDER_NO: 'systemOrderNo',
55
56
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
56
57
  BUSINESS_ORDER_NO: 'businessOrderNo',
@@ -372,15 +373,15 @@ export var orderBack = /*#__PURE__*/function () {
372
373
  orders: []
373
374
  });
374
375
  jstInfo.jstLogistics = [{
375
- logisticsCode: ""
376
+ logisticsCode: ''
376
377
  }];
377
378
  jstInfo.jstSendGood = [{
378
379
  sendId: '',
379
380
  sendName: ''
380
381
  }];
381
382
  jstInfo.jstSupply = [{
382
- supplyName: "",
383
- supplyId: ""
383
+ supplyName: '',
384
+ supplyId: ''
384
385
  }];
385
386
  jstInfo.jstItemSelectThird = [];
386
387
  }
@@ -480,7 +481,6 @@ export var orderBack = /*#__PURE__*/function () {
480
481
  }
481
482
  }
482
483
  // console.log('orderback', values);
483
-
484
484
  form.setFieldsValue(_objectSpread(_objectSpread(_objectSpread({}, formValue), values), {}, {
485
485
  fixed_field_buyerOpenUid: orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.buyerOpenUid,
486
486
  shopId: shopId
@@ -819,6 +819,7 @@ export var reversalFormValues = function reversalFormValues() {
819
819
  case 'WDT_RETURN_GOODS':
820
820
  case 'WDT_EXCHANGE_GOODS':
821
821
  case 'GY_REISSUE_GOODS':
822
+ case 'GY_RETURN_GOODS':
822
823
  case 'JST_REISSUE_GOODS':
823
824
  case 'JST_RETURN_GOODS':
824
825
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
@@ -245,7 +245,7 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
245
245
  address = every(address, function (item) {
246
246
  return !item;
247
247
  }) ? [] : address;
248
- var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus'];
248
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
249
249
  var map = subFields.reduce(function (cur, nxt) {
250
250
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
251
251
  }, {});
@@ -681,6 +681,12 @@ var processBsOrWdtReturnGoods = function processBsOrWdtReturnGoods(getValue) {
681
681
  returnGoodsKey: 'wdtReturnGoods',
682
682
  shopCodeKey: 'shopCode'
683
683
  },
684
+ GY_RETURN_GOODS: {
685
+ returnTypeKey: 'gyReturnType',
686
+ returnGoodsKey: 'gyReturnGoods',
687
+ gySystemOrderNo: 'gySystemOrderNo',
688
+ shopCodeKey: 'shopCode'
689
+ },
684
690
  JST_RETURN_GOODS: {
685
691
  returnTypeKey: 'jstReturnType',
686
692
  returnGoodsKey: 'jstReturnGoods',
@@ -742,6 +748,11 @@ var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
742
748
  return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
743
749
  };
744
750
  };
751
+ var processOrderType = function processOrderType(getValue) {
752
+ return function (nex, config) {
753
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
754
+ };
755
+ };
745
756
  var processErpTradeId = function processErpTradeId(getValue) {
746
757
  return function (nex, config) {
747
758
  var SYSTEM_ORDER_MAP = {
@@ -825,6 +836,16 @@ var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
825
836
  };
826
837
  };
827
838
  };
839
+ var processGyReturnGoods = function processGyReturnGoods(getValue) {
840
+ return function (nex, config) {
841
+ return _defineProperty({}, nex.uniqueKey, {
842
+ gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), ['1']),
843
+ gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
844
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
845
+ gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
846
+ });
847
+ };
848
+ };
828
849
  var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
829
850
  return function (getValue) {
830
851
  return function (nex, config) {
@@ -873,14 +894,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
873
894
  };
874
895
  var processLabel = function processLabel(getValue) {
875
896
  return function (nex, config) {
876
- var _ref60;
877
- return _ref60 = {}, _defineProperty(_ref60, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref60, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref60;
897
+ var _ref62;
898
+ return _ref62 = {}, _defineProperty(_ref62, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref62, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref62;
878
899
  };
879
900
  };
880
901
  var processMemberLevel = function processMemberLevel(getValue) {
881
902
  return function (nex, config) {
882
- var _ref61;
883
- return _ref61 = {}, _defineProperty(_ref61, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref61, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref61;
903
+ var _ref63;
904
+ return _ref63 = {}, _defineProperty(_ref63, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref63, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref63;
884
905
  };
885
906
  };
886
907
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -1004,6 +1025,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1004
1025
  JST_SYSTEM_ORDER: processErpSystemOrder,
1005
1026
  GY_SYSTEM_ORDER: processErpSystemOrder,
1006
1027
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
1028
+ ORDER_TYPE: processOrderType,
1007
1029
  RETURN_GOODS_TRADE_ID: processErpTradeId,
1008
1030
  BS_DELIVERY_NO: processErpTradeId,
1009
1031
  REISSUE_TRADE_ID: processErpTradeId,
@@ -1012,6 +1034,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1012
1034
  WLN_GOODS: processWlnGoods,
1013
1035
  WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
1014
1036
  GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
1037
+ GY_RETURN_GOODS: processGyReturnGoods,
1015
1038
  JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
1016
1039
  LABEL: processLabel,
1017
1040
  MEMBER_LEVEL: processMemberLevel,
@@ -1,5 +1,6 @@
1
1
  export { default as WorkOrder } from './WorkOrder';
2
2
  export { default as Login } from './Login';
3
+ export { default as LoginNew } from './LoginNew';
3
4
  export { default as SingleShopWorkOrder } from './SingleShopWorkOrder';
4
5
  export { default as FormRender } from './FormRender';
5
6
  export { default as FormRenderTemplateId } from './FormRenderTemplateId';
package/dist/esm/index.js CHANGED
@@ -10,6 +10,7 @@
10
10
  */
11
11
  export { default as WorkOrder } from "./WorkOrder";
12
12
  export { default as Login } from "./Login";
13
+ export { default as LoginNew } from "./LoginNew";
13
14
  export { default as SingleShopWorkOrder } from "./SingleShopWorkOrder";
14
15
  export { default as FormRender } from "./FormRender";
15
16
  export { default as FormRenderTemplateId } from "./FormRenderTemplateId";
@@ -27,6 +27,16 @@ export declare const fetchLogin: import("@reduxjs/toolkit").AsyncThunk<any, Logi
27
27
  fulfilledMeta?: unknown;
28
28
  rejectedMeta?: unknown;
29
29
  }>;
30
+ export declare const fetchLoginNew: import("@reduxjs/toolkit").AsyncThunk<any, LoginParams, {
31
+ state?: unknown;
32
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
33
+ extra?: unknown;
34
+ rejectValue?: unknown;
35
+ serializedErrorType?: unknown;
36
+ pendingMeta?: unknown;
37
+ fulfilledMeta?: unknown;
38
+ rejectedMeta?: unknown;
39
+ }>;
30
40
  export declare const fetchShopList: import("@reduxjs/toolkit").AsyncThunk<any, void, {
31
41
  state?: unknown;
32
42
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -13,7 +13,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
13
13
  * Copyright (c) 2022 by wangzhenggui jianjia.wzg@raycloud.com, All Rights Reserved.
14
14
  */
15
15
  import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
16
- import { grayWhiteListApi, login, queryShopList, logOut } from "./servers/api";
16
+ import { grayWhiteListApi, login, loginNew, queryShopList, logOut } from "./servers/api";
17
17
  var initialState = {
18
18
  loading: false,
19
19
  // 登陆用户信息
@@ -77,37 +77,58 @@ export var fetchLogin = createAsyncThunk('login/login', /*#__PURE__*/function ()
77
77
  return _ref2.apply(this, arguments);
78
78
  };
79
79
  }());
80
- export var fetchShopList = createAsyncThunk('login/queryShopList', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
80
+ export var fetchLoginNew = createAsyncThunk('login/loginNew', /*#__PURE__*/function () {
81
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(data) {
82
+ var response;
83
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
84
+ while (1) switch (_context3.prev = _context3.next) {
85
+ case 0:
86
+ _context3.next = 2;
87
+ return loginNew(data);
88
+ case 2:
89
+ response = _context3.sent;
90
+ return _context3.abrupt("return", response);
91
+ case 4:
92
+ case "end":
93
+ return _context3.stop();
94
+ }
95
+ }, _callee3);
96
+ }));
97
+ return function (_x3) {
98
+ return _ref3.apply(this, arguments);
99
+ };
100
+ }());
101
+ export var fetchShopList = createAsyncThunk('login/queryShopList', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
81
102
  var response;
82
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
83
- while (1) switch (_context3.prev = _context3.next) {
103
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
104
+ while (1) switch (_context4.prev = _context4.next) {
84
105
  case 0:
85
- _context3.next = 2;
106
+ _context4.next = 2;
86
107
  return queryShopList();
87
108
  case 2:
88
- response = _context3.sent;
89
- return _context3.abrupt("return", response.data);
109
+ response = _context4.sent;
110
+ return _context4.abrupt("return", response.data);
90
111
  case 4:
91
112
  case "end":
92
- return _context3.stop();
113
+ return _context4.stop();
93
114
  }
94
- }, _callee3);
115
+ }, _callee4);
95
116
  })));
96
- export var fetchLogOut = createAsyncThunk('login/logOut', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
117
+ export var fetchLogOut = createAsyncThunk('login/logOut', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
97
118
  var response;
98
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
99
- while (1) switch (_context4.prev = _context4.next) {
119
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
120
+ while (1) switch (_context5.prev = _context5.next) {
100
121
  case 0:
101
- _context4.next = 2;
122
+ _context5.next = 2;
102
123
  return logOut();
103
124
  case 2:
104
- response = _context4.sent;
105
- return _context4.abrupt("return", response.data);
125
+ response = _context5.sent;
126
+ return _context5.abrupt("return", response.data);
106
127
  case 4:
107
128
  case "end":
108
- return _context4.stop();
129
+ return _context5.stop();
109
130
  }
110
- }, _callee4);
131
+ }, _callee5);
111
132
  })));
112
133
  export var globalSlice = createSlice({
113
134
  name: 'login',
@@ -119,22 +140,22 @@ export var globalSlice = createSlice({
119
140
  closeLoading: function closeLoading(state) {
120
141
  state.loading = false;
121
142
  },
122
- setUserInfo: function setUserInfo(state, _ref5) {
123
- var payload = _ref5.payload;
143
+ setUserInfo: function setUserInfo(state, _ref6) {
144
+ var payload = _ref6.payload;
124
145
  state.userInfo = payload;
125
146
  },
126
- setShopList: function setShopList(state, _ref6) {
127
- var payload = _ref6.payload;
147
+ setShopList: function setShopList(state, _ref7) {
148
+ var payload = _ref7.payload;
128
149
  state.shopList = payload;
129
150
  },
130
- setPlatform: function setPlatform(state, _ref7) {
131
- var payload = _ref7.payload;
151
+ setPlatform: function setPlatform(state, _ref8) {
152
+ var payload = _ref8.payload;
132
153
  state.platform = payload;
133
154
  }
134
155
  },
135
156
  extraReducers: function extraReducers(builder) {
136
- builder.addCase(fetchShopList.fulfilled, function (state, _ref8) {
137
- var payload = _ref8.payload;
157
+ builder.addCase(fetchShopList.fulfilled, function (state, _ref9) {
158
+ var payload = _ref9.payload;
138
159
  state.shopList = payload.shopList;
139
160
  });
140
161
  }
@@ -36,8 +36,10 @@ export declare type LoginParams = {
36
36
  name: string;
37
37
  account: string;
38
38
  password: string;
39
+ pageReturnType?: string;
39
40
  };
40
41
  export declare const login: (data: LoginParams) => Promise<any>;
42
+ export declare const loginNew: (data: LoginParams) => Promise<any>;
41
43
  export declare const queryShopList: () => Promise<any>;
42
44
  export declare const deleteWorkOrder: (data: any) => Promise<any>;
43
45
  export declare const getThirdOpenUidByOrderNo: (data: any) => Promise<any>;
@@ -217,6 +217,15 @@ export var login = function login(data) {
217
217
  data: data
218
218
  });
219
219
  };
220
+
221
+ //登陆-新
222
+ export var loginNew = function loginNew(data) {
223
+ return request({
224
+ url: '/qy/gdfw/company/login/new',
225
+ method: 'post',
226
+ data: data
227
+ });
228
+ };
220
229
  //获取店铺列表
221
230
  export var queryShopList = function queryShopList() {
222
231
  return request({
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.0.18",
3
+ "version": "2.0.19-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "scripts": {
10
- "sync": "yarn build && yalc push",
11
10
  "build": "yarn run lint && father build",
12
11
  "deploy": "npm run docs:build && npm run docs:deploy",
13
12
  "docs:build": "dumi build",
@@ -18,6 +17,7 @@
18
17
  "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
19
18
  "pub": "npm publish --registry=https://registry.npmjs.org/",
20
19
  "start": "dumi dev",
20
+ "sync": "yarn build && yalc push",
21
21
  "test": "umi-test",
22
22
  "test:coverage": "umi-test --coverage",
23
23
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ant-design/icons": "^4.7.0",
35
- "@kmkf-fe-packages/basic-components": "2.0.18",
36
- "@kmkf-fe-packages/kmkf-utils": "2.0.18",
37
- "@kmkf-fe-packages/services-components": "2.0.18",
35
+ "@kmkf-fe-packages/basic-components": "2.0.19-beta.0",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.0",
37
+ "@kmkf-fe-packages/services-components": "2.0.19-beta.0",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -73,7 +73,7 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "6b9ac6412c233e92616caf732da997ece8ae946e",
76
+ "gitHead": "336ada02cb6f2c70056928879798475bf880d389",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }