@kmkf-fe-packages/kmkf-utils 0.6.3-alpha.39 → 0.6.3-alpha.44

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
@@ -1,3 +1,3 @@
1
1
  ### 修改发布
2
2
 
3
- 1
3
+ 111
@@ -7,7 +7,7 @@ export default class AddressData {
7
7
  private static instance;
8
8
  addrData: Record<string, [string, string | number]>;
9
9
  addrNameMap: Record<string, string>;
10
- treeData: TreeOption[];
10
+ addressOptions: TreeOption[];
11
11
  constructor();
12
12
  initData: () => void;
13
13
  parseData: (addrCode: string | number) => {
@@ -26,7 +26,7 @@ export default class AddressData {
26
26
  label: string;
27
27
  value: string;
28
28
  }[];
29
- getProCodeByName: (proName: string) => string | undefined;
29
+ getProCodeByName: (proName: string) => number | undefined;
30
30
  getNameByCode: (code: string | number) => string;
31
31
  static getInstance(): AddressData;
32
32
  }
@@ -7,13 +7,14 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  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); }
8
8
  import request from "../request";
9
9
  import { toTree } from "../utils";
10
+ import get from 'lodash/get';
10
11
  var AddressData = /*#__PURE__*/function () {
11
12
  function AddressData() {
12
13
  var _this = this;
13
14
  _classCallCheck(this, AddressData);
14
15
  _defineProperty(this, "addrData", {});
15
16
  _defineProperty(this, "addrNameMap", {});
16
- _defineProperty(this, "treeData", []);
17
+ _defineProperty(this, "addressOptions", []);
17
18
  _defineProperty(this, "initData", function () {
18
19
  var _Object$keys;
19
20
  if (((_Object$keys = Object.keys(_this.addrData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0) return;
@@ -31,7 +32,7 @@ var AddressData = /*#__PURE__*/function () {
31
32
  }
32
33
  _this.addrData = res;
33
34
  _this.addrNameMap = map;
34
- _this.treeData = toTree(list, 0);
35
+ _this.addressOptions = get(toTree(list, 0), '0.children', []);
35
36
  });
36
37
  });
37
38
  _defineProperty(this, "parseData", function (addrCode) {
@@ -63,7 +64,7 @@ var AddressData = /*#__PURE__*/function () {
63
64
  _defineProperty(this, "getProCodeByName", function (proName) {
64
65
  for (var key in _this.addrData) {
65
66
  if (_this.addrData[key][0] === proName) {
66
- return key;
67
+ return Number(key);
67
68
  }
68
69
  }
69
70
  });
@@ -5,7 +5,7 @@ interface OptionsItem {
5
5
  expressCode?: string;
6
6
  isInterface?: boolean;
7
7
  interceptionTypeList?: any[];
8
- interceptionStatusList?: any[];
8
+ logisticsStatusList?: any[];
9
9
  }
10
10
  export default class ExpressData {
11
11
  private static instance;
@@ -14,8 +14,8 @@ export default class ExpressData {
14
14
  initData: () => OptionsItem[] | undefined;
15
15
  getExpressData: () => OptionsItem[] | undefined;
16
16
  setExpressData: (val: OptionsItem[]) => OptionsItem[];
17
- getExpressNameByCode: (code: string | number) => string | number;
18
- getExpressCodeByName: (name: string | number) => string | number;
17
+ getExpressNameByCode: (code: string | number, returnCurrentValue?: boolean) => string | number;
18
+ getExpressCodeByName: (name: string | number, returnCurrentValue?: boolean) => string | number;
19
19
  static getInstance(): ExpressData;
20
20
  }
21
21
  export {};
@@ -39,16 +39,18 @@ var ExpressData = /*#__PURE__*/function () {
39
39
  return _this.expressData = val;
40
40
  });
41
41
  _defineProperty(this, "getExpressNameByCode", function (code) {
42
+ var returnCurrentValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
42
43
  var item = (_this.expressData || []).filter(function (item) {
43
44
  return item.value === code;
44
45
  });
45
- return item.length ? item[0].label : code;
46
+ return item.length ? item[0].label : returnCurrentValue ? code : "";
46
47
  });
47
48
  _defineProperty(this, "getExpressCodeByName", function (name) {
49
+ var returnCurrentValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
48
50
  var item = (_this.expressData || []).filter(function (item) {
49
51
  return item.label === name;
50
52
  });
51
- return item.length ? item[0].value : name;
53
+ return item.length ? item[0].value : returnCurrentValue ? name : "";
52
54
  });
53
55
  this.initData();
54
56
  }
@@ -5,7 +5,7 @@ interface OptionsItem {
5
5
  expressCode?: string;
6
6
  isInterface?: boolean;
7
7
  interceptionTypeList?: any[];
8
- interceptionStatusList?: any[];
8
+ logisticsStatusList?: any[];
9
9
  }
10
10
  export default class ExpressInterceptData {
11
11
  private static instance;
@@ -38,8 +38,6 @@ export default class ExpressInterceptData {
38
38
  value: string;
39
39
  }[];
40
40
  setExpressData: (val: OptionsItem[]) => OptionsItem[];
41
- getExpressNameByCode: (code: string | number) => string | number;
42
- getExpressCodeByName: (name: string | number) => string | number;
43
41
  isInterfaceCompany: (company: string) => boolean;
44
42
  static getInstance(): ExpressInterceptData;
45
43
  }
@@ -18,9 +18,9 @@ var ExpressInterceptData = /*#__PURE__*/function () {
18
18
  //展示拦截按钮映射
19
19
  //展示新收货地映射
20
20
  //拦截类型映射
21
- //拦截状态映射
21
+ //物流状态映射
22
22
  //拦截类型筛选options
23
- //拦截状态筛选options
23
+ //物流状态筛选options
24
24
  function ExpressInterceptData() {
25
25
  var _this = this;
26
26
  _classCallCheck(this, ExpressInterceptData);
@@ -55,15 +55,16 @@ var ExpressInterceptData = /*#__PURE__*/function () {
55
55
  typeObj = {},
56
56
  statusObj = {};
57
57
  expressList.forEach(function (item) {
58
- var _item$interceptionSta, _item$interceptionTyp;
59
- if (item !== null && item !== void 0 && (_item$interceptionSta = item.interceptionStatusList) !== null && _item$interceptionSta !== void 0 && _item$interceptionSta.length) {
60
- item.interceptionStatusList.forEach(function (t) {
58
+ var _item$logisticsStatus, _item$interceptionTyp;
59
+ if (item !== null && item !== void 0 && (_item$logisticsStatus = item.logisticsStatusList) !== null && _item$logisticsStatus !== void 0 && _item$logisticsStatus.length) {
60
+ item.logisticsStatusList.forEach(function (t) {
61
61
  statusMap["".concat(t.value)] = t.label;
62
62
  if (statusObj[t.label]) {
63
63
  statusObj[t.label] = statusObj[t.label].add(t.value);
64
64
  } else {
65
65
  statusObj[t.label] = new Set([t.value]);
66
66
  }
67
+ //todo 取消拦截按钮
67
68
  if (t !== null && t !== void 0 && t.showInterceptionBtn) {
68
69
  showBtn["".concat(t.value)] = true;
69
70
  }
@@ -110,18 +111,6 @@ var ExpressInterceptData = /*#__PURE__*/function () {
110
111
  _defineProperty(this, "setExpressData", function (val) {
111
112
  return _this.expressData = val;
112
113
  });
113
- _defineProperty(this, "getExpressNameByCode", function (code) {
114
- var item = (_this.expressData || []).filter(function (item) {
115
- return item.value === code;
116
- });
117
- return item.length ? item[0].label : code;
118
- });
119
- _defineProperty(this, "getExpressCodeByName", function (name) {
120
- var item = (_this.expressData || []).filter(function (item) {
121
- return item.label === name;
122
- });
123
- return item.length ? item[0].value : "";
124
- });
125
114
  _defineProperty(this, "isInterfaceCompany", function (company) {
126
115
  var item = (_this.expressData || []).find(function (item) {
127
116
  return item.value === company;
@@ -143,7 +132,7 @@ var ExpressInterceptData = /*#__PURE__*/function () {
143
132
  value: function getTypeNameMap() {
144
133
  return this.typeNameMap;
145
134
  }
146
- //获取拦截状态映射
135
+ //获取物流状态映射
147
136
  }, {
148
137
  key: "getStatusNameMap",
149
138
  value: function getStatusNameMap() {
@@ -1,6 +1,6 @@
1
- import TComponentType from '../global.d.ts';
1
+ import TComponentType from "../global.d.ts";
2
2
  interface OrderBackFormValuesI {
3
- type?: 'add' | 'edit';
3
+ type?: "add" | "edit";
4
4
  templateDetail: {
5
5
  componentDtoList?: Array<{
6
6
  uniqueKey: string;
@@ -12,12 +12,9 @@ interface OrderBackFormValuesI {
12
12
  workOrderComponentType?: TComponentType;
13
13
  }>;
14
14
  };
15
- workOrderDetail?: {
16
- logisticsInterceptHandleStatus?: string;
17
- };
18
15
  formValue?: Record<string, unknown>;
19
16
  order_no?: string | null;
20
17
  detail: Record<string, unknown>;
21
18
  }
22
- declare const _default: ({ detail, order_no, formValue, workOrderDetail, templateDetail, type, }: OrderBackFormValuesI) => Record<string, any>;
19
+ declare const _default: ({ detail, order_no, formValue, templateDetail, type, }: OrderBackFormValuesI) => Record<string, any>;
23
20
  export default _default;
@@ -4,45 +4,45 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
5
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
6
  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; }
7
- import moment from 'moment';
7
+ import moment from "moment";
8
8
  import ExpressData from "../expressData";
9
9
  import ExpressInterceptData from "../expressInterceptData";
10
10
  //重组聚水潭商品数据
11
11
  var updateJSTItemListHandle = function updateJSTItemListHandle() {
12
12
  var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
13
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'logistics';
13
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "logistics";
14
14
  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
15
15
  var showField = config.showField,
16
16
  enableItemId = config.enableItemId,
17
17
  enableSupplierName = config.enableSupplierName;
18
- if (type !== 'itemList') {
18
+ if (type !== "itemList") {
19
19
  var newList = list === null || list === void 0 ? void 0 : list.map(function (item) {
20
20
  var items = item.items.map(function (t) {
21
21
  return {
22
22
  title: t.skuName,
23
23
  picUrl: t.pic,
24
- platform: 'jst',
24
+ platform: "jst",
25
25
  skuId: t.skuId
26
26
  };
27
27
  });
28
28
  var params = {
29
29
  items: items
30
30
  };
31
- if (type === 'logistics') {
32
- params.logisticsCompany = ExpressData.getInstance().getExpressCodeByName(item.logisticsCompany);
31
+ if (type === "logistics") {
32
+ params.logisticsCompany = ExpressData.getInstance().getExpressCodeByName(item.logisticsCompany, false);
33
33
  params.logisticsCode = item.lId;
34
- } else if (type === 'supply') {
35
- if (['supplyId', 'all'].includes(showField || '')) {
34
+ } else if (type === "supply") {
35
+ if (["supplyId", "all"].includes(showField || "")) {
36
36
  params.supplyId = item.drpCoIdTo;
37
37
  }
38
- if (['supplyName', 'all'].includes(showField || '')) {
38
+ if (["supplyName", "all"].includes(showField || "")) {
39
39
  params.supplyName = item.drpCoName;
40
40
  }
41
- } else if (type === 'send') {
42
- if (['sendId', 'all'].includes(showField || '')) {
41
+ } else if (type === "send") {
42
+ if (["sendId", "all"].includes(showField || "")) {
43
43
  params.sendId = item.wmsCoId;
44
44
  }
45
- if (['sendName', 'all'].includes(showField || '')) {
45
+ if (["sendName", "all"].includes(showField || "")) {
46
46
  params.sendName = item.wmsCoName;
47
47
  }
48
48
  }
@@ -50,21 +50,21 @@ var updateJSTItemListHandle = function updateJSTItemListHandle() {
50
50
  });
51
51
  if (!newList.length) {
52
52
  switch (type) {
53
- case 'logistics':
53
+ case "logistics":
54
54
  newList = [{
55
55
  logisticsCompany: null,
56
- logisticsCode: ''
56
+ logisticsCode: ""
57
57
  }];
58
58
  break;
59
- case 'supply':
59
+ case "supply":
60
60
  newList = [{
61
- supplyId: ''
61
+ supplyId: ""
62
62
  }];
63
63
  break;
64
- case 'send':
64
+ case "send":
65
65
  newList = [{
66
- sendId: '',
67
- sendName: ''
66
+ sendId: "",
67
+ sendName: ""
68
68
  }];
69
69
  break;
70
70
  }
@@ -76,7 +76,7 @@ var updateJSTItemListHandle = function updateJSTItemListHandle() {
76
76
  var params = {
77
77
  title: t.skuName,
78
78
  picUrl: t.pic,
79
- platform: 'jst'
79
+ platform: "jst"
80
80
  };
81
81
  if (enableItemId) {
82
82
  params.itemId = t.supplierId;
@@ -120,13 +120,13 @@ var taobaoGoodHandle = function taobaoGoodHandle() {
120
120
  params.skuId = skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.skuId;
121
121
  }
122
122
  if (changeSku) {
123
- params.propertiesName = (skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.propertiesName) || '';
123
+ params.propertiesName = (skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.propertiesName) || "";
124
124
  }
125
- if (type === 'ITEM_ENCODE') {
125
+ if (type === "ITEM_ENCODE") {
126
126
  params.outerId = (skuInfoDTO === null || skuInfoDTO === void 0 ? void 0 : skuInfoDTO.outerSkuId) || outerId;
127
- } else if (type === 'ITEM_SELECT_THIRD') {
128
- params.itemId = '';
129
- params.supplierName = '';
127
+ } else if (type === "ITEM_SELECT_THIRD") {
128
+ params.itemId = "";
129
+ params.supplierName = "";
130
130
  }
131
131
  return params;
132
132
  });
@@ -139,103 +139,101 @@ export default (function (_ref) {
139
139
  order_no = _ref$order_no === void 0 ? null : _ref$order_no,
140
140
  _ref$formValue = _ref.formValue,
141
141
  formValue = _ref$formValue === void 0 ? {} : _ref$formValue,
142
- _ref$workOrderDetail = _ref.workOrderDetail,
143
- workOrderDetail = _ref$workOrderDetail === void 0 ? {} : _ref$workOrderDetail,
144
142
  _ref$templateDetail = _ref.templateDetail,
145
143
  templateDetail = _ref$templateDetail === void 0 ? {} : _ref$templateDetail,
146
144
  _ref$type = _ref.type,
147
- type = _ref$type === void 0 ? 'add' : _ref$type;
145
+ type = _ref$type === void 0 ? "add" : _ref$type;
148
146
  return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
149
147
  var uniqueKey = next.uniqueKey;
150
148
  var config = next.componentConfig;
151
149
  switch (next.workOrderComponentType) {
152
- case 'TRADE_ID_INPUT':
153
- prv[uniqueKey] = order_no || detail['orderNo'];
150
+ case "TRADE_ID_INPUT":
151
+ prv[uniqueKey] = order_no || detail["orderNo"];
154
152
  break;
155
- case 'BUYER_NICK_INPUT':
153
+ case "BUYER_NICK_INPUT":
156
154
  prv[uniqueKey] = {
157
- buyerNick: detail['buyerNick'],
158
- buyerOpenUid: detail['buyerOpenUid']
155
+ buyerNick: detail["buyerNick"],
156
+ buyerOpenUid: detail["buyerOpenUid"]
159
157
  };
160
158
  break;
161
- case 'RECEIVER_NAME_INPUT':
162
- prv[uniqueKey] = detail['receiveName'];
159
+ case "RECEIVER_NAME_INPUT":
160
+ prv[uniqueKey] = detail["receiveName"];
163
161
  break;
164
- case 'RECEIVER_MOBILE_INPUT':
165
- prv[uniqueKey] = detail['receiveMobile'];
162
+ case "RECEIVER_MOBILE_INPUT":
163
+ prv[uniqueKey] = detail["receiveMobile"];
166
164
  break;
167
- case 'RECEIVER_ADDRESS_INPUT':
165
+ case "RECEIVER_ADDRESS_INPUT":
168
166
  prv[uniqueKey] = {
169
- address: detail['provinceCode'] ? [+detail['provinceCode'], +detail['cityCode'], +detail['townCode']] : [],
170
- detail: detail['address'] || ''
167
+ address: detail["provinceCode"] ? [+detail["provinceCode"], +detail["cityCode"], +detail["townCode"]] : [],
168
+ detail: detail["address"] || ""
171
169
  };
172
170
  break;
173
- case 'TRADE_CREATE_DATETIME':
174
- prv[uniqueKey] = detail['orderCreateDateTime'] ? moment(detail['orderCreateDateTime']).format('YYYY-MM-DD HH:mm:ss') : '';
171
+ case "TRADE_CREATE_DATETIME":
172
+ prv[uniqueKey] = detail["orderCreateDateTime"] ? moment(detail["orderCreateDateTime"]).format("YYYY-MM-DD HH:mm:ss") : "";
175
173
  break;
176
- case 'TRADE_PAYMENT_DATETIME':
177
- prv[uniqueKey] = detail['orderPaymentDateTime'] ? moment(detail['orderPaymentDateTime']).format('YYYY-MM-DD HH:mm:ss') : '';
174
+ case "TRADE_PAYMENT_DATETIME":
175
+ prv[uniqueKey] = detail["orderPaymentDateTime"] ? moment(detail["orderPaymentDateTime"]).format("YYYY-MM-DD HH:mm:ss") : "";
178
176
  break;
179
- case 'TRADE_DELIVERY_DATETIME':
180
- prv[uniqueKey] = detail['orderDeliveryDateTime'] ? moment(detail['orderDeliveryDateTime']).format('YYYY-MM-DD HH:mm:ss') : '';
177
+ case "TRADE_DELIVERY_DATETIME":
178
+ prv[uniqueKey] = detail["orderDeliveryDateTime"] ? moment(detail["orderDeliveryDateTime"]).format("YYYY-MM-DD HH:mm:ss") : "";
181
179
  break;
182
- case 'TRADE_CLOSING_DATETIME':
183
- prv[uniqueKey] = detail['orderClosingDateTime'] ? moment(detail['orderClosingDateTime']).format('YYYY-MM-DD HH:mm:ss') : '';
180
+ case "TRADE_CLOSING_DATETIME":
181
+ prv[uniqueKey] = detail["orderClosingDateTime"] ? moment(detail["orderClosingDateTime"]).format("YYYY-MM-DD HH:mm:ss") : "";
184
182
  break;
185
- case 'ACTUAL_PAYMENT':
186
- prv[uniqueKey] = detail['actualPayment'];
183
+ case "ACTUAL_PAYMENT":
184
+ prv[uniqueKey] = detail["actualPayment"];
187
185
  break;
188
- case 'EXPRESS_LOGISTICS_SELECT':
186
+ case "EXPRESS_LOGISTICS_SELECT":
189
187
  prv[uniqueKey] = {
190
- company: ExpressData.getInstance().getExpressCodeByName(detail['expressLogisticsCompany']),
191
- order: detail['expressLogisticsCode']
188
+ company: ExpressData.getInstance().getExpressCodeByName(detail["expressLogisticsCompany"]),
189
+ order: detail["expressLogisticsCode"]
192
190
  };
193
191
  break;
194
- case 'RETURN_LOGISTICS_SELECT':
192
+ case "RETURN_LOGISTICS_SELECT":
195
193
  prv[uniqueKey] = {
196
- company: ExpressData.getInstance().getExpressCodeByName(detail['returnLogisticsCompany']),
197
- order: detail['returnLogisticsCode']
194
+ company: ExpressData.getInstance().getExpressCodeByName(detail["returnLogisticsCompany"]),
195
+ order: detail["returnLogisticsCode"]
198
196
  };
199
197
  break;
200
- case 'ALI_PAY_INPUT':
198
+ case "ALI_PAY_INPUT":
201
199
  prv[uniqueKey] = {
202
- name: detail['alipayName'],
203
- user: detail['alipayAccount']
200
+ name: detail["alipayName"],
201
+ user: detail["alipayAccount"]
204
202
  };
205
203
  break;
206
- case 'ITEM_SELECT':
207
- case 'ITEM_ID':
208
- case 'ITEM_ENCODE':
209
- prv[uniqueKey] = taobaoGoodHandle(detail['itemList'], next.workOrderComponentType, next.componentConfig);
204
+ case "ITEM_SELECT":
205
+ case "ITEM_ID":
206
+ case "ITEM_ENCODE":
207
+ prv[uniqueKey] = taobaoGoodHandle(detail["itemList"], next.workOrderComponentType, next.componentConfig);
210
208
  break;
211
- case 'REMARK_INPUT':
209
+ case "REMARK_INPUT":
212
210
  prv[uniqueKey] = {
213
- remark: detail['remark'] || '',
214
- flag: detail['flag'] ? Number(detail['flag']) : detail['flag']
211
+ remark: detail["remark"] || "",
212
+ flag: detail["flag"] ? Number(detail["flag"]) : detail["flag"]
215
213
  };
216
214
  break;
217
- case 'ENTERPRISE_PAYMENT':
215
+ case "ENTERPRISE_PAYMENT":
218
216
  //编辑的时候不能修改打款信息
219
- if (type === 'edit') break;
217
+ if (type === "edit") break;
220
218
  prv[uniqueKey] = {
221
- enterprisePaymentTid: detail['orderNo'],
222
- enterprisePaymentRefundFee: '',
223
- enterprisePaymentBuyerNick: detail['buyerNick'],
224
- enterprisePaymentBuyerOpenUid: detail['buyerOpenUid'],
225
- enterprisePaymentAlipayNick: '',
226
- enterprisePaymentAlipayNo: ''
219
+ enterprisePaymentTid: detail["orderNo"],
220
+ enterprisePaymentRefundFee: "",
221
+ enterprisePaymentBuyerNick: detail["buyerNick"],
222
+ enterprisePaymentBuyerOpenUid: detail["buyerOpenUid"],
223
+ enterprisePaymentAlipayNick: "",
224
+ enterprisePaymentAlipayNo: ""
227
225
  };
228
226
  break;
229
- case 'LOGISTICS_INTERCEPTION':
227
+ case "LOGISTICS_INTERCEPTION":
230
228
  {
231
229
  var _formValue$uniqueKey;
232
- //当拦截状态是拦截中 + 物流公司是已对接快递公司时,订单反填不会再起作用
230
+ //物流公司是已对接快递公司时,订单反填不会再起作用
233
231
  var interceptCompany = (_formValue$uniqueKey = formValue[uniqueKey]) === null || _formValue$uniqueKey === void 0 ? void 0 : _formValue$uniqueKey.interceptCompany;
234
232
  var isInterface = interceptCompany ? ExpressInterceptData.getInstance().isInterfaceCompany(interceptCompany) : false;
235
- if (type === 'edit' && isInterface && (workOrderDetail === null || workOrderDetail === void 0 ? void 0 : workOrderDetail.logisticsInterceptHandleStatus) === 'INTERCEPTING') break;
233
+ if (type === "edit" && isInterface) break;
236
234
  prv[uniqueKey] = {
237
- interceptCompany: ExpressData.getInstance().getExpressCodeByName(detail['expressLogisticsCompany']),
238
- interceptCode: detail['expressLogisticsCode'],
235
+ interceptCompany: ExpressData.getInstance().getExpressCodeByName(detail["expressLogisticsCompany"]),
236
+ interceptCode: detail["expressLogisticsCode"],
239
237
  interceptType: undefined,
240
238
  interceptAddress: [],
241
239
  interceptDetail: undefined,
@@ -246,20 +244,20 @@ export default (function (_ref) {
246
244
  };
247
245
  break;
248
246
  }
249
- case 'JST_ITEM_SELECT_THIRD':
250
- prv[uniqueKey] = updateJSTItemListHandle(detail['jstItemList'], 'itemList', config);
247
+ case "JST_ITEM_SELECT_THIRD":
248
+ prv[uniqueKey] = updateJSTItemListHandle(detail["jstItemList"], "itemList", config);
251
249
  break;
252
- case 'JST_SUPPLY':
253
- prv[uniqueKey] = updateJSTItemListHandle(detail['jstItemList'], 'supply', config);
250
+ case "JST_SUPPLY":
251
+ prv[uniqueKey] = updateJSTItemListHandle(detail["jstItemList"], "supply", config);
254
252
  break;
255
- case 'JST_SEND_GOOD':
256
- prv[uniqueKey] = updateJSTItemListHandle(detail['jstItemList'], 'send', config);
253
+ case "JST_SEND_GOOD":
254
+ prv[uniqueKey] = updateJSTItemListHandle(detail["jstItemList"], "send", config);
257
255
  break;
258
- case 'JST_LOGISTICS':
259
- prv[uniqueKey] = updateJSTItemListHandle(detail['jstItemList'], 'logistics', config);
256
+ case "JST_LOGISTICS":
257
+ prv[uniqueKey] = updateJSTItemListHandle(detail["jstItemList"], "logistics", config);
260
258
  break;
261
- case 'SYSTEM_ORDER_NO':
262
- prv[uniqueKey] = detail['sid'];
259
+ case "SYSTEM_ORDER_NO":
260
+ prv[uniqueKey] = detail["sid"];
263
261
  break;
264
262
  }
265
263
  return prv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "0.6.3-alpha.39",
3
+ "version": "0.6.3-alpha.44",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -42,5 +42,5 @@
42
42
  "gitHooks": {
43
43
  "pre-commit": "lint-staged"
44
44
  },
45
- "gitHead": "11e3dc7ff8cb374b91d27d81bccaaf27d168adc4"
45
+ "gitHead": "cbdb203dd7951559af410da4c7a1d2339bd45878"
46
46
  }