@kmkf-fe-packages/services-components 2.0.0-rc.9 → 2.0.1

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.
Files changed (59) hide show
  1. package/dist/esm/commonComponents/CopyText/index.d.ts +1 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/index.js +5 -2
  4. package/dist/esm/components/BS/BsLogistics/index.js +8 -1
  5. package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
  6. package/dist/esm/components/BS/common/BsHeaderGood.js +13 -40
  7. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  8. package/dist/esm/components/BS/common/BsMemo.js +19 -18
  9. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  10. package/dist/esm/components/BS/common/BsType.js +17 -16
  11. package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
  12. package/dist/esm/components/BS/common/expressCode.js +4 -1
  13. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  14. package/dist/esm/components/Common/constants/bs.d.ts +3 -0
  15. package/dist/esm/components/Common/constants/bs.js +90 -0
  16. package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
  17. package/dist/esm/components/Common/constants/bs_e3.js +154 -0
  18. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
  19. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
  20. package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
  21. package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
  22. package/dist/esm/components/Common/constants/gy.d.ts +3 -0
  23. package/dist/esm/components/Common/constants/gy.js +153 -0
  24. package/dist/esm/components/Common/constants/system.d.ts +3 -0
  25. package/dist/esm/components/Common/constants/system.js +58 -0
  26. package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
  27. package/dist/esm/components/Common/constants/wdt.js +280 -0
  28. package/dist/esm/components/Common/index.d.ts +10 -3
  29. package/dist/esm/components/Common/index.js +74 -822
  30. package/dist/esm/components/CommonHeaderGood/index.js +196 -0
  31. package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
  32. package/dist/esm/components/CommonSystemOrder/index.js +25 -25
  33. package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
  34. package/dist/esm/components/EItemEnCode/index.js +26 -29
  35. package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
  36. package/dist/esm/components/GY/GyGoods/index.js +123 -0
  37. package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
  38. package/dist/esm/components/GY/GyReissue/index.js +188 -0
  39. package/dist/esm/components/Input/index.js +24 -21
  40. package/dist/esm/components/JST/JstSendGood/index.js +32 -16
  41. package/dist/esm/components/KmErpSendGood/index.js +11 -11
  42. package/dist/esm/components/MsgStatus/index.d.ts +5 -5
  43. package/dist/esm/components/MsgStatus/index.js +39 -48
  44. package/dist/esm/components/PostIng/index.js +3 -2
  45. package/dist/esm/components/ReceiverAddress/index.js +74 -8
  46. package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +12 -3
  47. package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +36 -13
  48. package/dist/esm/components/StatusSelect/index.d.ts +1 -1
  49. package/dist/esm/components/StatusSelect/index.js +1 -2
  50. package/dist/esm/factory.d.ts +2 -2
  51. package/dist/esm/factory.js +10 -4
  52. package/dist/esm/index.d.ts +3 -1
  53. package/dist/esm/index.js +3 -1
  54. package/dist/esm/service/api.d.ts +3 -0
  55. package/dist/esm/service/api.js +59 -38
  56. package/dist/esm/type.d.ts +1 -1
  57. package/package.json +4 -4
  58. package/dist/esm/components/CommonHeaderGood/index copy.d.ts +0 -27
  59. package/dist/esm/components/CommonHeaderGood/index copy.js +0 -659
@@ -8,61 +8,52 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import React from 'react';
12
- import some from 'lodash/some';
11
+ import React from "react";
12
+ import some from "lodash/some";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import { MsgContent } from "../Common";
15
- import { MsgStatus as Status } from '@kmkf-fe-packages/basic-components';
15
+ import { MsgStatus as Status } from "@kmkf-fe-packages/basic-components";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { isNull, filterFn as _filterFn, msgTypeCh } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../constant";
19
19
  var typeMap = {
20
20
  MSG_STATUS: {
21
21
  options: [{
22
- oldValue: '发送成功',
23
- value: '执行成功',
24
- label: '执行成功',
25
- color: '#52c41a'
22
+ oldValue: "发送成功",
23
+ value: "执行成功",
24
+ label: "执行成功",
25
+ color: "#52c41a"
26
26
  }, {
27
- oldValue: '已发送',
28
- value: '执行中',
29
- label: '执行中',
30
- color: '#52c41a'
27
+ oldValue: "已发送",
28
+ value: "执行中",
29
+ label: "执行中",
30
+ color: "#52c41a"
31
31
  }, {
32
- oldValue: '发送失败',
33
- value: '执行失败',
34
- label: '执行失败',
35
- color: '#ff4d4f'
32
+ oldValue: "发送失败",
33
+ value: "执行失败",
34
+ label: "执行失败",
35
+ color: "#ff4d4f"
36
36
  }, {
37
- oldValue: '等待发送',
38
- value: '等待执行',
39
- label: '等待执行',
40
- color: '#e7780f'
37
+ oldValue: "等待发送",
38
+ value: "等待执行",
39
+ label: "等待执行",
40
+ color: "#e7780f"
41
41
  }, {
42
- oldValue: '等待发送',
43
- value: '不满足条件,无需执行',
44
- label: '不满足条件,无需执行',
45
- color: '#8A8A8A'
42
+ oldValue: "等待发送",
43
+ value: "不满足条件,无需执行",
44
+ label: "不满足条件,无需执行",
45
+ color: "#8A8A8A"
46
46
  }],
47
- key: 'msgStatusValues',
48
- code: 'msgStatus4Search',
49
- name: '任务状态',
47
+ key: "msgStatusValues",
48
+ code: "msgStatus4Search",
49
+ name: "任务状态",
50
50
  type: 1,
51
- valueKey: 'status',
52
- idKey: 'systemOrderId',
51
+ valueKey: "status",
52
+ idKey: "systemOrderId",
53
53
  // 添加 发送失败 是为了兼容老数据
54
- failValue: ['执行失败', '发送失败']
54
+ failValue: ["执行失败", "发送失败"]
55
55
  }
56
56
  };
57
- var msgTypeCh = {
58
- ding: '钉钉',
59
- wechat: '微信',
60
- qq: 'QQ',
61
- qywx: '企业微信',
62
- YZDKH: '邮政拦截',
63
- YT: '圆通拦截',
64
- feishu: "飞书"
65
- };
66
57
  var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
67
58
  var _this = this,
68
59
  _typeMap$options$type,
@@ -133,9 +124,9 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
133
124
  var _typeMap$_this$type14;
134
125
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
135
126
  });
136
- var key = item.msgType || 'ding';
137
- return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
138
- }).join(',');
127
+ var key = item.msgType || "ding";
128
+ return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
129
+ }).join(",");
139
130
  });
140
131
  _defineProperty(this, "editRender", function (p) {
141
132
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type16;
@@ -146,7 +137,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
146
137
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
147
138
  display: p === null || p === void 0 ? void 0 : p.display,
148
139
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
149
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
140
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
150
141
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
151
142
  type: (_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.type,
152
143
  failValue: typeMap[_this.type].failValue
@@ -160,12 +151,12 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
160
151
  type: item.type,
161
152
  id: "".concat(item.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.code),
162
153
  name: "".concat(_this.name),
163
- filterComponentType: 'MultipleSelect',
154
+ filterComponentType: "MultipleSelect",
164
155
  props: {
165
156
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
166
157
  fieldNames: {
167
- label: 'label',
168
- value: 'value'
158
+ label: "label",
159
+ value: "value"
169
160
  }
170
161
  },
171
162
  filterFn: function filterFn(value) {
@@ -187,7 +178,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
187
178
  this.isCombinationComponent = false;
188
179
  this.canSort = false;
189
180
  this.children = [];
190
- this.dataType = 'weakenArray';
181
+ this.dataType = "weakenArray";
191
182
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
192
183
  required: true,
193
184
  validator: function validator(_, value) {
@@ -202,7 +193,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
202
193
  return Promise.resolve();
203
194
  }
204
195
  }] : [];
205
- this.align = 'left';
196
+ this.align = "left";
206
197
  this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
207
198
  });
208
199
  export default MsgStatus;
@@ -13,7 +13,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
15
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
- import { AddressData, BsAddressData, WdtAddressData } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import Province from "../BS/BsPosting/components/Province";
18
18
  import City from "../BS/BsPosting/components//City";
19
19
  import District from "../BS/BsPosting/components//District";
@@ -169,7 +169,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
169
169
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
170
170
  display: p === null || p === void 0 ? void 0 : p.display,
171
171
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
172
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
172
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
173
173
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
174
174
  type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField
175
175
  }))
@@ -191,6 +191,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
191
191
  var showField = (_options$componentCon2 = options.componentConfig) === null || _options$componentCon2 === void 0 ? void 0 : _options$componentCon2.showField;
192
192
  this.addressDateInstance = (showField && {
193
193
  bs: BsAddressData,
194
+ gy: GyAddressData,
194
195
  wdt: WdtAddressData,
195
196
  workOrder: AddressData
196
197
  }[showField] || AddressData).getInstance();
@@ -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 _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -12,6 +15,10 @@ import GetFormItem from "../GetFormItem";
12
15
  import ItemView from "../../commonComponents/ItemView";
13
16
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
14
17
  import every from "lodash/every";
18
+ import { queryWorkOrderDetail } from "../../service/api";
19
+ import copy from "copy-to-clipboard";
20
+ import { message } from "antd";
21
+ import { CopyOutlined } from "@ant-design/icons";
15
22
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
23
  var _this = this,
17
24
  _this$componentConfig5;
@@ -41,7 +48,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
41
48
  return value ? +value : value;
42
49
  });
43
50
  _defineProperty(this, "renderPc", function (value, record) {
44
- var _address;
51
+ var _address2;
45
52
  if (record["".concat(_this.id, "_province")] === undefined) {
46
53
  return /*#__PURE__*/React.createElement("span", null, "--");
47
54
  }
@@ -50,6 +57,58 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
50
57
  return !item;
51
58
  }) ? [] : address;
52
59
  var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
60
+ var copyHandler = /*#__PURE__*/function () {
61
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e, record) {
62
+ var _address, addressText, _yield$queryWorkOrder, data, success, _data$jsonMap;
63
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
64
+ while (1) switch (_context.prev = _context.next) {
65
+ case 0:
66
+ e.stopPropagation();
67
+ _context.prev = 1;
68
+ addressText = (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
69
+ var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
70
+ return _this.addressDateInstance.getNameByCode(suffix);
71
+ }).join("");
72
+ if (!(detail.indexOf("*") > -1)) {
73
+ _context.next = 12;
74
+ break;
75
+ }
76
+ _context.next = 6;
77
+ return queryWorkOrderDetail({
78
+ checkIsAllowedExport: false,
79
+ shopId: record.shopId,
80
+ workOrderId: record.id
81
+ });
82
+ case 6:
83
+ _yield$queryWorkOrder = _context.sent;
84
+ data = _yield$queryWorkOrder.data;
85
+ success = _yield$queryWorkOrder.success;
86
+ if (success) {
87
+ copy("".concat(addressText).concat(data === null || data === void 0 ? void 0 : (_data$jsonMap = data.jsonMap) === null || _data$jsonMap === void 0 ? void 0 : _data$jsonMap["".concat(_this.id, "_address")]));
88
+ message.success("复制成功");
89
+ }
90
+ _context.next = 14;
91
+ break;
92
+ case 12:
93
+ copy("".concat(addressText).concat(detail));
94
+ message.success("复制成功");
95
+ case 14:
96
+ _context.next = 19;
97
+ break;
98
+ case 16:
99
+ _context.prev = 16;
100
+ _context.t0 = _context["catch"](1);
101
+ console.log(_context.t0);
102
+ case 19:
103
+ case "end":
104
+ return _context.stop();
105
+ }
106
+ }, _callee, null, [[1, 16]]);
107
+ }));
108
+ return function copyHandler(_x, _x2) {
109
+ return _ref.apply(this, arguments);
110
+ };
111
+ }();
53
112
  return /*#__PURE__*/React.createElement("span", {
54
113
  className: "pointer",
55
114
  onClick: function onClick(e) {
@@ -57,19 +116,26 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
116
  typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === "function" && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
58
117
  e.stopPropagation();
59
118
  }
60
- }, (_address = address) === null || _address === void 0 ? void 0 : _address.map(function () {
119
+ }, (_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function () {
61
120
  var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
62
121
  return _this.addressDateInstance.getNameByCode(suffix);
63
- }).join(""), detail);
122
+ }).join(""), detail, " ", /*#__PURE__*/React.createElement(CopyOutlined, {
123
+ style: {
124
+ color: "#1B5BF3"
125
+ },
126
+ onClick: function onClick(e) {
127
+ return copyHandler(e, record);
128
+ }
129
+ }));
64
130
  });
65
131
  _defineProperty(this, "renderLog", function (r) {
66
- var _address2;
132
+ var _address3;
67
133
  var address = [_this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")]), _this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")]), _this.transTextToNumber(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")])];
68
134
  address = every(address, function (item) {
69
135
  return !item;
70
136
  }) ? [] : address;
71
137
  var detail = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")];
72
- return "".concat((_address2 = address) === null || _address2 === void 0 ? void 0 : _address2.map(function () {
138
+ return "".concat((_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function () {
73
139
  var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
74
140
  return _this.addressDateInstance.getNameByCode(suffix);
75
141
  }).join(""), " ").concat(detail || "");
@@ -81,7 +147,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
81
147
  };
82
148
  });
83
149
  _defineProperty(this, "renderExport", function (value, record) {
84
- var _address3;
150
+ var _address4;
85
151
  if (record["".concat(_this.id, "_province")] === undefined) {
86
152
  return "--";
87
153
  }
@@ -90,7 +156,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
90
156
  return !item;
91
157
  }) ? [] : address;
92
158
  var detail = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_address")];
93
- return "".concat((_address3 = address) === null || _address3 === void 0 ? void 0 : _address3.map(function () {
159
+ return "".concat((_address4 = address) === null || _address4 === void 0 ? void 0 : _address4.map(function () {
94
160
  var suffix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
95
161
  return _this.addressDateInstance.getNameByCode(suffix);
96
162
  }).join(""), " ").concat(detail || "");
@@ -111,7 +177,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
111
177
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
112
178
  display: p === null || p === void 0 ? void 0 : p.display,
113
179
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
114
- tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
180
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
115
181
  component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
116
182
  });
117
183
  });
@@ -1,7 +1,7 @@
1
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
2
2
  import React from "react";
3
3
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
- declare class JstLogistics implements ComponentInterface {
4
+ declare class Logistics implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  sortField: string;
@@ -30,6 +30,15 @@ declare class JstLogistics implements ComponentInterface {
30
30
  renderExport: (value: any, record: any) => any;
31
31
  editRender: (p: any) => React.JSX.Element;
32
32
  filterConfig: (item: ColumnConfig) => ({
33
+ searchDefaultConditions: "like";
34
+ type: string;
35
+ id: string;
36
+ name: string;
37
+ filterComponentType: "Input";
38
+ filterFn: (value: string) => (i: Record) => boolean;
39
+ formatFilterValue: (input: string) => string;
40
+ props?: undefined;
41
+ } | {
33
42
  searchDefaultConditions: "in";
34
43
  type: string;
35
44
  id: string;
@@ -56,8 +65,8 @@ declare class JstLogistics implements ComponentInterface {
56
65
  name: string;
57
66
  filterComponentType: "Input";
58
67
  filterFn: (value: string) => (i: Record) => boolean;
59
- props?: undefined;
60
68
  formatFilterValue?: undefined;
69
+ props?: undefined;
61
70
  })[];
62
71
  }
63
- export default JstLogistics;
72
+ export default Logistics;
@@ -20,23 +20,25 @@ var typeMap = {
20
20
  key: "jstItemList",
21
21
  name: "jst",
22
22
  company: "logisticsCompany",
23
+ companyName: "logisticsCompanyName",
23
24
  code: "logisticsCode"
24
25
  },
25
26
  REISSUE_LOGISTICS: {
26
27
  key: "reissueLogisticsList",
27
28
  name: "reissue",
28
29
  company: "reissueLogisticsCompany",
30
+ companyName: "reissueLogisticsCompanyName",
29
31
  code: "reissueLogisticsCode"
30
32
  }
31
33
  };
32
- var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
34
+ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
33
35
  var _this = this,
34
36
  _typeMap$_options$typ,
35
37
  _typeMap$_options$typ2,
36
- _this$componentConfig8,
37
38
  _this$componentConfig9,
38
- _this$componentConfig10;
39
- _classCallCheck(this, JstLogistics);
39
+ _this$componentConfig11,
40
+ _this$componentConfig12;
41
+ _classCallCheck(this, Logistics);
40
42
  _defineProperty(this, "name", void 0);
41
43
  _defineProperty(this, "id", void 0);
42
44
  _defineProperty(this, "sortField", void 0);
@@ -130,11 +132,28 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
130
132
  });
131
133
  });
132
134
  _defineProperty(this, "filterConfig", function (item) {
133
- var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
134
- return [{
135
+ var _this$componentConfig8, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8;
136
+ var logisticsType = ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.logistics) === "gy" ? "input" : "select";
137
+ return [logisticsType === "input" ? {
138
+ searchDefaultConditions: SYMBOL.like,
139
+ type: item.type,
140
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key),
141
+ name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
142
+ filterComponentType: "Input",
143
+ filterFn: function filterFn(value) {
144
+ return function (i) {
145
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "logisticsCode"), value);
146
+ };
147
+ },
148
+ formatFilterValue: function formatFilterValue(input) {
149
+ var value = batchInput(input);
150
+ console.log("formatFilterValue---", value);
151
+ return value && Array.isArray(value) ? value.join("") : value;
152
+ }
153
+ } : {
135
154
  searchDefaultConditions: SYMBOL.in,
136
155
  type: item.type,
137
- id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.company),
156
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.company),
138
157
  name: "".concat(_this.name, "\u7269\u6D41\u516C\u53F8"),
139
158
  filterComponentType: "MultipleSelect",
140
159
  props: {
@@ -153,7 +172,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
153
172
  }, _this.type === "REISSUE_LOGISTICS" ? {
154
173
  searchDefaultConditions: SYMBOL.in,
155
174
  type: item.type,
156
- id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.code),
175
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
157
176
  name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
158
177
  filterComponentType: "Input",
159
178
  filterFn: function filterFn(value) {
@@ -167,7 +186,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
167
186
  } : {
168
187
  searchDefaultConditions: SYMBOL.like,
169
188
  type: item.type,
170
- id: "".concat(item.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.code),
189
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.code),
171
190
  name: "".concat(_this.name, "\u7269\u6D41\u5355\u53F7"),
172
191
  filterComponentType: "Input",
173
192
  filterFn: function filterFn(value) {
@@ -187,10 +206,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
187
206
  this.canSort = false;
188
207
  this.children = [];
189
208
  this.dataType = "object";
190
- this.rules = (_this$componentConfig8 = this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required ? [{
209
+ this.rules = (_this$componentConfig9 = this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.required ? [{
191
210
  required: true,
192
211
  validator: function validator(_, value) {
193
212
  var hasNo = (value || []).some(function (item) {
213
+ var _this$componentConfig10;
214
+ if (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.logistics) === "gy") {
215
+ return item.logisticsCompanyName && item.logisticsCode;
216
+ }
194
217
  return item.logisticsCompany && item.logisticsCode;
195
218
  });
196
219
  if (!hasNo) {
@@ -200,7 +223,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
200
223
  }
201
224
  }] : [];
202
225
  this.align = "left";
203
- this.expressDateInstance = ExpressData.getInstance((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.logistics);
204
- this.sortChildField = this.getSortChildFields(((_this$componentConfig10 = this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.showField) || "", _options);
226
+ this.expressDateInstance = ExpressData.getInstance((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.logistics);
227
+ this.sortChildField = this.getSortChildFields(((_this$componentConfig12 = this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.showField) || "", _options);
205
228
  });
206
- export default JstLogistics;
229
+ export default Logistics;
@@ -19,7 +19,7 @@ declare class StatusSelect implements ComponentInterface {
19
19
  renderPc: (value: any, record: Record) => React.JSX.Element | "--";
20
20
  renderLog: (r: Record) => React.JSX.Element | "--" | null;
21
21
  getComponentValue: (r: Record) => any;
22
- renderExport: (value: any, record: Record) => any;
22
+ renderExport: (value: any, record: Record) => string;
23
23
  filterConfig: (item: ColumnConfig) => {
24
24
  searchDefaultConditions: "in";
25
25
  type: string;
@@ -189,8 +189,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
189
189
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
190
190
  });
191
191
  _defineProperty(this, "renderExport", function (value, record) {
192
- var _record;
193
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
192
+ return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '') : '--';
194
193
  });
195
194
  _defineProperty(this, "filterConfig", function (item) {
196
195
  return {
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => FlowWorkOrderStatus | MemberLevel | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
3
+ export declare const factory: (type: string, options: PickOption) => BsSystemOrder | FlowWorkOrderStatus | GyGoods | GyReissue | JstSendGood | BasicPosting | ReissueLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId;
@@ -1,6 +1,6 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
1
+ import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -122,9 +122,8 @@ export var factory = function factory(type, options) {
122
122
  return new CommonDataTime(options);
123
123
  case "TEMPLATE_ID_INPUT":
124
124
  return new TemplateSelect(options);
125
- case "JST_LOGISTICS":
126
125
  case "REISSUE_LOGISTICS":
127
- return new JstLogistics(options);
126
+ return new ReissueLogistics(options);
128
127
  case "JST_ITEM_SELECT_THIRD":
129
128
  return new JstItemSelect(options);
130
129
  case "JST_SUPPLY":
@@ -134,6 +133,7 @@ export var factory = function factory(type, options) {
134
133
  case "WLN_SYSTEM_ORDER":
135
134
  case "WDT_SYSTEM_ORDER":
136
135
  case "BS_E3_SYSTEM_ORDER":
136
+ case "GY_SYSTEM_ORDER":
137
137
  return new BsSystemOrder(options);
138
138
  case "JST_SEND_GOOD":
139
139
  case "BS_SEND_GOOD":
@@ -141,6 +141,7 @@ export var factory = function factory(type, options) {
141
141
  case "WLN_SEND_GOOD":
142
142
  case "WDT_SEND_GOOD":
143
143
  case "KM_SEND_GOOD":
144
+ case "GY_SEND_GOOD":
144
145
  return new JstSendGood(options);
145
146
  case "BS_POSTING":
146
147
  return new BsPosting(options);
@@ -148,6 +149,8 @@ export var factory = function factory(type, options) {
148
149
  return new BsGoods(options);
149
150
  case "BS_E3_GOODS":
150
151
  return new BsE3Goods(options);
152
+ case "GY_GOODS":
153
+ return new GyGoods(options);
151
154
  case "BS_E3_REISSUE_GOODS":
152
155
  return new BsE3Reissue(options);
153
156
  case "BS_EXCHANGE_GOODS":
@@ -158,6 +161,8 @@ export var factory = function factory(type, options) {
158
161
  return new BsReissue(options);
159
162
  case "WDT_REISSUE_GOODS":
160
163
  return new WdtReissue(options);
164
+ case "GY_REISSUE_GOODS":
165
+ return new GyReissue(options);
161
166
  case "BS_RETURN_GOODS":
162
167
  return new BsReturn(options);
163
168
  case "WDT_RETURN_GOODS":
@@ -171,6 +176,7 @@ export var factory = function factory(type, options) {
171
176
  case "BS_E3_LOGISTICS":
172
177
  case "WLN_LOGISTICS":
173
178
  case "WDT_LOGISTICS":
179
+ case "JST_LOGISTICS":
174
180
  return new BsLogistics(options);
175
181
  case "FLOW_WORK_ORDER_ID_INPUT":
176
182
  return new FlowWorkOrderId(options);
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
34
34
  export { default as Ordinary } from "./components/Ordinary";
35
35
  export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
36
36
  export { default as Payment } from "./components/Payment";
37
- export { default as JstLogistics } from "./components/JST/JstLogistics";
37
+ export { default as ReissueLogistics } from "./components/Reissue/Logistics";
38
38
  export { default as JstItemSelect } from "./components/JST/JstItemSelect";
39
39
  export { default as JstSendGood } from "./components/JST/JstSendGood";
40
40
  export { default as JstSupply } from "./components/JST/JstSupply";
@@ -86,6 +86,8 @@ export { default as Label } from "./components/Label";
86
86
  export { default as MemberLevel } from "./components/MemberLevel";
87
87
  export { default as KmErpSendGood } from "./components/KmErpSendGood";
88
88
  export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
89
+ export { default as GyGoods } from "./components/GY/GyGoods";
90
+ export { default as GyReissue } from "./components/GY/GyReissue";
89
91
  export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
90
92
  export { factory } from "./factory";
91
93
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";