@kmkf-fe-packages/basic-components 2.2.5-beta.27 → 2.2.5-beta.29

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/dist/index.esm.js CHANGED
@@ -3,7 +3,9 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, imgResize, isNull, uuid, transformWorkOrderData, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
+ import every from 'lodash/every';
8
+ import maxBy from 'lodash/maxBy';
7
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
8
10
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
11
  import zhCN from 'antd/lib/locale/zh_CN';
@@ -8046,6 +8048,1310 @@ function withFormItem(WrappedComponent) {
8046
8048
  */
8047
8049
  var extendRequest = extend$1({});
8048
8050
 
8051
+ var updateWorkTypeKeys = {
8052
+ BASIC_GRADE: 'basicGrade',
8053
+ TRADE_ID_INPUT: 'tradeId',
8054
+ SHOP_NAME_INPUT: 'shopName',
8055
+ RECEIVER_NAME_INPUT: 'receiveName',
8056
+ RECEIVER_MOBILE_INPUT: 'receiveMobile',
8057
+ TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
8058
+ TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
8059
+ TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
8060
+ TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
8061
+ TRADE_SIGNING_DATETIME: 'tradeSigningDateTime',
8062
+ ACTUAL_PAYMENT: 'actualPayment',
8063
+ SYSTEM_ORDER_NO: 'systemOrderNo',
8064
+ BS_SIGNING_TIME: 'bsSigningTime',
8065
+ BS_SEND_TIME: 'bsSendTime',
8066
+ BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime',
8067
+ BS_NET_RECEIPTS: 'bsNetReceipts',
8068
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
8069
+ BS_DEPOSIT: 'bsDeposit',
8070
+ NEW_PAYMENT_STATUS: 'newPaymentStatus',
8071
+ BUSINESS_ORDER_NO: 'businessOrderNo',
8072
+ PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
8073
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
8074
+ WDT_SHOP: 'shopCode'
8075
+ };
8076
+ var systemOrderMap = {
8077
+ BS_SYSTEM_ORDER: {
8078
+ no: 'bsSystemOrderNo',
8079
+ ids: 'bsSystemSelectIds',
8080
+ order: 'bsSystemShowOrder'
8081
+ },
8082
+ KM_SYSTEM_ORDER: {
8083
+ no: 'kmSystemOrderNo',
8084
+ ids: 'kmSystemSelectIds',
8085
+ order: 'kmSystemShowOrder'
8086
+ },
8087
+ WLN_SYSTEM_ORDER: {
8088
+ no: 'wlnSystemOrderNo',
8089
+ ids: 'wlnSystemSelectIds',
8090
+ order: 'wlnSystemShowOrder'
8091
+ },
8092
+ WDT_SYSTEM_ORDER: {
8093
+ no: 'wdtSystemOrderNo',
8094
+ ids: 'wdtSystemSelectIds',
8095
+ order: 'wdtSystemShowOrder'
8096
+ },
8097
+ BS_E3_SYSTEM_ORDER: {
8098
+ no: 'bsE3SystemOrderNo',
8099
+ ids: 'bsE3SystemSelectIds',
8100
+ order: 'bsE3SystemShowOrder'
8101
+ },
8102
+ GY_SYSTEM_ORDER: {
8103
+ no: 'gySystemOrderNo',
8104
+ ids: 'gySystemSelectIds',
8105
+ order: 'gySystemShowOrder'
8106
+ },
8107
+ JST_SYSTEM_ORDER: {
8108
+ no: 'jstSystemOrderNo',
8109
+ ids: 'jstSystemSelectIds',
8110
+ order: 'jstSystemShowOrder'
8111
+ }
8112
+ };
8113
+ //直接将key component 添加到 transformWorkOrderData中的componentProcessors
8114
+ var processSingleFieldTypeMapping = {
8115
+ SKX_OUTBOUND_NOTICE_NO: 'skxOutboundNoticeNo',
8116
+ SKX_SHOP_NAME: 'skxShopName',
8117
+ SKX_WAREHOUSE: 'skxWarehouse',
8118
+ SKX_ORDER_TYPE: 'skxOrderType',
8119
+ SKX_ORDER_STATUS: 'skxOrderStatus',
8120
+ SKX_CREATE_TIME: 'dateTime'
8121
+ };
8122
+ var jsonParseSecurity = function jsonParseSecurity(value, securityValue) {
8123
+ try {
8124
+ return JSON.parse(value);
8125
+ } catch (e) {
8126
+ // console.error('JSON解析异常', value, typeof value);
8127
+ return securityValue;
8128
+ }
8129
+ };
8130
+ var transTextToNumber = function transTextToNumber(value) {
8131
+ return value ? +value : value;
8132
+ };
8133
+ var formatPictures = function formatPictures(pictures) {
8134
+ pictures = pictures.replace(/[\[\]]/g, '');
8135
+ pictures = pictures.replace(/\s/g, '');
8136
+ pictures = pictures ? pictures.split(',') : [];
8137
+ return pictures;
8138
+ };
8139
+ var getItemValue = function getItemValue(item) {
8140
+ return function (key) {
8141
+ return item.jsonMap[key];
8142
+ };
8143
+ };
8144
+ var processRadio = function processRadio(getValue) {
8145
+ return function (nex, config) {
8146
+ var radio, radioOther;
8147
+ if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) === '其他') {
8148
+ radio = config.showOther ? config.radio : undefined;
8149
+ radioOther = config.showOther ? config.radioOther : undefined;
8150
+ }
8151
+ if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) !== '其他') {
8152
+ radio = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (t) {
8153
+ return t.value === (config === null || config === void 0 ? void 0 : config.radio);
8154
+ }) ? config.radio : undefined;
8155
+ }
8156
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_radio")) || radio);
8157
+ };
8158
+ };
8159
+ var processInput = function processInput(getValue) {
8160
+ return function (nex, config) {
8161
+ var _getValue;
8162
+ return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_input"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.input);
8163
+ };
8164
+ };
8165
+ var processNumericalCalculation = function processNumericalCalculation(getValue) {
8166
+ return function (nex, config) {
8167
+ var _getValue2;
8168
+ return _defineProperty({}, nex.uniqueKey, (_getValue2 = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue2 !== void 0 ? _getValue2 : config === null || config === void 0 ? void 0 : config.numericalCalculation);
8169
+ };
8170
+ };
8171
+ var processTextarea = function processTextarea(getValue) {
8172
+ return function (nex, config) {
8173
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_textarea")) || (config === null || config === void 0 ? void 0 : config.textarea));
8174
+ };
8175
+ };
8176
+ var processSelect = function processSelect(getValue) {
8177
+ return function (nex, config) {
8178
+ var select = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (item) {
8179
+ return item.value === (config === null || config === void 0 ? void 0 : config.select);
8180
+ }) ? config.select : undefined;
8181
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_select")) || select);
8182
+ };
8183
+ };
8184
+ var gyPaymentMethod = function gyPaymentMethod(getValue) {
8185
+ return function (nex, config) {
8186
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_gyPaymentMethod")));
8187
+ };
8188
+ };
8189
+ var processRate = function processRate(getValue) {
8190
+ return function (nex, config) {
8191
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_rate")), []));
8192
+ };
8193
+ };
8194
+ var processFile = function processFile(getValue) {
8195
+ return function (nex, config) {
8196
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_file")), []));
8197
+ };
8198
+ };
8199
+ var processKmVideo = function processKmVideo(getValue) {
8200
+ return function (nex, config) {
8201
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmVideo")), []));
8202
+ };
8203
+ };
8204
+ var processPosting = function processPosting(getValue) {
8205
+ return function (nex, config) {
8206
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingCity")))];
8207
+ var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingDistrict")));
8208
+ interceptDistrict && address.push(interceptDistrict);
8209
+ address = every(address, function (item) {
8210
+ return !item;
8211
+ }) ? [] : address;
8212
+ return _defineProperty({}, nex.uniqueKey, {
8213
+ postingAddress: address,
8214
+ postingDetail: getValue("".concat(nex.uniqueKey, "_postingDetail")),
8215
+ postingReceiverName: getValue("".concat(nex.uniqueKey, "_postingReceiverName")),
8216
+ postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_postingReceiverMobile"))
8217
+ });
8218
+ };
8219
+ };
8220
+ var processBuyerNickInput = function processBuyerNickInput(getValue) {
8221
+ return function (nex, config) {
8222
+ return _defineProperty({}, nex.uniqueKey, {
8223
+ buyerNick: getValue("".concat(nex.uniqueKey, "_buyerNick")),
8224
+ buyerOpenUid: getValue("".concat(nex.uniqueKey, "_buyerOpenUid"))
8225
+ });
8226
+ };
8227
+ };
8228
+ var processAliPayInput = function processAliPayInput(getValue) {
8229
+ return function (nex, config) {
8230
+ var _ref12;
8231
+ return _ref12 = {}, _defineProperty(_ref12, nex.uniqueKey, {
8232
+ name: getValue("".concat(nex.uniqueKey, "_alipayName")),
8233
+ user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
8234
+ }), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref12;
8235
+ };
8236
+ };
8237
+ var processCheckbox = function processCheckbox(getValue) {
8238
+ return function (nex, config) {
8239
+ var _config$checkbox, _config$checkbox2, _config$checkbox3, _config$checkbox4;
8240
+ var checkbox = [],
8241
+ checkboxOther = '';
8242
+ if ((config === null || config === void 0 ? void 0 : (_config$checkbox = config.checkbox) === null || _config$checkbox === void 0 ? void 0 : _config$checkbox.length) && (config === null || config === void 0 ? void 0 : (_config$checkbox2 = config.checkbox) === null || _config$checkbox2 === void 0 ? void 0 : _config$checkbox2.includes('其他'))) {
8243
+ checkbox = config.showOther ? config.checkbox : config.checkbox.filter(function (t) {
8244
+ return t !== '其他';
8245
+ });
8246
+ checkboxOther = config.showOther ? config.checkboxOther : undefined;
8247
+ }
8248
+ if ((config === null || config === void 0 ? void 0 : (_config$checkbox3 = config.checkbox) === null || _config$checkbox3 === void 0 ? void 0 : _config$checkbox3.length) && !(config === null || config === void 0 ? void 0 : (_config$checkbox4 = config.checkbox) === null || _config$checkbox4 === void 0 ? void 0 : _config$checkbox4.includes('其他'))) {
8249
+ checkbox = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
8250
+ if (config.checkbox.includes(next.value)) {
8251
+ prv.push(next.value);
8252
+ }
8253
+ return prv;
8254
+ }, []);
8255
+ }
8256
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_checkbox")), '') || checkbox);
8257
+ };
8258
+ };
8259
+ var processDatetime = function processDatetime(getValue) {
8260
+ return function (nex, config) {
8261
+ var v = getValue("".concat(nex.uniqueKey, "_dateTime"));
8262
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, v) || (config === null || config === void 0 ? void 0 : config.dateTime));
8263
+ };
8264
+ };
8265
+ var processPicture = function processPicture(getValue) {
8266
+ return function (nex, config) {
8267
+ var v = getValue("".concat(nex.uniqueKey, "_picture"));
8268
+ return _defineProperty({}, nex.uniqueKey, v ? formatPictures(v).map(function (item) {
8269
+ return "".concat(item);
8270
+ }) : (config === null || config === void 0 ? void 0 : config.picture) || []);
8271
+ };
8272
+ };
8273
+ var processPicturePro = function processPicturePro(getValue) {
8274
+ return function (nex, config) {
8275
+ var v = getValue("".concat(nex.uniqueKey, "_pictureProList"));
8276
+ var picturePro = jsonParseSecurity(v, v || []) || [];
8277
+ return _defineProperty({}, nex.uniqueKey, picturePro ? picturePro.map(function (item) {
8278
+ return _objectSpread2(_objectSpread2({}, item), {}, {
8279
+ url: item.url ? formatPictures(item.url)[0] : ''
8280
+ });
8281
+ }) : (config === null || config === void 0 ? void 0 : config.pictureProList) || []);
8282
+ };
8283
+ };
8284
+ var wdtTags = function wdtTags(getValue) {
8285
+ return function (nex, config) {
8286
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtTags")), []));
8287
+ };
8288
+ };
8289
+ var processBasicMultSelect = function processBasicMultSelect(getValue) {
8290
+ return function (nex, config) {
8291
+ var v = getValue("".concat(nex.uniqueKey, "_basicMultSelect"));
8292
+ var basicMultSelect = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
8293
+ var _config$basicMultSele;
8294
+ if (config === null || config === void 0 ? void 0 : (_config$basicMultSele = config.basicMultSelect) === null || _config$basicMultSele === void 0 ? void 0 : _config$basicMultSele.includes(next.value)) {
8295
+ prv.push(next.value);
8296
+ }
8297
+ return prv;
8298
+ }, []);
8299
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
8300
+ };
8301
+ };
8302
+ var processMultSelect = function processMultSelect(getValue) {
8303
+ return function (nex, config) {
8304
+ var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
8305
+ var parseValue = jsonParseSecurity(v, v || []) || [];
8306
+ return _defineProperty({}, nex.uniqueKey, parseValue === null || parseValue === void 0 ? void 0 : parseValue.map(function (item) {
8307
+ return item.actived;
8308
+ }));
8309
+ };
8310
+ };
8311
+ var processBasicAddress = function processBasicAddress(getValue) {
8312
+ return function (nex, config) {
8313
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicCity"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicDistrict")))];
8314
+ address = every(address, function (item) {
8315
+ return !item;
8316
+ }) ? [] : address;
8317
+ return _defineProperty({}, nex.uniqueKey, address);
8318
+ };
8319
+ };
8320
+ var processReceiverAddressInput = function processReceiverAddressInput(getValue) {
8321
+ return function (nex, config) {
8322
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_province"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_city"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_district")))];
8323
+ address = every(address, function (item) {
8324
+ return !item;
8325
+ }) ? [] : address;
8326
+ return _defineProperty({}, nex.uniqueKey, {
8327
+ address: address,
8328
+ detail: getValue("".concat(nex.uniqueKey, "_address"))
8329
+ });
8330
+ };
8331
+ };
8332
+ var processSubForm = function processSubForm(getValue) {
8333
+ return function (nex, config) {
8334
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_productList")), []));
8335
+ };
8336
+ };
8337
+ var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
8338
+ return function (nex, config) {
8339
+ var _ref23;
8340
+ return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
8341
+ company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
8342
+ order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
8343
+ }), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref23;
8344
+ };
8345
+ };
8346
+ var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
8347
+ return function (nex, config) {
8348
+ var _ref24;
8349
+ return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
8350
+ company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
8351
+ order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
8352
+ }), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref24;
8353
+ };
8354
+ };
8355
+ var processRemarkInput = function processRemarkInput(getValue) {
8356
+ return function (nex, config) {
8357
+ var v = getValue("".concat(nex.uniqueKey, "_flag"));
8358
+ var remark = getValue("".concat(nex.uniqueKey, "_remark"));
8359
+ return _defineProperty({}, nex.uniqueKey, {
8360
+ flag: v ? +v : (config === null || config === void 0 ? void 0 : config.flag) ? +(config === null || config === void 0 ? void 0 : config.flag) : '',
8361
+ remark: remark || (config === null || config === void 0 ? void 0 : config.remark) || ''
8362
+ });
8363
+ };
8364
+ };
8365
+ var processStatus = function processStatus(getValue) {
8366
+ return function (nex, config) {
8367
+ var _ref26;
8368
+ var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
8369
+ return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
8370
+ status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
8371
+ customerService: jsonParseSecurity(customerService, customerService)
8372
+ }), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref26;
8373
+ };
8374
+ };
8375
+ var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
8376
+ return function (nex, config) {
8377
+ var _ref27;
8378
+ var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
8379
+ var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
8380
+ var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
8381
+ return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
8382
+ ordinaryMoney: ordinaryMoney,
8383
+ ordinarySerial: ordinarySerial,
8384
+ ordinaryTaitou: ordinaryTaitou
8385
+ }), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref27;
8386
+ };
8387
+ };
8388
+ var processLogisticsInterception = function processLogisticsInterception(getValue) {
8389
+ return function (nex, config) {
8390
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptCity")))];
8391
+ //兼容地址是只有省市的
8392
+ var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptDistrict")));
8393
+ interceptDistrict && address.push(interceptDistrict);
8394
+ address = every(address, function (item) {
8395
+ return !item;
8396
+ }) ? [] : address;
8397
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
8398
+ var map = subFields.reduce(function (cur, nxt) {
8399
+ return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8400
+ }, {});
8401
+ return _defineProperty({}, nex.uniqueKey, _objectSpread2(_objectSpread2({}, map), {}, {
8402
+ interceptAddress: address,
8403
+ interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
8404
+ }));
8405
+ };
8406
+ };
8407
+ var processLogisticsInterceptionMore = function processLogisticsInterceptionMore(getValue) {
8408
+ return function (nex, config) {
8409
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_logisticsInterceptList")), [{}]));
8410
+ };
8411
+ };
8412
+ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8413
+ return function (nex, config) {
8414
+ var subFields = ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryPhone', 'trajectoryApiStatus'];
8415
+ var map = subFields.reduce(function (cur, nxt) {
8416
+ return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8417
+ }, {});
8418
+ return _defineProperty({}, nex.uniqueKey, map);
8419
+ };
8420
+ };
8421
+ var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
8422
+ return function (nex, config) {
8423
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryList")), []));
8424
+ };
8425
+ };
8426
+ var processGoods = function processGoods(getValue) {
8427
+ return function (nex, config) {
8428
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []));
8429
+ };
8430
+ };
8431
+ var processItemSelectThird = function processItemSelectThird(getValue) {
8432
+ return function (nex, config) {
8433
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []);
8434
+ itemList.forEach(function (key) {
8435
+ key.itemId = key.itemId || key.supplierItemOuterId;
8436
+ });
8437
+ return _defineProperty({}, nex.uniqueKey, itemList);
8438
+ };
8439
+ };
8440
+ var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8441
+ return function (nex, config) {
8442
+ var _ref34;
8443
+ var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8444
+ var map = subFields.reduce(function (cur, nxt) {
8445
+ return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8446
+ }, {});
8447
+ return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
8448
+ };
8449
+ };
8450
+ var processJstLogistics = function processJstLogistics(getValue) {
8451
+ return function (nex, config) {
8452
+ var initValue = [{
8453
+ logisticsCompany: null,
8454
+ logisticsCode: null
8455
+ }];
8456
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
8457
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8458
+ };
8459
+ };
8460
+ var processJstItemSelectThird = function processJstItemSelectThird(getValue) {
8461
+ return function (nex, config) {
8462
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), []);
8463
+ return _defineProperty({}, nex.uniqueKey, itemList);
8464
+ };
8465
+ };
8466
+ var processJstSupply = function processJstSupply(getValue) {
8467
+ return function (nex, config) {
8468
+ var initValue = [{
8469
+ supplyId: null
8470
+ }];
8471
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
8472
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8473
+ };
8474
+ };
8475
+ var processJstSendGood = function processJstSendGood(getValue) {
8476
+ return function (nex, config) {
8477
+ var initValue = [{
8478
+ sendName: '',
8479
+ sendId: '',
8480
+ sendSnapshotId: ''
8481
+ }];
8482
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
8483
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8484
+ };
8485
+ };
8486
+ var processBsMemo = function processBsMemo(getValue) {
8487
+ return function (nex, config) {
8488
+ return _defineProperty({}, nex.uniqueKey, {
8489
+ remark: getValue("".concat(nex.uniqueKey, "_bsRemark")),
8490
+ flag: getValue("".concat(nex.uniqueKey, "_bsFlag"))
8491
+ });
8492
+ };
8493
+ };
8494
+ var processReissueLogistics = function processReissueLogistics(getValue) {
8495
+ return function (nex, config) {
8496
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_reissueLogisticsList")), []);
8497
+ return _defineProperty({}, nex.uniqueKey, itemList);
8498
+ };
8499
+ };
8500
+ var processCallBackStatus = function processCallBackStatus(getValue) {
8501
+ return function (nex, config) {
8502
+ var STATUS_MAP = {
8503
+ REISSUE_STATUS: {
8504
+ status: 'reissueStatusValue',
8505
+ reason: 'reissueReason'
8506
+ },
8507
+ ADJUST_WORK_ORDER_STATUS: {
8508
+ status: 'adjustWorkOrderStatusValue',
8509
+ reason: 'adjustWorkOrderReason'
8510
+ },
8511
+ CREATE_STATUS: {
8512
+ status: 'createStatusValue',
8513
+ reason: 'createReason'
8514
+ },
8515
+ INVOICE_STATUS: {
8516
+ status: 'invoiceStatusValue',
8517
+ reason: 'invoiceReason'
8518
+ },
8519
+ INVOICING_STATUS: {
8520
+ status: 'invoicingStatusValue',
8521
+ reason: 'invoicingReason'
8522
+ },
8523
+ AGREE_REFUND_STATUS: {
8524
+ status: 'agreeRefundStatusValue',
8525
+ reason: 'agreeRefundStatusReason'
8526
+ },
8527
+ REJECT_REFUND_STATUS: {
8528
+ status: 'rejectRefundStatusValue',
8529
+ reason: 'rejectRefundStatusReason'
8530
+ },
8531
+ AGREE_RETURN_GOODS_STATUS: {
8532
+ status: 'agreeReturnGoodsStatusValue',
8533
+ reason: 'agreeReturnGoodsStatusReason'
8534
+ },
8535
+ REJECT_RETURN_GOODS_STATUS: {
8536
+ status: 'rejectReturnGoodsStatusValue',
8537
+ reason: 'rejectReturnGoodsStatusReason'
8538
+ },
8539
+ ERP_AFTER_SALE_STATUS: {
8540
+ status: 'erpAfterSaleStatusValue',
8541
+ reason: 'erpAfterSaleStatusReason'
8542
+ },
8543
+ RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8544
+ status: 'returnExchangeGoodsReviewStatusValue',
8545
+ reason: 'returnExchangeGoodsReviewStatusReason'
8546
+ }
8547
+ };
8548
+ return _defineProperty({}, nex.uniqueKey, {
8549
+ status: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].status)),
8550
+ reason: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].reason))
8551
+ });
8552
+ };
8553
+ };
8554
+ var processSceneStatus = function processSceneStatus(getValue) {
8555
+ return function (nex, config) {
8556
+ var STATUS_LIST_MAP = {
8557
+ RETURN_GOODS_STATUS: 'returnGoodsStatusList',
8558
+ EXCHANGE_STATUS: 'exchangeReason',
8559
+ WAREHOUSING_STATUS: 'inStockStatusItemList',
8560
+ BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8561
+ MSG_STATUS: 'msgStatusValues',
8562
+ WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
8563
+ };
8564
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8565
+ };
8566
+ };
8567
+ var processErpLogistics = function processErpLogistics(getValue) {
8568
+ return function (nex, config) {
8569
+ var LogisticsMap = {
8570
+ BS_LOGISTICS: {
8571
+ listKey: 'bsLogisticsList'
8572
+ },
8573
+ WLN_LOGISTICS: {
8574
+ listKey: 'wlnLogisticsList'
8575
+ },
8576
+ WDT_LOGISTICS: {
8577
+ listKey: 'wdtLogisticsList'
8578
+ },
8579
+ BS_E3_LOGISTICS: {
8580
+ listKey: 'bsE3LogisticsList'
8581
+ },
8582
+ KM_LOGISTICS: {
8583
+ listKey: 'kmLogisticsList'
8584
+ },
8585
+ GY_LOGISTICS: {
8586
+ listKey: 'gyLogisticsList'
8587
+ },
8588
+ SKX_LOGISTICS: {
8589
+ listKey: 'skxLogisticsList'
8590
+ }
8591
+ };
8592
+ var initValue = [{
8593
+ logisticsCompany: null,
8594
+ logisticsCode: null
8595
+ }];
8596
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(LogisticsMap[nex.workOrderComponentType].listKey)), initValue);
8597
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8598
+ };
8599
+ };
8600
+ var processErpSendGood = function processErpSendGood(getValue) {
8601
+ return function (nex, config) {
8602
+ var sendGoodMap = {
8603
+ BS_SEND_GOOD: {
8604
+ list: 'bsSendGood'
8605
+ },
8606
+ WLN_SEND_GOOD: {
8607
+ list: 'wlnSendGood'
8608
+ },
8609
+ WDT_SEND_GOOD: {
8610
+ list: 'wdtSendGood'
8611
+ },
8612
+ KM_SEND_GOOD: {
8613
+ list: 'kmSendGood'
8614
+ },
8615
+ BS_E3_SEND_GOOD: {
8616
+ list: 'bsE3SendGood'
8617
+ },
8618
+ GY_SEND_GOOD: {
8619
+ list: 'gySendGood'
8620
+ }
8621
+ };
8622
+ var initValue = [{
8623
+ sendName: '',
8624
+ sendId: ''
8625
+ }];
8626
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(sendGoodMap[nex.workOrderComponentType].list)), initValue);
8627
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8628
+ };
8629
+ };
8630
+ var processBsPosting = function processBsPosting(getValue) {
8631
+ return function (nex, config) {
8632
+ var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
8633
+ //兼容地址是只有省市的
8634
+ var bsInterceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingDistrict")));
8635
+ bsInterceptDistrict && bsAddress.push(bsInterceptDistrict);
8636
+ bsAddress = every(bsAddress, function (item) {
8637
+ return !item;
8638
+ }) ? [] : bsAddress;
8639
+ return _defineProperty({}, nex.uniqueKey, {
8640
+ postingAddress: bsAddress,
8641
+ postingDetail: getValue("".concat(nex.uniqueKey, "_bsPostingDetail")),
8642
+ postingReceiverName: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverName")),
8643
+ postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverMobile"))
8644
+ });
8645
+ };
8646
+ };
8647
+ var processBsGoods = function processBsGoods(getValue) {
8648
+ return function (nex, config) {
8649
+ var _values = {
8650
+ bsGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsGoods")), []),
8651
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8652
+ };
8653
+ return _defineProperty({}, nex.uniqueKey, _values);
8654
+ };
8655
+ };
8656
+ var processWdtGoods = function processWdtGoods(templateColumns) {
8657
+ return function (getValue) {
8658
+ return function (nex, config) {
8659
+ var _values = {
8660
+ wdtGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtGoods")), []),
8661
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8662
+ };
8663
+ var selectIds = [];
8664
+ var orderNo = '';
8665
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8666
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8667
+ });
8668
+ if (tradeId) {
8669
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8670
+ }
8671
+ var wdtSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8672
+ return col.workOrderComponentType === 'WDT_SYSTEM_ORDER';
8673
+ });
8674
+ if (wdtSystemOrder) {
8675
+ selectIds = jsonParseSecurity(getValue("".concat(wdtSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtSystemOrder.workOrderComponentType].ids)), []);
8676
+ }
8677
+ _values.selectIds = selectIds;
8678
+ _values.orderNo = orderNo;
8679
+ return _defineProperty({}, nex.uniqueKey, _values);
8680
+ };
8681
+ };
8682
+ };
8683
+ var processBsE3Goods = function processBsE3Goods(templateColumns) {
8684
+ return function (getValue) {
8685
+ return function (nex, config) {
8686
+ var _values = {
8687
+ bsE3Goods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3Goods")), []),
8688
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8689
+ };
8690
+ var selectIds = [];
8691
+ var orderNo = '';
8692
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8693
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8694
+ });
8695
+ if (tradeId) {
8696
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8697
+ }
8698
+ var bsE3SystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8699
+ return col.workOrderComponentType === 'BS_E3_SYSTEM_ORDER';
8700
+ });
8701
+ if (bsE3SystemOrder) {
8702
+ selectIds = jsonParseSecurity(getValue("".concat(bsE3SystemOrder.uniqueKey, "_").concat(systemOrderMap[bsE3SystemOrder.workOrderComponentType].ids)), []);
8703
+ }
8704
+ _values.selectIds = selectIds;
8705
+ _values.orderNo = orderNo;
8706
+ return _defineProperty({}, nex.uniqueKey, _values);
8707
+ };
8708
+ };
8709
+ };
8710
+ var processJstGoods = function processJstGoods(templateColumns) {
8711
+ return function (getValue) {
8712
+ return function (nex, config) {
8713
+ var _values = {
8714
+ jstGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstGoods")), []),
8715
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8716
+ };
8717
+ var selectIds = [];
8718
+ var orderNo = '';
8719
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8720
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8721
+ });
8722
+ if (tradeId) {
8723
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8724
+ }
8725
+ var jstSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8726
+ return col.workOrderComponentType === 'JST_SYSTEM_ORDER';
8727
+ });
8728
+ if (jstSystemOrder) {
8729
+ selectIds = jsonParseSecurity(getValue("".concat(jstSystemOrder.uniqueKey, "_").concat(systemOrderMap[jstSystemOrder.workOrderComponentType].ids)), []);
8730
+ }
8731
+ _values.selectIds = selectIds;
8732
+ _values.orderNo = orderNo;
8733
+ return _defineProperty({}, nex.uniqueKey, _values);
8734
+ };
8735
+ };
8736
+ };
8737
+ var processKmGoods = function processKmGoods(templateColumns) {
8738
+ return function (getValue) {
8739
+ return function (nex, config) {
8740
+ var _values = {
8741
+ kmGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmGoods")), []),
8742
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8743
+ };
8744
+ var selectIds = [];
8745
+ var orderNo = '';
8746
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8747
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8748
+ });
8749
+ if (tradeId) {
8750
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8751
+ }
8752
+ var kmSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8753
+ return col.workOrderComponentType === 'KM_SYSTEM_ORDER';
8754
+ });
8755
+ if (kmSystemOrder) {
8756
+ selectIds = jsonParseSecurity(getValue("".concat(kmSystemOrder.uniqueKey, "_").concat(systemOrderMap[kmSystemOrder.workOrderComponentType].ids)), []);
8757
+ }
8758
+ _values.selectIds = selectIds;
8759
+ _values.orderNo = orderNo;
8760
+ return _defineProperty({}, nex.uniqueKey, _values);
8761
+ };
8762
+ };
8763
+ };
8764
+ var processGyGoods = function processGyGoods(templateColumns) {
8765
+ return function (getValue) {
8766
+ return function (nex, config) {
8767
+ var _values = {
8768
+ gyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyGoods")), []),
8769
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8770
+ };
8771
+ var selectIds = [];
8772
+ var orderNo = '';
8773
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8774
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8775
+ });
8776
+ if (tradeId) {
8777
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8778
+ }
8779
+ var gySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8780
+ return col.workOrderComponentType === 'GY_SYSTEM_ORDER';
8781
+ });
8782
+ if (gySystemOrder) {
8783
+ selectIds = jsonParseSecurity(getValue("".concat(gySystemOrder.uniqueKey, "_").concat(systemOrderMap[gySystemOrder.workOrderComponentType].ids)), []);
8784
+ }
8785
+ _values.selectIds = selectIds;
8786
+ _values.orderNo = orderNo;
8787
+ return _defineProperty({}, nex.uniqueKey, _values);
8788
+ };
8789
+ };
8790
+ };
8791
+ var processSkxGoods = function processSkxGoods(getValue) {
8792
+ return function (nex, config) {
8793
+ var _values = {
8794
+ skxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_skxGoods")), [])
8795
+ };
8796
+ return _defineProperty({}, nex.uniqueKey, _values);
8797
+ };
8798
+ };
8799
+ var processBsReissueGoods = function processBsReissueGoods(getValue) {
8800
+ return function (nex, config) {
8801
+ return _defineProperty({}, nex.uniqueKey, {
8802
+ bsReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueType")), []),
8803
+ bsReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueGoods")), []),
8804
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8805
+ });
8806
+ };
8807
+ };
8808
+ var processBsExchangeGoods = function processBsExchangeGoods(getValue) {
8809
+ return function (nex, config) {
8810
+ var bsExchangeType = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeType")), []);
8811
+ var bsExchangeReturnGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeReturnGoods")), []);
8812
+ var bsExchangeSwapOutGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")), []);
8813
+ //补发组装数据
8814
+ if ((bsExchangeType === null || bsExchangeType === void 0 ? void 0 : bsExchangeType.length) && ['2', '4'].includes(bsExchangeType[0])) {
8815
+ var maxLen = maxBy(bsExchangeReturnGoods, function (t) {
8816
+ return t.index;
8817
+ });
8818
+ var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
8819
+ return {
8820
+ bsExchangeReturnGoods: [],
8821
+ bsExchangeSwapOutGoods: []
8822
+ };
8823
+ });
8824
+ bsExchangeReturnGoods.forEach(function (item) {
8825
+ if (!newGoods[item.index]) {
8826
+ newGoods[item.index] = {
8827
+ bsExchangeReturnGoods: [],
8828
+ bsExchangeSwapOutGoods: []
8829
+ };
8830
+ }
8831
+ newGoods[item.index].bsExchangeReturnGoods.push(item);
8832
+ });
8833
+ bsExchangeSwapOutGoods.forEach(function (item) {
8834
+ newGoods[item.index].bsExchangeSwapOutGoods.push(item);
8835
+ });
8836
+ bsExchangeReturnGoods = newGoods;
8837
+ bsExchangeSwapOutGoods = [];
8838
+ }
8839
+ return _defineProperty({}, nex.uniqueKey, {
8840
+ bsExchangeType: bsExchangeType,
8841
+ bsExchangeReturnGoods: bsExchangeReturnGoods,
8842
+ bsExchangeSwapOutGoods: bsExchangeSwapOutGoods,
8843
+ bsExchangeGiftGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeGiftGoods")), []),
8844
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8845
+ });
8846
+ };
8847
+ };
8848
+ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
8849
+ return function (nex, config) {
8850
+ return _defineProperty({}, nex.uniqueKey, {
8851
+ wdtExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtExchangeGoods")), []),
8852
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8853
+ });
8854
+ };
8855
+ };
8856
+ var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
8857
+ return function (nex, config) {
8858
+ return _defineProperty({}, nex.uniqueKey, {
8859
+ jstExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstExchangeGoods")), []),
8860
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8861
+ });
8862
+ };
8863
+ };
8864
+ var processBsReturnGoods = function processBsReturnGoods(getValue) {
8865
+ return function (nex, config) {
8866
+ var _$concat;
8867
+ var compType = nex.workOrderComponentType;
8868
+ var returnGoodsMap = {
8869
+ BS_RETURN_GOODS: {
8870
+ returnTypeKey: 'bsReturnType',
8871
+ returnGoodsKey: 'bsReturnGoods',
8872
+ shopCodeKey: 'shopCode'
8873
+ }
8874
+ };
8875
+ return _defineProperty({}, "".concat(nex.uniqueKey), (_$concat = {}, _defineProperty(_$concat, returnGoodsMap[compType].returnTypeKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnTypeKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].returnGoodsKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnGoodsKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].shopCodeKey, getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].shopCodeKey))), _$concat));
8876
+ };
8877
+ };
8878
+ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8879
+ return function (nex, config) {
8880
+ var systemOrderMap = {
8881
+ BS_SYSTEM_ORDER: {
8882
+ no: 'bsSystemOrderNo',
8883
+ ids: 'bsSystemSelectIds',
8884
+ order: 'bsSystemShowOrder'
8885
+ },
8886
+ KM_SYSTEM_ORDER: {
8887
+ no: 'kmSystemOrderNo',
8888
+ ids: 'kmSystemSelectIds',
8889
+ order: 'kmSystemShowOrder'
8890
+ },
8891
+ WLN_SYSTEM_ORDER: {
8892
+ no: 'wlnSystemOrderNo',
8893
+ ids: 'wlnSystemSelectIds',
8894
+ order: 'wlnSystemShowOrder'
8895
+ },
8896
+ WDT_SYSTEM_ORDER: {
8897
+ no: 'wdtSystemOrderNo',
8898
+ ids: 'wdtSystemSelectIds',
8899
+ order: 'wdtSystemShowOrder'
8900
+ },
8901
+ BS_E3_SYSTEM_ORDER: {
8902
+ no: 'bsE3SystemOrderNo',
8903
+ ids: 'bsE3SystemSelectIds',
8904
+ order: 'bsE3SystemShowOrder'
8905
+ },
8906
+ GY_SYSTEM_ORDER: {
8907
+ no: 'gySystemOrderNo',
8908
+ ids: 'gySystemSelectIds',
8909
+ order: 'gySystemShowOrder'
8910
+ },
8911
+ JST_SYSTEM_ORDER: {
8912
+ no: 'jstSystemOrderNo',
8913
+ ids: 'jstSystemSelectIds',
8914
+ order: 'jstSystemShowOrder'
8915
+ }
8916
+ };
8917
+ return _defineProperty({}, nex.uniqueKey, {
8918
+ orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8919
+ orders: [],
8920
+ selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8921
+ showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8922
+ });
8923
+ };
8924
+ };
8925
+ var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
8926
+ return function (nex, config) {
8927
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
8928
+ };
8929
+ };
8930
+ var processOrderType = function processOrderType(getValue) {
8931
+ return function (nex, config) {
8932
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
8933
+ };
8934
+ };
8935
+ var processRefundType = function processRefundType(getValue) {
8936
+ return function (nex, config) {
8937
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_orderRefundType")) || (config === null || config === void 0 ? void 0 : config.select));
8938
+ };
8939
+ };
8940
+ var processExecuteActionType = function processExecuteActionType(getValue) {
8941
+ return function (nex, config) {
8942
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_executeActionType")) || (config === null || config === void 0 ? void 0 : config.select));
8943
+ };
8944
+ };
8945
+ var processErpTradeId = function processErpTradeId(getValue) {
8946
+ return function (nex, config) {
8947
+ var SYSTEM_ORDER_MAP = {
8948
+ BS_DELIVERY_NO: {
8949
+ key: 'deliveryNoList',
8950
+ defaultValue: [{
8951
+ deliverNo: '',
8952
+ systemOrderId: ''
8953
+ }]
8954
+ },
8955
+ RETURN_GOODS_TRADE_ID: {
8956
+ key: 'returnGoodsTradeItemList',
8957
+ defaultValue: []
8958
+ },
8959
+ REISSUE_TRADE_ID: {
8960
+ key: 'tradeItemList',
8961
+ defaultValue: []
8962
+ },
8963
+ ERP_AFTER_SALE_TRADE_ID: {
8964
+ key: 'erpAfterSaleTradeItemList',
8965
+ defaultValue: []
8966
+ },
8967
+ EXCHANGE_TRADE_ID: {
8968
+ key: 'tradeItemList',
8969
+ defaultValue: []
8970
+ }
8971
+ };
8972
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
8973
+ };
8974
+ };
8975
+ var processWlnGoods = function processWlnGoods(templateColumns) {
8976
+ return function (getValue) {
8977
+ return function (nex, config) {
8978
+ var orderNo = '';
8979
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8980
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8981
+ });
8982
+ if (tradeId) {
8983
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8984
+ }
8985
+ return _defineProperty({}, nex.uniqueKey, {
8986
+ wlnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnGoods")), []),
8987
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
8988
+ orderNo: orderNo
8989
+ });
8990
+ };
8991
+ };
8992
+ };
8993
+ var processWdtReissueGoods = function processWdtReissueGoods(templateColumns) {
8994
+ return function (getValue) {
8995
+ return function (nex, config) {
8996
+ var orderNo = '';
8997
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8998
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8999
+ });
9000
+ if (tradeId) {
9001
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9002
+ }
9003
+ return _defineProperty({}, nex.uniqueKey, {
9004
+ wdtSystemOrder: {
9005
+ orderNo: orderNo
9006
+ },
9007
+ wdtReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9008
+ wdtReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueGoods")), []),
9009
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9010
+ wdtSystemOrderNo: getValue("".concat(nex.uniqueKey, "_wdtSystemOrderNo"))
9011
+ });
9012
+ };
9013
+ };
9014
+ };
9015
+ var processWdtReturnGoods = function processWdtReturnGoods(templateColumns) {
9016
+ return function (getValue) {
9017
+ return function (nex, config) {
9018
+ // let orderNo = '';
9019
+ // const tradeId = templateColumns?.find(
9020
+ // (col: { workOrderComponentType: string }) => col.workOrderComponentType === 'TRADE_ID_INPUT',
9021
+ // );
9022
+ // if (tradeId) {
9023
+ // orderNo = getValue(
9024
+ // `${tradeId.uniqueKey}_${updateWorkTypeKeys[tradeId.workOrderComponentType]}`,
9025
+ // );
9026
+ // }
9027
+ return _defineProperty({}, nex.uniqueKey, {
9028
+ wdtReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9029
+ wdtReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnGoods")), []),
9030
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
9031
+ });
9032
+ };
9033
+ };
9034
+ };
9035
+ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
9036
+ return function (getValue) {
9037
+ return function (nex, config) {
9038
+ var orderNo = '';
9039
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9040
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9041
+ });
9042
+ if (tradeId) {
9043
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9044
+ }
9045
+ return _defineProperty({}, nex.uniqueKey, {
9046
+ kmSystemOrder: {
9047
+ orderNo: orderNo
9048
+ },
9049
+ kmReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9050
+ kmReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueGoods")), []),
9051
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9052
+ kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
9053
+ });
9054
+ };
9055
+ };
9056
+ };
9057
+ var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
9058
+ return function (getValue) {
9059
+ return function (nex, config) {
9060
+ var orderNo = '';
9061
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9062
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9063
+ });
9064
+ if (tradeId) {
9065
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9066
+ }
9067
+ return _defineProperty({}, nex.uniqueKey, {
9068
+ gySystemOrder: {
9069
+ orderNo: orderNo
9070
+ },
9071
+ gyReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9072
+ gyReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueGoods")), []),
9073
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9074
+ vipCode: getValue("".concat(nex.uniqueKey, "_vipCode")),
9075
+ gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
9076
+ });
9077
+ };
9078
+ };
9079
+ };
9080
+ var processGyReturnGoods = function processGyReturnGoods(templateColumns) {
9081
+ return function (getValue) {
9082
+ return function (nex, config) {
9083
+ var orderNo = '';
9084
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9085
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9086
+ });
9087
+ if (tradeId) {
9088
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9089
+ }
9090
+ return _defineProperty({}, nex.uniqueKey, {
9091
+ gySystemOrder: {
9092
+ orderNo: orderNo
9093
+ },
9094
+ gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9095
+ gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
9096
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9097
+ gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
9098
+ });
9099
+ };
9100
+ };
9101
+ };
9102
+ var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
9103
+ return function (getValue) {
9104
+ return function (nex, config) {
9105
+ var orderNo = '';
9106
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9107
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9108
+ });
9109
+ if (tradeId) {
9110
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9111
+ }
9112
+ return _defineProperty({}, nex.uniqueKey, {
9113
+ jstSystemOrder: {
9114
+ orderNo: orderNo
9115
+ },
9116
+ jstReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9117
+ jstReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueGoods")), []),
9118
+ jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
9119
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9120
+ jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
9121
+ });
9122
+ };
9123
+ };
9124
+ };
9125
+ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9126
+ return function (getValue) {
9127
+ return function (nex, config) {
9128
+ var orderNo = '';
9129
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9130
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9131
+ });
9132
+ if (tradeId) {
9133
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9134
+ }
9135
+ return _defineProperty({}, nex.uniqueKey, {
9136
+ jstSystemOrder: {
9137
+ orderNo: orderNo
9138
+ },
9139
+ jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9140
+ jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
9141
+ jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
9142
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9143
+ jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
9144
+ });
9145
+ };
9146
+ };
9147
+ };
9148
+ var processLabel = function processLabel(getValue) {
9149
+ return function (nex, config) {
9150
+ var _ref72;
9151
+ return _ref72 = {}, _defineProperty(_ref72, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref72, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref72;
9152
+ };
9153
+ };
9154
+ var processMemberLevel = function processMemberLevel(getValue) {
9155
+ return function (nex, config) {
9156
+ var _ref73;
9157
+ return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref73;
9158
+ };
9159
+ };
9160
+ var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
9161
+ return function (nex, config) {
9162
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_afterSalesOrderId")));
9163
+ };
9164
+ };
9165
+ var processSingleField = function processSingleField(getValue) {
9166
+ return function (nex, config) {
9167
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(updateWorkTypeKeys[nex.workOrderComponentType])));
9168
+ };
9169
+ };
9170
+ var processSingleFieldByKey = function processSingleFieldByKey(key) {
9171
+ return function (getValue) {
9172
+ return function (nex, config) {
9173
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(key)));
9174
+ };
9175
+ };
9176
+ };
9177
+ var processBsE3ReissueGoods = function processBsE3ReissueGoods(templateColumns) {
9178
+ return function (getValue) {
9179
+ return function (nex, config) {
9180
+ var orderNo = '';
9181
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9182
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9183
+ });
9184
+ if (tradeId) {
9185
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9186
+ }
9187
+ return _defineProperty({}, nex.uniqueKey, {
9188
+ bsE3SystemOrder: {
9189
+ orderNo: orderNo
9190
+ },
9191
+ bsE3SystemOrderNo: getValue("".concat(nex.uniqueKey, "_bsE3SystemOrderNo")),
9192
+ bsE3ReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9193
+ bsE3ReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueGoods")), [])
9194
+ });
9195
+ };
9196
+ };
9197
+ };
9198
+ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9199
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'edit';
9200
+ return function (item) {
9201
+ var getValue = getItemValue(item);
9202
+ var componentProcessors = _objectSpread2({
9203
+ RADIO: processRadio,
9204
+ INPUT: processInput,
9205
+ NUMERICAL_CALCULATION: processNumericalCalculation,
9206
+ TEXTAREA: processTextarea,
9207
+ SELECT: processSelect,
9208
+ GY_PAYMENT_METHOD: gyPaymentMethod,
9209
+ RATE: processRate,
9210
+ FILE: processFile,
9211
+ POSTING: processPosting,
9212
+ BUYER_NICK_INPUT: processBuyerNickInput,
9213
+ ALI_PAY_INPUT: processAliPayInput,
9214
+ CHECKBOX: processCheckbox,
9215
+ DATETIME: processDatetime,
9216
+ PICTURE: processPicture,
9217
+ PICTURE_PRO: processPicturePro,
9218
+ BASIC_MULT_SELECT: processBasicMultSelect,
9219
+ MULT_SELECT: processMultSelect,
9220
+ BASIC_ADDRESS: processBasicAddress,
9221
+ RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
9222
+ SUBFORM: processSubForm,
9223
+ EXPRESS_LOGISTICS_SELECT: processExpressLogisticsSelect,
9224
+ RETURN_LOGISTICS_SELECT: processReturnLogisticsSelect,
9225
+ REMARK_INPUT: processRemarkInput,
9226
+ STATUS: processStatus,
9227
+ ORDINARY_INVOICE: processOrdinaryInvoice,
9228
+ LOGISTICS_INTERCEPTION: processLogisticsInterception,
9229
+ LOGISTICS_INTERCEPTION_MORE: processLogisticsInterceptionMore,
9230
+ LOGISTICS_TRAJECTORY: processLogisticsTrajectory,
9231
+ LOGISTICS_TRAJECTORY_MORE: processLogisticsTrajectoryMore,
9232
+ ITEM_SELECT: processGoods,
9233
+ ITEM_ENCODE: processGoods,
9234
+ ITEM_ID: processGoods,
9235
+ ITEM_SELECT_THIRD: processItemSelectThird,
9236
+ ENTERPRISE_PAYMENT: processEnterPrisePayment,
9237
+ JST_LOGISTICS: processJstLogistics,
9238
+ JST_ITEM_SELECT_THIRD: processJstItemSelectThird,
9239
+ JST_SUPPLY: processJstSupply,
9240
+ JST_SEND_GOOD: processJstSendGood,
9241
+ BS_MEMO: processBsMemo,
9242
+ REISSUE_LOGISTICS: processReissueLogistics,
9243
+ REISSUE_STATUS: processCallBackStatus,
9244
+ ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
9245
+ CREATE_STATUS: processCallBackStatus,
9246
+ INVOICE_STATUS: processCallBackStatus,
9247
+ INVOICING_STATUS: processCallBackStatus,
9248
+ AGREE_REFUND_STATUS: processCallBackStatus,
9249
+ REJECT_REFUND_STATUS: processCallBackStatus,
9250
+ ERP_AFTER_SALE_STATUS: processCallBackStatus,
9251
+ AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9252
+ REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9253
+ RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
9254
+ RETURN_GOODS_STATUS: processSceneStatus,
9255
+ EXCHANGE_STATUS: processSceneStatus,
9256
+ WAREHOUSING_STATUS: processSceneStatus,
9257
+ BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9258
+ MSG_STATUS: processSceneStatus,
9259
+ WDT_WAREHOUSING_STATUS: processSceneStatus,
9260
+ BS_LOGISTICS: processErpLogistics,
9261
+ WLN_LOGISTICS: processErpLogistics,
9262
+ WDT_LOGISTICS: processErpLogistics,
9263
+ GY_LOGISTICS: processErpLogistics,
9264
+ BS_E3_LOGISTICS: processErpLogistics,
9265
+ KM_LOGISTICS: processErpLogistics,
9266
+ BS_SEND_GOOD: processErpSendGood,
9267
+ WLN_SEND_GOOD: processErpSendGood,
9268
+ WDT_SEND_GOOD: processErpSendGood,
9269
+ BS_E3_SEND_GOOD: processErpSendGood,
9270
+ KM_SEND_GOOD: processErpSendGood,
9271
+ GY_SEND_GOOD: processErpSendGood,
9272
+ BS_POSTING: processBsPosting,
9273
+ BS_GOODS: processBsGoods,
9274
+ WDT_GOODS: processWdtGoods(templateColumns),
9275
+ BS_E3_GOODS: processBsE3Goods(templateColumns),
9276
+ GY_GOODS: processGyGoods(templateColumns),
9277
+ KM_GOODS: processKmGoods(templateColumns),
9278
+ KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
9279
+ JST_GOODS: processJstGoods(templateColumns),
9280
+ BS_REISSUE_GOODS: processBsReissueGoods,
9281
+ BS_EXCHANGE_GOODS: processBsExchangeGoods,
9282
+ WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
9283
+ JST_EXCHANGE_GOODS: processJstExchangeGoods,
9284
+ BS_RETURN_GOODS: processBsReturnGoods,
9285
+ WDT_RETURN_GOODS: processWdtReturnGoods(),
9286
+ JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
9287
+ BS_SYSTEM_ORDER: processErpSystemOrder,
9288
+ KM_SYSTEM_ORDER: processErpSystemOrder,
9289
+ WLN_SYSTEM_ORDER: processErpSystemOrder,
9290
+ WDT_SYSTEM_ORDER: processErpSystemOrder,
9291
+ BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9292
+ JST_SYSTEM_ORDER: processErpSystemOrder,
9293
+ GY_SYSTEM_ORDER: processErpSystemOrder,
9294
+ BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
9295
+ ORDER_TYPE: processOrderType,
9296
+ REFUND_TYPE: processRefundType,
9297
+ RETURN_GOODS_TRADE_ID: processErpTradeId,
9298
+ BS_DELIVERY_NO: processErpTradeId,
9299
+ REISSUE_TRADE_ID: processErpTradeId,
9300
+ ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
9301
+ EXCHANGE_TRADE_ID: processErpTradeId,
9302
+ WLN_GOODS: processWlnGoods(templateColumns),
9303
+ WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
9304
+ GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
9305
+ GY_RETURN_GOODS: processGyReturnGoods(templateColumns),
9306
+ JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
9307
+ LABEL: processLabel,
9308
+ MEMBER_LEVEL: processMemberLevel,
9309
+ AFTER_SALES_ORDER_ID: processAfterSalesOrderId,
9310
+ BASIC_GRADE: processSingleField,
9311
+ TRADE_ID_INPUT: processSingleField,
9312
+ SHOP_NAME_INPUT: processSingleField,
9313
+ RECEIVER_NAME_INPUT: processSingleField,
9314
+ RECEIVER_MOBILE_INPUT: processSingleField,
9315
+ TRADE_CREATE_DATETIME: processSingleField,
9316
+ TRADE_PAYMENT_DATETIME: processSingleField,
9317
+ TRADE_DELIVERY_DATETIME: processSingleField,
9318
+ TRADE_CLOSING_DATETIME: processSingleField,
9319
+ TRADE_SIGNING_DATETIME: processSingleField,
9320
+ ACTUAL_PAYMENT: processSingleField,
9321
+ SYSTEM_ORDER_NO: processSingleField,
9322
+ BS_SIGNING_TIME: processSingleField,
9323
+ BS_SEND_TIME: processSingleField,
9324
+ BS_TRADE_PAYMENT_TIME: processSingleField,
9325
+ BS_NET_RECEIPTS: processSingleField,
9326
+ BS_PACKAGE_WEIGHT: processSingleField,
9327
+ BS_DEPOSIT: processSingleField,
9328
+ NEW_PAYMENT_STATUS: processSingleField,
9329
+ BUSINESS_ORDER_NO: processSingleField,
9330
+ PAYMENT_VOUCHER_CODE: processSingleField,
9331
+ BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9332
+ ACTUAL_RECEIPT_PAYMENT: processSingleField,
9333
+ WDT_SHOP: processSingleField,
9334
+ KM_VIDEO: processKmVideo,
9335
+ WDT_TAGS: wdtTags,
9336
+ EXECUTE_ACTION_TYPE: processExecuteActionType,
9337
+ SKX_GOODS: processSkxGoods,
9338
+ SKX_LOGISTICS: processErpLogistics
9339
+ }, Object.keys(processSingleFieldTypeMapping).reduce(function (acc, key) {
9340
+ acc[key] = processSingleFieldByKey(processSingleFieldTypeMapping[key]);
9341
+ return acc;
9342
+ }, {}));
9343
+ return templateColumns.reduce(function (cur, nex) {
9344
+ var _componentProcessors$;
9345
+ var config = type === 'init' ? nex.componentConfig : {};
9346
+ var processFunc = (_componentProcessors$ = componentProcessors[nex.workOrderComponentType]) === null || _componentProcessors$ === void 0 ? void 0 : _componentProcessors$.call(componentProcessors, getValue);
9347
+ if (processFunc) {
9348
+ return _objectSpread2(_objectSpread2({}, cur), processFunc(nex, config));
9349
+ }
9350
+ return cur; // 如果没有找到处理函数,返回当前累积对象
9351
+ }, {});
9352
+ };
9353
+ };
9354
+
8049
9355
  var hostUrl = 'https://kefu.kuaimai.com';
8050
9356
  var FileRender = function FileRender(_ref) {
8051
9357
  var _ref$fileList = _ref.fileList,
@@ -8117,9 +9423,11 @@ var FileRender = function FileRender(_ref) {
8117
9423
  return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
8118
9424
  return /*#__PURE__*/React.createElement("a", {
8119
9425
  style: {
9426
+ display: 'block',
9427
+ width: '100%',
8120
9428
  color: '#1890ff',
8121
9429
  cursor: 'pointer',
8122
- display: 'block'
9430
+ whiteSpace: 'break-spaces'
8123
9431
  },
8124
9432
  onClick: function onClick(e) {
8125
9433
  e.preventDefault();
@@ -8184,26 +9492,6 @@ var PictureRender = function PictureRender(_ref2) {
8184
9492
  }));
8185
9493
  }));
8186
9494
  };
8187
- var RadioRender = function RadioRender(_ref3) {
8188
- var _value$value;
8189
- var _ref3$value = _ref3.value,
8190
- value = _ref3$value === void 0 ? {} : _ref3$value;
8191
- return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.value, (value === null || value === void 0 ? void 0 : value.value) && typeof value.value === 'string' && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf('其他')) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
8192
- };
8193
- var CheckboxRender = function CheckboxRender(_ref4) {
8194
- var _value$value2, _value$value3, _value$value4;
8195
- var _ref4$value = _ref4.value,
8196
- value = _ref4$value === void 0 ? [] : _ref4$value;
8197
- if ((value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
8198
- var findIndex = value === null || value === void 0 ? void 0 : (_value$value3 = value.value) === null || _value$value3 === void 0 ? void 0 : _value$value3.findIndex(function (item) {
8199
- return item === '其他';
8200
- });
8201
- if (findIndex > -1 && (value === null || value === void 0 ? void 0 : value.other)) {
8202
- // @ts-ignore
8203
- value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
8204
- }
8205
- return value === null || value === void 0 ? void 0 : (_value$value4 = value.value) === null || _value$value4 === void 0 ? void 0 : _value$value4.join('/');
8206
- };
8207
9495
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
8208
9496
  var _ref5$value = _ref5.value,
8209
9497
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -8226,13 +9514,8 @@ var renderMap = {
8226
9514
  canDownload: true
8227
9515
  });
8228
9516
  },
8229
- RADIO: function RADIO(value) {
8230
- return /*#__PURE__*/React.createElement(RadioRender, {
8231
- value: value
8232
- });
8233
- },
8234
9517
  CHECKBOX: function CHECKBOX(value) {
8235
- return /*#__PURE__*/React.createElement(CheckboxRender, {
9518
+ return /*#__PURE__*/React.createElement(MultipleSelectRender, {
8236
9519
  value: value
8237
9520
  });
8238
9521
  },
@@ -8421,7 +9704,7 @@ var EditRenderMap = {
8421
9704
  updateHandle = _ref12.updateHandle,
8422
9705
  disabled = _ref12.disabled,
8423
9706
  componentDto = _ref12.componentDto;
8424
- return /*#__PURE__*/React.createElement(ApaasRadio, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9707
+ return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8425
9708
  value: val,
8426
9709
  disabled: t.isEdit || disabled,
8427
9710
  onChange: function onChange(e) {
@@ -8453,7 +9736,7 @@ var EditRenderMap = {
8453
9736
  updateHandle = _ref14.updateHandle,
8454
9737
  disabled = _ref14.disabled,
8455
9738
  componentDto = _ref14.componentDto;
8456
- return /*#__PURE__*/React.createElement(ApaasCheckbox, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9739
+ return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8457
9740
  value: val,
8458
9741
  disabled: t.isEdit || disabled,
8459
9742
  onChange: function onChange(e) {
@@ -8698,15 +9981,9 @@ var SubForm = function SubForm(props) {
8698
9981
  workOrderComponentType: next.workOrderComponentType,
8699
9982
  defaultValue: ''
8700
9983
  };
8701
- if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT'].includes(next.workOrderComponentType)) {
9984
+ if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8702
9985
  item.defaultValue = [];
8703
9986
  }
8704
- if (['RADIO', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8705
- item.defaultValue = {
8706
- value: next.workOrderComponentType === 'RADIO' ? '' : [],
8707
- other: ''
8708
- };
8709
- }
8710
9987
  prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
8711
9988
  return prv;
8712
9989
  }, {});
@@ -11402,7 +12679,7 @@ styleInject(css_248z$9);
11402
12679
 
11403
12680
  var Item = Form.Item;
11404
12681
  var LogisticsInterception = function LogisticsInterception(props) {
11405
- var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
12682
+ var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
11406
12683
  var LogisticsAddress = LogisticsAddressData.getInstance();
11407
12684
  var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
11408
12685
  var address = AddressData.getInstance();
@@ -11600,17 +12877,19 @@ var LogisticsInterception = function LogisticsInterception(props) {
11600
12877
  status: '',
11601
12878
  reason: ''
11602
12879
  },
12880
+ interceptLogisticsApiStatusReason: undefined,
11603
12881
  interceptLogisticsUserKCode: undefined,
11604
12882
  interceptLogisticsUserSecretKey: undefined
11605
12883
  });
11606
12884
  }
11607
12885
  if (type === 'interceptLogisticsApiStatus') {
11608
- var _value$interceptLogis;
12886
+ var _value$interceptLogis, _value$interceptLogis2;
11609
12887
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
11610
12888
  interceptLogisticsApiStatus: {
11611
12889
  status: val,
11612
12890
  reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
11613
- }
12891
+ },
12892
+ interceptLogisticsApiStatusReason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.reason) || ''
11614
12893
  });
11615
12894
  }
11616
12895
  if (type === 'interceptLogisticsUserKCode') {
@@ -11833,7 +13112,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
11833
13112
  label: '接口状态',
11834
13113
  key: 'interceptLogisticsApiStatus'
11835
13114
  }, /*#__PURE__*/React.createElement(Select, {
11836
- value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.status) || null,
13115
+ value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.status) || null,
11837
13116
  disabled: true,
11838
13117
  style: {
11839
13118
  width: '200px'
@@ -11849,11 +13128,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
11849
13128
  label: '失败',
11850
13129
  value: '失败'
11851
13130
  }]
11852
- }), (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.reason) ? /*#__PURE__*/React.createElement("div", {
13131
+ }), (value === null || value === void 0 ? void 0 : (_value$interceptLogis4 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis4 === void 0 ? void 0 : _value$interceptLogis4.reason) ? /*#__PURE__*/React.createElement("div", {
11853
13132
  style: {
11854
13133
  color: 'red'
11855
13134
  }
11856
- }, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : (_value$interceptLogis4 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis4 === void 0 ? void 0 : _value$interceptLogis4.reason) : null));
13135
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : (_value$interceptLogis5 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis5 === void 0 ? void 0 : _value$interceptLogis5.reason) : null), /*#__PURE__*/React.createElement(Item, {
13136
+ label: '接口状态原因',
13137
+ key: 'interceptLogisticsApiStatusReason'
13138
+ }, /*#__PURE__*/React.createElement(Input, {
13139
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsApiStatusReason,
13140
+ disabled: true,
13141
+ placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13142
+ onChange: function onChange(e) {
13143
+ return changeHandle(e.target.value, 'interceptLogisticsApiStatusReason');
13144
+ }
13145
+ })));
11857
13146
  };
11858
13147
 
11859
13148
  var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
@@ -15648,7 +16937,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
15648
16937
  maxTagCount: "responsive",
15649
16938
  valueMapping: "uniqueKey",
15650
16939
  style: {
15651
- width: '195px'
16940
+ width: '190px'
15652
16941
  }
15653
16942
  }, props));
15654
16943
  } : componentMap$1[filterComponentType];
@@ -15915,7 +17204,7 @@ var SearchHeader = function SearchHeader(_ref) {
15915
17204
  hidden: !show,
15916
17205
  style: {
15917
17206
  marginRight: '4px',
15918
- minWidth: '195px'
17207
+ minWidth: '190px'
15919
17208
  },
15920
17209
  key: item.id
15921
17210
  }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
@@ -19704,7 +20993,7 @@ var isErpType = {
19704
20993
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
19705
20994
  }
19706
20995
  };
19707
- var processGoods = function processGoods(_ref) {
20996
+ var processGoods$1 = function processGoods(_ref) {
19708
20997
  var list = _ref.list,
19709
20998
  type = _ref.type,
19710
20999
  canUpdateNumber = _ref.canUpdateNumber,
@@ -19713,35 +21002,35 @@ var processGoods = function processGoods(_ref) {
19713
21002
  var newList = [];
19714
21003
  // 根据商品类型处理数据
19715
21004
  if (isErpType.isWdt(type)) {
19716
- newList = processWdtGoods({
21005
+ newList = processWdtGoods$1({
19717
21006
  list: list,
19718
21007
  type: type,
19719
21008
  canUpdateNumber: canUpdateNumber,
19720
21009
  source: source
19721
21010
  });
19722
21011
  } else if (isErpType.isBsE3(type)) {
19723
- newList = processBsE3Goods({
21012
+ newList = processBsE3Goods$1({
19724
21013
  list: list,
19725
21014
  type: type,
19726
21015
  canUpdateNumber: canUpdateNumber,
19727
21016
  source: source
19728
21017
  });
19729
21018
  } else if (isErpType.isGy(type)) {
19730
- newList = processGyGoods({
21019
+ newList = processGyGoods$1({
19731
21020
  list: list,
19732
21021
  type: type,
19733
21022
  canUpdateNumber: canUpdateNumber,
19734
21023
  source: source
19735
21024
  });
19736
21025
  } else if (isErpType.isJst(type)) {
19737
- newList = processJstGoods({
21026
+ newList = processJstGoods$1({
19738
21027
  list: list,
19739
21028
  type: type,
19740
21029
  canUpdateNumber: canUpdateNumber,
19741
21030
  source: source
19742
21031
  });
19743
21032
  } else if (isErpType.isKm(type)) {
19744
- newList = processKmGoods({
21033
+ newList = processKmGoods$1({
19745
21034
  list: list,
19746
21035
  type: type,
19747
21036
  canUpdateNumber: canUpdateNumber,
@@ -19758,7 +21047,7 @@ var processGoods = function processGoods(_ref) {
19758
21047
  return newList;
19759
21048
  };
19760
21049
  // 处理不同类型的商品数据
19761
- var processWdtGoods = function processWdtGoods(_ref2) {
21050
+ var processWdtGoods$1 = function processWdtGoods(_ref2) {
19762
21051
  var list = _ref2.list,
19763
21052
  type = _ref2.type,
19764
21053
  canUpdateNumber = _ref2.canUpdateNumber;
@@ -19779,7 +21068,7 @@ var processWdtGoods = function processWdtGoods(_ref2) {
19779
21068
  return processedItem;
19780
21069
  });
19781
21070
  };
19782
- var processBsE3Goods = function processBsE3Goods(_ref3) {
21071
+ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
19783
21072
  var list = _ref3.list,
19784
21073
  canUpdateNumber = _ref3.canUpdateNumber;
19785
21074
  return list.map(function (item) {
@@ -19816,7 +21105,7 @@ var processBsE3Goods = function processBsE3Goods(_ref3) {
19816
21105
  });
19817
21106
  });
19818
21107
  };
19819
- var processGyGoods = function processGyGoods(_ref4) {
21108
+ var processGyGoods$1 = function processGyGoods(_ref4) {
19820
21109
  var list = _ref4.list,
19821
21110
  source = _ref4.source;
19822
21111
  var isFormWorkOrder = source === 'workOrder';
@@ -19845,7 +21134,7 @@ var processGyGoods = function processGyGoods(_ref4) {
19845
21134
  });
19846
21135
  });
19847
21136
  };
19848
- var processJstGoods = function processJstGoods(_ref5) {
21137
+ var processJstGoods$1 = function processJstGoods(_ref5) {
19849
21138
  var list = _ref5.list;
19850
21139
  return list.map(function (item) {
19851
21140
  return {
@@ -19864,7 +21153,7 @@ var processJstGoods = function processJstGoods(_ref5) {
19864
21153
  };
19865
21154
  });
19866
21155
  };
19867
- var processKmGoods = function processKmGoods(_ref6) {
21156
+ var processKmGoods$1 = function processKmGoods(_ref6) {
19868
21157
  var list = _ref6.list,
19869
21158
  type = _ref6.type;
19870
21159
  var initParamsMap = {
@@ -20360,7 +21649,7 @@ var GoodItem$1 = function GoodItem(props) {
20360
21649
  }].concat(_toConsumableArray(columns));
20361
21650
  }, []);
20362
21651
  var onSubmit = function onSubmit(list) {
20363
- var newList = processGoods({
21652
+ var newList = processGoods$1({
20364
21653
  list: list,
20365
21654
  canUpdateNumber: canUpdateNumber,
20366
21655
  type: type,