@kmkf-fe-packages/basic-components 2.2.5-beta.3 → 2.2.5-beta.31

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.js CHANGED
@@ -8,6 +8,8 @@ var icons = require('@ant-design/icons');
8
8
  var request = require('umi-request');
9
9
  var reactCopyToClipboard = require('react-copy-to-clipboard');
10
10
  var kmkfUtils = require('@kmkf-fe-packages/kmkf-utils');
11
+ var every = require('lodash/every');
12
+ var maxBy = require('lodash/maxBy');
11
13
  var lodash = require('lodash');
12
14
  var ahooks = require('ahooks');
13
15
  var zhCN = require('antd/lib/locale/zh_CN');
@@ -20,6 +22,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
20
22
 
21
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
24
  var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
25
+ var every__default = /*#__PURE__*/_interopDefaultLegacy(every);
26
+ var maxBy__default = /*#__PURE__*/_interopDefaultLegacy(maxBy);
23
27
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
24
28
  var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
25
29
  var zh_CN__default = /*#__PURE__*/_interopDefaultLegacy(zh_CN);
@@ -7240,7 +7244,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
7240
7244
  var _ref$maxCount = _ref.maxCount,
7241
7245
  maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
7242
7246
  _ref$maxSize = _ref.maxSize,
7243
- maxSize = _ref$maxSize === void 0 ? 100 : _ref$maxSize,
7247
+ maxSize = _ref$maxSize === void 0 ? 200 : _ref$maxSize,
7244
7248
  _ref$onChange = _ref.onChange,
7245
7249
  onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
7246
7250
  _ref$value = _ref.value,
@@ -8059,6 +8063,1310 @@ function withFormItem(WrappedComponent) {
8059
8063
  */
8060
8064
  var extendRequest = request.extend({});
8061
8065
 
8066
+ var updateWorkTypeKeys = {
8067
+ BASIC_GRADE: 'basicGrade',
8068
+ TRADE_ID_INPUT: 'tradeId',
8069
+ SHOP_NAME_INPUT: 'shopName',
8070
+ RECEIVER_NAME_INPUT: 'receiveName',
8071
+ RECEIVER_MOBILE_INPUT: 'receiveMobile',
8072
+ TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
8073
+ TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
8074
+ TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
8075
+ TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
8076
+ TRADE_SIGNING_DATETIME: 'tradeSigningDateTime',
8077
+ ACTUAL_PAYMENT: 'actualPayment',
8078
+ SYSTEM_ORDER_NO: 'systemOrderNo',
8079
+ BS_SIGNING_TIME: 'bsSigningTime',
8080
+ BS_SEND_TIME: 'bsSendTime',
8081
+ BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime',
8082
+ BS_NET_RECEIPTS: 'bsNetReceipts',
8083
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
8084
+ BS_DEPOSIT: 'bsDeposit',
8085
+ NEW_PAYMENT_STATUS: 'newPaymentStatus',
8086
+ BUSINESS_ORDER_NO: 'businessOrderNo',
8087
+ PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
8088
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
8089
+ WDT_SHOP: 'shopCode'
8090
+ };
8091
+ var systemOrderMap = {
8092
+ BS_SYSTEM_ORDER: {
8093
+ no: 'bsSystemOrderNo',
8094
+ ids: 'bsSystemSelectIds',
8095
+ order: 'bsSystemShowOrder'
8096
+ },
8097
+ KM_SYSTEM_ORDER: {
8098
+ no: 'kmSystemOrderNo',
8099
+ ids: 'kmSystemSelectIds',
8100
+ order: 'kmSystemShowOrder'
8101
+ },
8102
+ WLN_SYSTEM_ORDER: {
8103
+ no: 'wlnSystemOrderNo',
8104
+ ids: 'wlnSystemSelectIds',
8105
+ order: 'wlnSystemShowOrder'
8106
+ },
8107
+ WDT_SYSTEM_ORDER: {
8108
+ no: 'wdtSystemOrderNo',
8109
+ ids: 'wdtSystemSelectIds',
8110
+ order: 'wdtSystemShowOrder'
8111
+ },
8112
+ BS_E3_SYSTEM_ORDER: {
8113
+ no: 'bsE3SystemOrderNo',
8114
+ ids: 'bsE3SystemSelectIds',
8115
+ order: 'bsE3SystemShowOrder'
8116
+ },
8117
+ GY_SYSTEM_ORDER: {
8118
+ no: 'gySystemOrderNo',
8119
+ ids: 'gySystemSelectIds',
8120
+ order: 'gySystemShowOrder'
8121
+ },
8122
+ JST_SYSTEM_ORDER: {
8123
+ no: 'jstSystemOrderNo',
8124
+ ids: 'jstSystemSelectIds',
8125
+ order: 'jstSystemShowOrder'
8126
+ }
8127
+ };
8128
+ //直接将key component 添加到 transformWorkOrderData中的componentProcessors
8129
+ var processSingleFieldTypeMapping = {
8130
+ SKX_OUTBOUND_NOTICE_NO: 'skxOutboundNoticeNo',
8131
+ SKX_SHOP_NAME: 'skxShopName',
8132
+ SKX_WAREHOUSE: 'skxWarehouse',
8133
+ SKX_ORDER_TYPE: 'skxOrderType',
8134
+ SKX_ORDER_STATUS: 'skxOrderStatus',
8135
+ SKX_CREATE_TIME: 'dateTime'
8136
+ };
8137
+ var jsonParseSecurity = function jsonParseSecurity(value, securityValue) {
8138
+ try {
8139
+ return JSON.parse(value);
8140
+ } catch (e) {
8141
+ // console.error('JSON解析异常', value, typeof value);
8142
+ return securityValue;
8143
+ }
8144
+ };
8145
+ var transTextToNumber = function transTextToNumber(value) {
8146
+ return value ? +value : value;
8147
+ };
8148
+ var formatPictures = function formatPictures(pictures) {
8149
+ pictures = pictures.replace(/[\[\]]/g, '');
8150
+ pictures = pictures.replace(/\s/g, '');
8151
+ pictures = pictures ? pictures.split(',') : [];
8152
+ return pictures;
8153
+ };
8154
+ var getItemValue = function getItemValue(item) {
8155
+ return function (key) {
8156
+ return item.jsonMap[key];
8157
+ };
8158
+ };
8159
+ var processRadio = function processRadio(getValue) {
8160
+ return function (nex, config) {
8161
+ var radio, radioOther;
8162
+ if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) === '其他') {
8163
+ radio = config.showOther ? config.radio : undefined;
8164
+ radioOther = config.showOther ? config.radioOther : undefined;
8165
+ }
8166
+ if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) !== '其他') {
8167
+ radio = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (t) {
8168
+ return t.value === (config === null || config === void 0 ? void 0 : config.radio);
8169
+ }) ? config.radio : undefined;
8170
+ }
8171
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_radio")) || radio);
8172
+ };
8173
+ };
8174
+ var processInput = function processInput(getValue) {
8175
+ return function (nex, config) {
8176
+ var _getValue;
8177
+ return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_input"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.input);
8178
+ };
8179
+ };
8180
+ var processNumericalCalculation = function processNumericalCalculation(getValue) {
8181
+ return function (nex, config) {
8182
+ var _getValue2;
8183
+ return _defineProperty({}, nex.uniqueKey, (_getValue2 = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue2 !== void 0 ? _getValue2 : config === null || config === void 0 ? void 0 : config.numericalCalculation);
8184
+ };
8185
+ };
8186
+ var processTextarea = function processTextarea(getValue) {
8187
+ return function (nex, config) {
8188
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_textarea")) || (config === null || config === void 0 ? void 0 : config.textarea));
8189
+ };
8190
+ };
8191
+ var processSelect = function processSelect(getValue) {
8192
+ return function (nex, config) {
8193
+ var select = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (item) {
8194
+ return item.value === (config === null || config === void 0 ? void 0 : config.select);
8195
+ }) ? config.select : undefined;
8196
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_select")) || select);
8197
+ };
8198
+ };
8199
+ var gyPaymentMethod = function gyPaymentMethod(getValue) {
8200
+ return function (nex, config) {
8201
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_gyPaymentMethod")));
8202
+ };
8203
+ };
8204
+ var processRate = function processRate(getValue) {
8205
+ return function (nex, config) {
8206
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_rate")), []));
8207
+ };
8208
+ };
8209
+ var processFile = function processFile(getValue) {
8210
+ return function (nex, config) {
8211
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_file")), []));
8212
+ };
8213
+ };
8214
+ var processKmVideo = function processKmVideo(getValue) {
8215
+ return function (nex, config) {
8216
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmVideo")), []));
8217
+ };
8218
+ };
8219
+ var processPosting = function processPosting(getValue) {
8220
+ return function (nex, config) {
8221
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingCity")))];
8222
+ var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingDistrict")));
8223
+ interceptDistrict && address.push(interceptDistrict);
8224
+ address = every__default['default'](address, function (item) {
8225
+ return !item;
8226
+ }) ? [] : address;
8227
+ return _defineProperty({}, nex.uniqueKey, {
8228
+ postingAddress: address,
8229
+ postingDetail: getValue("".concat(nex.uniqueKey, "_postingDetail")),
8230
+ postingReceiverName: getValue("".concat(nex.uniqueKey, "_postingReceiverName")),
8231
+ postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_postingReceiverMobile"))
8232
+ });
8233
+ };
8234
+ };
8235
+ var processBuyerNickInput = function processBuyerNickInput(getValue) {
8236
+ return function (nex, config) {
8237
+ return _defineProperty({}, nex.uniqueKey, {
8238
+ buyerNick: getValue("".concat(nex.uniqueKey, "_buyerNick")),
8239
+ buyerOpenUid: getValue("".concat(nex.uniqueKey, "_buyerOpenUid"))
8240
+ });
8241
+ };
8242
+ };
8243
+ var processAliPayInput = function processAliPayInput(getValue) {
8244
+ return function (nex, config) {
8245
+ var _ref12;
8246
+ return _ref12 = {}, _defineProperty(_ref12, nex.uniqueKey, {
8247
+ name: getValue("".concat(nex.uniqueKey, "_alipayName")),
8248
+ user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
8249
+ }), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref12;
8250
+ };
8251
+ };
8252
+ var processCheckbox = function processCheckbox(getValue) {
8253
+ return function (nex, config) {
8254
+ var _config$checkbox, _config$checkbox2, _config$checkbox3, _config$checkbox4;
8255
+ var checkbox = [],
8256
+ checkboxOther = '';
8257
+ 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('其他'))) {
8258
+ checkbox = config.showOther ? config.checkbox : config.checkbox.filter(function (t) {
8259
+ return t !== '其他';
8260
+ });
8261
+ checkboxOther = config.showOther ? config.checkboxOther : undefined;
8262
+ }
8263
+ 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('其他'))) {
8264
+ checkbox = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
8265
+ if (config.checkbox.includes(next.value)) {
8266
+ prv.push(next.value);
8267
+ }
8268
+ return prv;
8269
+ }, []);
8270
+ }
8271
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_checkbox")), '') || checkbox);
8272
+ };
8273
+ };
8274
+ var processDatetime = function processDatetime(getValue) {
8275
+ return function (nex, config) {
8276
+ var v = getValue("".concat(nex.uniqueKey, "_dateTime"));
8277
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, v) || (config === null || config === void 0 ? void 0 : config.dateTime));
8278
+ };
8279
+ };
8280
+ var processPicture = function processPicture(getValue) {
8281
+ return function (nex, config) {
8282
+ var v = getValue("".concat(nex.uniqueKey, "_picture"));
8283
+ return _defineProperty({}, nex.uniqueKey, v ? formatPictures(v).map(function (item) {
8284
+ return "".concat(item);
8285
+ }) : (config === null || config === void 0 ? void 0 : config.picture) || []);
8286
+ };
8287
+ };
8288
+ var processPicturePro = function processPicturePro(getValue) {
8289
+ return function (nex, config) {
8290
+ var v = getValue("".concat(nex.uniqueKey, "_pictureProList"));
8291
+ var picturePro = jsonParseSecurity(v, v || []) || [];
8292
+ return _defineProperty({}, nex.uniqueKey, picturePro ? picturePro.map(function (item) {
8293
+ return _objectSpread2(_objectSpread2({}, item), {}, {
8294
+ url: item.url ? formatPictures(item.url)[0] : ''
8295
+ });
8296
+ }) : (config === null || config === void 0 ? void 0 : config.pictureProList) || []);
8297
+ };
8298
+ };
8299
+ var wdtTags = function wdtTags(getValue) {
8300
+ return function (nex, config) {
8301
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtTags")), []));
8302
+ };
8303
+ };
8304
+ var processBasicMultSelect = function processBasicMultSelect(getValue) {
8305
+ return function (nex, config) {
8306
+ var v = getValue("".concat(nex.uniqueKey, "_basicMultSelect"));
8307
+ var basicMultSelect = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
8308
+ var _config$basicMultSele;
8309
+ if (config === null || config === void 0 ? void 0 : (_config$basicMultSele = config.basicMultSelect) === null || _config$basicMultSele === void 0 ? void 0 : _config$basicMultSele.includes(next.value)) {
8310
+ prv.push(next.value);
8311
+ }
8312
+ return prv;
8313
+ }, []);
8314
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
8315
+ };
8316
+ };
8317
+ var processMultSelect = function processMultSelect(getValue) {
8318
+ return function (nex, config) {
8319
+ var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
8320
+ var parseValue = jsonParseSecurity(v, v || []) || [];
8321
+ return _defineProperty({}, nex.uniqueKey, parseValue === null || parseValue === void 0 ? void 0 : parseValue.map(function (item) {
8322
+ return item.actived;
8323
+ }));
8324
+ };
8325
+ };
8326
+ var processBasicAddress = function processBasicAddress(getValue) {
8327
+ return function (nex, config) {
8328
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicCity"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicDistrict")))];
8329
+ address = every__default['default'](address, function (item) {
8330
+ return !item;
8331
+ }) ? [] : address;
8332
+ return _defineProperty({}, nex.uniqueKey, address);
8333
+ };
8334
+ };
8335
+ var processReceiverAddressInput = function processReceiverAddressInput(getValue) {
8336
+ return function (nex, config) {
8337
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_province"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_city"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_district")))];
8338
+ address = every__default['default'](address, function (item) {
8339
+ return !item;
8340
+ }) ? [] : address;
8341
+ return _defineProperty({}, nex.uniqueKey, {
8342
+ address: address,
8343
+ detail: getValue("".concat(nex.uniqueKey, "_address"))
8344
+ });
8345
+ };
8346
+ };
8347
+ var processSubForm = function processSubForm(getValue) {
8348
+ return function (nex, config) {
8349
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_productList")), []));
8350
+ };
8351
+ };
8352
+ var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
8353
+ return function (nex, config) {
8354
+ var _ref23;
8355
+ return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
8356
+ company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
8357
+ order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
8358
+ }), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref23;
8359
+ };
8360
+ };
8361
+ var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
8362
+ return function (nex, config) {
8363
+ var _ref24;
8364
+ return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
8365
+ company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
8366
+ order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
8367
+ }), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref24;
8368
+ };
8369
+ };
8370
+ var processRemarkInput = function processRemarkInput(getValue) {
8371
+ return function (nex, config) {
8372
+ var v = getValue("".concat(nex.uniqueKey, "_flag"));
8373
+ var remark = getValue("".concat(nex.uniqueKey, "_remark"));
8374
+ return _defineProperty({}, nex.uniqueKey, {
8375
+ flag: v ? +v : (config === null || config === void 0 ? void 0 : config.flag) ? +(config === null || config === void 0 ? void 0 : config.flag) : '',
8376
+ remark: remark || (config === null || config === void 0 ? void 0 : config.remark) || ''
8377
+ });
8378
+ };
8379
+ };
8380
+ var processStatus = function processStatus(getValue) {
8381
+ return function (nex, config) {
8382
+ var _ref26;
8383
+ var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
8384
+ return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
8385
+ status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
8386
+ customerService: jsonParseSecurity(customerService, customerService)
8387
+ }), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref26;
8388
+ };
8389
+ };
8390
+ var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
8391
+ return function (nex, config) {
8392
+ var _ref27;
8393
+ var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
8394
+ var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
8395
+ var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
8396
+ return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
8397
+ ordinaryMoney: ordinaryMoney,
8398
+ ordinarySerial: ordinarySerial,
8399
+ ordinaryTaitou: ordinaryTaitou
8400
+ }), _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;
8401
+ };
8402
+ };
8403
+ var processLogisticsInterception = function processLogisticsInterception(getValue) {
8404
+ return function (nex, config) {
8405
+ var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptCity")))];
8406
+ //兼容地址是只有省市的
8407
+ var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptDistrict")));
8408
+ interceptDistrict && address.push(interceptDistrict);
8409
+ address = every__default['default'](address, function (item) {
8410
+ return !item;
8411
+ }) ? [] : address;
8412
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
8413
+ var map = subFields.reduce(function (cur, nxt) {
8414
+ return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8415
+ }, {});
8416
+ return _defineProperty({}, nex.uniqueKey, _objectSpread2(_objectSpread2({}, map), {}, {
8417
+ interceptAddress: address,
8418
+ interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
8419
+ }));
8420
+ };
8421
+ };
8422
+ var processLogisticsInterceptionMore = function processLogisticsInterceptionMore(getValue) {
8423
+ return function (nex, config) {
8424
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_logisticsInterceptList")), [{}]));
8425
+ };
8426
+ };
8427
+ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8428
+ return function (nex, config) {
8429
+ var subFields = ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryPhone', 'trajectoryApiStatus'];
8430
+ var map = subFields.reduce(function (cur, nxt) {
8431
+ 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))));
8432
+ }, {});
8433
+ return _defineProperty({}, nex.uniqueKey, map);
8434
+ };
8435
+ };
8436
+ var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
8437
+ return function (nex, config) {
8438
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryList")), []));
8439
+ };
8440
+ };
8441
+ var processGoods = function processGoods(getValue) {
8442
+ return function (nex, config) {
8443
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []));
8444
+ };
8445
+ };
8446
+ var processItemSelectThird = function processItemSelectThird(getValue) {
8447
+ return function (nex, config) {
8448
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []);
8449
+ itemList.forEach(function (key) {
8450
+ key.itemId = key.itemId || key.supplierItemOuterId;
8451
+ });
8452
+ return _defineProperty({}, nex.uniqueKey, itemList);
8453
+ };
8454
+ };
8455
+ var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8456
+ return function (nex, config) {
8457
+ var _ref34;
8458
+ var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8459
+ var map = subFields.reduce(function (cur, nxt) {
8460
+ return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8461
+ }, {});
8462
+ 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;
8463
+ };
8464
+ };
8465
+ var processJstLogistics = function processJstLogistics(getValue) {
8466
+ return function (nex, config) {
8467
+ var initValue = [{
8468
+ logisticsCompany: null,
8469
+ logisticsCode: 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 processJstItemSelectThird = function processJstItemSelectThird(getValue) {
8476
+ return function (nex, config) {
8477
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), []);
8478
+ return _defineProperty({}, nex.uniqueKey, itemList);
8479
+ };
8480
+ };
8481
+ var processJstSupply = function processJstSupply(getValue) {
8482
+ return function (nex, config) {
8483
+ var initValue = [{
8484
+ supplyId: null
8485
+ }];
8486
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
8487
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8488
+ };
8489
+ };
8490
+ var processJstSendGood = function processJstSendGood(getValue) {
8491
+ return function (nex, config) {
8492
+ var initValue = [{
8493
+ sendName: '',
8494
+ sendId: '',
8495
+ sendSnapshotId: ''
8496
+ }];
8497
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
8498
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8499
+ };
8500
+ };
8501
+ var processBsMemo = function processBsMemo(getValue) {
8502
+ return function (nex, config) {
8503
+ return _defineProperty({}, nex.uniqueKey, {
8504
+ remark: getValue("".concat(nex.uniqueKey, "_bsRemark")),
8505
+ flag: getValue("".concat(nex.uniqueKey, "_bsFlag"))
8506
+ });
8507
+ };
8508
+ };
8509
+ var processReissueLogistics = function processReissueLogistics(getValue) {
8510
+ return function (nex, config) {
8511
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_reissueLogisticsList")), []);
8512
+ return _defineProperty({}, nex.uniqueKey, itemList);
8513
+ };
8514
+ };
8515
+ var processCallBackStatus = function processCallBackStatus(getValue) {
8516
+ return function (nex, config) {
8517
+ var STATUS_MAP = {
8518
+ REISSUE_STATUS: {
8519
+ status: 'reissueStatusValue',
8520
+ reason: 'reissueReason'
8521
+ },
8522
+ ADJUST_WORK_ORDER_STATUS: {
8523
+ status: 'adjustWorkOrderStatusValue',
8524
+ reason: 'adjustWorkOrderReason'
8525
+ },
8526
+ CREATE_STATUS: {
8527
+ status: 'createStatusValue',
8528
+ reason: 'createReason'
8529
+ },
8530
+ INVOICE_STATUS: {
8531
+ status: 'invoiceStatusValue',
8532
+ reason: 'invoiceReason'
8533
+ },
8534
+ INVOICING_STATUS: {
8535
+ status: 'invoicingStatusValue',
8536
+ reason: 'invoicingReason'
8537
+ },
8538
+ AGREE_REFUND_STATUS: {
8539
+ status: 'agreeRefundStatusValue',
8540
+ reason: 'agreeRefundStatusReason'
8541
+ },
8542
+ REJECT_REFUND_STATUS: {
8543
+ status: 'rejectRefundStatusValue',
8544
+ reason: 'rejectRefundStatusReason'
8545
+ },
8546
+ AGREE_RETURN_GOODS_STATUS: {
8547
+ status: 'agreeReturnGoodsStatusValue',
8548
+ reason: 'agreeReturnGoodsStatusReason'
8549
+ },
8550
+ REJECT_RETURN_GOODS_STATUS: {
8551
+ status: 'rejectReturnGoodsStatusValue',
8552
+ reason: 'rejectReturnGoodsStatusReason'
8553
+ },
8554
+ ERP_AFTER_SALE_STATUS: {
8555
+ status: 'erpAfterSaleStatusValue',
8556
+ reason: 'erpAfterSaleStatusReason'
8557
+ },
8558
+ RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8559
+ status: 'returnExchangeGoodsReviewStatusValue',
8560
+ reason: 'returnExchangeGoodsReviewStatusReason'
8561
+ }
8562
+ };
8563
+ return _defineProperty({}, nex.uniqueKey, {
8564
+ status: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].status)),
8565
+ reason: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].reason))
8566
+ });
8567
+ };
8568
+ };
8569
+ var processSceneStatus = function processSceneStatus(getValue) {
8570
+ return function (nex, config) {
8571
+ var STATUS_LIST_MAP = {
8572
+ RETURN_GOODS_STATUS: 'returnGoodsStatusList',
8573
+ EXCHANGE_STATUS: 'exchangeReason',
8574
+ WAREHOUSING_STATUS: 'inStockStatusItemList',
8575
+ BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8576
+ MSG_STATUS: 'msgStatusValues',
8577
+ WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
8578
+ };
8579
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8580
+ };
8581
+ };
8582
+ var processErpLogistics = function processErpLogistics(getValue) {
8583
+ return function (nex, config) {
8584
+ var LogisticsMap = {
8585
+ BS_LOGISTICS: {
8586
+ listKey: 'bsLogisticsList'
8587
+ },
8588
+ WLN_LOGISTICS: {
8589
+ listKey: 'wlnLogisticsList'
8590
+ },
8591
+ WDT_LOGISTICS: {
8592
+ listKey: 'wdtLogisticsList'
8593
+ },
8594
+ BS_E3_LOGISTICS: {
8595
+ listKey: 'bsE3LogisticsList'
8596
+ },
8597
+ KM_LOGISTICS: {
8598
+ listKey: 'kmLogisticsList'
8599
+ },
8600
+ GY_LOGISTICS: {
8601
+ listKey: 'gyLogisticsList'
8602
+ },
8603
+ SKX_LOGISTICS: {
8604
+ listKey: 'skxLogisticsList'
8605
+ }
8606
+ };
8607
+ var initValue = [{
8608
+ logisticsCompany: null,
8609
+ logisticsCode: null
8610
+ }];
8611
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(LogisticsMap[nex.workOrderComponentType].listKey)), initValue);
8612
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8613
+ };
8614
+ };
8615
+ var processErpSendGood = function processErpSendGood(getValue) {
8616
+ return function (nex, config) {
8617
+ var sendGoodMap = {
8618
+ BS_SEND_GOOD: {
8619
+ list: 'bsSendGood'
8620
+ },
8621
+ WLN_SEND_GOOD: {
8622
+ list: 'wlnSendGood'
8623
+ },
8624
+ WDT_SEND_GOOD: {
8625
+ list: 'wdtSendGood'
8626
+ },
8627
+ KM_SEND_GOOD: {
8628
+ list: 'kmSendGood'
8629
+ },
8630
+ BS_E3_SEND_GOOD: {
8631
+ list: 'bsE3SendGood'
8632
+ },
8633
+ GY_SEND_GOOD: {
8634
+ list: 'gySendGood'
8635
+ }
8636
+ };
8637
+ var initValue = [{
8638
+ sendName: '',
8639
+ sendId: ''
8640
+ }];
8641
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(sendGoodMap[nex.workOrderComponentType].list)), initValue);
8642
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8643
+ };
8644
+ };
8645
+ var processBsPosting = function processBsPosting(getValue) {
8646
+ return function (nex, config) {
8647
+ var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
8648
+ //兼容地址是只有省市的
8649
+ var bsInterceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingDistrict")));
8650
+ bsInterceptDistrict && bsAddress.push(bsInterceptDistrict);
8651
+ bsAddress = every__default['default'](bsAddress, function (item) {
8652
+ return !item;
8653
+ }) ? [] : bsAddress;
8654
+ return _defineProperty({}, nex.uniqueKey, {
8655
+ postingAddress: bsAddress,
8656
+ postingDetail: getValue("".concat(nex.uniqueKey, "_bsPostingDetail")),
8657
+ postingReceiverName: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverName")),
8658
+ postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverMobile"))
8659
+ });
8660
+ };
8661
+ };
8662
+ var processBsGoods = function processBsGoods(getValue) {
8663
+ return function (nex, config) {
8664
+ var _values = {
8665
+ bsGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsGoods")), []),
8666
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8667
+ };
8668
+ return _defineProperty({}, nex.uniqueKey, _values);
8669
+ };
8670
+ };
8671
+ var processWdtGoods = function processWdtGoods(templateColumns) {
8672
+ return function (getValue) {
8673
+ return function (nex, config) {
8674
+ var _values = {
8675
+ wdtGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtGoods")), []),
8676
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8677
+ };
8678
+ var selectIds = [];
8679
+ var orderNo = '';
8680
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8681
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8682
+ });
8683
+ if (tradeId) {
8684
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8685
+ }
8686
+ var wdtSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8687
+ return col.workOrderComponentType === 'WDT_SYSTEM_ORDER';
8688
+ });
8689
+ if (wdtSystemOrder) {
8690
+ selectIds = jsonParseSecurity(getValue("".concat(wdtSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtSystemOrder.workOrderComponentType].ids)), []);
8691
+ }
8692
+ _values.selectIds = selectIds;
8693
+ _values.orderNo = orderNo;
8694
+ return _defineProperty({}, nex.uniqueKey, _values);
8695
+ };
8696
+ };
8697
+ };
8698
+ var processBsE3Goods = function processBsE3Goods(templateColumns) {
8699
+ return function (getValue) {
8700
+ return function (nex, config) {
8701
+ var _values = {
8702
+ bsE3Goods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3Goods")), []),
8703
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8704
+ };
8705
+ var selectIds = [];
8706
+ var orderNo = '';
8707
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8708
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8709
+ });
8710
+ if (tradeId) {
8711
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8712
+ }
8713
+ var bsE3SystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8714
+ return col.workOrderComponentType === 'BS_E3_SYSTEM_ORDER';
8715
+ });
8716
+ if (bsE3SystemOrder) {
8717
+ selectIds = jsonParseSecurity(getValue("".concat(bsE3SystemOrder.uniqueKey, "_").concat(systemOrderMap[bsE3SystemOrder.workOrderComponentType].ids)), []);
8718
+ }
8719
+ _values.selectIds = selectIds;
8720
+ _values.orderNo = orderNo;
8721
+ return _defineProperty({}, nex.uniqueKey, _values);
8722
+ };
8723
+ };
8724
+ };
8725
+ var processJstGoods = function processJstGoods(templateColumns) {
8726
+ return function (getValue) {
8727
+ return function (nex, config) {
8728
+ var _values = {
8729
+ jstGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstGoods")), []),
8730
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8731
+ };
8732
+ var selectIds = [];
8733
+ var orderNo = '';
8734
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8735
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8736
+ });
8737
+ if (tradeId) {
8738
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8739
+ }
8740
+ var jstSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8741
+ return col.workOrderComponentType === 'JST_SYSTEM_ORDER';
8742
+ });
8743
+ if (jstSystemOrder) {
8744
+ selectIds = jsonParseSecurity(getValue("".concat(jstSystemOrder.uniqueKey, "_").concat(systemOrderMap[jstSystemOrder.workOrderComponentType].ids)), []);
8745
+ }
8746
+ _values.selectIds = selectIds;
8747
+ _values.orderNo = orderNo;
8748
+ return _defineProperty({}, nex.uniqueKey, _values);
8749
+ };
8750
+ };
8751
+ };
8752
+ var processKmGoods = function processKmGoods(templateColumns) {
8753
+ return function (getValue) {
8754
+ return function (nex, config) {
8755
+ var _values = {
8756
+ kmGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmGoods")), []),
8757
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8758
+ };
8759
+ var selectIds = [];
8760
+ var orderNo = '';
8761
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8762
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8763
+ });
8764
+ if (tradeId) {
8765
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8766
+ }
8767
+ var kmSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8768
+ return col.workOrderComponentType === 'KM_SYSTEM_ORDER';
8769
+ });
8770
+ if (kmSystemOrder) {
8771
+ selectIds = jsonParseSecurity(getValue("".concat(kmSystemOrder.uniqueKey, "_").concat(systemOrderMap[kmSystemOrder.workOrderComponentType].ids)), []);
8772
+ }
8773
+ _values.selectIds = selectIds;
8774
+ _values.orderNo = orderNo;
8775
+ return _defineProperty({}, nex.uniqueKey, _values);
8776
+ };
8777
+ };
8778
+ };
8779
+ var processGyGoods = function processGyGoods(templateColumns) {
8780
+ return function (getValue) {
8781
+ return function (nex, config) {
8782
+ var _values = {
8783
+ gyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyGoods")), []),
8784
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8785
+ };
8786
+ var selectIds = [];
8787
+ var orderNo = '';
8788
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8789
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8790
+ });
8791
+ if (tradeId) {
8792
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8793
+ }
8794
+ var gySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8795
+ return col.workOrderComponentType === 'GY_SYSTEM_ORDER';
8796
+ });
8797
+ if (gySystemOrder) {
8798
+ selectIds = jsonParseSecurity(getValue("".concat(gySystemOrder.uniqueKey, "_").concat(systemOrderMap[gySystemOrder.workOrderComponentType].ids)), []);
8799
+ }
8800
+ _values.selectIds = selectIds;
8801
+ _values.orderNo = orderNo;
8802
+ return _defineProperty({}, nex.uniqueKey, _values);
8803
+ };
8804
+ };
8805
+ };
8806
+ var processSkxGoods = function processSkxGoods(getValue) {
8807
+ return function (nex, config) {
8808
+ var _values = {
8809
+ skxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_skxGoods")), [])
8810
+ };
8811
+ return _defineProperty({}, nex.uniqueKey, _values);
8812
+ };
8813
+ };
8814
+ var processBsReissueGoods = function processBsReissueGoods(getValue) {
8815
+ return function (nex, config) {
8816
+ return _defineProperty({}, nex.uniqueKey, {
8817
+ bsReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueType")), []),
8818
+ bsReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueGoods")), []),
8819
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8820
+ });
8821
+ };
8822
+ };
8823
+ var processBsExchangeGoods = function processBsExchangeGoods(getValue) {
8824
+ return function (nex, config) {
8825
+ var bsExchangeType = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeType")), []);
8826
+ var bsExchangeReturnGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeReturnGoods")), []);
8827
+ var bsExchangeSwapOutGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")), []);
8828
+ //补发组装数据
8829
+ if ((bsExchangeType === null || bsExchangeType === void 0 ? void 0 : bsExchangeType.length) && ['2', '4'].includes(bsExchangeType[0])) {
8830
+ var maxLen = maxBy__default['default'](bsExchangeReturnGoods, function (t) {
8831
+ return t.index;
8832
+ });
8833
+ var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
8834
+ return {
8835
+ bsExchangeReturnGoods: [],
8836
+ bsExchangeSwapOutGoods: []
8837
+ };
8838
+ });
8839
+ bsExchangeReturnGoods.forEach(function (item) {
8840
+ if (!newGoods[item.index]) {
8841
+ newGoods[item.index] = {
8842
+ bsExchangeReturnGoods: [],
8843
+ bsExchangeSwapOutGoods: []
8844
+ };
8845
+ }
8846
+ newGoods[item.index].bsExchangeReturnGoods.push(item);
8847
+ });
8848
+ bsExchangeSwapOutGoods.forEach(function (item) {
8849
+ newGoods[item.index].bsExchangeSwapOutGoods.push(item);
8850
+ });
8851
+ bsExchangeReturnGoods = newGoods;
8852
+ bsExchangeSwapOutGoods = [];
8853
+ }
8854
+ return _defineProperty({}, nex.uniqueKey, {
8855
+ bsExchangeType: bsExchangeType,
8856
+ bsExchangeReturnGoods: bsExchangeReturnGoods,
8857
+ bsExchangeSwapOutGoods: bsExchangeSwapOutGoods,
8858
+ bsExchangeGiftGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeGiftGoods")), []),
8859
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8860
+ });
8861
+ };
8862
+ };
8863
+ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
8864
+ return function (nex, config) {
8865
+ return _defineProperty({}, nex.uniqueKey, {
8866
+ wdtExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtExchangeGoods")), []),
8867
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8868
+ });
8869
+ };
8870
+ };
8871
+ var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
8872
+ return function (nex, config) {
8873
+ return _defineProperty({}, nex.uniqueKey, {
8874
+ jstExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstExchangeGoods")), []),
8875
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8876
+ });
8877
+ };
8878
+ };
8879
+ var processBsReturnGoods = function processBsReturnGoods(getValue) {
8880
+ return function (nex, config) {
8881
+ var _$concat;
8882
+ var compType = nex.workOrderComponentType;
8883
+ var returnGoodsMap = {
8884
+ BS_RETURN_GOODS: {
8885
+ returnTypeKey: 'bsReturnType',
8886
+ returnGoodsKey: 'bsReturnGoods',
8887
+ shopCodeKey: 'shopCode'
8888
+ }
8889
+ };
8890
+ 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));
8891
+ };
8892
+ };
8893
+ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8894
+ return function (nex, config) {
8895
+ var systemOrderMap = {
8896
+ BS_SYSTEM_ORDER: {
8897
+ no: 'bsSystemOrderNo',
8898
+ ids: 'bsSystemSelectIds',
8899
+ order: 'bsSystemShowOrder'
8900
+ },
8901
+ KM_SYSTEM_ORDER: {
8902
+ no: 'kmSystemOrderNo',
8903
+ ids: 'kmSystemSelectIds',
8904
+ order: 'kmSystemShowOrder'
8905
+ },
8906
+ WLN_SYSTEM_ORDER: {
8907
+ no: 'wlnSystemOrderNo',
8908
+ ids: 'wlnSystemSelectIds',
8909
+ order: 'wlnSystemShowOrder'
8910
+ },
8911
+ WDT_SYSTEM_ORDER: {
8912
+ no: 'wdtSystemOrderNo',
8913
+ ids: 'wdtSystemSelectIds',
8914
+ order: 'wdtSystemShowOrder'
8915
+ },
8916
+ BS_E3_SYSTEM_ORDER: {
8917
+ no: 'bsE3SystemOrderNo',
8918
+ ids: 'bsE3SystemSelectIds',
8919
+ order: 'bsE3SystemShowOrder'
8920
+ },
8921
+ GY_SYSTEM_ORDER: {
8922
+ no: 'gySystemOrderNo',
8923
+ ids: 'gySystemSelectIds',
8924
+ order: 'gySystemShowOrder'
8925
+ },
8926
+ JST_SYSTEM_ORDER: {
8927
+ no: 'jstSystemOrderNo',
8928
+ ids: 'jstSystemSelectIds',
8929
+ order: 'jstSystemShowOrder'
8930
+ }
8931
+ };
8932
+ return _defineProperty({}, nex.uniqueKey, {
8933
+ orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8934
+ orders: [],
8935
+ selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8936
+ showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8937
+ });
8938
+ };
8939
+ };
8940
+ var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
8941
+ return function (nex, config) {
8942
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
8943
+ };
8944
+ };
8945
+ var processOrderType = function processOrderType(getValue) {
8946
+ return function (nex, config) {
8947
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
8948
+ };
8949
+ };
8950
+ var processRefundType = function processRefundType(getValue) {
8951
+ return function (nex, config) {
8952
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_orderRefundType")) || (config === null || config === void 0 ? void 0 : config.select));
8953
+ };
8954
+ };
8955
+ var processExecuteActionType = function processExecuteActionType(getValue) {
8956
+ return function (nex, config) {
8957
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_executeActionType")) || (config === null || config === void 0 ? void 0 : config.select));
8958
+ };
8959
+ };
8960
+ var processErpTradeId = function processErpTradeId(getValue) {
8961
+ return function (nex, config) {
8962
+ var SYSTEM_ORDER_MAP = {
8963
+ BS_DELIVERY_NO: {
8964
+ key: 'deliveryNoList',
8965
+ defaultValue: [{
8966
+ deliverNo: '',
8967
+ systemOrderId: ''
8968
+ }]
8969
+ },
8970
+ RETURN_GOODS_TRADE_ID: {
8971
+ key: 'returnGoodsTradeItemList',
8972
+ defaultValue: []
8973
+ },
8974
+ REISSUE_TRADE_ID: {
8975
+ key: 'tradeItemList',
8976
+ defaultValue: []
8977
+ },
8978
+ ERP_AFTER_SALE_TRADE_ID: {
8979
+ key: 'erpAfterSaleTradeItemList',
8980
+ defaultValue: []
8981
+ },
8982
+ EXCHANGE_TRADE_ID: {
8983
+ key: 'tradeItemList',
8984
+ defaultValue: []
8985
+ }
8986
+ };
8987
+ return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
8988
+ };
8989
+ };
8990
+ var processWlnGoods = function processWlnGoods(templateColumns) {
8991
+ return function (getValue) {
8992
+ return function (nex, config) {
8993
+ var orderNo = '';
8994
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8995
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8996
+ });
8997
+ if (tradeId) {
8998
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8999
+ }
9000
+ return _defineProperty({}, nex.uniqueKey, {
9001
+ wlnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnGoods")), []),
9002
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9003
+ orderNo: orderNo
9004
+ });
9005
+ };
9006
+ };
9007
+ };
9008
+ var processWdtReissueGoods = function processWdtReissueGoods(templateColumns) {
9009
+ return function (getValue) {
9010
+ return function (nex, config) {
9011
+ var orderNo = '';
9012
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9013
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9014
+ });
9015
+ if (tradeId) {
9016
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9017
+ }
9018
+ return _defineProperty({}, nex.uniqueKey, {
9019
+ wdtSystemOrder: {
9020
+ orderNo: orderNo
9021
+ },
9022
+ wdtReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9023
+ wdtReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueGoods")), []),
9024
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9025
+ wdtSystemOrderNo: getValue("".concat(nex.uniqueKey, "_wdtSystemOrderNo"))
9026
+ });
9027
+ };
9028
+ };
9029
+ };
9030
+ var processWdtReturnGoods = function processWdtReturnGoods(templateColumns) {
9031
+ return function (getValue) {
9032
+ return function (nex, config) {
9033
+ // let orderNo = '';
9034
+ // const tradeId = templateColumns?.find(
9035
+ // (col: { workOrderComponentType: string }) => col.workOrderComponentType === 'TRADE_ID_INPUT',
9036
+ // );
9037
+ // if (tradeId) {
9038
+ // orderNo = getValue(
9039
+ // `${tradeId.uniqueKey}_${updateWorkTypeKeys[tradeId.workOrderComponentType]}`,
9040
+ // );
9041
+ // }
9042
+ return _defineProperty({}, nex.uniqueKey, {
9043
+ wdtReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9044
+ wdtReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnGoods")), []),
9045
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
9046
+ });
9047
+ };
9048
+ };
9049
+ };
9050
+ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
9051
+ return function (getValue) {
9052
+ return function (nex, config) {
9053
+ var orderNo = '';
9054
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9055
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9056
+ });
9057
+ if (tradeId) {
9058
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9059
+ }
9060
+ return _defineProperty({}, nex.uniqueKey, {
9061
+ kmSystemOrder: {
9062
+ orderNo: orderNo
9063
+ },
9064
+ kmReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9065
+ kmReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueGoods")), []),
9066
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9067
+ kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
9068
+ });
9069
+ };
9070
+ };
9071
+ };
9072
+ var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
9073
+ return function (getValue) {
9074
+ return function (nex, config) {
9075
+ var orderNo = '';
9076
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9077
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9078
+ });
9079
+ if (tradeId) {
9080
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9081
+ }
9082
+ return _defineProperty({}, nex.uniqueKey, {
9083
+ gySystemOrder: {
9084
+ orderNo: orderNo
9085
+ },
9086
+ gyReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9087
+ gyReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueGoods")), []),
9088
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9089
+ vipCode: getValue("".concat(nex.uniqueKey, "_vipCode")),
9090
+ gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
9091
+ });
9092
+ };
9093
+ };
9094
+ };
9095
+ var processGyReturnGoods = function processGyReturnGoods(templateColumns) {
9096
+ return function (getValue) {
9097
+ return function (nex, config) {
9098
+ var orderNo = '';
9099
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9100
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9101
+ });
9102
+ if (tradeId) {
9103
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9104
+ }
9105
+ return _defineProperty({}, nex.uniqueKey, {
9106
+ gySystemOrder: {
9107
+ orderNo: orderNo
9108
+ },
9109
+ gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9110
+ gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
9111
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9112
+ gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
9113
+ });
9114
+ };
9115
+ };
9116
+ };
9117
+ var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
9118
+ return function (getValue) {
9119
+ return function (nex, config) {
9120
+ var orderNo = '';
9121
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9122
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9123
+ });
9124
+ if (tradeId) {
9125
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9126
+ }
9127
+ return _defineProperty({}, nex.uniqueKey, {
9128
+ jstSystemOrder: {
9129
+ orderNo: orderNo
9130
+ },
9131
+ jstReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9132
+ jstReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueGoods")), []),
9133
+ jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
9134
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9135
+ jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
9136
+ });
9137
+ };
9138
+ };
9139
+ };
9140
+ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9141
+ return function (getValue) {
9142
+ return function (nex, config) {
9143
+ var orderNo = '';
9144
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9145
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9146
+ });
9147
+ if (tradeId) {
9148
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9149
+ }
9150
+ return _defineProperty({}, nex.uniqueKey, {
9151
+ jstSystemOrder: {
9152
+ orderNo: orderNo
9153
+ },
9154
+ jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9155
+ jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
9156
+ jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
9157
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9158
+ jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
9159
+ });
9160
+ };
9161
+ };
9162
+ };
9163
+ var processLabel = function processLabel(getValue) {
9164
+ return function (nex, config) {
9165
+ var _ref72;
9166
+ 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;
9167
+ };
9168
+ };
9169
+ var processMemberLevel = function processMemberLevel(getValue) {
9170
+ return function (nex, config) {
9171
+ var _ref73;
9172
+ 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;
9173
+ };
9174
+ };
9175
+ var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
9176
+ return function (nex, config) {
9177
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_afterSalesOrderId")));
9178
+ };
9179
+ };
9180
+ var processSingleField = function processSingleField(getValue) {
9181
+ return function (nex, config) {
9182
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(updateWorkTypeKeys[nex.workOrderComponentType])));
9183
+ };
9184
+ };
9185
+ var processSingleFieldByKey = function processSingleFieldByKey(key) {
9186
+ return function (getValue) {
9187
+ return function (nex, config) {
9188
+ return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(key)));
9189
+ };
9190
+ };
9191
+ };
9192
+ var processBsE3ReissueGoods = function processBsE3ReissueGoods(templateColumns) {
9193
+ return function (getValue) {
9194
+ return function (nex, config) {
9195
+ var orderNo = '';
9196
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9197
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9198
+ });
9199
+ if (tradeId) {
9200
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9201
+ }
9202
+ return _defineProperty({}, nex.uniqueKey, {
9203
+ bsE3SystemOrder: {
9204
+ orderNo: orderNo
9205
+ },
9206
+ bsE3SystemOrderNo: getValue("".concat(nex.uniqueKey, "_bsE3SystemOrderNo")),
9207
+ bsE3ReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9208
+ bsE3ReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueGoods")), [])
9209
+ });
9210
+ };
9211
+ };
9212
+ };
9213
+ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9214
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'edit';
9215
+ return function (item) {
9216
+ var getValue = getItemValue(item);
9217
+ var componentProcessors = _objectSpread2({
9218
+ RADIO: processRadio,
9219
+ INPUT: processInput,
9220
+ NUMERICAL_CALCULATION: processNumericalCalculation,
9221
+ TEXTAREA: processTextarea,
9222
+ SELECT: processSelect,
9223
+ GY_PAYMENT_METHOD: gyPaymentMethod,
9224
+ RATE: processRate,
9225
+ FILE: processFile,
9226
+ POSTING: processPosting,
9227
+ BUYER_NICK_INPUT: processBuyerNickInput,
9228
+ ALI_PAY_INPUT: processAliPayInput,
9229
+ CHECKBOX: processCheckbox,
9230
+ DATETIME: processDatetime,
9231
+ PICTURE: processPicture,
9232
+ PICTURE_PRO: processPicturePro,
9233
+ BASIC_MULT_SELECT: processBasicMultSelect,
9234
+ MULT_SELECT: processMultSelect,
9235
+ BASIC_ADDRESS: processBasicAddress,
9236
+ RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
9237
+ SUBFORM: processSubForm,
9238
+ EXPRESS_LOGISTICS_SELECT: processExpressLogisticsSelect,
9239
+ RETURN_LOGISTICS_SELECT: processReturnLogisticsSelect,
9240
+ REMARK_INPUT: processRemarkInput,
9241
+ STATUS: processStatus,
9242
+ ORDINARY_INVOICE: processOrdinaryInvoice,
9243
+ LOGISTICS_INTERCEPTION: processLogisticsInterception,
9244
+ LOGISTICS_INTERCEPTION_MORE: processLogisticsInterceptionMore,
9245
+ LOGISTICS_TRAJECTORY: processLogisticsTrajectory,
9246
+ LOGISTICS_TRAJECTORY_MORE: processLogisticsTrajectoryMore,
9247
+ ITEM_SELECT: processGoods,
9248
+ ITEM_ENCODE: processGoods,
9249
+ ITEM_ID: processGoods,
9250
+ ITEM_SELECT_THIRD: processItemSelectThird,
9251
+ ENTERPRISE_PAYMENT: processEnterPrisePayment,
9252
+ JST_LOGISTICS: processJstLogistics,
9253
+ JST_ITEM_SELECT_THIRD: processJstItemSelectThird,
9254
+ JST_SUPPLY: processJstSupply,
9255
+ JST_SEND_GOOD: processJstSendGood,
9256
+ BS_MEMO: processBsMemo,
9257
+ REISSUE_LOGISTICS: processReissueLogistics,
9258
+ REISSUE_STATUS: processCallBackStatus,
9259
+ ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
9260
+ CREATE_STATUS: processCallBackStatus,
9261
+ INVOICE_STATUS: processCallBackStatus,
9262
+ INVOICING_STATUS: processCallBackStatus,
9263
+ AGREE_REFUND_STATUS: processCallBackStatus,
9264
+ REJECT_REFUND_STATUS: processCallBackStatus,
9265
+ ERP_AFTER_SALE_STATUS: processCallBackStatus,
9266
+ AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9267
+ REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9268
+ RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
9269
+ RETURN_GOODS_STATUS: processSceneStatus,
9270
+ EXCHANGE_STATUS: processSceneStatus,
9271
+ WAREHOUSING_STATUS: processSceneStatus,
9272
+ BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9273
+ MSG_STATUS: processSceneStatus,
9274
+ WDT_WAREHOUSING_STATUS: processSceneStatus,
9275
+ BS_LOGISTICS: processErpLogistics,
9276
+ WLN_LOGISTICS: processErpLogistics,
9277
+ WDT_LOGISTICS: processErpLogistics,
9278
+ GY_LOGISTICS: processErpLogistics,
9279
+ BS_E3_LOGISTICS: processErpLogistics,
9280
+ KM_LOGISTICS: processErpLogistics,
9281
+ BS_SEND_GOOD: processErpSendGood,
9282
+ WLN_SEND_GOOD: processErpSendGood,
9283
+ WDT_SEND_GOOD: processErpSendGood,
9284
+ BS_E3_SEND_GOOD: processErpSendGood,
9285
+ KM_SEND_GOOD: processErpSendGood,
9286
+ GY_SEND_GOOD: processErpSendGood,
9287
+ BS_POSTING: processBsPosting,
9288
+ BS_GOODS: processBsGoods,
9289
+ WDT_GOODS: processWdtGoods(templateColumns),
9290
+ BS_E3_GOODS: processBsE3Goods(templateColumns),
9291
+ GY_GOODS: processGyGoods(templateColumns),
9292
+ KM_GOODS: processKmGoods(templateColumns),
9293
+ KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
9294
+ JST_GOODS: processJstGoods(templateColumns),
9295
+ BS_REISSUE_GOODS: processBsReissueGoods,
9296
+ BS_EXCHANGE_GOODS: processBsExchangeGoods,
9297
+ WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
9298
+ JST_EXCHANGE_GOODS: processJstExchangeGoods,
9299
+ BS_RETURN_GOODS: processBsReturnGoods,
9300
+ WDT_RETURN_GOODS: processWdtReturnGoods(),
9301
+ JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
9302
+ BS_SYSTEM_ORDER: processErpSystemOrder,
9303
+ KM_SYSTEM_ORDER: processErpSystemOrder,
9304
+ WLN_SYSTEM_ORDER: processErpSystemOrder,
9305
+ WDT_SYSTEM_ORDER: processErpSystemOrder,
9306
+ BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9307
+ JST_SYSTEM_ORDER: processErpSystemOrder,
9308
+ GY_SYSTEM_ORDER: processErpSystemOrder,
9309
+ BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
9310
+ ORDER_TYPE: processOrderType,
9311
+ REFUND_TYPE: processRefundType,
9312
+ RETURN_GOODS_TRADE_ID: processErpTradeId,
9313
+ BS_DELIVERY_NO: processErpTradeId,
9314
+ REISSUE_TRADE_ID: processErpTradeId,
9315
+ ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
9316
+ EXCHANGE_TRADE_ID: processErpTradeId,
9317
+ WLN_GOODS: processWlnGoods(templateColumns),
9318
+ WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
9319
+ GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
9320
+ GY_RETURN_GOODS: processGyReturnGoods(templateColumns),
9321
+ JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
9322
+ LABEL: processLabel,
9323
+ MEMBER_LEVEL: processMemberLevel,
9324
+ AFTER_SALES_ORDER_ID: processAfterSalesOrderId,
9325
+ BASIC_GRADE: processSingleField,
9326
+ TRADE_ID_INPUT: processSingleField,
9327
+ SHOP_NAME_INPUT: processSingleField,
9328
+ RECEIVER_NAME_INPUT: processSingleField,
9329
+ RECEIVER_MOBILE_INPUT: processSingleField,
9330
+ TRADE_CREATE_DATETIME: processSingleField,
9331
+ TRADE_PAYMENT_DATETIME: processSingleField,
9332
+ TRADE_DELIVERY_DATETIME: processSingleField,
9333
+ TRADE_CLOSING_DATETIME: processSingleField,
9334
+ TRADE_SIGNING_DATETIME: processSingleField,
9335
+ ACTUAL_PAYMENT: processSingleField,
9336
+ SYSTEM_ORDER_NO: processSingleField,
9337
+ BS_SIGNING_TIME: processSingleField,
9338
+ BS_SEND_TIME: processSingleField,
9339
+ BS_TRADE_PAYMENT_TIME: processSingleField,
9340
+ BS_NET_RECEIPTS: processSingleField,
9341
+ BS_PACKAGE_WEIGHT: processSingleField,
9342
+ BS_DEPOSIT: processSingleField,
9343
+ NEW_PAYMENT_STATUS: processSingleField,
9344
+ BUSINESS_ORDER_NO: processSingleField,
9345
+ PAYMENT_VOUCHER_CODE: processSingleField,
9346
+ BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9347
+ ACTUAL_RECEIPT_PAYMENT: processSingleField,
9348
+ WDT_SHOP: processSingleField,
9349
+ KM_VIDEO: processKmVideo,
9350
+ WDT_TAGS: wdtTags,
9351
+ EXECUTE_ACTION_TYPE: processExecuteActionType,
9352
+ SKX_GOODS: processSkxGoods,
9353
+ SKX_LOGISTICS: processErpLogistics
9354
+ }, Object.keys(processSingleFieldTypeMapping).reduce(function (acc, key) {
9355
+ acc[key] = processSingleFieldByKey(processSingleFieldTypeMapping[key]);
9356
+ return acc;
9357
+ }, {}));
9358
+ return templateColumns.reduce(function (cur, nex) {
9359
+ var _componentProcessors$;
9360
+ var config = type === 'init' ? nex.componentConfig : {};
9361
+ var processFunc = (_componentProcessors$ = componentProcessors[nex.workOrderComponentType]) === null || _componentProcessors$ === void 0 ? void 0 : _componentProcessors$.call(componentProcessors, getValue);
9362
+ if (processFunc) {
9363
+ return _objectSpread2(_objectSpread2({}, cur), processFunc(nex, config));
9364
+ }
9365
+ return cur; // 如果没有找到处理函数,返回当前累积对象
9366
+ }, {});
9367
+ };
9368
+ };
9369
+
8062
9370
  var hostUrl = 'https://kefu.kuaimai.com';
8063
9371
  var FileRender = function FileRender(_ref) {
8064
9372
  var _ref$fileList = _ref.fileList,
@@ -8127,12 +9435,39 @@ var FileRender = function FileRender(_ref) {
8127
9435
  setDownloading(false);
8128
9436
  });
8129
9437
  };
8130
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, fileList.map(function (item) {
9438
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
9439
+ content: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, fileList.map(function (item) {
9440
+ return /*#__PURE__*/React__default['default'].createElement("a", {
9441
+ style: {
9442
+ display: 'block',
9443
+ width: '100%',
9444
+ color: '#1890ff',
9445
+ cursor: 'pointer'
9446
+ },
9447
+ onClick: function onClick(e) {
9448
+ e.preventDefault();
9449
+ onPreview(item);
9450
+ },
9451
+ href: item === null || item === void 0 ? void 0 : item.url
9452
+ }, item.name);
9453
+ })),
9454
+ trigger: "hover"
9455
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
9456
+ style: {
9457
+ overflow: 'hidden',
9458
+ textOverflow: 'ellipsis',
9459
+ whiteSpace: 'nowrap'
9460
+ }
9461
+ }, fileList.map(function (item) {
8131
9462
  return /*#__PURE__*/React__default['default'].createElement("a", {
8132
9463
  style: {
9464
+ display: 'block',
9465
+ width: '100%',
8133
9466
  color: '#1890ff',
8134
9467
  cursor: 'pointer',
8135
- display: 'block'
9468
+ overflow: 'hidden',
9469
+ textOverflow: 'ellipsis',
9470
+ whiteSpace: 'nowrap'
8136
9471
  },
8137
9472
  onClick: function onClick(e) {
8138
9473
  e.preventDefault();
@@ -8140,7 +9475,7 @@ var FileRender = function FileRender(_ref) {
8140
9475
  },
8141
9476
  href: item === null || item === void 0 ? void 0 : item.url
8142
9477
  }, item.name);
8143
- }), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
9478
+ }))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
8144
9479
  visible: visible,
8145
9480
  title: fileName,
8146
9481
  footer: null,
@@ -8197,25 +9532,10 @@ var PictureRender = function PictureRender(_ref2) {
8197
9532
  }));
8198
9533
  }));
8199
9534
  };
8200
- var RadioRender = function RadioRender(_ref3) {
8201
- var _value$value;
8202
- var _ref3$value = _ref3.value,
8203
- value = _ref3$value === void 0 ? {} : _ref3$value;
8204
- return /*#__PURE__*/React__default['default'].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, ")"));
8205
- };
8206
- var CheckboxRender = function CheckboxRender(_ref4) {
8207
- var _value$value2, _value$value3, _value$value4;
8208
- var _ref4$value = _ref4.value,
8209
- value = _ref4$value === void 0 ? [] : _ref4$value;
8210
- if ((value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.length) === 0 && kmkfUtils.isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
8211
- 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) {
8212
- return item === '其他';
8213
- });
8214
- if (findIndex > -1 && (value === null || value === void 0 ? void 0 : value.other)) {
8215
- // @ts-ignore
8216
- value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
8217
- }
8218
- return value === null || value === void 0 ? void 0 : (_value$value4 = value.value) === null || _value$value4 === void 0 ? void 0 : _value$value4.join('/');
9535
+ var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9536
+ var _ref5$value = _ref5.value,
9537
+ value = _ref5$value === void 0 ? [] : _ref5$value;
9538
+ return value === null || value === void 0 ? void 0 : value.join(',');
8219
9539
  };
8220
9540
  var renderMap = {
8221
9541
  PICTURE: function PICTURE() {
@@ -8234,25 +9554,26 @@ var renderMap = {
8234
9554
  canDownload: true
8235
9555
  });
8236
9556
  },
8237
- RADIO: function RADIO(value) {
8238
- return /*#__PURE__*/React__default['default'].createElement(RadioRender, {
9557
+ CHECKBOX: function CHECKBOX(value) {
9558
+ return /*#__PURE__*/React__default['default'].createElement(MultipleSelectRender, {
8239
9559
  value: value
8240
9560
  });
8241
9561
  },
8242
- CHECKBOX: function CHECKBOX(value) {
8243
- return /*#__PURE__*/React__default['default'].createElement(CheckboxRender, {
9562
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(value) {
9563
+ return /*#__PURE__*/React__default['default'].createElement(MultipleSelectRender, {
8244
9564
  value: value
8245
9565
  });
8246
9566
  }
8247
9567
  };
8248
- var EditPictureRender = function EditPictureRender(_ref5) {
8249
- var _ref5$val = _ref5.val,
8250
- val = _ref5$val === void 0 ? [] : _ref5$val,
8251
- index = _ref5.index,
8252
- t = _ref5.t,
8253
- updateHandle = _ref5.updateHandle,
8254
- disabled = _ref5.disabled,
8255
- hostUrl = _ref5.hostUrl;
9568
+ var EditPictureRender = function EditPictureRender(_ref6) {
9569
+ var _ref6$val = _ref6.val,
9570
+ val = _ref6$val === void 0 ? [] : _ref6$val,
9571
+ index = _ref6.index,
9572
+ t = _ref6.t,
9573
+ updateHandle = _ref6.updateHandle,
9574
+ disabled = _ref6.disabled,
9575
+ hostUrl = _ref6.hostUrl,
9576
+ platform = _ref6.platform;
8256
9577
  var finalPictures = val.map(function (item) {
8257
9578
  return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
8258
9579
  });
@@ -8263,38 +9584,41 @@ var EditPictureRender = function EditPictureRender(_ref5) {
8263
9584
  border: '1px solid #d9d9d9',
8264
9585
  padding: '3px'
8265
9586
  }
8266
- }, !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
9587
+ }, t.isEdit || disabled ? /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
9588
+ style: {
9589
+ fontSize: 18,
9590
+ color: '#aaa'
9591
+ }
9592
+ }) : /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
8267
9593
  content: /*#__PURE__*/React__default['default'].createElement(ApaasUploadAsync$1, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
8268
9594
  value: finalPictures,
8269
9595
  onChange: function onChange(e) {
8270
9596
  return updateHandle(e, index, t.key);
8271
9597
  },
8272
- hostUrl: hostUrl
9598
+ hostUrl: hostUrl,
9599
+ uniqueKey: t.key,
9600
+ platform: platform
8273
9601
  })),
8274
9602
  trigger: "click"
8275
9603
  }, /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
8276
9604
  style: {
8277
9605
  fontSize: 18
8278
9606
  }
8279
- })) : /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
8280
- style: {
8281
- fontSize: 18,
8282
- color: '#333'
8283
- }
8284
- }), /*#__PURE__*/React__default['default'].createElement(PictureRender, {
9607
+ })), /*#__PURE__*/React__default['default'].createElement(PictureRender, {
8285
9608
  value: finalPictures,
8286
9609
  width: 24,
8287
9610
  hostUrl: hostUrl
8288
9611
  }));
8289
9612
  };
8290
- var EditFileRender = function EditFileRender(_ref6) {
8291
- var _ref6$val = _ref6.val,
8292
- val = _ref6$val === void 0 ? [] : _ref6$val,
8293
- index = _ref6.index,
8294
- t = _ref6.t,
8295
- updateHandle = _ref6.updateHandle,
8296
- disabled = _ref6.disabled,
8297
- hostUrl = _ref6.hostUrl;
9613
+ var EditFileRender = function EditFileRender(_ref7) {
9614
+ var _ref7$val = _ref7.val,
9615
+ val = _ref7$val === void 0 ? [] : _ref7$val,
9616
+ index = _ref7.index,
9617
+ t = _ref7.t,
9618
+ updateHandle = _ref7.updateHandle,
9619
+ disabled = _ref7.disabled,
9620
+ hostUrl = _ref7.hostUrl,
9621
+ platform = _ref7.platform;
8298
9622
  return /*#__PURE__*/React__default['default'].createElement("div", {
8299
9623
  style: {
8300
9624
  display: 'flex',
@@ -8302,37 +9626,38 @@ var EditFileRender = function EditFileRender(_ref6) {
8302
9626
  border: '1px solid #d9d9d9',
8303
9627
  padding: '3px'
8304
9628
  }
8305
- }, !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
9629
+ }, t.isEdit || disabled ? /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
9630
+ style: {
9631
+ fontSize: 18,
9632
+ color: '#aaa'
9633
+ }
9634
+ }) : /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
8306
9635
  content: /*#__PURE__*/React__default['default'].createElement(ApaasUploadFile, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
8307
9636
  value: val,
8308
9637
  onChange: function onChange(e) {
8309
9638
  return updateHandle(e, index, t.key);
8310
9639
  },
8311
- hostUrl: hostUrl
9640
+ hostUrl: hostUrl,
9641
+ platform: platform
8312
9642
  })),
8313
9643
  trigger: "click"
8314
9644
  }, /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
8315
9645
  style: {
8316
9646
  fontSize: 18
8317
9647
  }
8318
- })) : /*#__PURE__*/React__default['default'].createElement(icons.PlusSquareOutlined, {
8319
- style: {
8320
- fontSize: 18,
8321
- color: '#333'
8322
- }
8323
- }), /*#__PURE__*/React__default['default'].createElement(FileRender, {
9648
+ })), /*#__PURE__*/React__default['default'].createElement(FileRender, {
8324
9649
  fileList: val,
8325
9650
  canDownload: true
8326
9651
  }));
8327
9652
  };
8328
9653
  var EditRenderMap = {
8329
- INPUT: function INPUT(_ref7) {
8330
- var val = _ref7.val,
8331
- record = _ref7.record,
8332
- index = _ref7.index,
8333
- t = _ref7.t,
8334
- updateHandle = _ref7.updateHandle,
8335
- disabled = _ref7.disabled;
9654
+ INPUT: function INPUT(_ref8) {
9655
+ var val = _ref8.val,
9656
+ record = _ref8.record,
9657
+ index = _ref8.index,
9658
+ t = _ref8.t,
9659
+ updateHandle = _ref8.updateHandle,
9660
+ disabled = _ref8.disabled;
8336
9661
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
8337
9662
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
8338
9663
  style: {
@@ -8355,13 +9680,13 @@ var EditRenderMap = {
8355
9680
  }
8356
9681
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
8357
9682
  },
8358
- TEXTAREA: function TEXTAREA(_ref8) {
8359
- var val = _ref8.val,
8360
- record = _ref8.record,
8361
- index = _ref8.index,
8362
- t = _ref8.t,
8363
- updateHandle = _ref8.updateHandle,
8364
- disabled = _ref8.disabled;
9683
+ TEXTAREA: function TEXTAREA(_ref9) {
9684
+ var val = _ref9.val,
9685
+ record = _ref9.record,
9686
+ index = _ref9.index,
9687
+ t = _ref9.t,
9688
+ updateHandle = _ref9.updateHandle,
9689
+ disabled = _ref9.disabled;
8365
9690
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
8366
9691
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
8367
9692
  style: {
@@ -8384,62 +9709,41 @@ var EditRenderMap = {
8384
9709
  }
8385
9710
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
8386
9711
  },
8387
- PICTURE: function PICTURE(_ref9) {
8388
- var val = _ref9.val,
8389
- record = _ref9.record,
8390
- index = _ref9.index,
8391
- t = _ref9.t,
8392
- updateHandle = _ref9.updateHandle,
8393
- disabled = _ref9.disabled;
8394
- return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
8395
- val: val,
8396
- t: t,
8397
- disabled: disabled,
8398
- index: index,
8399
- updateHandle: updateHandle,
8400
- hostUrl: hostUrl
8401
- }) : /*#__PURE__*/React__default['default'].createElement(PictureRender, {
8402
- value: val,
8403
- width: 20,
8404
- hostUrl: hostUrl
8405
- });
8406
- },
8407
- FILE: function FILE(_ref10) {
9712
+ PICTURE: function PICTURE(_ref10) {
8408
9713
  var val = _ref10.val,
8409
9714
  record = _ref10.record,
8410
9715
  index = _ref10.index,
8411
9716
  t = _ref10.t,
8412
9717
  updateHandle = _ref10.updateHandle,
8413
- disabled = _ref10.disabled;
8414
- return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9718
+ disabled = _ref10.disabled,
9719
+ platform = _ref10.platform;
9720
+ return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
8415
9721
  val: val,
8416
9722
  t: t,
8417
9723
  disabled: disabled,
8418
9724
  index: index,
8419
9725
  updateHandle: updateHandle,
8420
- hostUrl: hostUrl
8421
- }) : /*#__PURE__*/React__default['default'].createElement(FileRender, {
8422
- fileList: val,
8423
- canDownload: true
9726
+ hostUrl: hostUrl,
9727
+ platform: platform
8424
9728
  });
8425
9729
  },
8426
- RADIO: function RADIO(_ref11) {
9730
+ FILE: function FILE(_ref11) {
8427
9731
  var val = _ref11.val,
8428
9732
  record = _ref11.record,
8429
9733
  index = _ref11.index,
8430
9734
  t = _ref11.t,
8431
9735
  updateHandle = _ref11.updateHandle,
8432
- disabled = _ref11.disabled,
8433
- componentDto = _ref11.componentDto;
8434
- return /*#__PURE__*/React__default['default'].createElement(ApaasRadio, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8435
- value: val,
8436
- disabled: t.isEdit || disabled,
8437
- onChange: function onChange(e) {
8438
- return updateHandle(e, index, t.key);
8439
- }
8440
- }));
9736
+ disabled = _ref11.disabled;
9737
+ return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9738
+ val: val,
9739
+ t: t,
9740
+ disabled: disabled,
9741
+ index: index,
9742
+ updateHandle: updateHandle,
9743
+ hostUrl: hostUrl
9744
+ });
8441
9745
  },
8442
- SELECT: function SELECT(_ref12) {
9746
+ RADIO: function RADIO(_ref12) {
8443
9747
  var val = _ref12.val,
8444
9748
  record = _ref12.record,
8445
9749
  index = _ref12.index,
@@ -8450,12 +9754,13 @@ var EditRenderMap = {
8450
9754
  return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8451
9755
  value: val,
8452
9756
  disabled: t.isEdit || disabled,
9757
+ allowClear: true,
8453
9758
  onChange: function onChange(e) {
8454
9759
  return updateHandle(e, index, t.key);
8455
9760
  }
8456
9761
  }));
8457
9762
  },
8458
- CHECKBOX: function CHECKBOX(_ref13) {
9763
+ SELECT: function SELECT(_ref13) {
8459
9764
  var val = _ref13.val,
8460
9765
  record = _ref13.record,
8461
9766
  index = _ref13.index,
@@ -8463,15 +9768,16 @@ var EditRenderMap = {
8463
9768
  updateHandle = _ref13.updateHandle,
8464
9769
  disabled = _ref13.disabled,
8465
9770
  componentDto = _ref13.componentDto;
8466
- return /*#__PURE__*/React__default['default'].createElement(ApaasCheckbox, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9771
+ return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
8467
9772
  value: val,
8468
9773
  disabled: t.isEdit || disabled,
9774
+ allowClear: true,
8469
9775
  onChange: function onChange(e) {
8470
9776
  return updateHandle(e, index, t.key);
8471
9777
  }
8472
9778
  }));
8473
9779
  },
8474
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref14) {
9780
+ CHECKBOX: function CHECKBOX(_ref14) {
8475
9781
  var val = _ref14.val,
8476
9782
  record = _ref14.record,
8477
9783
  index = _ref14.index,
@@ -8486,6 +9792,22 @@ var EditRenderMap = {
8486
9792
  return updateHandle(e, index, t.key);
8487
9793
  }
8488
9794
  }));
9795
+ },
9796
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9797
+ var val = _ref15.val,
9798
+ record = _ref15.record,
9799
+ index = _ref15.index,
9800
+ t = _ref15.t,
9801
+ updateHandle = _ref15.updateHandle,
9802
+ disabled = _ref15.disabled,
9803
+ componentDto = _ref15.componentDto;
9804
+ return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9805
+ value: val,
9806
+ disabled: t.isEdit || disabled,
9807
+ onChange: function onChange(e) {
9808
+ return updateHandle(e, index, t.key);
9809
+ }
9810
+ }));
8489
9811
  }
8490
9812
  };
8491
9813
 
@@ -8608,7 +9930,7 @@ var SubForm = function SubForm(props) {
8608
9930
  title: '序号',
8609
9931
  width: 50,
8610
9932
  render: function render(val, record, index) {
8611
- return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
9933
+ return disabled ? /*#__PURE__*/React__default['default'].createElement("div", null, index + 1) : /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
8612
9934
  index: index,
8613
9935
  hoveredRowIndex: hoveredRowIndex,
8614
9936
  handleClick: function handleClick() {
@@ -8637,7 +9959,8 @@ var SubForm = function SubForm(props) {
8637
9959
  disabled: disabled,
8638
9960
  componentDto: componentDtoList.find(function (item) {
8639
9961
  return item.uniqueKey === t.key;
8640
- })
9962
+ }),
9963
+ platform: platform
8641
9964
  }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
8642
9965
  style: {
8643
9966
  width: '100%'
@@ -8708,18 +10031,9 @@ var SubForm = function SubForm(props) {
8708
10031
  workOrderComponentType: next.workOrderComponentType,
8709
10032
  defaultValue: ''
8710
10033
  };
8711
- if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT'].includes(next.workOrderComponentType)) {
10034
+ if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8712
10035
  item.defaultValue = [];
8713
10036
  }
8714
- if (['RADIO', 'CHECKBOX'].includes(next.workOrderComponentType)) {
8715
- item.defaultValue = {
8716
- value: next.workOrderComponentType === 'RADIO' ? '' : [],
8717
- other: ''
8718
- };
8719
- }
8720
- if (['SELECT'].includes(next.workOrderComponentType)) {
8721
- item.defaultValue = '';
8722
- }
8723
10037
  prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
8724
10038
  return prv;
8725
10039
  }, {});
@@ -8758,7 +10072,6 @@ var SubForm = function SubForm(props) {
8758
10072
  newValue.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
8759
10073
  uuid: kmkfUtils.uuid()
8760
10074
  }));
8761
- console.log('newValue', newValue);
8762
10075
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
8763
10076
  };
8764
10077
  var onScrollCapture = function onScrollCapture(e) {
@@ -8777,8 +10090,8 @@ var SubForm = function SubForm(props) {
8777
10090
  var _ref2,
8778
10091
  _ref2$pageNo,
8779
10092
  pageNo,
8780
- _yield$request,
8781
- templateDetail,
10093
+ _ref2$componentList,
10094
+ componentList,
8782
10095
  params,
8783
10096
  res,
8784
10097
  data,
@@ -8790,25 +10103,13 @@ var SubForm = function SubForm(props) {
8790
10103
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8791
10104
  while (1) switch (_context.prev = _context.next) {
8792
10105
  case 0:
8793
- _ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
10106
+ _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;
8794
10107
  if (!disabled) {
8795
10108
  _context.next = 3;
8796
10109
  break;
8797
10110
  }
8798
10111
  return _context.abrupt("return");
8799
10112
  case 3:
8800
- _context.next = 5;
8801
- return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
8802
- method: 'post',
8803
- data: {
8804
- templateType: 'QY_CUSTOM',
8805
- uniqueKey: workOrderTemplateId
8806
- }
8807
- });
8808
- case 5:
8809
- _yield$request = _context.sent;
8810
- templateDetail = _yield$request.data;
8811
- setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
8812
10113
  params = {
8813
10114
  flowNodeId: nodeId,
8814
10115
  flowTemplateKey: flowTemplateKey === null || flowTemplateKey === void 0 ? void 0 : flowTemplateKey[1],
@@ -8834,17 +10135,17 @@ var SubForm = function SubForm(props) {
8834
10135
  value: [inputValue]
8835
10136
  }];
8836
10137
  }
8837
- _context.next = 12;
10138
+ _context.next = 7;
8838
10139
  return extendRequest('/qy/view/workOrderList', {
8839
10140
  method: 'post',
8840
10141
  data: params
8841
10142
  });
8842
- case 12:
10143
+ case 7:
8843
10144
  res = _context.sent;
8844
10145
  data = res.data, success = res.success;
8845
10146
  if (success) {
8846
- transDataSourceItem = kmkfUtils.transformWorkOrderData(templateDetail.componentDtoList, 'init');
8847
- headerKeys = tableHeader.map(function (t) {
10147
+ transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'init');
10148
+ headerKeys = correlationList.map(function (t) {
8848
10149
  return t.key;
8849
10150
  });
8850
10151
  newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
@@ -8868,7 +10169,7 @@ var SubForm = function SubForm(props) {
8868
10169
  setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
8869
10170
  isRequest.current = false;
8870
10171
  }
8871
- case 15:
10172
+ case 10:
8872
10173
  case "end":
8873
10174
  return _context.stop();
8874
10175
  }
@@ -8878,10 +10179,61 @@ var SubForm = function SubForm(props) {
8878
10179
  return _ref.apply(this, arguments);
8879
10180
  };
8880
10181
  }();
10182
+ var getTemplateDetail = /*#__PURE__*/function () {
10183
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
10184
+ var _yield$request, templateDetail;
10185
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10186
+ while (1) switch (_context2.prev = _context2.next) {
10187
+ case 0:
10188
+ _context2.next = 2;
10189
+ return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
10190
+ method: 'post',
10191
+ data: {
10192
+ templateType: 'QY_CUSTOM',
10193
+ uniqueKey: workOrderTemplateId
10194
+ }
10195
+ });
10196
+ case 2:
10197
+ _yield$request = _context2.sent;
10198
+ templateDetail = _yield$request.data;
10199
+ setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
10200
+ return _context2.abrupt("return", (templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
10201
+ case 6:
10202
+ case "end":
10203
+ return _context2.stop();
10204
+ }
10205
+ }, _callee2);
10206
+ }));
10207
+ return function getTemplateDetail() {
10208
+ return _ref3.apply(this, arguments);
10209
+ };
10210
+ }();
10211
+ var initHandle = /*#__PURE__*/function () {
10212
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
10213
+ var componentList;
10214
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
10215
+ while (1) switch (_context3.prev = _context3.next) {
10216
+ case 0:
10217
+ _context3.next = 2;
10218
+ return getTemplateDetail();
10219
+ case 2:
10220
+ componentList = _context3.sent;
10221
+ getWorkOrderList({
10222
+ pageNo: 1,
10223
+ componentList: componentList
10224
+ });
10225
+ case 4:
10226
+ case "end":
10227
+ return _context3.stop();
10228
+ }
10229
+ }, _callee3);
10230
+ }));
10231
+ return function initHandle() {
10232
+ return _ref4.apply(this, arguments);
10233
+ };
10234
+ }();
8881
10235
  React.useEffect(function () {
8882
- getWorkOrderList({
8883
- pageNo: 1
8884
- });
10236
+ initHandle();
8885
10237
  }, []);
8886
10238
  ahooks.useUpdateEffect(function () {
8887
10239
  setPageNo(1);
@@ -11377,7 +12729,7 @@ styleInject(css_248z$9);
11377
12729
 
11378
12730
  var Item = antd.Form.Item;
11379
12731
  var LogisticsInterception = function LogisticsInterception(props) {
11380
- var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
12732
+ var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
11381
12733
  var LogisticsAddress = kmkfUtils.LogisticsAddressData.getInstance();
11382
12734
  var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
11383
12735
  var address = kmkfUtils.AddressData.getInstance();
@@ -11575,17 +12927,19 @@ var LogisticsInterception = function LogisticsInterception(props) {
11575
12927
  status: '',
11576
12928
  reason: ''
11577
12929
  },
12930
+ interceptLogisticsApiStatusReason: undefined,
11578
12931
  interceptLogisticsUserKCode: undefined,
11579
12932
  interceptLogisticsUserSecretKey: undefined
11580
12933
  });
11581
12934
  }
11582
12935
  if (type === 'interceptLogisticsApiStatus') {
11583
- var _value$interceptLogis;
12936
+ var _value$interceptLogis, _value$interceptLogis2;
11584
12937
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
11585
12938
  interceptLogisticsApiStatus: {
11586
12939
  status: val,
11587
12940
  reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
11588
- }
12941
+ },
12942
+ interceptLogisticsApiStatusReason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.reason) || ''
11589
12943
  });
11590
12944
  }
11591
12945
  if (type === 'interceptLogisticsUserKCode') {
@@ -11808,7 +13162,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
11808
13162
  label: '接口状态',
11809
13163
  key: 'interceptLogisticsApiStatus'
11810
13164
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11811
- value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.status) || null,
13165
+ value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.status) || null,
11812
13166
  disabled: true,
11813
13167
  style: {
11814
13168
  width: '200px'
@@ -11824,11 +13178,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
11824
13178
  label: '失败',
11825
13179
  value: '失败'
11826
13180
  }]
11827
- }), (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
13181
+ }), (value === null || value === void 0 ? void 0 : (_value$interceptLogis4 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis4 === void 0 ? void 0 : _value$interceptLogis4.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
11828
13182
  style: {
11829
13183
  color: 'red'
11830
13184
  }
11831
- }, "\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));
13185
+ }, "\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__default['default'].createElement(Item, {
13186
+ label: '接口状态原因',
13187
+ key: 'interceptLogisticsApiStatusReason'
13188
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13189
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsApiStatusReason,
13190
+ disabled: true,
13191
+ placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13192
+ onChange: function onChange(e) {
13193
+ return changeHandle(e.target.value, 'interceptLogisticsApiStatusReason');
13194
+ }
13195
+ })));
11832
13196
  };
11833
13197
 
11834
13198
  var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
@@ -12309,6 +13673,7 @@ var jstGoods = function jstGoods(props) {
12309
13673
  var _props$value = props.value,
12310
13674
  value = _props$value === void 0 ? [] : _props$value,
12311
13675
  onChange = props.onChange,
13676
+ _onBlur = props.onBlur,
12312
13677
  disabled = props.disabled,
12313
13678
  _props$type = props.type,
12314
13679
  type = _props$type === void 0 ? 1 : _props$type,
@@ -12323,7 +13688,7 @@ var jstGoods = function jstGoods(props) {
12323
13688
  changeIndex = _useState2[0],
12324
13689
  setChangeIndex = _useState2[1]; //选中的包裹
12325
13690
  var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
12326
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
13691
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
12327
13692
  var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
12328
13693
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
12329
13694
  React.useEffect(function () {
@@ -12438,6 +13803,9 @@ var jstGoods = function jstGoods(props) {
12438
13803
  onChange: function onChange(e) {
12439
13804
  return changeInputHandle(e.target.value, 'logisticsCode');
12440
13805
  },
13806
+ onBlur: function onBlur(e) {
13807
+ return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value);
13808
+ },
12441
13809
  value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.logisticsCode
12442
13810
  }) : null) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
12443
13811
  disabled: disabled,
@@ -15619,7 +16987,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
15619
16987
  maxTagCount: "responsive",
15620
16988
  valueMapping: "uniqueKey",
15621
16989
  style: {
15622
- width: '220px'
16990
+ width: '190px'
15623
16991
  }
15624
16992
  }, props));
15625
16993
  } : componentMap$1[filterComponentType];
@@ -15886,7 +17254,7 @@ var SearchHeader = function SearchHeader(_ref) {
15886
17254
  hidden: !show,
15887
17255
  style: {
15888
17256
  marginRight: '4px',
15889
- minWidth: '220px'
17257
+ minWidth: '190px'
15890
17258
  },
15891
17259
  key: item.id
15892
17260
  }, /*#__PURE__*/React__default['default'].createElement(FilterSelectOption, _objectSpread2({
@@ -19343,7 +20711,7 @@ var getColumns$8 = function getColumns(_ref) {
19343
20711
  SKX_GOODS: [{
19344
20712
  dataIndex: 'skuEcode',
19345
20713
  title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
19346
- width: 200
20714
+ width: 250
19347
20715
  }, {
19348
20716
  dataIndex: 'subOrderId',
19349
20717
  title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
@@ -19362,7 +20730,7 @@ var getColumns$8 = function getColumns(_ref) {
19362
20730
  SKX_RETURN_GOODS: [{
19363
20731
  dataIndex: 'returnSkuEcode',
19364
20732
  title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
19365
- width: 200
20733
+ width: 300
19366
20734
  }, {
19367
20735
  dataIndex: 'returnSubOrderId',
19368
20736
  title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
@@ -19675,7 +21043,7 @@ var isErpType = {
19675
21043
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
19676
21044
  }
19677
21045
  };
19678
- var processGoods = function processGoods(_ref) {
21046
+ var processGoods$1 = function processGoods(_ref) {
19679
21047
  var list = _ref.list,
19680
21048
  type = _ref.type,
19681
21049
  canUpdateNumber = _ref.canUpdateNumber,
@@ -19684,35 +21052,35 @@ var processGoods = function processGoods(_ref) {
19684
21052
  var newList = [];
19685
21053
  // 根据商品类型处理数据
19686
21054
  if (isErpType.isWdt(type)) {
19687
- newList = processWdtGoods({
21055
+ newList = processWdtGoods$1({
19688
21056
  list: list,
19689
21057
  type: type,
19690
21058
  canUpdateNumber: canUpdateNumber,
19691
21059
  source: source
19692
21060
  });
19693
21061
  } else if (isErpType.isBsE3(type)) {
19694
- newList = processBsE3Goods({
21062
+ newList = processBsE3Goods$1({
19695
21063
  list: list,
19696
21064
  type: type,
19697
21065
  canUpdateNumber: canUpdateNumber,
19698
21066
  source: source
19699
21067
  });
19700
21068
  } else if (isErpType.isGy(type)) {
19701
- newList = processGyGoods({
21069
+ newList = processGyGoods$1({
19702
21070
  list: list,
19703
21071
  type: type,
19704
21072
  canUpdateNumber: canUpdateNumber,
19705
21073
  source: source
19706
21074
  });
19707
21075
  } else if (isErpType.isJst(type)) {
19708
- newList = processJstGoods({
21076
+ newList = processJstGoods$1({
19709
21077
  list: list,
19710
21078
  type: type,
19711
21079
  canUpdateNumber: canUpdateNumber,
19712
21080
  source: source
19713
21081
  });
19714
21082
  } else if (isErpType.isKm(type)) {
19715
- newList = processKmGoods({
21083
+ newList = processKmGoods$1({
19716
21084
  list: list,
19717
21085
  type: type,
19718
21086
  canUpdateNumber: canUpdateNumber,
@@ -19729,7 +21097,7 @@ var processGoods = function processGoods(_ref) {
19729
21097
  return newList;
19730
21098
  };
19731
21099
  // 处理不同类型的商品数据
19732
- var processWdtGoods = function processWdtGoods(_ref2) {
21100
+ var processWdtGoods$1 = function processWdtGoods(_ref2) {
19733
21101
  var list = _ref2.list,
19734
21102
  type = _ref2.type,
19735
21103
  canUpdateNumber = _ref2.canUpdateNumber;
@@ -19750,7 +21118,7 @@ var processWdtGoods = function processWdtGoods(_ref2) {
19750
21118
  return processedItem;
19751
21119
  });
19752
21120
  };
19753
- var processBsE3Goods = function processBsE3Goods(_ref3) {
21121
+ var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
19754
21122
  var list = _ref3.list,
19755
21123
  canUpdateNumber = _ref3.canUpdateNumber;
19756
21124
  return list.map(function (item) {
@@ -19787,7 +21155,7 @@ var processBsE3Goods = function processBsE3Goods(_ref3) {
19787
21155
  });
19788
21156
  });
19789
21157
  };
19790
- var processGyGoods = function processGyGoods(_ref4) {
21158
+ var processGyGoods$1 = function processGyGoods(_ref4) {
19791
21159
  var list = _ref4.list,
19792
21160
  source = _ref4.source;
19793
21161
  var isFormWorkOrder = source === 'workOrder';
@@ -19816,7 +21184,7 @@ var processGyGoods = function processGyGoods(_ref4) {
19816
21184
  });
19817
21185
  });
19818
21186
  };
19819
- var processJstGoods = function processJstGoods(_ref5) {
21187
+ var processJstGoods$1 = function processJstGoods(_ref5) {
19820
21188
  var list = _ref5.list;
19821
21189
  return list.map(function (item) {
19822
21190
  return {
@@ -19835,7 +21203,7 @@ var processJstGoods = function processJstGoods(_ref5) {
19835
21203
  };
19836
21204
  });
19837
21205
  };
19838
- var processKmGoods = function processKmGoods(_ref6) {
21206
+ var processKmGoods$1 = function processKmGoods(_ref6) {
19839
21207
  var list = _ref6.list,
19840
21208
  type = _ref6.type;
19841
21209
  var initParamsMap = {
@@ -20331,7 +21699,7 @@ var GoodItem$1 = function GoodItem(props) {
20331
21699
  }].concat(_toConsumableArray(columns));
20332
21700
  }, []);
20333
21701
  var onSubmit = function onSubmit(list) {
20334
- var newList = processGoods({
21702
+ var newList = processGoods$1({
20335
21703
  list: list,
20336
21704
  canUpdateNumber: canUpdateNumber,
20337
21705
  type: type,
@@ -22304,6 +23672,7 @@ var OrderSubForm = function OrderSubForm(props) {
22304
23672
  manual = props.manual,
22305
23673
  correlationList = props.subConfig.correlationList,
22306
23674
  effects = props.effects;
23675
+ console.log('effects', effects);
22307
23676
  var valueRef = React.useRef(value);
22308
23677
  React.useEffect(function () {
22309
23678
  valueRef.current = value;
@@ -22365,7 +23734,7 @@ var OrderSubForm = function OrderSubForm(props) {
22365
23734
  width: 80,
22366
23735
  ellipsis: true,
22367
23736
  render: function render(val, record, index) {
22368
- return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
23737
+ return disabled ? /*#__PURE__*/React__default['default'].createElement("div", null, index + 1) : /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
22369
23738
  index: index,
22370
23739
  hoveredRowIndex: hoveredRowIndex,
22371
23740
  handleClick: function handleClick() {
@@ -22428,8 +23797,7 @@ var OrderSubForm = function OrderSubForm(props) {
22428
23797
  });
22429
23798
  }
22430
23799
  return list;
22431
- }, [newTableHeader, disabled, updateHandle]);
22432
- console.log('column', column);
23800
+ }, [newTableHeader, disabled, updateHandle, hoveredRowIndex]);
22433
23801
  var orderModalColumns = React.useMemo(function () {
22434
23802
  return [{
22435
23803
  dataIndex: '',
@@ -22484,11 +23852,16 @@ var OrderSubForm = function OrderSubForm(props) {
22484
23852
  }));
22485
23853
  };
22486
23854
  var getDataSourceAsync = function getDataSourceAsync() {
22487
- var _effects$form;
22488
- var _ref = (effects === null || effects === void 0 ? void 0 : (_effects$form = effects.form) === null || _effects$form === void 0 ? void 0 : _effects$form.getFieldsValue()) || {},
22489
- _ref$shopId = _ref.shopId,
22490
- shopId = _ref$shopId === void 0 ? '' : _ref$shopId;
22491
- return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId ? getOrderListSingleton$4({
23855
+ var _ref = effects || {},
23856
+ shopList = _ref.shopList,
23857
+ form = _ref.form;
23858
+ var _ref2 = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {},
23859
+ _ref2$shopId = _ref2.shopId,
23860
+ shopId = _ref2$shopId === void 0 ? '' : _ref2$shopId;
23861
+ var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
23862
+ return !item.notJoin && item.shopId == shopId;
23863
+ });
23864
+ return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$4({
22492
23865
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
22493
23866
  shopId: shopId
22494
23867
  }).then(function (data) {
@@ -22496,7 +23869,7 @@ var OrderSubForm = function OrderSubForm(props) {
22496
23869
  onChange(_objectSpread2(_objectSpread2({}, value), {}, {
22497
23870
  allOrders: allOrders
22498
23871
  }));
22499
- }) : Promise.resolve();
23872
+ }).catch(console.debug) : Promise.resolve();
22500
23873
  };
22501
23874
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
22502
23875
  var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
@@ -25933,13 +27306,11 @@ var typeMap$6 = {
25933
27306
  }
25934
27307
  },
25935
27308
  asyncGetData: function () {
25936
- var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(tradeId) {
27309
+ var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
25937
27310
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25938
27311
  while (1) switch (_context.prev = _context.next) {
25939
27312
  case 0:
25940
- return _context.abrupt("return", kmkfUtils.servers.SKX.querySkxOrderDetailSingleton({
25941
- tid: tradeId
25942
- }).then(function (res) {
27313
+ return _context.abrupt("return", kmkfUtils.servers.SKX.querySkxOrderDetailSingleton(params).then(function (res) {
25943
27314
  var orderDetailInfoList = res.data.orderDetailInfoList || [];
25944
27315
  return orderDetailInfoList;
25945
27316
  }));
@@ -25974,13 +27345,11 @@ var typeMap$6 = {
25974
27345
  }
25975
27346
  },
25976
27347
  asyncGetData: function () {
25977
- var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(tradeId) {
27348
+ var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
25978
27349
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
25979
27350
  while (1) switch (_context2.prev = _context2.next) {
25980
27351
  case 0:
25981
- return _context2.abrupt("return", kmkfUtils.servers.SKX.queryReturnOrderDetailSingleton({
25982
- tid: tradeId
25983
- }).then(function (res) {
27352
+ return _context2.abrupt("return", kmkfUtils.servers.SKX.queryReturnOrderDetailSingleton(params).then(function (res) {
25984
27353
  var skqReturnOrderDetailInfoDtos = res.data.skqReturnOrderDetailInfoDtos || [];
25985
27354
  return skqReturnOrderDetailInfoDtos;
25986
27355
  }));
@@ -26045,32 +27414,42 @@ var IdInputSelect = function IdInputSelect(props) {
26045
27414
  }, [value]);
26046
27415
  var asyncQueryData = /*#__PURE__*/function () {
26047
27416
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
26048
- var tradeId;
27417
+ var _form$getFieldValue, _form$getFieldValue$;
27418
+ var tradeId, skxReturnExpressCode, blurFrom;
26049
27419
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
26050
27420
  while (1) switch (_context3.prev = _context3.next) {
26051
27421
  case 0:
26052
27422
  tradeId = form.getFieldValue('m3ap1EvEyd');
27423
+ 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;
27424
+ blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
26053
27425
  console.log('asyncQueryData---', {
27426
+ skxReturnExpressCode: skxReturnExpressCode,
27427
+ blurFrom: blurFrom,
26054
27428
  tradeId: tradeId,
26055
27429
  tradeIdRef: tradeIdRef.current,
26056
27430
  form: form
26057
27431
  });
26058
- if (tradeId) {
26059
- _context3.next = 5;
27432
+ if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
27433
+ _context3.next = 7;
26060
27434
  break;
26061
27435
  }
26062
27436
  setDataSource([]);
26063
27437
  return _context3.abrupt("return");
26064
- case 5:
27438
+ case 7:
26065
27439
  setSpinning(true);
26066
- typeMap$6[type].asyncGetData(tradeId).then(function (data) {
27440
+ // 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
27441
+ typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
27442
+ expressCode: skxReturnExpressCode
27443
+ } : {
27444
+ tid: tradeId
27445
+ }).then(function (data) {
26067
27446
  setDataSource(data);
26068
27447
  }).catch(function () {
26069
27448
  setDataSource([]);
26070
27449
  }).finally(function () {
26071
27450
  setSpinning(false);
26072
27451
  });
26073
- case 7:
27452
+ case 9:
26074
27453
  case "end":
26075
27454
  return _context3.stop();
26076
27455
  }
@@ -26167,7 +27546,14 @@ var IdInputSelect = function IdInputSelect(props) {
26167
27546
  value: value,
26168
27547
  isInput: isInput
26169
27548
  });
26170
- onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && !!isInput);
27549
+ var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
27550
+ onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
27551
+ // 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
27552
+ isReturnBillNoChange && (_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur({
27553
+ target: {
27554
+ value: val
27555
+ }
27556
+ }));
26171
27557
  // 关闭浮窗
26172
27558
  setPopoverVisible(false);
26173
27559
  };