@kmkf-fe-packages/basic-components 2.2.5-beta.4 → 2.2.5-beta.40

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';
@@ -7227,7 +7229,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
7227
7229
  var _ref$maxCount = _ref.maxCount,
7228
7230
  maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
7229
7231
  _ref$maxSize = _ref.maxSize,
7230
- maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
7232
+ maxSize = _ref$maxSize === void 0 ? 200 : _ref$maxSize,
7231
7233
  _ref$onChange = _ref.onChange,
7232
7234
  onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
7233
7235
  _ref$value = _ref.value,
@@ -8046,12 +8048,1317 @@ 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,
8052
9358
  fileList = _ref$fileList === void 0 ? [] : _ref$fileList,
8053
9359
  _ref$canDownload = _ref.canDownload,
8054
- canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload;
9360
+ canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
9361
+ id = _ref.id;
8055
9362
  var _useState = useState(false),
8056
9363
  _useState2 = _slicedToArray(_useState, 2),
8057
9364
  visible = _useState2[0],
@@ -8114,24 +9421,72 @@ var FileRender = function FileRender(_ref) {
8114
9421
  setDownloading(false);
8115
9422
  });
8116
9423
  };
8117
- return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
9424
+ return /*#__PURE__*/React.createElement("div", {
9425
+ onClick: function onClick(e) {
9426
+ e.stopPropagation();
9427
+ },
9428
+ id: id
9429
+ }, /*#__PURE__*/React.createElement(Popover, {
9430
+ getPopupContainer: function getPopupContainer() {
9431
+ return document.getElementById('subform');
9432
+ },
9433
+ content: /*#__PURE__*/React.createElement("div", {
9434
+ onClick: function onClick(e) {
9435
+ e.stopPropagation();
9436
+ }
9437
+ }, fileList.map(function (item) {
9438
+ return /*#__PURE__*/React.createElement("a", {
9439
+ style: {
9440
+ display: 'block',
9441
+ width: '100%',
9442
+ color: '#1890ff',
9443
+ cursor: 'pointer'
9444
+ },
9445
+ onClick: function onClick(e) {
9446
+ console.log('onPreview');
9447
+ e.preventDefault();
9448
+ onPreview(item);
9449
+ },
9450
+ href: item === null || item === void 0 ? void 0 : item.url
9451
+ }, item.name);
9452
+ })),
9453
+ trigger: "hover",
9454
+ placement: "bottom"
9455
+ }, /*#__PURE__*/React.createElement("div", {
9456
+ style: {
9457
+ overflow: 'hidden',
9458
+ textOverflow: 'ellipsis',
9459
+ whiteSpace: 'nowrap'
9460
+ },
9461
+ onClick: function onClick(e) {
9462
+ e.stopPropagation();
9463
+ }
9464
+ }, fileList.map(function (item) {
8118
9465
  return /*#__PURE__*/React.createElement("a", {
8119
9466
  style: {
9467
+ display: 'block',
9468
+ width: '100%',
8120
9469
  color: '#1890ff',
8121
9470
  cursor: 'pointer',
8122
- display: 'block'
9471
+ overflow: 'hidden',
9472
+ textOverflow: 'ellipsis',
9473
+ whiteSpace: 'nowrap'
8123
9474
  },
8124
9475
  onClick: function onClick(e) {
9476
+ e.stopPropagation();
8125
9477
  e.preventDefault();
8126
9478
  onPreview(item);
8127
9479
  },
8128
9480
  href: item === null || item === void 0 ? void 0 : item.url
8129
9481
  }, item.name);
8130
- }), /*#__PURE__*/React.createElement(Modal, {
9482
+ }))), /*#__PURE__*/React.createElement(Modal, {
8131
9483
  visible: visible,
8132
9484
  title: fileName,
8133
9485
  footer: null,
8134
- onCancel: handleCancel
9486
+ onCancel: handleCancel,
9487
+ getContainer: function getContainer() {
9488
+ return document.getElementById(id);
9489
+ }
8135
9490
  }, canDownload ? /*#__PURE__*/React.createElement(Button, {
8136
9491
  type: "link",
8137
9492
  onClick: function onClick() {
@@ -8145,7 +9500,7 @@ var FileRender = function FileRender(_ref) {
8145
9500
  }
8146
9501
  }, /*#__PURE__*/React.createElement(Button, {
8147
9502
  type: "link"
8148
- }, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
9503
+ }, "\u4E0B\u8F7D\u5730\u5740")), /*#__PURE__*/React.createElement("div", null, fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
8149
9504
  alt: "example",
8150
9505
  style: {
8151
9506
  width: '100%'
@@ -8159,7 +9514,7 @@ var FileRender = function FileRender(_ref) {
8159
9514
  autoPlay: true,
8160
9515
  controls: true,
8161
9516
  src: fileUrl
8162
- })));
9517
+ }))));
8163
9518
  };
8164
9519
  var PictureRender = function PictureRender(_ref2) {
8165
9520
  var _ref2$value = _ref2.value,
@@ -8184,25 +9539,10 @@ var PictureRender = function PictureRender(_ref2) {
8184
9539
  }));
8185
9540
  }));
8186
9541
  };
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('/');
9542
+ var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9543
+ var _ref5$value = _ref5.value,
9544
+ value = _ref5$value === void 0 ? [] : _ref5$value;
9545
+ return value === null || value === void 0 ? void 0 : value.join(',');
8206
9546
  };
8207
9547
  var renderMap = {
8208
9548
  PICTURE: function PICTURE() {
@@ -8215,31 +9555,33 @@ var renderMap = {
8215
9555
  hostUrl: 'https://kefu.kuaimai.com'
8216
9556
  });
8217
9557
  },
8218
- FILE: function FILE(value) {
9558
+ FILE: function FILE(value, platform) {
8219
9559
  return /*#__PURE__*/React.createElement(FileRender, {
9560
+ id: "fileRender",
8220
9561
  fileList: value,
8221
- canDownload: true
9562
+ canDownload: !['ks', 'fxg'].includes(platform || '')
8222
9563
  });
8223
9564
  },
8224
- RADIO: function RADIO(value) {
8225
- return /*#__PURE__*/React.createElement(RadioRender, {
9565
+ CHECKBOX: function CHECKBOX(value) {
9566
+ return /*#__PURE__*/React.createElement(MultipleSelectRender, {
8226
9567
  value: value
8227
9568
  });
8228
9569
  },
8229
- CHECKBOX: function CHECKBOX(value) {
8230
- return /*#__PURE__*/React.createElement(CheckboxRender, {
9570
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(value) {
9571
+ return /*#__PURE__*/React.createElement(MultipleSelectRender, {
8231
9572
  value: value
8232
9573
  });
8233
9574
  }
8234
9575
  };
8235
- var EditPictureRender = function EditPictureRender(_ref5) {
8236
- var _ref5$val = _ref5.val,
8237
- val = _ref5$val === void 0 ? [] : _ref5$val,
8238
- index = _ref5.index,
8239
- t = _ref5.t,
8240
- updateHandle = _ref5.updateHandle,
8241
- disabled = _ref5.disabled,
8242
- hostUrl = _ref5.hostUrl;
9576
+ var EditPictureRender = function EditPictureRender(_ref6) {
9577
+ var _ref6$val = _ref6.val,
9578
+ val = _ref6$val === void 0 ? [] : _ref6$val,
9579
+ index = _ref6.index,
9580
+ t = _ref6.t,
9581
+ updateHandle = _ref6.updateHandle,
9582
+ disabled = _ref6.disabled,
9583
+ hostUrl = _ref6.hostUrl,
9584
+ platform = _ref6.platform;
8243
9585
  var finalPictures = val.map(function (item) {
8244
9586
  return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
8245
9587
  });
@@ -8250,38 +9592,44 @@ var EditPictureRender = function EditPictureRender(_ref5) {
8250
9592
  border: '1px solid #d9d9d9',
8251
9593
  padding: '3px'
8252
9594
  }
8253
- }, !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(Popover, {
9595
+ }, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
9596
+ style: {
9597
+ fontSize: 18,
9598
+ color: '#aaa'
9599
+ }
9600
+ }) : /*#__PURE__*/React.createElement(Popover, {
9601
+ getPopupContainer: function getPopupContainer() {
9602
+ return document.getElementById('subform');
9603
+ },
8254
9604
  content: /*#__PURE__*/React.createElement(ApaasUploadAsync$1, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
8255
9605
  value: finalPictures,
8256
9606
  onChange: function onChange(e) {
8257
9607
  return updateHandle(e, index, t.key);
8258
9608
  },
8259
- hostUrl: hostUrl
9609
+ hostUrl: hostUrl,
9610
+ uniqueKey: t.key,
9611
+ platform: platform
8260
9612
  })),
8261
9613
  trigger: "click"
8262
9614
  }, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
8263
9615
  style: {
8264
9616
  fontSize: 18
8265
9617
  }
8266
- })) : /*#__PURE__*/React.createElement(PlusSquareOutlined, {
8267
- style: {
8268
- fontSize: 18,
8269
- color: '#333'
8270
- }
8271
- }), /*#__PURE__*/React.createElement(PictureRender, {
9618
+ })), /*#__PURE__*/React.createElement(PictureRender, {
8272
9619
  value: finalPictures,
8273
9620
  width: 24,
8274
9621
  hostUrl: hostUrl
8275
9622
  }));
8276
9623
  };
8277
- var EditFileRender = function EditFileRender(_ref6) {
8278
- var _ref6$val = _ref6.val,
8279
- val = _ref6$val === void 0 ? [] : _ref6$val,
8280
- index = _ref6.index,
8281
- t = _ref6.t,
8282
- updateHandle = _ref6.updateHandle,
8283
- disabled = _ref6.disabled,
8284
- hostUrl = _ref6.hostUrl;
9624
+ var EditFileRender = function EditFileRender(_ref7) {
9625
+ var _ref7$val = _ref7.val,
9626
+ val = _ref7$val === void 0 ? [] : _ref7$val,
9627
+ index = _ref7.index,
9628
+ t = _ref7.t,
9629
+ updateHandle = _ref7.updateHandle,
9630
+ disabled = _ref7.disabled,
9631
+ hostUrl = _ref7.hostUrl,
9632
+ platform = _ref7.platform;
8285
9633
  return /*#__PURE__*/React.createElement("div", {
8286
9634
  style: {
8287
9635
  display: 'flex',
@@ -8289,37 +9637,42 @@ var EditFileRender = function EditFileRender(_ref6) {
8289
9637
  border: '1px solid #d9d9d9',
8290
9638
  padding: '3px'
8291
9639
  }
8292
- }, !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(Popover, {
9640
+ }, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
9641
+ style: {
9642
+ fontSize: 18,
9643
+ color: '#aaa'
9644
+ }
9645
+ }) : /*#__PURE__*/React.createElement(Popover, {
9646
+ getPopupContainer: function getPopupContainer() {
9647
+ return document.getElementById('subform');
9648
+ },
8293
9649
  content: /*#__PURE__*/React.createElement(ApaasUploadFile, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
8294
9650
  value: val,
8295
9651
  onChange: function onChange(e) {
8296
9652
  return updateHandle(e, index, t.key);
8297
9653
  },
8298
- hostUrl: hostUrl
9654
+ hostUrl: hostUrl,
9655
+ platform: platform
8299
9656
  })),
8300
9657
  trigger: "click"
8301
9658
  }, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
8302
9659
  style: {
8303
9660
  fontSize: 18
8304
9661
  }
8305
- })) : /*#__PURE__*/React.createElement(PlusSquareOutlined, {
8306
- style: {
8307
- fontSize: 18,
8308
- color: '#333'
8309
- }
8310
- }), /*#__PURE__*/React.createElement(FileRender, {
9662
+ })), /*#__PURE__*/React.createElement(FileRender, {
9663
+ id: "fileEdit",
8311
9664
  fileList: val,
8312
- canDownload: true
9665
+ canDownload: !['ks', 'fxg'].includes(platform)
8313
9666
  }));
8314
9667
  };
8315
9668
  var EditRenderMap = {
8316
- INPUT: function INPUT(_ref7) {
8317
- var val = _ref7.val,
8318
- record = _ref7.record,
8319
- index = _ref7.index,
8320
- t = _ref7.t,
8321
- updateHandle = _ref7.updateHandle,
8322
- disabled = _ref7.disabled;
9669
+ INPUT: function INPUT(_ref8) {
9670
+ var val = _ref8.val,
9671
+ record = _ref8.record,
9672
+ index = _ref8.index,
9673
+ t = _ref8.t,
9674
+ updateHandle = _ref8.updateHandle,
9675
+ disabled = _ref8.disabled;
8323
9676
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
8324
9677
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
8325
9678
  style: {
@@ -8342,13 +9695,13 @@ var EditRenderMap = {
8342
9695
  }
8343
9696
  }) : /*#__PURE__*/React.createElement("div", null, val);
8344
9697
  },
8345
- TEXTAREA: function TEXTAREA(_ref8) {
8346
- var val = _ref8.val,
8347
- record = _ref8.record,
8348
- index = _ref8.index,
8349
- t = _ref8.t,
8350
- updateHandle = _ref8.updateHandle,
8351
- disabled = _ref8.disabled;
9698
+ TEXTAREA: function TEXTAREA(_ref9) {
9699
+ var val = _ref9.val,
9700
+ record = _ref9.record,
9701
+ index = _ref9.index,
9702
+ t = _ref9.t,
9703
+ updateHandle = _ref9.updateHandle,
9704
+ disabled = _ref9.disabled;
8352
9705
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
8353
9706
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
8354
9707
  style: {
@@ -8371,62 +9724,43 @@ var EditRenderMap = {
8371
9724
  }
8372
9725
  }) : /*#__PURE__*/React.createElement("div", null, val);
8373
9726
  },
8374
- PICTURE: function PICTURE(_ref9) {
8375
- var val = _ref9.val,
8376
- record = _ref9.record,
8377
- index = _ref9.index,
8378
- t = _ref9.t,
8379
- updateHandle = _ref9.updateHandle,
8380
- disabled = _ref9.disabled;
8381
- return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(EditPictureRender, {
8382
- val: val,
8383
- t: t,
8384
- disabled: disabled,
8385
- index: index,
8386
- updateHandle: updateHandle,
8387
- hostUrl: hostUrl
8388
- }) : /*#__PURE__*/React.createElement(PictureRender, {
8389
- value: val,
8390
- width: 20,
8391
- hostUrl: hostUrl
8392
- });
8393
- },
8394
- FILE: function FILE(_ref10) {
9727
+ PICTURE: function PICTURE(_ref10) {
8395
9728
  var val = _ref10.val,
8396
9729
  record = _ref10.record,
8397
9730
  index = _ref10.index,
8398
9731
  t = _ref10.t,
8399
9732
  updateHandle = _ref10.updateHandle,
8400
- disabled = _ref10.disabled;
8401
- return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(EditFileRender, {
9733
+ disabled = _ref10.disabled,
9734
+ platform = _ref10.platform;
9735
+ return /*#__PURE__*/React.createElement(EditPictureRender, {
8402
9736
  val: val,
8403
9737
  t: t,
8404
9738
  disabled: disabled,
8405
9739
  index: index,
8406
9740
  updateHandle: updateHandle,
8407
- hostUrl: hostUrl
8408
- }) : /*#__PURE__*/React.createElement(FileRender, {
8409
- fileList: val,
8410
- canDownload: true
9741
+ hostUrl: hostUrl,
9742
+ platform: platform
8411
9743
  });
8412
9744
  },
8413
- RADIO: function RADIO(_ref11) {
9745
+ FILE: function FILE(_ref11) {
8414
9746
  var val = _ref11.val,
8415
9747
  record = _ref11.record,
8416
9748
  index = _ref11.index,
8417
9749
  t = _ref11.t,
8418
9750
  updateHandle = _ref11.updateHandle,
8419
9751
  disabled = _ref11.disabled,
8420
- componentDto = _ref11.componentDto;
8421
- return /*#__PURE__*/React.createElement(ApaasRadio, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8422
- value: val,
8423
- disabled: t.isEdit || disabled,
8424
- onChange: function onChange(e) {
8425
- return updateHandle(e, index, t.key);
8426
- }
8427
- }));
9752
+ platform = _ref11.platform;
9753
+ return /*#__PURE__*/React.createElement(EditFileRender, {
9754
+ val: val,
9755
+ t: t,
9756
+ disabled: disabled,
9757
+ index: index,
9758
+ updateHandle: updateHandle,
9759
+ hostUrl: hostUrl,
9760
+ platform: platform
9761
+ });
8428
9762
  },
8429
- SELECT: function SELECT(_ref12) {
9763
+ RADIO: function RADIO(_ref12) {
8430
9764
  var val = _ref12.val,
8431
9765
  record = _ref12.record,
8432
9766
  index = _ref12.index,
@@ -8434,15 +9768,22 @@ var EditRenderMap = {
8434
9768
  updateHandle = _ref12.updateHandle,
8435
9769
  disabled = _ref12.disabled,
8436
9770
  componentDto = _ref12.componentDto;
8437
- return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9771
+ return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9772
+ getPopupContainer: function getPopupContainer() {
9773
+ return document.getElementById('subform');
9774
+ }
9775
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8438
9776
  value: val,
8439
9777
  disabled: t.isEdit || disabled,
9778
+ allowClear: true,
9779
+ placement: "topLeft",
9780
+ listHeight: 120,
8440
9781
  onChange: function onChange(e) {
8441
9782
  return updateHandle(e, index, t.key);
8442
9783
  }
8443
9784
  }));
8444
9785
  },
8445
- CHECKBOX: function CHECKBOX(_ref13) {
9786
+ SELECT: function SELECT(_ref13) {
8446
9787
  var val = _ref13.val,
8447
9788
  record = _ref13.record,
8448
9789
  index = _ref13.index,
@@ -8450,15 +9791,22 @@ var EditRenderMap = {
8450
9791
  updateHandle = _ref13.updateHandle,
8451
9792
  disabled = _ref13.disabled,
8452
9793
  componentDto = _ref13.componentDto;
8453
- return /*#__PURE__*/React.createElement(ApaasCheckbox, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9794
+ return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9795
+ getPopupContainer: function getPopupContainer() {
9796
+ return document.getElementById('subform');
9797
+ }
9798
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8454
9799
  value: val,
8455
9800
  disabled: t.isEdit || disabled,
9801
+ allowClear: true,
9802
+ placement: "topLeft",
9803
+ listHeight: 120,
8456
9804
  onChange: function onChange(e) {
8457
9805
  return updateHandle(e, index, t.key);
8458
9806
  }
8459
9807
  }));
8460
9808
  },
8461
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref14) {
9809
+ CHECKBOX: function CHECKBOX(_ref14) {
8462
9810
  var val = _ref14.val,
8463
9811
  record = _ref14.record,
8464
9812
  index = _ref14.index,
@@ -8466,8 +9814,36 @@ var EditRenderMap = {
8466
9814
  updateHandle = _ref14.updateHandle,
8467
9815
  disabled = _ref14.disabled,
8468
9816
  componentDto = _ref14.componentDto;
8469
- return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9817
+ return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9818
+ getPopupContainer: function getPopupContainer() {
9819
+ return document.getElementById('subform');
9820
+ }
9821
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9822
+ value: val,
9823
+ placement: "topLeft",
9824
+ listHeight: 120,
9825
+ disabled: t.isEdit || disabled,
9826
+ onChange: function onChange(e) {
9827
+ return updateHandle(e, index, t.key);
9828
+ }
9829
+ }));
9830
+ },
9831
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9832
+ var val = _ref15.val,
9833
+ record = _ref15.record,
9834
+ index = _ref15.index,
9835
+ t = _ref15.t,
9836
+ updateHandle = _ref15.updateHandle,
9837
+ disabled = _ref15.disabled,
9838
+ componentDto = _ref15.componentDto;
9839
+ return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9840
+ getPopupContainer: function getPopupContainer() {
9841
+ return document.getElementById('subform');
9842
+ }
9843
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8470
9844
  value: val,
9845
+ placement: "topLeft",
9846
+ listHeight: 120,
8471
9847
  disabled: t.isEdit || disabled,
8472
9848
  onChange: function onChange(e) {
8473
9849
  return updateHandle(e, index, t.key);
@@ -8595,7 +9971,7 @@ var SubForm = function SubForm(props) {
8595
9971
  title: '序号',
8596
9972
  width: 50,
8597
9973
  render: function render(val, record, index) {
8598
- return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
9974
+ return disabled ? /*#__PURE__*/React.createElement("div", null, index + 1) : /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
8599
9975
  index: index,
8600
9976
  hoveredRowIndex: hoveredRowIndex,
8601
9977
  handleClick: function handleClick() {
@@ -8624,7 +10000,8 @@ var SubForm = function SubForm(props) {
8624
10000
  disabled: disabled,
8625
10001
  componentDto: componentDtoList.find(function (item) {
8626
10002
  return item.uniqueKey === t.key;
8627
- })
10003
+ }),
10004
+ platform: platform
8628
10005
  }) : /*#__PURE__*/React.createElement(Input, {
8629
10006
  style: {
8630
10007
  width: '100%'
@@ -8682,7 +10059,7 @@ var SubForm = function SubForm(props) {
8682
10059
  };
8683
10060
  if (renderMap[t.workOrderComponentType]) {
8684
10061
  item.render = function (val) {
8685
- return renderMap[t.workOrderComponentType](val);
10062
+ return renderMap[t.workOrderComponentType](val, platform);
8686
10063
  };
8687
10064
  }
8688
10065
  return item;
@@ -8695,18 +10072,9 @@ var SubForm = function SubForm(props) {
8695
10072
  workOrderComponentType: next.workOrderComponentType,
8696
10073
  defaultValue: ''
8697
10074
  };
8698
- if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT'].includes(next.workOrderComponentType)) {
10075
+ if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8699
10076
  item.defaultValue = [];
8700
10077
  }
8701
- if (['RADIO', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8702
- item.defaultValue = {
8703
- value: next.workOrderComponentType === 'RADIO' ? '' : [],
8704
- other: ''
8705
- };
8706
- }
8707
- if (['SELECT'].includes(next.workOrderComponentType)) {
8708
- item.defaultValue = '';
8709
- }
8710
10078
  prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
8711
10079
  return prv;
8712
10080
  }, {});
@@ -8745,7 +10113,6 @@ var SubForm = function SubForm(props) {
8745
10113
  newValue.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
8746
10114
  uuid: uuid()
8747
10115
  }));
8748
- console.log('newValue', newValue);
8749
10116
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
8750
10117
  };
8751
10118
  var onScrollCapture = function onScrollCapture(e) {
@@ -8764,8 +10131,8 @@ var SubForm = function SubForm(props) {
8764
10131
  var _ref2,
8765
10132
  _ref2$pageNo,
8766
10133
  pageNo,
8767
- _yield$request,
8768
- templateDetail,
10134
+ _ref2$componentList,
10135
+ componentList,
8769
10136
  params,
8770
10137
  res,
8771
10138
  data,
@@ -8777,25 +10144,13 @@ var SubForm = function SubForm(props) {
8777
10144
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8778
10145
  while (1) switch (_context.prev = _context.next) {
8779
10146
  case 0:
8780
- _ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
10147
+ _ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo, _ref2$componentList = _ref2.componentList, componentList = _ref2$componentList === void 0 ? [] : _ref2$componentList;
8781
10148
  if (!disabled) {
8782
10149
  _context.next = 3;
8783
10150
  break;
8784
10151
  }
8785
10152
  return _context.abrupt("return");
8786
10153
  case 3:
8787
- _context.next = 5;
8788
- return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
8789
- method: 'post',
8790
- data: {
8791
- templateType: 'QY_CUSTOM',
8792
- uniqueKey: workOrderTemplateId
8793
- }
8794
- });
8795
- case 5:
8796
- _yield$request = _context.sent;
8797
- templateDetail = _yield$request.data;
8798
- setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
8799
10154
  params = {
8800
10155
  flowNodeId: nodeId,
8801
10156
  flowTemplateKey: flowTemplateKey === null || flowTemplateKey === void 0 ? void 0 : flowTemplateKey[1],
@@ -8821,17 +10176,17 @@ var SubForm = function SubForm(props) {
8821
10176
  value: [inputValue]
8822
10177
  }];
8823
10178
  }
8824
- _context.next = 12;
10179
+ _context.next = 7;
8825
10180
  return extendRequest('/qy/view/workOrderList', {
8826
10181
  method: 'post',
8827
10182
  data: params
8828
10183
  });
8829
- case 12:
10184
+ case 7:
8830
10185
  res = _context.sent;
8831
10186
  data = res.data, success = res.success;
8832
10187
  if (success) {
8833
- transDataSourceItem = transformWorkOrderData(templateDetail.componentDtoList, 'init');
8834
- headerKeys = tableHeader.map(function (t) {
10188
+ transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'edit');
10189
+ headerKeys = correlationList.map(function (t) {
8835
10190
  return t.key;
8836
10191
  });
8837
10192
  newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
@@ -8855,7 +10210,7 @@ var SubForm = function SubForm(props) {
8855
10210
  setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
8856
10211
  isRequest.current = false;
8857
10212
  }
8858
- case 15:
10213
+ case 10:
8859
10214
  case "end":
8860
10215
  return _context.stop();
8861
10216
  }
@@ -8865,10 +10220,61 @@ var SubForm = function SubForm(props) {
8865
10220
  return _ref.apply(this, arguments);
8866
10221
  };
8867
10222
  }();
10223
+ var getTemplateDetail = /*#__PURE__*/function () {
10224
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
10225
+ var _yield$request, templateDetail;
10226
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10227
+ while (1) switch (_context2.prev = _context2.next) {
10228
+ case 0:
10229
+ _context2.next = 2;
10230
+ return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
10231
+ method: 'post',
10232
+ data: {
10233
+ templateType: 'QY_CUSTOM',
10234
+ uniqueKey: workOrderTemplateId
10235
+ }
10236
+ });
10237
+ case 2:
10238
+ _yield$request = _context2.sent;
10239
+ templateDetail = _yield$request.data;
10240
+ setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
10241
+ return _context2.abrupt("return", (templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
10242
+ case 6:
10243
+ case "end":
10244
+ return _context2.stop();
10245
+ }
10246
+ }, _callee2);
10247
+ }));
10248
+ return function getTemplateDetail() {
10249
+ return _ref3.apply(this, arguments);
10250
+ };
10251
+ }();
10252
+ var initHandle = /*#__PURE__*/function () {
10253
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
10254
+ var componentList;
10255
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
10256
+ while (1) switch (_context3.prev = _context3.next) {
10257
+ case 0:
10258
+ _context3.next = 2;
10259
+ return getTemplateDetail();
10260
+ case 2:
10261
+ componentList = _context3.sent;
10262
+ getWorkOrderList({
10263
+ pageNo: 1,
10264
+ componentList: componentList
10265
+ });
10266
+ case 4:
10267
+ case "end":
10268
+ return _context3.stop();
10269
+ }
10270
+ }, _callee3);
10271
+ }));
10272
+ return function initHandle() {
10273
+ return _ref4.apply(this, arguments);
10274
+ };
10275
+ }();
8868
10276
  useEffect(function () {
8869
- getWorkOrderList({
8870
- pageNo: 1
8871
- });
10277
+ initHandle();
8872
10278
  }, []);
8873
10279
  useUpdateEffect(function () {
8874
10280
  setPageNo(1);
@@ -8933,7 +10339,7 @@ var SubForm = function SubForm(props) {
8933
10339
  ref: ref,
8934
10340
  onScrollCapture: onScrollCapture,
8935
10341
  style: {
8936
- height: 320,
10342
+ height: 200,
8937
10343
  maxWidth: platform !== 'pc' ? '325px' : '700px',
8938
10344
  overflowY: 'scroll',
8939
10345
  overflowX: 'auto'
@@ -8971,6 +10377,7 @@ var SubForm = function SubForm(props) {
8971
10377
  onChangeInput(e.target.value);
8972
10378
  }
8973
10379
  }))), /*#__PURE__*/React.createElement(Table, {
10380
+ id: "subform",
8974
10381
  columns: column,
8975
10382
  dataSource: value,
8976
10383
  rowKey: 'uuid',
@@ -11364,7 +12771,7 @@ styleInject(css_248z$9);
11364
12771
 
11365
12772
  var Item = Form.Item;
11366
12773
  var LogisticsInterception = function LogisticsInterception(props) {
11367
- var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
12774
+ var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
11368
12775
  var LogisticsAddress = LogisticsAddressData.getInstance();
11369
12776
  var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
11370
12777
  var address = AddressData.getInstance();
@@ -11562,17 +12969,19 @@ var LogisticsInterception = function LogisticsInterception(props) {
11562
12969
  status: '',
11563
12970
  reason: ''
11564
12971
  },
12972
+ interceptLogisticsApiStatusReason: undefined,
11565
12973
  interceptLogisticsUserKCode: undefined,
11566
12974
  interceptLogisticsUserSecretKey: undefined
11567
12975
  });
11568
12976
  }
11569
12977
  if (type === 'interceptLogisticsApiStatus') {
11570
- var _value$interceptLogis;
12978
+ var _value$interceptLogis, _value$interceptLogis2;
11571
12979
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
11572
12980
  interceptLogisticsApiStatus: {
11573
12981
  status: val,
11574
12982
  reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
11575
- }
12983
+ },
12984
+ interceptLogisticsApiStatusReason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.reason) || ''
11576
12985
  });
11577
12986
  }
11578
12987
  if (type === 'interceptLogisticsUserKCode') {
@@ -11795,7 +13204,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
11795
13204
  label: '接口状态',
11796
13205
  key: 'interceptLogisticsApiStatus'
11797
13206
  }, /*#__PURE__*/React.createElement(Select, {
11798
- value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.status) || null,
13207
+ value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.status) || null,
11799
13208
  disabled: true,
11800
13209
  style: {
11801
13210
  width: '200px'
@@ -11811,11 +13220,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
11811
13220
  label: '失败',
11812
13221
  value: '失败'
11813
13222
  }]
11814
- }), (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", {
13223
+ }), (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", {
11815
13224
  style: {
11816
13225
  color: 'red'
11817
13226
  }
11818
- }, "\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));
13227
+ }, "\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, {
13228
+ label: '接口状态原因',
13229
+ key: 'interceptLogisticsApiStatusReason'
13230
+ }, /*#__PURE__*/React.createElement(Input, {
13231
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsApiStatusReason,
13232
+ disabled: true,
13233
+ placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13234
+ onChange: function onChange(e) {
13235
+ return changeHandle(e.target.value, 'interceptLogisticsApiStatusReason');
13236
+ }
13237
+ })));
11819
13238
  };
11820
13239
 
11821
13240
  var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
@@ -12296,6 +13715,7 @@ var jstGoods = function jstGoods(props) {
12296
13715
  var _props$value = props.value,
12297
13716
  value = _props$value === void 0 ? [] : _props$value,
12298
13717
  onChange = props.onChange,
13718
+ _onBlur = props.onBlur,
12299
13719
  disabled = props.disabled,
12300
13720
  _props$type = props.type,
12301
13721
  type = _props$type === void 0 ? 1 : _props$type,
@@ -12310,7 +13730,7 @@ var jstGoods = function jstGoods(props) {
12310
13730
  changeIndex = _useState2[0],
12311
13731
  setChangeIndex = _useState2[1]; //选中的包裹
12312
13732
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
12313
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
13733
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
12314
13734
  var expressDateInstance = ExpressData.getInstance(platformType);
12315
13735
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
12316
13736
  useEffect(function () {
@@ -12425,6 +13845,9 @@ var jstGoods = function jstGoods(props) {
12425
13845
  onChange: function onChange(e) {
12426
13846
  return changeInputHandle(e.target.value, 'logisticsCode');
12427
13847
  },
13848
+ onBlur: function onBlur(e) {
13849
+ return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value);
13850
+ },
12428
13851
  value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.logisticsCode
12429
13852
  }) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
12430
13853
  disabled: disabled,
@@ -15606,7 +17029,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
15606
17029
  maxTagCount: "responsive",
15607
17030
  valueMapping: "uniqueKey",
15608
17031
  style: {
15609
- width: '220px'
17032
+ width: '190px'
15610
17033
  }
15611
17034
  }, props));
15612
17035
  } : componentMap$1[filterComponentType];
@@ -15873,7 +17296,7 @@ var SearchHeader = function SearchHeader(_ref) {
15873
17296
  hidden: !show,
15874
17297
  style: {
15875
17298
  marginRight: '4px',
15876
- minWidth: '220px'
17299
+ minWidth: '190px'
15877
17300
  },
15878
17301
  key: item.id
15879
17302
  }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
@@ -19330,7 +20753,7 @@ var getColumns$8 = function getColumns(_ref) {
19330
20753
  SKX_GOODS: [{
19331
20754
  dataIndex: 'skuEcode',
19332
20755
  title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
19333
- width: 200
20756
+ width: 250
19334
20757
  }, {
19335
20758
  dataIndex: 'subOrderId',
19336
20759
  title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
@@ -19349,7 +20772,7 @@ var getColumns$8 = function getColumns(_ref) {
19349
20772
  SKX_RETURN_GOODS: [{
19350
20773
  dataIndex: 'returnSkuEcode',
19351
20774
  title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
19352
- width: 200
20775
+ width: 300
19353
20776
  }, {
19354
20777
  dataIndex: 'returnSubOrderId',
19355
20778
  title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
@@ -19662,7 +21085,7 @@ var isErpType = {
19662
21085
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
19663
21086
  }
19664
21087
  };
19665
- var processGoods = function processGoods(_ref) {
21088
+ var processGoods$1 = function processGoods(_ref) {
19666
21089
  var list = _ref.list,
19667
21090
  type = _ref.type,
19668
21091
  canUpdateNumber = _ref.canUpdateNumber,
@@ -19671,35 +21094,35 @@ var processGoods = function processGoods(_ref) {
19671
21094
  var newList = [];
19672
21095
  // 根据商品类型处理数据
19673
21096
  if (isErpType.isWdt(type)) {
19674
- newList = processWdtGoods({
21097
+ newList = processWdtGoods$1({
19675
21098
  list: list,
19676
21099
  type: type,
19677
21100
  canUpdateNumber: canUpdateNumber,
19678
21101
  source: source
19679
21102
  });
19680
21103
  } else if (isErpType.isBsE3(type)) {
19681
- newList = processBsE3Goods({
21104
+ newList = processBsE3Goods$1({
19682
21105
  list: list,
19683
21106
  type: type,
19684
21107
  canUpdateNumber: canUpdateNumber,
19685
21108
  source: source
19686
21109
  });
19687
21110
  } else if (isErpType.isGy(type)) {
19688
- newList = processGyGoods({
21111
+ newList = processGyGoods$1({
19689
21112
  list: list,
19690
21113
  type: type,
19691
21114
  canUpdateNumber: canUpdateNumber,
19692
21115
  source: source
19693
21116
  });
19694
21117
  } else if (isErpType.isJst(type)) {
19695
- newList = processJstGoods({
21118
+ newList = processJstGoods$1({
19696
21119
  list: list,
19697
21120
  type: type,
19698
21121
  canUpdateNumber: canUpdateNumber,
19699
21122
  source: source
19700
21123
  });
19701
21124
  } else if (isErpType.isKm(type)) {
19702
- newList = processKmGoods({
21125
+ newList = processKmGoods$1({
19703
21126
  list: list,
19704
21127
  type: type,
19705
21128
  canUpdateNumber: canUpdateNumber,
@@ -19716,7 +21139,7 @@ var processGoods = function processGoods(_ref) {
19716
21139
  return newList;
19717
21140
  };
19718
21141
  // 处理不同类型的商品数据
19719
- var processWdtGoods = function processWdtGoods(_ref2) {
21142
+ var processWdtGoods$1 = function processWdtGoods(_ref2) {
19720
21143
  var list = _ref2.list,
19721
21144
  type = _ref2.type,
19722
21145
  canUpdateNumber = _ref2.canUpdateNumber;
@@ -19737,7 +21160,7 @@ var processWdtGoods = function processWdtGoods(_ref2) {
19737
21160
  return processedItem;
19738
21161
  });
19739
21162
  };
19740
- var processBsE3Goods = function processBsE3Goods(_ref3) {
21163
+ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
19741
21164
  var list = _ref3.list,
19742
21165
  canUpdateNumber = _ref3.canUpdateNumber;
19743
21166
  return list.map(function (item) {
@@ -19774,7 +21197,7 @@ var processBsE3Goods = function processBsE3Goods(_ref3) {
19774
21197
  });
19775
21198
  });
19776
21199
  };
19777
- var processGyGoods = function processGyGoods(_ref4) {
21200
+ var processGyGoods$1 = function processGyGoods(_ref4) {
19778
21201
  var list = _ref4.list,
19779
21202
  source = _ref4.source;
19780
21203
  var isFormWorkOrder = source === 'workOrder';
@@ -19803,7 +21226,7 @@ var processGyGoods = function processGyGoods(_ref4) {
19803
21226
  });
19804
21227
  });
19805
21228
  };
19806
- var processJstGoods = function processJstGoods(_ref5) {
21229
+ var processJstGoods$1 = function processJstGoods(_ref5) {
19807
21230
  var list = _ref5.list;
19808
21231
  return list.map(function (item) {
19809
21232
  return {
@@ -19822,7 +21245,7 @@ var processJstGoods = function processJstGoods(_ref5) {
19822
21245
  };
19823
21246
  });
19824
21247
  };
19825
- var processKmGoods = function processKmGoods(_ref6) {
21248
+ var processKmGoods$1 = function processKmGoods(_ref6) {
19826
21249
  var list = _ref6.list,
19827
21250
  type = _ref6.type;
19828
21251
  var initParamsMap = {
@@ -20318,7 +21741,7 @@ var GoodItem$1 = function GoodItem(props) {
20318
21741
  }].concat(_toConsumableArray(columns));
20319
21742
  }, []);
20320
21743
  var onSubmit = function onSubmit(list) {
20321
- var newList = processGoods({
21744
+ var newList = processGoods$1({
20322
21745
  list: list,
20323
21746
  canUpdateNumber: canUpdateNumber,
20324
21747
  type: type,
@@ -22291,6 +23714,7 @@ var OrderSubForm = function OrderSubForm(props) {
22291
23714
  manual = props.manual,
22292
23715
  correlationList = props.subConfig.correlationList,
22293
23716
  effects = props.effects;
23717
+ console.log('effects', effects);
22294
23718
  var valueRef = useRef(value);
22295
23719
  useEffect(function () {
22296
23720
  valueRef.current = value;
@@ -22352,7 +23776,7 @@ var OrderSubForm = function OrderSubForm(props) {
22352
23776
  width: 80,
22353
23777
  ellipsis: true,
22354
23778
  render: function render(val, record, index) {
22355
- return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
23779
+ return disabled ? /*#__PURE__*/React.createElement("div", null, index + 1) : /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
22356
23780
  index: index,
22357
23781
  hoveredRowIndex: hoveredRowIndex,
22358
23782
  handleClick: function handleClick() {
@@ -22415,8 +23839,7 @@ var OrderSubForm = function OrderSubForm(props) {
22415
23839
  });
22416
23840
  }
22417
23841
  return list;
22418
- }, [newTableHeader, disabled, updateHandle]);
22419
- console.log('column', column);
23842
+ }, [newTableHeader, disabled, updateHandle, hoveredRowIndex]);
22420
23843
  var orderModalColumns = useMemo(function () {
22421
23844
  return [{
22422
23845
  dataIndex: '',
@@ -22471,11 +23894,16 @@ var OrderSubForm = function OrderSubForm(props) {
22471
23894
  }));
22472
23895
  };
22473
23896
  var getDataSourceAsync = function getDataSourceAsync() {
22474
- var _effects$form;
22475
- var _ref = (effects === null || effects === void 0 ? void 0 : (_effects$form = effects.form) === null || _effects$form === void 0 ? void 0 : _effects$form.getFieldsValue()) || {},
22476
- _ref$shopId = _ref.shopId,
22477
- shopId = _ref$shopId === void 0 ? '' : _ref$shopId;
22478
- return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId ? getOrderListSingleton$4({
23897
+ var _ref = effects || {},
23898
+ shopList = _ref.shopList,
23899
+ form = _ref.form;
23900
+ var _ref2 = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {},
23901
+ _ref2$shopId = _ref2.shopId,
23902
+ shopId = _ref2$shopId === void 0 ? '' : _ref2$shopId;
23903
+ var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
23904
+ return !item.notJoin && item.shopId == shopId;
23905
+ });
23906
+ return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$4({
22479
23907
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
22480
23908
  shopId: shopId
22481
23909
  }).then(function (data) {
@@ -22483,7 +23911,7 @@ var OrderSubForm = function OrderSubForm(props) {
22483
23911
  onChange(_objectSpread2(_objectSpread2({}, value), {}, {
22484
23912
  allOrders: allOrders
22485
23913
  }));
22486
- }) : Promise.resolve();
23914
+ }).catch(console.debug) : Promise.resolve();
22487
23915
  };
22488
23916
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
22489
23917
  var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
@@ -25920,13 +27348,11 @@ var typeMap$6 = {
25920
27348
  }
25921
27349
  },
25922
27350
  asyncGetData: function () {
25923
- var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(tradeId) {
27351
+ var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
25924
27352
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25925
27353
  while (1) switch (_context.prev = _context.next) {
25926
27354
  case 0:
25927
- return _context.abrupt("return", servers.SKX.querySkxOrderDetailSingleton({
25928
- tid: tradeId
25929
- }).then(function (res) {
27355
+ return _context.abrupt("return", servers.SKX.querySkxOrderDetailSingleton(params).then(function (res) {
25930
27356
  var orderDetailInfoList = res.data.orderDetailInfoList || [];
25931
27357
  return orderDetailInfoList;
25932
27358
  }));
@@ -25961,13 +27387,11 @@ var typeMap$6 = {
25961
27387
  }
25962
27388
  },
25963
27389
  asyncGetData: function () {
25964
- var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(tradeId) {
27390
+ var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
25965
27391
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
25966
27392
  while (1) switch (_context2.prev = _context2.next) {
25967
27393
  case 0:
25968
- return _context2.abrupt("return", servers.SKX.queryReturnOrderDetailSingleton({
25969
- tid: tradeId
25970
- }).then(function (res) {
27394
+ return _context2.abrupt("return", servers.SKX.queryReturnOrderDetailSingleton(params).then(function (res) {
25971
27395
  var skqReturnOrderDetailInfoDtos = res.data.skqReturnOrderDetailInfoDtos || [];
25972
27396
  return skqReturnOrderDetailInfoDtos;
25973
27397
  }));
@@ -26032,32 +27456,42 @@ var IdInputSelect = function IdInputSelect(props) {
26032
27456
  }, [value]);
26033
27457
  var asyncQueryData = /*#__PURE__*/function () {
26034
27458
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
26035
- var tradeId;
27459
+ var _form$getFieldValue, _form$getFieldValue$;
27460
+ var tradeId, skxReturnExpressCode, blurFrom;
26036
27461
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
26037
27462
  while (1) switch (_context3.prev = _context3.next) {
26038
27463
  case 0:
26039
27464
  tradeId = form.getFieldValue('m3ap1EvEyd');
27465
+ skxReturnExpressCode = (_form$getFieldValue = form.getFieldValue('4487c6516b')) === null || _form$getFieldValue === void 0 ? void 0 : (_form$getFieldValue$ = _form$getFieldValue[0]) === null || _form$getFieldValue$ === void 0 ? void 0 : _form$getFieldValue$.logisticsCode;
27466
+ blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
26040
27467
  console.log('asyncQueryData---', {
27468
+ skxReturnExpressCode: skxReturnExpressCode,
27469
+ blurFrom: blurFrom,
26041
27470
  tradeId: tradeId,
26042
27471
  tradeIdRef: tradeIdRef.current,
26043
27472
  form: form
26044
27473
  });
26045
- if (tradeId) {
26046
- _context3.next = 5;
27474
+ if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
27475
+ _context3.next = 7;
26047
27476
  break;
26048
27477
  }
26049
27478
  setDataSource([]);
26050
27479
  return _context3.abrupt("return");
26051
- case 5:
27480
+ case 7:
26052
27481
  setSpinning(true);
26053
- typeMap$6[type].asyncGetData(tradeId).then(function (data) {
27482
+ // 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
27483
+ typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
27484
+ expressCode: skxReturnExpressCode
27485
+ } : {
27486
+ tid: tradeId
27487
+ }).then(function (data) {
26054
27488
  setDataSource(data);
26055
27489
  }).catch(function () {
26056
27490
  setDataSource([]);
26057
27491
  }).finally(function () {
26058
27492
  setSpinning(false);
26059
27493
  });
26060
- case 7:
27494
+ case 9:
26061
27495
  case "end":
26062
27496
  return _context3.stop();
26063
27497
  }
@@ -26154,7 +27588,14 @@ var IdInputSelect = function IdInputSelect(props) {
26154
27588
  value: value,
26155
27589
  isInput: isInput
26156
27590
  });
26157
- onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && !!isInput);
27591
+ var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
27592
+ onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
27593
+ // 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
27594
+ isReturnBillNoChange && (_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur({
27595
+ target: {
27596
+ value: val
27597
+ }
27598
+ }));
26158
27599
  // 关闭浮窗
26159
27600
  setPopoverVisible(false);
26160
27601
  };