@kmkf-fe-packages/kmkf-work-order-service-component 1.20.2-beta.0 → 1.20.2-beta.2

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.
@@ -4,10 +4,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  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; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
6
  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); }
7
+ import Monitor from 'kmkf-monitor';
7
8
  import { cloneDeep, isEqual, set, get } from 'lodash';
8
9
  import { isNull, unTransField } from '@kmkf-fe-packages/kmkf-utils';
9
10
  import { submitDataTransOldFormat } from "../common/utils/tools";
10
11
  import { NodeType, PlatForm } from "../model/flowTemplateDetail/types";
12
+ import newSubmitDataTransOldFormat from "../common/utils/submitDataTransOldFormat";
11
13
  export var getTag = function getTag(item) {
12
14
  var tag = 'artificial'; // 人工节点
13
15
  // 先判断是什么节点类型 步骤/判断
@@ -87,7 +89,7 @@ export var submitParams = function submitParams(_ref) {
87
89
  }, operateParams)
88
90
  };
89
91
  if (update) {
90
- var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6;
92
+ var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6, _currentNodeDetail$wo7;
91
93
  params.updateInfo = {
92
94
  templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo === void 0 ? void 0 : _currentNodeDetail$wo.templateId,
93
95
  workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo2 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo2 === void 0 ? void 0 : _currentNodeDetail$wo2.id,
@@ -98,7 +100,16 @@ export var submitParams = function submitParams(_ref) {
98
100
  workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo4 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo4 === void 0 ? void 0 : _currentNodeDetail$wo4.id,
99
101
  workOrderUpdateKeySupVos: []
100
102
  };
103
+ // **************START****************
104
+ var cloneParams = cloneDeep(params);
101
105
  var submitData = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo5 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo5 !== void 0 && _currentNodeDetail$wo5.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params, plat.accountName);
106
+ var newSubmitData = newSubmitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo6 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo6 !== void 0 && _currentNodeDetail$wo6.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, cloneParams, plat.accountName);
107
+ var checkParams = isEqual(params, cloneParams);
108
+ var checkSubmitData = isEqual(submitData, newSubmitData);
109
+ Monitor.automaticReport({
110
+ message: "\n \u5DE5\u5355\u66F4\u65B0-\u63D0\u4EA4\u53C2\u6570\u5BF9\u6BD4:".concat(checkParams, ";\u5DE5\u5355\u66F4\u65B0-\u63D0\u4EA4\u7ED3\u679C\u5BF9\u6BD4:").concat(checkSubmitData, "; \n \u63D0\u4EA4\u53C2\u6570: {").concat(!checkParams ? JSON.stringify(params) : '', "} {").concat(!checkParams ? JSON.stringify(cloneParams) : '', "}; \n \u63D0\u4EA4\u7ED3\u679C: {").concat(!checkSubmitData ? JSON.stringify(submitData) : '', "} {").concat(!checkSubmitData ? JSON.stringify(checkSubmitData) : '', "}")
111
+ });
112
+ // **************END****************
102
113
  var updateList = submitData === null || submitData === void 0 ? void 0 : submitData.reduce(function (cur, nxt) {
103
114
  var _nxt$contentList;
104
115
  nxt === null || nxt === void 0 ? void 0 : (_nxt$contentList = nxt.contentList) === null || _nxt$contentList === void 0 ? void 0 : _nxt$contentList.map(function (item) {
@@ -124,7 +135,7 @@ export var submitParams = function submitParams(_ref) {
124
135
  return cur;
125
136
  }, []);
126
137
  // 数据第一次更新
127
- if (update && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo6 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo6 !== void 0 && _currentNodeDetail$wo6.preCreateAndNotModified) {
138
+ if (update && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo7 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo7 !== void 0 && _currentNodeDetail$wo7.preCreateAndNotModified) {
128
139
  updateList.push({
129
140
  dataKey: 'preCreateAndNotModified',
130
141
  oldValue: true,
@@ -136,20 +147,20 @@ export var submitParams = function submitParams(_ref) {
136
147
  delete params.workOrderUpdateKeyVos;
137
148
  delete params.needTransForm;
138
149
  } else {
139
- var _Object$keys, _currentNodeDetail$wo7, _currentNodeDetail$wo8, _currentNodeDetail$wo9, _currentNodeDetail$wo10, _currentNodeDetail$wo11, _currentNodeDetail$wo12, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20;
150
+ var _Object$keys, _currentNodeDetail$wo8, _currentNodeDetail$wo9, _currentNodeDetail$wo10, _currentNodeDetail$wo11, _currentNodeDetail$wo12, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$wo22;
140
151
  // TODO: 新保存工单
141
152
  // 获取当前表单中非空字段
142
153
  var finalComponentList = (_Object$keys = Object.keys(formData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.filter(function (i) {
143
154
  return !isNull(formData[i]);
144
155
  });
145
156
  // 获取非空字段对应的组件
146
- var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo7 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo7 === void 0 ? void 0 : (_currentNodeDetail$wo8 = _currentNodeDetail$wo7.componentDtoList) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : _currentNodeDetail$wo8.filter(function (item) {
157
+ var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo8 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : (_currentNodeDetail$wo9 = _currentNodeDetail$wo8.componentDtoList) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.filter(function (item) {
147
158
  return finalComponentList.includes(item.uniqueKey) || item.workOrderComponentType === 'BUYER_MESSAGE_NOTICE';
148
159
  });
149
160
  set(newTemplateDetail, 'componentDtoList', finalDtoList);
150
161
  params.workOrder = {
151
- templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo9 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.uniqueKey,
152
- handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.id,
162
+ templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.uniqueKey,
163
+ handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.id,
153
164
  buyerNick: plat === null || plat === void 0 ? void 0 : plat.buyerNick,
154
165
  buyerOpenUid: plat === null || plat === void 0 ? void 0 : plat.buyerId,
155
166
  shopUniqueKey: shopUniqueKey,
@@ -159,18 +170,18 @@ export var submitParams = function submitParams(_ref) {
159
170
  };
160
171
 
161
172
  // 判断是否有订单号组建,订单号数据需要特殊处理
162
- var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : (_currentNodeDetail$wo12 = _currentNodeDetail$wo11.componentDtoList) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : (_currentNodeDetail$wo13 = _currentNodeDetail$wo12.find(function (item) {
173
+ var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : (_currentNodeDetail$wo13 = _currentNodeDetail$wo12.componentDtoList) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : (_currentNodeDetail$wo14 = _currentNodeDetail$wo13.find(function (item) {
163
174
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
164
- })) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.uniqueKey;
175
+ })) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : _currentNodeDetail$wo14.uniqueKey;
165
176
  // 判断是否有订单号组建,订单号数据需要特殊处理
166
- var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : (_currentNodeDetail$wo15 = _currentNodeDetail$wo14.componentDtoList) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15.find(function (item) {
177
+ var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo15 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15.componentDtoList) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : (_currentNodeDetail$wo17 = _currentNodeDetail$wo16.find(function (item) {
167
178
  return item.workOrderComponentType === 'ENTERPRISE_PAYMENT';
168
- })) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : _currentNodeDetail$wo16.uniqueKey;
179
+ })) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.uniqueKey;
169
180
 
170
181
  // 判断是否有买家昵称或者
171
- var buyerNickUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo17 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : (_currentNodeDetail$wo18 = _currentNodeDetail$wo17.componentDtoList) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : (_currentNodeDetail$wo19 = _currentNodeDetail$wo18.find(function (item) {
182
+ var buyerNickUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo18 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : (_currentNodeDetail$wo19 = _currentNodeDetail$wo18.componentDtoList) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : (_currentNodeDetail$wo20 = _currentNodeDetail$wo19.find(function (item) {
172
183
  return item.workOrderComponentType === 'BUYER_NICK_INPUT';
173
- })) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : _currentNodeDetail$wo19.uniqueKey;
184
+ })) === null || _currentNodeDetail$wo20 === void 0 ? void 0 : _currentNodeDetail$wo20.uniqueKey;
174
185
  if (paymentTradeIdUniqueKey) {
175
186
  var _formData, _formData2;
176
187
  params.workOrder.tid = formData === null || formData === void 0 ? void 0 : (_formData = formData["".concat(paymentTradeIdUniqueKey)]) === null || _formData === void 0 ? void 0 : _formData.enterprisePaymentTid;
@@ -183,7 +194,15 @@ export var submitParams = function submitParams(_ref) {
183
194
  var _formData$buyerNickUn;
184
195
  params.workOrder.buyerOpenUid = formData === null || formData === void 0 ? void 0 : (_formData$buyerNickUn = formData[buyerNickUniqueKey]) === null || _formData$buyerNickUn === void 0 ? void 0 : _formData$buyerNickUn.buyerOpenUid;
185
196
  }
186
- params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo20 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo20 !== void 0 && _currentNodeDetail$wo20.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
197
+ // **************START****************
198
+ var _cloneParams = cloneDeep(params);
199
+ params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo21 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo21 !== void 0 && _currentNodeDetail$wo21.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
200
+ _cloneParams.workOrder.workOrderComponents = newSubmitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo22 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo22 !== void 0 && _currentNodeDetail$wo22.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, _cloneParams.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
201
+ var check = isEqual(params, _cloneParams);
202
+ Monitor.automaticReport({
203
+ message: "\u5DE5\u5355\u65B0\u589E-\u63D0\u4EA4\u53C2\u6570\u5BF9\u6BD4:".concat(check, ";\u63D0\u4EA4\u7ED3\u679C:{").concat(!check ? JSON.stringify(params) : '', "}{").concat(!check ? JSON.stringify(_cloneParams) : '', "}")
204
+ });
205
+ // **************END****************
187
206
  //端上有买家id 就返填当前买家 即使不是当前买家的订单
188
207
  if (plat.platform !== PlatForm.PC && plat !== null && plat !== void 0 && plat.buyerId) {
189
208
  params.workOrder.buyerOpenUid = plat === null || plat === void 0 ? void 0 : plat.buyerId;
@@ -16,7 +16,3 @@ export declare const getCurrentNodeModifiedShowHideRule: (list: {
16
16
  }>;
17
17
  displayComponentList: Array<string>;
18
18
  }[];
19
- export declare const findComponentUniqueKeyByType: (componentDtoList: {
20
- workOrderComponentType: string;
21
- uniqueKey: string;
22
- }[], workOrderComponentType: string) => string | undefined;
@@ -63,12 +63,4 @@ export var getCurrentNodeModifiedShowHideRule = function getCurrentNodeModifiedS
63
63
  return newRules;
64
64
  }
65
65
  return [];
66
- };
67
-
68
- // 根据组件类型获取组件的UniqueKey
69
- export var findComponentUniqueKeyByType = function findComponentUniqueKeyByType(componentDtoList, workOrderComponentType) {
70
- var _componentDtoList$fin;
71
- return (_componentDtoList$fin = componentDtoList.find(function (item) {
72
- return item.workOrderComponentType === workOrderComponentType;
73
- })) === null || _componentDtoList$fin === void 0 ? void 0 : _componentDtoList$fin.uniqueKey;
74
66
  };
@@ -35,11 +35,12 @@ import { factory } from '@kmkf-fe-packages/services-components';
35
35
  import { getExpression, formatDisplayConfig, isNull, LabelData } from '@kmkf-fe-packages/kmkf-utils';
36
36
  import ShopName from "../ShopName";
37
37
  import { PlatForm } from "../../../model/flowTemplateDetail/types";
38
- import { groupByPreNode, getCurrentNodeModifiedShowHideRule, findComponentUniqueKeyByType } from "./common";
38
+ import { groupByPreNode, getCurrentNodeModifiedShowHideRule } from "./common";
39
39
  import { getCalculationComponentValue } from "../../../common/utils/arithmetic";
40
40
  import "./index.less";
41
41
  import { CHILD_FIELD_TYPE, CHILD_FIELD_VALUE } from "../../../common/constant";
42
- import { jsonParseSecurity } from "../../../common/utils/tools";
42
+ import { jsonParseSecurity, findComponentUniqueKeyByType } from "../../../common/utils/tools";
43
+ import { NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE } from "../../constant";
43
44
  // 记录显隐触发隐藏的组件。显示后,重新出发一遍映射规则
44
45
  // TODO: 用useState会有bug, 不确定是哪里导致的
45
46
  var hideByXYComponentsMap = {};
@@ -697,7 +698,7 @@ var FormRender = function FormRender(props, ref) {
697
698
  setShopId(val);
698
699
  // 清空表单字段
699
700
  var needClearFormFields = get(templateDetail, 'componentDtoList', []).reduce(function (cur, nxt) {
700
- if (['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_E3_LOGISTICS', 'BS_E3_SEND_GOOD', '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_SEND_GOOD', 'BS_E3_SYSTEM_ORDER', 'BS_E3_REISSUE_GOODS'].includes(nxt === null || nxt === void 0 ? void 0 : nxt.workOrderComponentType)) {
701
+ if (NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE.includes(nxt === null || nxt === void 0 ? void 0 : nxt.workOrderComponentType)) {
701
702
  cur.push(nxt === null || nxt === void 0 ? void 0 : nxt.uniqueKey);
702
703
  }
703
704
  return cur;
@@ -1046,10 +1047,8 @@ var FormRender = function FormRender(props, ref) {
1046
1047
  if (!(value !== null && value !== void 0 && value.shopId)) return;
1047
1048
  //如果是初始化创建工单 缓存信息
1048
1049
  if (!workOrderId && ['fxg', 'tb', 'ks', 'xiaozhi'].includes(plat.platform)) {
1049
- var _tempLateList$find;
1050
- var tradeIdUniqueKey = (_tempLateList$find = tempLateList.find(function (item) {
1051
- return item.workOrderComponentType === 'TRADE_ID_INPUT';
1052
- })) === null || _tempLateList$find === void 0 ? void 0 : _tempLateList$find.uniqueKey;
1050
+ var _findComponentUniqueK;
1051
+ var tradeIdUniqueKey = (_findComponentUniqueK = findComponentUniqueKeyByType(tempLateList, 'TRADE_ID_INPUT')) !== null && _findComponentUniqueK !== void 0 ? _findComponentUniqueK : '';
1053
1052
  var tradeId = value[tradeIdUniqueKey];
1054
1053
  if (plat !== null && plat !== void 0 && plat.subOrderNo) {
1055
1054
  var cacheOmsOrderInfo = JSON.parse(sessionStorage.getItem('cacheOmsOrderInfo') || '{}');
@@ -0,0 +1 @@
1
+ export declare const NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE: string[];
@@ -0,0 +1,2 @@
1
+ // 切换当前店铺时,以下组件字段需要清空
2
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['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_SEND_GOOD', 'BS_E3_SYSTEM_ORDER', 'BS_E3_REISSUE_GOODS'];
@@ -1,2 +1,12 @@
1
1
  export declare const updateWorkTypeKeys: any;
2
2
  export declare const systemOrderMap: any;
3
+ export declare const DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING: any;
4
+ export declare const DEFAULT_ARRAY_COMPONENT_TYPE_FIELD_MAPPING: any;
5
+ export declare const SUBMIT_COMPONENT_STATUS_MAP: any;
6
+ export declare const SUBMIT_COMPONENT_GOOD_STATUS_MAP: any;
7
+ export declare const SUBMIT_COMPONENT_ERP_LOGISTICS_MAP: any;
8
+ export declare const SUBMIT_COMPONENT_SEND_GOOD_MAP: any;
9
+ export declare const SUBMIT_COMPONENT_GOODS_MAP: any;
10
+ export declare const SUBMIT_COMPONENT_REISSUE_MAP: any;
11
+ export declare const SUBMIT_COMPONENT_RETURN_GOODS_MAP: Record<string, Record<string, string>>;
12
+ export declare const SUBMIT_COMPONENT_SYSTEM_ORDER_MAP: any;
@@ -48,4 +48,185 @@ export var systemOrderMap = {
48
48
  ids: 'bsE3SystemSelectIds',
49
49
  order: 'bsE3SystemShowOrder'
50
50
  }
51
+ };
52
+ export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
53
+ SHOP_NAME_INPUT: 'shopName',
54
+ //店铺名称
55
+ RECEIVER_NAME_INPUT: 'receiveName',
56
+ //收件人姓名
57
+ RECEIVER_MOBILE_INPUT: 'receiveMobile',
58
+ //收件人手机号
59
+ TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
60
+ //下单时间
61
+ TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
62
+ //付款时间
63
+ TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
64
+ //发货时间
65
+ TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
66
+ //成交时间
67
+ INPUT: 'input',
68
+ DATETIME: 'dateTime',
69
+ TEXTAREA: 'textarea',
70
+ SELECT: 'select',
71
+ SYSTEM_ORDER_NO: 'systemOrderNo',
72
+ NEW_PAYMENT_STATUS: 'newPaymentStatus',
73
+ BUSINESS_ORDER_NO: 'businessOrderNo',
74
+ PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
75
+ BASIC_MULT_SELECT: 'basicMultSelect'
76
+ };
77
+ export var DEFAULT_ARRAY_COMPONENT_TYPE_FIELD_MAPPING = {
78
+ RATE: 'rate',
79
+ FILE: 'file',
80
+ SUBFORM: 'productList',
81
+ ITEM_SELECT: 'itemList',
82
+ ITEM_SELECT_THIRD: 'itemList',
83
+ ITEM_ID: 'itemList',
84
+ ITEM_ENCODE: 'itemList'
85
+ };
86
+ export var SUBMIT_COMPONENT_STATUS_MAP = {
87
+ REISSUE_STATUS: {
88
+ status: 'reissueStatusValue',
89
+ reason: 'reissueReason'
90
+ },
91
+ ADJUST_WORK_ORDER_STATUS: {
92
+ status: 'adjustWorkOrderStatusValue',
93
+ reason: 'adjustWorkOrderReason'
94
+ },
95
+ CREATE_STATUS: {
96
+ status: 'createStatusValue',
97
+ reason: 'createReason'
98
+ },
99
+ INVOICE_STATUS: {
100
+ status: 'invoiceStatusValue',
101
+ reason: 'invoiceReason'
102
+ },
103
+ INVOICING_STATUS: {
104
+ status: 'invoicingStatusValue',
105
+ reason: 'invoicingReason'
106
+ },
107
+ AGREE_REFUND_STATUS: {
108
+ status: 'agreeRefundStatusValue',
109
+ reason: 'agreeRefundStatusReason'
110
+ },
111
+ REJECT_REFUND_STATUS: {
112
+ status: 'rejectRefundStatusValue',
113
+ reason: 'rejectRefundStatusReason'
114
+ }
115
+ };
116
+ export var SUBMIT_COMPONENT_GOOD_STATUS_MAP = {
117
+ RETURN_GOODS_STATUS: {
118
+ list: 'returnGoodsStatusList',
119
+ status: 'returnGoodsStatusValue'
120
+ },
121
+ EXCHANGE_STATUS: {
122
+ list: 'exchangeReason',
123
+ status: 'exchangeStatusValue'
124
+ },
125
+ WAREHOUSING_STATUS: {
126
+ list: 'inStockStatusItemList',
127
+ status: 'inStockStatusList'
128
+ },
129
+ MSG_STATUS: {
130
+ list: 'msgStatusValues',
131
+ status: 'msgStatus4Search'
132
+ }
133
+ };
134
+ export var SUBMIT_COMPONENT_ERP_LOGISTICS_MAP = {
135
+ BS_LOGISTICS: {
136
+ list: 'bsLogisticsList',
137
+ company: 'bsLogisticsCompany',
138
+ code: 'bsLogisticsCode'
139
+ },
140
+ WLN_LOGISTICS: {
141
+ list: 'wlnLogisticsList',
142
+ company: 'wlnLogisticsCompany',
143
+ code: 'wlnLogisticsCode'
144
+ },
145
+ WDT_LOGISTICS: {
146
+ list: 'wdtLogisticsList',
147
+ company: 'wdtLogisticsCompany',
148
+ code: 'wdtLogisticsCode'
149
+ }
150
+ };
151
+ export var SUBMIT_COMPONENT_SEND_GOOD_MAP = {
152
+ BS_SEND_GOOD: {
153
+ list: 'bsSendGood',
154
+ id: 'bsSendId',
155
+ name: 'bsSendName'
156
+ },
157
+ WLN_SEND_GOOD: {
158
+ list: 'wlnSendGood',
159
+ id: 'wlnSendId',
160
+ name: 'wlnSendName'
161
+ },
162
+ KM_SEND_GOOD: {
163
+ list: 'kmSendGood',
164
+ id: 'kmSendId',
165
+ name: 'kmSendName'
166
+ }
167
+ };
168
+ export var SUBMIT_COMPONENT_GOODS_MAP = {
169
+ BS_GOODS: {
170
+ type: 'bsGoods',
171
+ shopCode: 'shopCode'
172
+ },
173
+ WDT_GOODS: {
174
+ type: 'wdtGoods',
175
+ shopCode: 'shopCode'
176
+ },
177
+ BS_E3_GOODS: {
178
+ type: 'bsE3Goods',
179
+ shopCode: 'shopCode'
180
+ }
181
+ };
182
+ export var SUBMIT_COMPONENT_REISSUE_MAP = {
183
+ BS_REISSUE_GOODS: {
184
+ type: 'bsReissueType',
185
+ goods: 'bsReissueGoods',
186
+ shopCode: 'shopCode'
187
+ },
188
+ WDT_REISSUE_GOODS: {
189
+ type: 'wdtReissueType',
190
+ goods: 'wdtReissueGoods',
191
+ shopCode: 'shopCode',
192
+ systemOrderNo: 'wdtSystemOrderNo'
193
+ }
194
+ };
195
+ export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
196
+ BS_RETURN_GOODS: {
197
+ returnTypeKey: 'bsReturnType',
198
+ returnGoodsKey: 'bsReturnGoods',
199
+ shopCodeKey: 'shopCode'
200
+ },
201
+ WDT_RETURN_GOODS: {
202
+ returnTypeKey: 'wdtReturnType',
203
+ returnGoodsKey: 'wdtReturnGoods',
204
+ shopCodeKey: 'shopCode'
205
+ }
206
+ };
207
+ export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
208
+ BS_SYSTEM_ORDER: {
209
+ no: 'bsSystemOrderNo',
210
+ ids: 'bsSystemSelectIds',
211
+ order: 'bsSystemShowOrder',
212
+ select: 'billNo'
213
+ },
214
+ WLN_SYSTEM_ORDER: {
215
+ no: 'wlnSystemOrderNo',
216
+ ids: 'wlnSystemSelectIds',
217
+ order: 'wlnSystemShowOrder',
218
+ select: 'billNo'
219
+ },
220
+ WDT_SYSTEM_ORDER: {
221
+ no: 'wdtSystemOrderNo',
222
+ ids: 'wdtSystemSelectIds',
223
+ order: 'wdtSystemShowOrder',
224
+ select: 'billNo'
225
+ },
226
+ BS_E3_SYSTEM_ORDER: {
227
+ no: 'bsE3SystemOrderNo',
228
+ ids: 'bsE3SystemSelectIds',
229
+ order: 'bsE3SystemShowOrder',
230
+ select: 'orderSn'
231
+ }
51
232
  };
@@ -0,0 +1,17 @@
1
+ declare type SubmitDataTransOldFormatType = (nowData: {
2
+ [x: string]: any;
3
+ }, sourceTemplateDetail: {
4
+ componentDtoList: any;
5
+ name: any;
6
+ }, updateFlag: boolean, detail: any, params: {
7
+ buyerNick: any;
8
+ workOrderUpdateKeyVos: {
9
+ type: string;
10
+ isFlag: any;
11
+ tid: string;
12
+ };
13
+ buyerOpenUid: any;
14
+ needTransForm?: any;
15
+ }, accountName: string) => Array<any>;
16
+ declare const submitDataTransOldFormat: SubmitDataTransOldFormatType;
17
+ export default submitDataTransOldFormat;