@kmkf-fe-packages/basic-components 2.2.12 → 2.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
|
|
2
|
-
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form,
|
|
3
|
-
import { EyeOutlined, DeleteOutlined, CloseOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
2
|
+
import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Empty, Tag } from 'antd';
|
|
3
|
+
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
+
import every from 'lodash/every';
|
|
8
|
+
import maxBy from 'lodash/maxBy';
|
|
7
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
8
10
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
11
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
@@ -8046,6 +8048,1810 @@ function withFormItem(WrappedComponent) {
|
|
|
8046
8048
|
*/
|
|
8047
8049
|
var extendRequest = extend$1({});
|
|
8048
8050
|
|
|
8051
|
+
var updateWorkTypeKeys = {
|
|
8052
|
+
BASIC_GRADE: 'basicGrade',
|
|
8053
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
8054
|
+
SHOP_NAME_INPUT: 'shopName',
|
|
8055
|
+
RECEIVER_NAME_INPUT: 'receiveName',
|
|
8056
|
+
RECEIVER_MOBILE_INPUT: 'receiveMobile',
|
|
8057
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
8058
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
8059
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
8060
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
|
|
8061
|
+
TRADE_SIGNING_DATETIME: 'tradeSigningDateTime',
|
|
8062
|
+
ACTUAL_PAYMENT: 'actualPayment',
|
|
8063
|
+
SYSTEM_ORDER_NO: 'systemOrderNo',
|
|
8064
|
+
BS_SIGNING_TIME: 'bsSigningTime',
|
|
8065
|
+
BS_SEND_TIME: 'bsSendTime',
|
|
8066
|
+
BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime',
|
|
8067
|
+
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
8068
|
+
BS_PACKAGE_WEIGHT: 'bsPackageWeight',
|
|
8069
|
+
BS_DEPOSIT: 'bsDeposit',
|
|
8070
|
+
NEW_PAYMENT_STATUS: 'newPaymentStatus',
|
|
8071
|
+
BUSINESS_ORDER_NO: 'businessOrderNo',
|
|
8072
|
+
PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
|
|
8073
|
+
ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
|
|
8074
|
+
WDT_SHOP: 'shopCode'
|
|
8075
|
+
};
|
|
8076
|
+
var systemOrderMap = {
|
|
8077
|
+
BS_SYSTEM_ORDER: {
|
|
8078
|
+
no: 'bsSystemOrderNo',
|
|
8079
|
+
ids: 'bsSystemSelectIds',
|
|
8080
|
+
order: 'bsSystemShowOrder'
|
|
8081
|
+
},
|
|
8082
|
+
KM_SYSTEM_ORDER: {
|
|
8083
|
+
no: 'kmSystemOrderNo',
|
|
8084
|
+
ids: 'kmSystemSelectIds',
|
|
8085
|
+
order: 'kmSystemShowOrder'
|
|
8086
|
+
},
|
|
8087
|
+
WLN_SYSTEM_ORDER: {
|
|
8088
|
+
no: 'wlnSystemOrderNo',
|
|
8089
|
+
ids: 'wlnSystemSelectIds',
|
|
8090
|
+
order: 'wlnSystemShowOrder'
|
|
8091
|
+
},
|
|
8092
|
+
WDT_SYSTEM_ORDER: {
|
|
8093
|
+
no: 'wdtSystemOrderNo',
|
|
8094
|
+
ids: 'wdtSystemSelectIds',
|
|
8095
|
+
order: 'wdtSystemShowOrder'
|
|
8096
|
+
},
|
|
8097
|
+
BS_E3_SYSTEM_ORDER: {
|
|
8098
|
+
no: 'bsE3SystemOrderNo',
|
|
8099
|
+
ids: 'bsE3SystemSelectIds',
|
|
8100
|
+
order: 'bsE3SystemShowOrder'
|
|
8101
|
+
},
|
|
8102
|
+
GY_SYSTEM_ORDER: {
|
|
8103
|
+
no: 'gySystemOrderNo',
|
|
8104
|
+
ids: 'gySystemSelectIds',
|
|
8105
|
+
order: 'gySystemShowOrder'
|
|
8106
|
+
},
|
|
8107
|
+
JST_SYSTEM_ORDER: {
|
|
8108
|
+
no: 'jstSystemOrderNo',
|
|
8109
|
+
ids: 'jstSystemSelectIds',
|
|
8110
|
+
order: 'jstSystemShowOrder'
|
|
8111
|
+
}
|
|
8112
|
+
};
|
|
8113
|
+
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
8114
|
+
var processSingleFieldTypeMapping = {
|
|
8115
|
+
SKX_OUTBOUND_NOTICE_NO: 'skxOutboundNoticeNo',
|
|
8116
|
+
SKX_SHOP_NAME: 'skxShopName',
|
|
8117
|
+
SKX_WAREHOUSE: 'skxWarehouse',
|
|
8118
|
+
SKX_ORDER_TYPE: 'skxOrderType',
|
|
8119
|
+
SKX_ORDER_STATUS: 'skxOrderStatus',
|
|
8120
|
+
SKX_CREATE_TIME: 'dateTime'
|
|
8121
|
+
};
|
|
8122
|
+
var jsonParseSecurity = function jsonParseSecurity(value, securityValue) {
|
|
8123
|
+
try {
|
|
8124
|
+
return JSON.parse(value);
|
|
8125
|
+
} catch (e) {
|
|
8126
|
+
// console.error('JSON解析异常', value, typeof value);
|
|
8127
|
+
return securityValue;
|
|
8128
|
+
}
|
|
8129
|
+
};
|
|
8130
|
+
var transTextToNumber = function transTextToNumber(value) {
|
|
8131
|
+
return value ? +value : value;
|
|
8132
|
+
};
|
|
8133
|
+
var formatPictures = function formatPictures(pictures) {
|
|
8134
|
+
pictures = pictures.replace(/[\[\]]/g, '');
|
|
8135
|
+
pictures = pictures.replace(/\s/g, '');
|
|
8136
|
+
pictures = pictures ? pictures.split(',') : [];
|
|
8137
|
+
return pictures;
|
|
8138
|
+
};
|
|
8139
|
+
var getItemValue = function getItemValue(item) {
|
|
8140
|
+
return function (key) {
|
|
8141
|
+
return item.jsonMap[key];
|
|
8142
|
+
};
|
|
8143
|
+
};
|
|
8144
|
+
var processRadio = function processRadio(getValue) {
|
|
8145
|
+
return function (nex, config) {
|
|
8146
|
+
var radio, radioOther;
|
|
8147
|
+
if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) === '其他') {
|
|
8148
|
+
radio = config.showOther ? config.radio : undefined;
|
|
8149
|
+
radioOther = config.showOther ? config.radioOther : undefined;
|
|
8150
|
+
}
|
|
8151
|
+
if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) !== '其他') {
|
|
8152
|
+
radio = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (t) {
|
|
8153
|
+
return t.value === (config === null || config === void 0 ? void 0 : config.radio);
|
|
8154
|
+
}) ? config.radio : undefined;
|
|
8155
|
+
}
|
|
8156
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_radio")) || radio);
|
|
8157
|
+
};
|
|
8158
|
+
};
|
|
8159
|
+
var processInput = function processInput(getValue) {
|
|
8160
|
+
return function (nex, config) {
|
|
8161
|
+
var _getValue;
|
|
8162
|
+
return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_input"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.input);
|
|
8163
|
+
};
|
|
8164
|
+
};
|
|
8165
|
+
var processNumericalCalculation = function processNumericalCalculation(getValue) {
|
|
8166
|
+
return function (nex, config) {
|
|
8167
|
+
var _getValue2;
|
|
8168
|
+
return _defineProperty({}, nex.uniqueKey, (_getValue2 = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue2 !== void 0 ? _getValue2 : config === null || config === void 0 ? void 0 : config.numericalCalculation);
|
|
8169
|
+
};
|
|
8170
|
+
};
|
|
8171
|
+
var processTextarea = function processTextarea(getValue) {
|
|
8172
|
+
return function (nex, config) {
|
|
8173
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_textarea")) || (config === null || config === void 0 ? void 0 : config.textarea));
|
|
8174
|
+
};
|
|
8175
|
+
};
|
|
8176
|
+
var processSelect = function processSelect(getValue) {
|
|
8177
|
+
return function (nex, config) {
|
|
8178
|
+
var select = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (item) {
|
|
8179
|
+
return item.value === (config === null || config === void 0 ? void 0 : config.select);
|
|
8180
|
+
}) ? config.select : undefined;
|
|
8181
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_select")) || select);
|
|
8182
|
+
};
|
|
8183
|
+
};
|
|
8184
|
+
var gyPaymentMethod = function gyPaymentMethod(getValue) {
|
|
8185
|
+
return function (nex, config) {
|
|
8186
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_gyPaymentMethod")));
|
|
8187
|
+
};
|
|
8188
|
+
};
|
|
8189
|
+
var processRate = function processRate(getValue) {
|
|
8190
|
+
return function (nex, config) {
|
|
8191
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_rate")), []));
|
|
8192
|
+
};
|
|
8193
|
+
};
|
|
8194
|
+
var processFile = function processFile(getValue) {
|
|
8195
|
+
return function (nex, config) {
|
|
8196
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_file")), []));
|
|
8197
|
+
};
|
|
8198
|
+
};
|
|
8199
|
+
var processKmVideo = function processKmVideo(getValue) {
|
|
8200
|
+
return function (nex, config) {
|
|
8201
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmVideo")), []));
|
|
8202
|
+
};
|
|
8203
|
+
};
|
|
8204
|
+
var processPosting = function processPosting(getValue) {
|
|
8205
|
+
return function (nex, config) {
|
|
8206
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingCity")))];
|
|
8207
|
+
var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingDistrict")));
|
|
8208
|
+
interceptDistrict && address.push(interceptDistrict);
|
|
8209
|
+
address = every(address, function (item) {
|
|
8210
|
+
return !item;
|
|
8211
|
+
}) ? [] : address;
|
|
8212
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8213
|
+
postingAddress: address,
|
|
8214
|
+
postingDetail: getValue("".concat(nex.uniqueKey, "_postingDetail")),
|
|
8215
|
+
postingReceiverName: getValue("".concat(nex.uniqueKey, "_postingReceiverName")),
|
|
8216
|
+
postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_postingReceiverMobile"))
|
|
8217
|
+
});
|
|
8218
|
+
};
|
|
8219
|
+
};
|
|
8220
|
+
var processBuyerNickInput = function processBuyerNickInput(getValue) {
|
|
8221
|
+
return function (nex, config) {
|
|
8222
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8223
|
+
buyerNick: getValue("".concat(nex.uniqueKey, "_buyerNick")),
|
|
8224
|
+
buyerOpenUid: getValue("".concat(nex.uniqueKey, "_buyerOpenUid"))
|
|
8225
|
+
});
|
|
8226
|
+
};
|
|
8227
|
+
};
|
|
8228
|
+
var processAliPayInput = function processAliPayInput(getValue) {
|
|
8229
|
+
return function (nex, config) {
|
|
8230
|
+
var _ref12;
|
|
8231
|
+
return _ref12 = {}, _defineProperty(_ref12, nex.uniqueKey, {
|
|
8232
|
+
name: getValue("".concat(nex.uniqueKey, "_alipayName")),
|
|
8233
|
+
user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
|
|
8234
|
+
}), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref12;
|
|
8235
|
+
};
|
|
8236
|
+
};
|
|
8237
|
+
var processCheckbox = function processCheckbox(getValue) {
|
|
8238
|
+
return function (nex, config) {
|
|
8239
|
+
var _config$checkbox, _config$checkbox2, _config$checkbox3, _config$checkbox4;
|
|
8240
|
+
var checkbox = [],
|
|
8241
|
+
checkboxOther = '';
|
|
8242
|
+
if ((config === null || config === void 0 ? void 0 : (_config$checkbox = config.checkbox) === null || _config$checkbox === void 0 ? void 0 : _config$checkbox.length) && (config === null || config === void 0 ? void 0 : (_config$checkbox2 = config.checkbox) === null || _config$checkbox2 === void 0 ? void 0 : _config$checkbox2.includes('其他'))) {
|
|
8243
|
+
checkbox = config.showOther ? config.checkbox : config.checkbox.filter(function (t) {
|
|
8244
|
+
return t !== '其他';
|
|
8245
|
+
});
|
|
8246
|
+
checkboxOther = config.showOther ? config.checkboxOther : undefined;
|
|
8247
|
+
}
|
|
8248
|
+
if ((config === null || config === void 0 ? void 0 : (_config$checkbox3 = config.checkbox) === null || _config$checkbox3 === void 0 ? void 0 : _config$checkbox3.length) && !(config === null || config === void 0 ? void 0 : (_config$checkbox4 = config.checkbox) === null || _config$checkbox4 === void 0 ? void 0 : _config$checkbox4.includes('其他'))) {
|
|
8249
|
+
checkbox = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8250
|
+
if (config.checkbox.includes(next.value)) {
|
|
8251
|
+
prv.push(next.value);
|
|
8252
|
+
}
|
|
8253
|
+
return prv;
|
|
8254
|
+
}, []);
|
|
8255
|
+
}
|
|
8256
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_checkbox")), '') || checkbox);
|
|
8257
|
+
};
|
|
8258
|
+
};
|
|
8259
|
+
var processDatetime = function processDatetime(getValue) {
|
|
8260
|
+
return function (nex, config) {
|
|
8261
|
+
var v = getValue("".concat(nex.uniqueKey, "_dateTime"));
|
|
8262
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, v) || (config === null || config === void 0 ? void 0 : config.dateTime));
|
|
8263
|
+
};
|
|
8264
|
+
};
|
|
8265
|
+
var processPicture = function processPicture(getValue) {
|
|
8266
|
+
return function (nex, config) {
|
|
8267
|
+
var v = getValue("".concat(nex.uniqueKey, "_picture"));
|
|
8268
|
+
return _defineProperty({}, nex.uniqueKey, v ? formatPictures(v).map(function (item) {
|
|
8269
|
+
return "".concat(item);
|
|
8270
|
+
}) : (config === null || config === void 0 ? void 0 : config.picture) || []);
|
|
8271
|
+
};
|
|
8272
|
+
};
|
|
8273
|
+
var processPicturePro = function processPicturePro(getValue) {
|
|
8274
|
+
return function (nex, config) {
|
|
8275
|
+
var v = getValue("".concat(nex.uniqueKey, "_pictureProList"));
|
|
8276
|
+
var picturePro = jsonParseSecurity(v, v || []) || [];
|
|
8277
|
+
return _defineProperty({}, nex.uniqueKey, picturePro ? picturePro.map(function (item) {
|
|
8278
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
8279
|
+
url: item.url ? formatPictures(item.url)[0] : ''
|
|
8280
|
+
});
|
|
8281
|
+
}) : (config === null || config === void 0 ? void 0 : config.pictureProList) || []);
|
|
8282
|
+
};
|
|
8283
|
+
};
|
|
8284
|
+
var wdtTags = function wdtTags(getValue) {
|
|
8285
|
+
return function (nex, config) {
|
|
8286
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtTags")), []));
|
|
8287
|
+
};
|
|
8288
|
+
};
|
|
8289
|
+
var processBasicMultSelect = function processBasicMultSelect(getValue) {
|
|
8290
|
+
return function (nex, config) {
|
|
8291
|
+
var v = getValue("".concat(nex.uniqueKey, "_basicMultSelect"));
|
|
8292
|
+
var basicMultSelect = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8293
|
+
var _config$basicMultSele;
|
|
8294
|
+
if (config === null || config === void 0 ? void 0 : (_config$basicMultSele = config.basicMultSelect) === null || _config$basicMultSele === void 0 ? void 0 : _config$basicMultSele.includes(next.value)) {
|
|
8295
|
+
prv.push(next.value);
|
|
8296
|
+
}
|
|
8297
|
+
return prv;
|
|
8298
|
+
}, []);
|
|
8299
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
|
|
8300
|
+
};
|
|
8301
|
+
};
|
|
8302
|
+
var processMultSelect = function processMultSelect(getValue) {
|
|
8303
|
+
return function (nex, config) {
|
|
8304
|
+
var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
|
|
8305
|
+
var parseValue = jsonParseSecurity(v, v || []) || [];
|
|
8306
|
+
return _defineProperty({}, nex.uniqueKey, parseValue === null || parseValue === void 0 ? void 0 : parseValue.map(function (item) {
|
|
8307
|
+
return item.actived;
|
|
8308
|
+
}));
|
|
8309
|
+
};
|
|
8310
|
+
};
|
|
8311
|
+
var processBasicAddress = function processBasicAddress(getValue) {
|
|
8312
|
+
return function (nex, config) {
|
|
8313
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicCity"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicDistrict")))];
|
|
8314
|
+
address = every(address, function (item) {
|
|
8315
|
+
return !item;
|
|
8316
|
+
}) ? [] : address;
|
|
8317
|
+
return _defineProperty({}, nex.uniqueKey, address);
|
|
8318
|
+
};
|
|
8319
|
+
};
|
|
8320
|
+
var processReceiverAddressInput = function processReceiverAddressInput(getValue) {
|
|
8321
|
+
return function (nex, config) {
|
|
8322
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_province"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_city"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_district")))];
|
|
8323
|
+
address = every(address, function (item) {
|
|
8324
|
+
return !item;
|
|
8325
|
+
}) ? [] : address;
|
|
8326
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8327
|
+
address: address,
|
|
8328
|
+
detail: getValue("".concat(nex.uniqueKey, "_address"))
|
|
8329
|
+
});
|
|
8330
|
+
};
|
|
8331
|
+
};
|
|
8332
|
+
var processSubForm = function processSubForm(getValue) {
|
|
8333
|
+
return function (nex, config) {
|
|
8334
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_productList")), []));
|
|
8335
|
+
};
|
|
8336
|
+
};
|
|
8337
|
+
var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
|
|
8338
|
+
return function (nex, config) {
|
|
8339
|
+
var _ref23;
|
|
8340
|
+
return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
|
|
8341
|
+
company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
|
|
8342
|
+
order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
|
|
8343
|
+
}), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref23;
|
|
8344
|
+
};
|
|
8345
|
+
};
|
|
8346
|
+
var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
|
|
8347
|
+
return function (nex, config) {
|
|
8348
|
+
var _ref24;
|
|
8349
|
+
return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
|
|
8350
|
+
company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
|
|
8351
|
+
order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
|
|
8352
|
+
}), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref24;
|
|
8353
|
+
};
|
|
8354
|
+
};
|
|
8355
|
+
var processRemarkInput = function processRemarkInput(getValue) {
|
|
8356
|
+
return function (nex, config) {
|
|
8357
|
+
var v = getValue("".concat(nex.uniqueKey, "_flag"));
|
|
8358
|
+
var remark = getValue("".concat(nex.uniqueKey, "_remark"));
|
|
8359
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8360
|
+
flag: v ? +v : (config === null || config === void 0 ? void 0 : config.flag) ? +(config === null || config === void 0 ? void 0 : config.flag) : '',
|
|
8361
|
+
remark: remark || (config === null || config === void 0 ? void 0 : config.remark) || ''
|
|
8362
|
+
});
|
|
8363
|
+
};
|
|
8364
|
+
};
|
|
8365
|
+
var processStatus = function processStatus(getValue) {
|
|
8366
|
+
return function (nex, config) {
|
|
8367
|
+
var _ref26;
|
|
8368
|
+
var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
|
|
8369
|
+
return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
|
|
8370
|
+
status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
|
|
8371
|
+
customerService: jsonParseSecurity(customerService, customerService)
|
|
8372
|
+
}), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref26;
|
|
8373
|
+
};
|
|
8374
|
+
};
|
|
8375
|
+
var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
|
|
8376
|
+
return function (nex, config) {
|
|
8377
|
+
var _ref27;
|
|
8378
|
+
var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
|
|
8379
|
+
var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
|
|
8380
|
+
var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
|
|
8381
|
+
return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
|
|
8382
|
+
ordinaryMoney: ordinaryMoney,
|
|
8383
|
+
ordinarySerial: ordinarySerial,
|
|
8384
|
+
ordinaryTaitou: ordinaryTaitou
|
|
8385
|
+
}), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref27;
|
|
8386
|
+
};
|
|
8387
|
+
};
|
|
8388
|
+
var processLogisticsInterception = function processLogisticsInterception(getValue) {
|
|
8389
|
+
return function (nex, config) {
|
|
8390
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptCity")))];
|
|
8391
|
+
//兼容地址是只有省市的
|
|
8392
|
+
var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptDistrict")));
|
|
8393
|
+
interceptDistrict && address.push(interceptDistrict);
|
|
8394
|
+
address = every(address, function (item) {
|
|
8395
|
+
return !item;
|
|
8396
|
+
}) ? [] : address;
|
|
8397
|
+
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
|
|
8398
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8399
|
+
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8400
|
+
}, {});
|
|
8401
|
+
return _defineProperty({}, nex.uniqueKey, _objectSpread2(_objectSpread2({}, map), {}, {
|
|
8402
|
+
interceptAddress: address,
|
|
8403
|
+
interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
|
|
8404
|
+
}));
|
|
8405
|
+
};
|
|
8406
|
+
};
|
|
8407
|
+
var processLogisticsInterceptionMore = function processLogisticsInterceptionMore(getValue) {
|
|
8408
|
+
return function (nex, config) {
|
|
8409
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_logisticsInterceptList")), [{}]));
|
|
8410
|
+
};
|
|
8411
|
+
};
|
|
8412
|
+
var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
8413
|
+
return function (nex, config) {
|
|
8414
|
+
var subFields = ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryPhone', 'trajectoryApiStatus'];
|
|
8415
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8416
|
+
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8417
|
+
}, {});
|
|
8418
|
+
return _defineProperty({}, nex.uniqueKey, map);
|
|
8419
|
+
};
|
|
8420
|
+
};
|
|
8421
|
+
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
8422
|
+
return function (nex, config) {
|
|
8423
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryList")), []));
|
|
8424
|
+
};
|
|
8425
|
+
};
|
|
8426
|
+
var processGoods = function processGoods(getValue) {
|
|
8427
|
+
return function (nex, config) {
|
|
8428
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []));
|
|
8429
|
+
};
|
|
8430
|
+
};
|
|
8431
|
+
var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
8432
|
+
return function (nex, config) {
|
|
8433
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []);
|
|
8434
|
+
itemList.forEach(function (key) {
|
|
8435
|
+
key.itemId = key.itemId || key.supplierItemOuterId;
|
|
8436
|
+
});
|
|
8437
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8438
|
+
};
|
|
8439
|
+
};
|
|
8440
|
+
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8441
|
+
return function (nex, config) {
|
|
8442
|
+
var _ref34;
|
|
8443
|
+
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8444
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8445
|
+
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8446
|
+
}, {});
|
|
8447
|
+
return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
|
|
8448
|
+
};
|
|
8449
|
+
};
|
|
8450
|
+
var processJstLogistics = function processJstLogistics(getValue) {
|
|
8451
|
+
return function (nex, config) {
|
|
8452
|
+
var initValue = [{
|
|
8453
|
+
logisticsCompany: null,
|
|
8454
|
+
logisticsCode: null
|
|
8455
|
+
}];
|
|
8456
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8457
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8458
|
+
};
|
|
8459
|
+
};
|
|
8460
|
+
var processJstItemSelectThird = function processJstItemSelectThird(getValue) {
|
|
8461
|
+
return function (nex, config) {
|
|
8462
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), []);
|
|
8463
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8464
|
+
};
|
|
8465
|
+
};
|
|
8466
|
+
var processJstSupply = function processJstSupply(getValue) {
|
|
8467
|
+
return function (nex, config) {
|
|
8468
|
+
var initValue = [{
|
|
8469
|
+
supplyId: null
|
|
8470
|
+
}];
|
|
8471
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8472
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8473
|
+
};
|
|
8474
|
+
};
|
|
8475
|
+
var processJstSendGood = function processJstSendGood(getValue) {
|
|
8476
|
+
return function (nex, config) {
|
|
8477
|
+
var initValue = [{
|
|
8478
|
+
sendName: '',
|
|
8479
|
+
sendId: '',
|
|
8480
|
+
sendSnapshotId: ''
|
|
8481
|
+
}];
|
|
8482
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8483
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8484
|
+
};
|
|
8485
|
+
};
|
|
8486
|
+
var processBsMemo = function processBsMemo(getValue) {
|
|
8487
|
+
return function (nex, config) {
|
|
8488
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8489
|
+
remark: getValue("".concat(nex.uniqueKey, "_bsRemark")),
|
|
8490
|
+
flag: getValue("".concat(nex.uniqueKey, "_bsFlag"))
|
|
8491
|
+
});
|
|
8492
|
+
};
|
|
8493
|
+
};
|
|
8494
|
+
var processReissueLogistics = function processReissueLogistics(getValue) {
|
|
8495
|
+
return function (nex, config) {
|
|
8496
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_reissueLogisticsList")), []);
|
|
8497
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8498
|
+
};
|
|
8499
|
+
};
|
|
8500
|
+
var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
8501
|
+
return function (nex, config) {
|
|
8502
|
+
var STATUS_MAP = {
|
|
8503
|
+
REISSUE_STATUS: {
|
|
8504
|
+
status: 'reissueStatusValue',
|
|
8505
|
+
reason: 'reissueReason'
|
|
8506
|
+
},
|
|
8507
|
+
ADJUST_WORK_ORDER_STATUS: {
|
|
8508
|
+
status: 'adjustWorkOrderStatusValue',
|
|
8509
|
+
reason: 'adjustWorkOrderReason'
|
|
8510
|
+
},
|
|
8511
|
+
CREATE_STATUS: {
|
|
8512
|
+
status: 'createStatusValue',
|
|
8513
|
+
reason: 'createReason'
|
|
8514
|
+
},
|
|
8515
|
+
INVOICE_STATUS: {
|
|
8516
|
+
status: 'invoiceStatusValue',
|
|
8517
|
+
reason: 'invoiceReason'
|
|
8518
|
+
},
|
|
8519
|
+
INVOICING_STATUS: {
|
|
8520
|
+
status: 'invoicingStatusValue',
|
|
8521
|
+
reason: 'invoicingReason'
|
|
8522
|
+
},
|
|
8523
|
+
AGREE_REFUND_STATUS: {
|
|
8524
|
+
status: 'agreeRefundStatusValue',
|
|
8525
|
+
reason: 'agreeRefundStatusReason'
|
|
8526
|
+
},
|
|
8527
|
+
REJECT_REFUND_STATUS: {
|
|
8528
|
+
status: 'rejectRefundStatusValue',
|
|
8529
|
+
reason: 'rejectRefundStatusReason'
|
|
8530
|
+
},
|
|
8531
|
+
AGREE_RETURN_GOODS_STATUS: {
|
|
8532
|
+
status: 'agreeReturnGoodsStatusValue',
|
|
8533
|
+
reason: 'agreeReturnGoodsStatusReason'
|
|
8534
|
+
},
|
|
8535
|
+
REJECT_RETURN_GOODS_STATUS: {
|
|
8536
|
+
status: 'rejectReturnGoodsStatusValue',
|
|
8537
|
+
reason: 'rejectReturnGoodsStatusReason'
|
|
8538
|
+
},
|
|
8539
|
+
ERP_AFTER_SALE_STATUS: {
|
|
8540
|
+
status: 'erpAfterSaleStatusValue',
|
|
8541
|
+
reason: 'erpAfterSaleStatusReason'
|
|
8542
|
+
},
|
|
8543
|
+
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8544
|
+
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8545
|
+
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
8546
|
+
}
|
|
8547
|
+
};
|
|
8548
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8549
|
+
status: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].status)),
|
|
8550
|
+
reason: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].reason))
|
|
8551
|
+
});
|
|
8552
|
+
};
|
|
8553
|
+
};
|
|
8554
|
+
var processSceneStatus = function processSceneStatus(getValue) {
|
|
8555
|
+
return function (nex, config) {
|
|
8556
|
+
var STATUS_LIST_MAP = {
|
|
8557
|
+
RETURN_GOODS_STATUS: 'returnGoodsStatusList',
|
|
8558
|
+
EXCHANGE_STATUS: 'exchangeReason',
|
|
8559
|
+
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8560
|
+
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8561
|
+
MSG_STATUS: 'msgStatusValues',
|
|
8562
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8563
|
+
};
|
|
8564
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8565
|
+
};
|
|
8566
|
+
};
|
|
8567
|
+
var processErpLogistics = function processErpLogistics(getValue) {
|
|
8568
|
+
return function (nex, config) {
|
|
8569
|
+
var LogisticsMap = {
|
|
8570
|
+
BS_LOGISTICS: {
|
|
8571
|
+
listKey: 'bsLogisticsList'
|
|
8572
|
+
},
|
|
8573
|
+
WLN_LOGISTICS: {
|
|
8574
|
+
listKey: 'wlnLogisticsList'
|
|
8575
|
+
},
|
|
8576
|
+
WDT_LOGISTICS: {
|
|
8577
|
+
listKey: 'wdtLogisticsList'
|
|
8578
|
+
},
|
|
8579
|
+
BS_E3_LOGISTICS: {
|
|
8580
|
+
listKey: 'bsE3LogisticsList'
|
|
8581
|
+
},
|
|
8582
|
+
KM_LOGISTICS: {
|
|
8583
|
+
listKey: 'kmLogisticsList'
|
|
8584
|
+
},
|
|
8585
|
+
GY_LOGISTICS: {
|
|
8586
|
+
listKey: 'gyLogisticsList'
|
|
8587
|
+
},
|
|
8588
|
+
SKX_LOGISTICS: {
|
|
8589
|
+
listKey: 'skxLogisticsList'
|
|
8590
|
+
}
|
|
8591
|
+
};
|
|
8592
|
+
var initValue = [{
|
|
8593
|
+
logisticsCompany: null,
|
|
8594
|
+
logisticsCode: null
|
|
8595
|
+
}];
|
|
8596
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(LogisticsMap[nex.workOrderComponentType].listKey)), initValue);
|
|
8597
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8598
|
+
};
|
|
8599
|
+
};
|
|
8600
|
+
var processErpSendGood = function processErpSendGood(getValue) {
|
|
8601
|
+
return function (nex, config) {
|
|
8602
|
+
var sendGoodMap = {
|
|
8603
|
+
BS_SEND_GOOD: {
|
|
8604
|
+
list: 'bsSendGood'
|
|
8605
|
+
},
|
|
8606
|
+
WLN_SEND_GOOD: {
|
|
8607
|
+
list: 'wlnSendGood'
|
|
8608
|
+
},
|
|
8609
|
+
WDT_SEND_GOOD: {
|
|
8610
|
+
list: 'wdtSendGood'
|
|
8611
|
+
},
|
|
8612
|
+
KM_SEND_GOOD: {
|
|
8613
|
+
list: 'kmSendGood'
|
|
8614
|
+
},
|
|
8615
|
+
BS_E3_SEND_GOOD: {
|
|
8616
|
+
list: 'bsE3SendGood'
|
|
8617
|
+
},
|
|
8618
|
+
GY_SEND_GOOD: {
|
|
8619
|
+
list: 'gySendGood'
|
|
8620
|
+
}
|
|
8621
|
+
};
|
|
8622
|
+
var initValue = [{
|
|
8623
|
+
sendName: '',
|
|
8624
|
+
sendId: ''
|
|
8625
|
+
}];
|
|
8626
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(sendGoodMap[nex.workOrderComponentType].list)), initValue);
|
|
8627
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8628
|
+
};
|
|
8629
|
+
};
|
|
8630
|
+
var processBsPosting = function processBsPosting(getValue) {
|
|
8631
|
+
return function (nex, config) {
|
|
8632
|
+
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
8633
|
+
//兼容地址是只有省市的
|
|
8634
|
+
var bsInterceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingDistrict")));
|
|
8635
|
+
bsInterceptDistrict && bsAddress.push(bsInterceptDistrict);
|
|
8636
|
+
bsAddress = every(bsAddress, function (item) {
|
|
8637
|
+
return !item;
|
|
8638
|
+
}) ? [] : bsAddress;
|
|
8639
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8640
|
+
postingAddress: bsAddress,
|
|
8641
|
+
postingDetail: getValue("".concat(nex.uniqueKey, "_bsPostingDetail")),
|
|
8642
|
+
postingReceiverName: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverName")),
|
|
8643
|
+
postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverMobile"))
|
|
8644
|
+
});
|
|
8645
|
+
};
|
|
8646
|
+
};
|
|
8647
|
+
var processBsGoods = function processBsGoods(getValue) {
|
|
8648
|
+
return function (nex, config) {
|
|
8649
|
+
var _values = {
|
|
8650
|
+
bsGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsGoods")), []),
|
|
8651
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8652
|
+
};
|
|
8653
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8654
|
+
};
|
|
8655
|
+
};
|
|
8656
|
+
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8657
|
+
return function (getValue) {
|
|
8658
|
+
return function (nex, config) {
|
|
8659
|
+
var _values = {
|
|
8660
|
+
wdtGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtGoods")), []),
|
|
8661
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8662
|
+
};
|
|
8663
|
+
var selectIds = [];
|
|
8664
|
+
var orderNo = '';
|
|
8665
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8666
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8667
|
+
});
|
|
8668
|
+
if (tradeId) {
|
|
8669
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8670
|
+
}
|
|
8671
|
+
var wdtSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8672
|
+
return col.workOrderComponentType === 'WDT_SYSTEM_ORDER';
|
|
8673
|
+
});
|
|
8674
|
+
if (wdtSystemOrder) {
|
|
8675
|
+
selectIds = jsonParseSecurity(getValue("".concat(wdtSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtSystemOrder.workOrderComponentType].ids)), []);
|
|
8676
|
+
}
|
|
8677
|
+
_values.selectIds = selectIds;
|
|
8678
|
+
_values.orderNo = orderNo;
|
|
8679
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8680
|
+
};
|
|
8681
|
+
};
|
|
8682
|
+
};
|
|
8683
|
+
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8684
|
+
return function (getValue) {
|
|
8685
|
+
return function (nex, config) {
|
|
8686
|
+
var _values = {
|
|
8687
|
+
bsE3Goods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3Goods")), []),
|
|
8688
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8689
|
+
};
|
|
8690
|
+
var selectIds = [];
|
|
8691
|
+
var orderNo = '';
|
|
8692
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8693
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8694
|
+
});
|
|
8695
|
+
if (tradeId) {
|
|
8696
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8697
|
+
}
|
|
8698
|
+
var bsE3SystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8699
|
+
return col.workOrderComponentType === 'BS_E3_SYSTEM_ORDER';
|
|
8700
|
+
});
|
|
8701
|
+
if (bsE3SystemOrder) {
|
|
8702
|
+
selectIds = jsonParseSecurity(getValue("".concat(bsE3SystemOrder.uniqueKey, "_").concat(systemOrderMap[bsE3SystemOrder.workOrderComponentType].ids)), []);
|
|
8703
|
+
}
|
|
8704
|
+
_values.selectIds = selectIds;
|
|
8705
|
+
_values.orderNo = orderNo;
|
|
8706
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8707
|
+
};
|
|
8708
|
+
};
|
|
8709
|
+
};
|
|
8710
|
+
var processJstGoods = function processJstGoods(templateColumns) {
|
|
8711
|
+
return function (getValue) {
|
|
8712
|
+
return function (nex, config) {
|
|
8713
|
+
var _values = {
|
|
8714
|
+
jstGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstGoods")), []),
|
|
8715
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8716
|
+
};
|
|
8717
|
+
var selectIds = [];
|
|
8718
|
+
var orderNo = '';
|
|
8719
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8720
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8721
|
+
});
|
|
8722
|
+
if (tradeId) {
|
|
8723
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8724
|
+
}
|
|
8725
|
+
var jstSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8726
|
+
return col.workOrderComponentType === 'JST_SYSTEM_ORDER';
|
|
8727
|
+
});
|
|
8728
|
+
if (jstSystemOrder) {
|
|
8729
|
+
selectIds = jsonParseSecurity(getValue("".concat(jstSystemOrder.uniqueKey, "_").concat(systemOrderMap[jstSystemOrder.workOrderComponentType].ids)), []);
|
|
8730
|
+
}
|
|
8731
|
+
_values.selectIds = selectIds;
|
|
8732
|
+
_values.orderNo = orderNo;
|
|
8733
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8734
|
+
};
|
|
8735
|
+
};
|
|
8736
|
+
};
|
|
8737
|
+
var processKmGoods = function processKmGoods(templateColumns) {
|
|
8738
|
+
return function (getValue) {
|
|
8739
|
+
return function (nex, config) {
|
|
8740
|
+
var _values = {
|
|
8741
|
+
kmGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmGoods")), []),
|
|
8742
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8743
|
+
};
|
|
8744
|
+
var selectIds = [];
|
|
8745
|
+
var orderNo = '';
|
|
8746
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8747
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8748
|
+
});
|
|
8749
|
+
if (tradeId) {
|
|
8750
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8751
|
+
}
|
|
8752
|
+
var kmSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8753
|
+
return col.workOrderComponentType === 'KM_SYSTEM_ORDER';
|
|
8754
|
+
});
|
|
8755
|
+
if (kmSystemOrder) {
|
|
8756
|
+
selectIds = jsonParseSecurity(getValue("".concat(kmSystemOrder.uniqueKey, "_").concat(systemOrderMap[kmSystemOrder.workOrderComponentType].ids)), []);
|
|
8757
|
+
}
|
|
8758
|
+
_values.selectIds = selectIds;
|
|
8759
|
+
_values.orderNo = orderNo;
|
|
8760
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8761
|
+
};
|
|
8762
|
+
};
|
|
8763
|
+
};
|
|
8764
|
+
var processGyGoods = function processGyGoods(templateColumns) {
|
|
8765
|
+
return function (getValue) {
|
|
8766
|
+
return function (nex, config) {
|
|
8767
|
+
var _values = {
|
|
8768
|
+
gyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyGoods")), []),
|
|
8769
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8770
|
+
};
|
|
8771
|
+
var selectIds = [];
|
|
8772
|
+
var orderNo = '';
|
|
8773
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8774
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8775
|
+
});
|
|
8776
|
+
if (tradeId) {
|
|
8777
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8778
|
+
}
|
|
8779
|
+
var gySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8780
|
+
return col.workOrderComponentType === 'GY_SYSTEM_ORDER';
|
|
8781
|
+
});
|
|
8782
|
+
if (gySystemOrder) {
|
|
8783
|
+
selectIds = jsonParseSecurity(getValue("".concat(gySystemOrder.uniqueKey, "_").concat(systemOrderMap[gySystemOrder.workOrderComponentType].ids)), []);
|
|
8784
|
+
}
|
|
8785
|
+
_values.selectIds = selectIds;
|
|
8786
|
+
_values.orderNo = orderNo;
|
|
8787
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8788
|
+
};
|
|
8789
|
+
};
|
|
8790
|
+
};
|
|
8791
|
+
var processSkxGoods = function processSkxGoods(getValue) {
|
|
8792
|
+
return function (nex, config) {
|
|
8793
|
+
var _values = {
|
|
8794
|
+
skxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_skxGoods")), [])
|
|
8795
|
+
};
|
|
8796
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8797
|
+
};
|
|
8798
|
+
};
|
|
8799
|
+
var processBsReissueGoods = function processBsReissueGoods(getValue) {
|
|
8800
|
+
return function (nex, config) {
|
|
8801
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8802
|
+
bsReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueType")), []),
|
|
8803
|
+
bsReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueGoods")), []),
|
|
8804
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8805
|
+
});
|
|
8806
|
+
};
|
|
8807
|
+
};
|
|
8808
|
+
var processBsExchangeGoods = function processBsExchangeGoods(getValue) {
|
|
8809
|
+
return function (nex, config) {
|
|
8810
|
+
var bsExchangeType = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeType")), []);
|
|
8811
|
+
var bsExchangeReturnGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeReturnGoods")), []);
|
|
8812
|
+
var bsExchangeSwapOutGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")), []);
|
|
8813
|
+
//补发组装数据
|
|
8814
|
+
if ((bsExchangeType === null || bsExchangeType === void 0 ? void 0 : bsExchangeType.length) && ['2', '4'].includes(bsExchangeType[0])) {
|
|
8815
|
+
var maxLen = maxBy(bsExchangeReturnGoods, function (t) {
|
|
8816
|
+
return t.index;
|
|
8817
|
+
});
|
|
8818
|
+
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
|
|
8819
|
+
return {
|
|
8820
|
+
bsExchangeReturnGoods: [],
|
|
8821
|
+
bsExchangeSwapOutGoods: []
|
|
8822
|
+
};
|
|
8823
|
+
});
|
|
8824
|
+
bsExchangeReturnGoods.forEach(function (item) {
|
|
8825
|
+
if (!newGoods[item.index]) {
|
|
8826
|
+
newGoods[item.index] = {
|
|
8827
|
+
bsExchangeReturnGoods: [],
|
|
8828
|
+
bsExchangeSwapOutGoods: []
|
|
8829
|
+
};
|
|
8830
|
+
}
|
|
8831
|
+
newGoods[item.index].bsExchangeReturnGoods.push(item);
|
|
8832
|
+
});
|
|
8833
|
+
bsExchangeSwapOutGoods.forEach(function (item) {
|
|
8834
|
+
newGoods[item.index].bsExchangeSwapOutGoods.push(item);
|
|
8835
|
+
});
|
|
8836
|
+
bsExchangeReturnGoods = newGoods;
|
|
8837
|
+
bsExchangeSwapOutGoods = [];
|
|
8838
|
+
}
|
|
8839
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8840
|
+
bsExchangeType: bsExchangeType,
|
|
8841
|
+
bsExchangeReturnGoods: bsExchangeReturnGoods,
|
|
8842
|
+
bsExchangeSwapOutGoods: bsExchangeSwapOutGoods,
|
|
8843
|
+
bsExchangeGiftGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeGiftGoods")), []),
|
|
8844
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8845
|
+
});
|
|
8846
|
+
};
|
|
8847
|
+
};
|
|
8848
|
+
var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
8849
|
+
return function (nex, config) {
|
|
8850
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8851
|
+
wdtExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtExchangeGoods")), []),
|
|
8852
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8853
|
+
});
|
|
8854
|
+
};
|
|
8855
|
+
};
|
|
8856
|
+
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
8857
|
+
return function (nex, config) {
|
|
8858
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8859
|
+
jstExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstExchangeGoods")), []),
|
|
8860
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8861
|
+
});
|
|
8862
|
+
};
|
|
8863
|
+
};
|
|
8864
|
+
var processBsReturnGoods = function processBsReturnGoods(getValue) {
|
|
8865
|
+
return function (nex, config) {
|
|
8866
|
+
var _$concat;
|
|
8867
|
+
var compType = nex.workOrderComponentType;
|
|
8868
|
+
var returnGoodsMap = {
|
|
8869
|
+
BS_RETURN_GOODS: {
|
|
8870
|
+
returnTypeKey: 'bsReturnType',
|
|
8871
|
+
returnGoodsKey: 'bsReturnGoods',
|
|
8872
|
+
shopCodeKey: 'shopCode'
|
|
8873
|
+
}
|
|
8874
|
+
};
|
|
8875
|
+
return _defineProperty({}, "".concat(nex.uniqueKey), (_$concat = {}, _defineProperty(_$concat, returnGoodsMap[compType].returnTypeKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnTypeKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].returnGoodsKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnGoodsKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].shopCodeKey, getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].shopCodeKey))), _$concat));
|
|
8876
|
+
};
|
|
8877
|
+
};
|
|
8878
|
+
var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
8879
|
+
return function (nex, config) {
|
|
8880
|
+
var systemOrderMap = {
|
|
8881
|
+
BS_SYSTEM_ORDER: {
|
|
8882
|
+
no: 'bsSystemOrderNo',
|
|
8883
|
+
ids: 'bsSystemSelectIds',
|
|
8884
|
+
order: 'bsSystemShowOrder'
|
|
8885
|
+
},
|
|
8886
|
+
KM_SYSTEM_ORDER: {
|
|
8887
|
+
no: 'kmSystemOrderNo',
|
|
8888
|
+
ids: 'kmSystemSelectIds',
|
|
8889
|
+
order: 'kmSystemShowOrder'
|
|
8890
|
+
},
|
|
8891
|
+
WLN_SYSTEM_ORDER: {
|
|
8892
|
+
no: 'wlnSystemOrderNo',
|
|
8893
|
+
ids: 'wlnSystemSelectIds',
|
|
8894
|
+
order: 'wlnSystemShowOrder'
|
|
8895
|
+
},
|
|
8896
|
+
WDT_SYSTEM_ORDER: {
|
|
8897
|
+
no: 'wdtSystemOrderNo',
|
|
8898
|
+
ids: 'wdtSystemSelectIds',
|
|
8899
|
+
order: 'wdtSystemShowOrder'
|
|
8900
|
+
},
|
|
8901
|
+
BS_E3_SYSTEM_ORDER: {
|
|
8902
|
+
no: 'bsE3SystemOrderNo',
|
|
8903
|
+
ids: 'bsE3SystemSelectIds',
|
|
8904
|
+
order: 'bsE3SystemShowOrder'
|
|
8905
|
+
},
|
|
8906
|
+
GY_SYSTEM_ORDER: {
|
|
8907
|
+
no: 'gySystemOrderNo',
|
|
8908
|
+
ids: 'gySystemSelectIds',
|
|
8909
|
+
order: 'gySystemShowOrder'
|
|
8910
|
+
},
|
|
8911
|
+
JST_SYSTEM_ORDER: {
|
|
8912
|
+
no: 'jstSystemOrderNo',
|
|
8913
|
+
ids: 'jstSystemSelectIds',
|
|
8914
|
+
order: 'jstSystemShowOrder'
|
|
8915
|
+
}
|
|
8916
|
+
};
|
|
8917
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8918
|
+
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8919
|
+
orders: [],
|
|
8920
|
+
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8921
|
+
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8922
|
+
});
|
|
8923
|
+
};
|
|
8924
|
+
};
|
|
8925
|
+
var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
|
|
8926
|
+
return function (nex, config) {
|
|
8927
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8928
|
+
};
|
|
8929
|
+
};
|
|
8930
|
+
var processOrderType = function processOrderType(getValue) {
|
|
8931
|
+
return function (nex, config) {
|
|
8932
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8933
|
+
};
|
|
8934
|
+
};
|
|
8935
|
+
var processRefundType = function processRefundType(getValue) {
|
|
8936
|
+
return function (nex, config) {
|
|
8937
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_orderRefundType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8938
|
+
};
|
|
8939
|
+
};
|
|
8940
|
+
var processExecuteActionType = function processExecuteActionType(getValue) {
|
|
8941
|
+
return function (nex, config) {
|
|
8942
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_executeActionType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8943
|
+
};
|
|
8944
|
+
};
|
|
8945
|
+
var processErpTradeId = function processErpTradeId(getValue) {
|
|
8946
|
+
return function (nex, config) {
|
|
8947
|
+
var SYSTEM_ORDER_MAP = {
|
|
8948
|
+
BS_DELIVERY_NO: {
|
|
8949
|
+
key: 'deliveryNoList',
|
|
8950
|
+
defaultValue: [{
|
|
8951
|
+
deliverNo: '',
|
|
8952
|
+
systemOrderId: ''
|
|
8953
|
+
}]
|
|
8954
|
+
},
|
|
8955
|
+
RETURN_GOODS_TRADE_ID: {
|
|
8956
|
+
key: 'returnGoodsTradeItemList',
|
|
8957
|
+
defaultValue: []
|
|
8958
|
+
},
|
|
8959
|
+
REISSUE_TRADE_ID: {
|
|
8960
|
+
key: 'tradeItemList',
|
|
8961
|
+
defaultValue: []
|
|
8962
|
+
},
|
|
8963
|
+
ERP_AFTER_SALE_TRADE_ID: {
|
|
8964
|
+
key: 'erpAfterSaleTradeItemList',
|
|
8965
|
+
defaultValue: []
|
|
8966
|
+
},
|
|
8967
|
+
EXCHANGE_TRADE_ID: {
|
|
8968
|
+
key: 'tradeItemList',
|
|
8969
|
+
defaultValue: []
|
|
8970
|
+
}
|
|
8971
|
+
};
|
|
8972
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
|
|
8973
|
+
};
|
|
8974
|
+
};
|
|
8975
|
+
var processWlnGoods = function processWlnGoods(templateColumns) {
|
|
8976
|
+
return function (getValue) {
|
|
8977
|
+
return function (nex, config) {
|
|
8978
|
+
var orderNo = '';
|
|
8979
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8980
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8981
|
+
});
|
|
8982
|
+
if (tradeId) {
|
|
8983
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8984
|
+
}
|
|
8985
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8986
|
+
wlnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnGoods")), []),
|
|
8987
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
8988
|
+
orderNo: orderNo
|
|
8989
|
+
});
|
|
8990
|
+
};
|
|
8991
|
+
};
|
|
8992
|
+
};
|
|
8993
|
+
var processWdtReissueGoods = function processWdtReissueGoods(templateColumns) {
|
|
8994
|
+
return function (getValue) {
|
|
8995
|
+
return function (nex, config) {
|
|
8996
|
+
var orderNo = '';
|
|
8997
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8998
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8999
|
+
});
|
|
9000
|
+
if (tradeId) {
|
|
9001
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9002
|
+
}
|
|
9003
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9004
|
+
wdtSystemOrder: {
|
|
9005
|
+
orderNo: orderNo
|
|
9006
|
+
},
|
|
9007
|
+
wdtReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9008
|
+
wdtReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueGoods")), []),
|
|
9009
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9010
|
+
wdtSystemOrderNo: getValue("".concat(nex.uniqueKey, "_wdtSystemOrderNo"))
|
|
9011
|
+
});
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
};
|
|
9015
|
+
var processWdtReturnGoods = function processWdtReturnGoods(templateColumns) {
|
|
9016
|
+
return function (getValue) {
|
|
9017
|
+
return function (nex, config) {
|
|
9018
|
+
// let orderNo = '';
|
|
9019
|
+
// const tradeId = templateColumns?.find(
|
|
9020
|
+
// (col: { workOrderComponentType: string }) => col.workOrderComponentType === 'TRADE_ID_INPUT',
|
|
9021
|
+
// );
|
|
9022
|
+
// if (tradeId) {
|
|
9023
|
+
// orderNo = getValue(
|
|
9024
|
+
// `${tradeId.uniqueKey}_${updateWorkTypeKeys[tradeId.workOrderComponentType]}`,
|
|
9025
|
+
// );
|
|
9026
|
+
// }
|
|
9027
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9028
|
+
wdtReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9029
|
+
wdtReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnGoods")), []),
|
|
9030
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9031
|
+
});
|
|
9032
|
+
};
|
|
9033
|
+
};
|
|
9034
|
+
};
|
|
9035
|
+
var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
9036
|
+
return function (getValue) {
|
|
9037
|
+
return function (nex, config) {
|
|
9038
|
+
var orderNo = '';
|
|
9039
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9040
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9041
|
+
});
|
|
9042
|
+
if (tradeId) {
|
|
9043
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9044
|
+
}
|
|
9045
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9046
|
+
kmSystemOrder: {
|
|
9047
|
+
orderNo: orderNo
|
|
9048
|
+
},
|
|
9049
|
+
kmReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9050
|
+
kmReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueGoods")), []),
|
|
9051
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9052
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9053
|
+
});
|
|
9054
|
+
};
|
|
9055
|
+
};
|
|
9056
|
+
};
|
|
9057
|
+
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9058
|
+
return function (getValue) {
|
|
9059
|
+
return function (nex, config) {
|
|
9060
|
+
var orderNo = '';
|
|
9061
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9062
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9063
|
+
});
|
|
9064
|
+
if (tradeId) {
|
|
9065
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9066
|
+
}
|
|
9067
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9068
|
+
gySystemOrder: {
|
|
9069
|
+
orderNo: orderNo
|
|
9070
|
+
},
|
|
9071
|
+
gyReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9072
|
+
gyReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueGoods")), []),
|
|
9073
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9074
|
+
vipCode: getValue("".concat(nex.uniqueKey, "_vipCode")),
|
|
9075
|
+
gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
|
|
9076
|
+
});
|
|
9077
|
+
};
|
|
9078
|
+
};
|
|
9079
|
+
};
|
|
9080
|
+
var processGyReturnGoods = function processGyReturnGoods(templateColumns) {
|
|
9081
|
+
return function (getValue) {
|
|
9082
|
+
return function (nex, config) {
|
|
9083
|
+
var orderNo = '';
|
|
9084
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9085
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9086
|
+
});
|
|
9087
|
+
if (tradeId) {
|
|
9088
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9089
|
+
}
|
|
9090
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9091
|
+
gySystemOrder: {
|
|
9092
|
+
orderNo: orderNo
|
|
9093
|
+
},
|
|
9094
|
+
gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9095
|
+
gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
|
|
9096
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9097
|
+
gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
|
|
9098
|
+
});
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
|
|
9103
|
+
return function (getValue) {
|
|
9104
|
+
return function (nex, config) {
|
|
9105
|
+
var orderNo = '';
|
|
9106
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9107
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9108
|
+
});
|
|
9109
|
+
if (tradeId) {
|
|
9110
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9111
|
+
}
|
|
9112
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9113
|
+
jstSystemOrder: {
|
|
9114
|
+
orderNo: orderNo
|
|
9115
|
+
},
|
|
9116
|
+
jstReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9117
|
+
jstReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueGoods")), []),
|
|
9118
|
+
jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
|
|
9119
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9120
|
+
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9121
|
+
});
|
|
9122
|
+
};
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
9126
|
+
return function (getValue) {
|
|
9127
|
+
return function (nex, config) {
|
|
9128
|
+
var orderNo = '';
|
|
9129
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9130
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9131
|
+
});
|
|
9132
|
+
if (tradeId) {
|
|
9133
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9134
|
+
}
|
|
9135
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9136
|
+
jstSystemOrder: {
|
|
9137
|
+
orderNo: orderNo
|
|
9138
|
+
},
|
|
9139
|
+
jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9140
|
+
jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
|
|
9141
|
+
jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
|
|
9142
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9143
|
+
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9144
|
+
});
|
|
9145
|
+
};
|
|
9146
|
+
};
|
|
9147
|
+
};
|
|
9148
|
+
var processLabel = function processLabel(getValue) {
|
|
9149
|
+
return function (nex, config) {
|
|
9150
|
+
var _ref72;
|
|
9151
|
+
return _ref72 = {}, _defineProperty(_ref72, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref72, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref72;
|
|
9152
|
+
};
|
|
9153
|
+
};
|
|
9154
|
+
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9155
|
+
return function (nex, config) {
|
|
9156
|
+
var _ref73;
|
|
9157
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref73;
|
|
9158
|
+
};
|
|
9159
|
+
};
|
|
9160
|
+
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
9161
|
+
return function (nex, config) {
|
|
9162
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_afterSalesOrderId")));
|
|
9163
|
+
};
|
|
9164
|
+
};
|
|
9165
|
+
var processSingleField = function processSingleField(getValue) {
|
|
9166
|
+
return function (nex, config) {
|
|
9167
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(updateWorkTypeKeys[nex.workOrderComponentType])));
|
|
9168
|
+
};
|
|
9169
|
+
};
|
|
9170
|
+
var processSingleFieldByKey = function processSingleFieldByKey(key) {
|
|
9171
|
+
return function (getValue) {
|
|
9172
|
+
return function (nex, config) {
|
|
9173
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(key)));
|
|
9174
|
+
};
|
|
9175
|
+
};
|
|
9176
|
+
};
|
|
9177
|
+
var processBsE3ReissueGoods = function processBsE3ReissueGoods(templateColumns) {
|
|
9178
|
+
return function (getValue) {
|
|
9179
|
+
return function (nex, config) {
|
|
9180
|
+
var orderNo = '';
|
|
9181
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9182
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9183
|
+
});
|
|
9184
|
+
if (tradeId) {
|
|
9185
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9186
|
+
}
|
|
9187
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9188
|
+
bsE3SystemOrder: {
|
|
9189
|
+
orderNo: orderNo
|
|
9190
|
+
},
|
|
9191
|
+
bsE3SystemOrderNo: getValue("".concat(nex.uniqueKey, "_bsE3SystemOrderNo")),
|
|
9192
|
+
bsE3ReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9193
|
+
bsE3ReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueGoods")), [])
|
|
9194
|
+
});
|
|
9195
|
+
};
|
|
9196
|
+
};
|
|
9197
|
+
};
|
|
9198
|
+
var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
9199
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'edit';
|
|
9200
|
+
return function (item) {
|
|
9201
|
+
var getValue = getItemValue(item);
|
|
9202
|
+
var componentProcessors = _objectSpread2({
|
|
9203
|
+
RADIO: processRadio,
|
|
9204
|
+
INPUT: processInput,
|
|
9205
|
+
NUMERICAL_CALCULATION: processNumericalCalculation,
|
|
9206
|
+
TEXTAREA: processTextarea,
|
|
9207
|
+
SELECT: processSelect,
|
|
9208
|
+
GY_PAYMENT_METHOD: gyPaymentMethod,
|
|
9209
|
+
RATE: processRate,
|
|
9210
|
+
FILE: processFile,
|
|
9211
|
+
POSTING: processPosting,
|
|
9212
|
+
BUYER_NICK_INPUT: processBuyerNickInput,
|
|
9213
|
+
ALI_PAY_INPUT: processAliPayInput,
|
|
9214
|
+
CHECKBOX: processCheckbox,
|
|
9215
|
+
DATETIME: processDatetime,
|
|
9216
|
+
PICTURE: processPicture,
|
|
9217
|
+
PICTURE_PRO: processPicturePro,
|
|
9218
|
+
BASIC_MULT_SELECT: processBasicMultSelect,
|
|
9219
|
+
MULT_SELECT: processMultSelect,
|
|
9220
|
+
BASIC_ADDRESS: processBasicAddress,
|
|
9221
|
+
RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
|
|
9222
|
+
SUBFORM: processSubForm,
|
|
9223
|
+
EXPRESS_LOGISTICS_SELECT: processExpressLogisticsSelect,
|
|
9224
|
+
RETURN_LOGISTICS_SELECT: processReturnLogisticsSelect,
|
|
9225
|
+
REMARK_INPUT: processRemarkInput,
|
|
9226
|
+
STATUS: processStatus,
|
|
9227
|
+
ORDINARY_INVOICE: processOrdinaryInvoice,
|
|
9228
|
+
LOGISTICS_INTERCEPTION: processLogisticsInterception,
|
|
9229
|
+
LOGISTICS_INTERCEPTION_MORE: processLogisticsInterceptionMore,
|
|
9230
|
+
LOGISTICS_TRAJECTORY: processLogisticsTrajectory,
|
|
9231
|
+
LOGISTICS_TRAJECTORY_MORE: processLogisticsTrajectoryMore,
|
|
9232
|
+
ITEM_SELECT: processGoods,
|
|
9233
|
+
ITEM_ENCODE: processGoods,
|
|
9234
|
+
ITEM_ID: processGoods,
|
|
9235
|
+
ITEM_SELECT_THIRD: processItemSelectThird,
|
|
9236
|
+
ENTERPRISE_PAYMENT: processEnterPrisePayment,
|
|
9237
|
+
JST_LOGISTICS: processJstLogistics,
|
|
9238
|
+
JST_ITEM_SELECT_THIRD: processJstItemSelectThird,
|
|
9239
|
+
JST_SUPPLY: processJstSupply,
|
|
9240
|
+
JST_SEND_GOOD: processJstSendGood,
|
|
9241
|
+
BS_MEMO: processBsMemo,
|
|
9242
|
+
REISSUE_LOGISTICS: processReissueLogistics,
|
|
9243
|
+
REISSUE_STATUS: processCallBackStatus,
|
|
9244
|
+
ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
|
|
9245
|
+
CREATE_STATUS: processCallBackStatus,
|
|
9246
|
+
INVOICE_STATUS: processCallBackStatus,
|
|
9247
|
+
INVOICING_STATUS: processCallBackStatus,
|
|
9248
|
+
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9249
|
+
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9250
|
+
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9251
|
+
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9252
|
+
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9253
|
+
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
9254
|
+
RETURN_GOODS_STATUS: processSceneStatus,
|
|
9255
|
+
EXCHANGE_STATUS: processSceneStatus,
|
|
9256
|
+
WAREHOUSING_STATUS: processSceneStatus,
|
|
9257
|
+
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9258
|
+
MSG_STATUS: processSceneStatus,
|
|
9259
|
+
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9260
|
+
BS_LOGISTICS: processErpLogistics,
|
|
9261
|
+
WLN_LOGISTICS: processErpLogistics,
|
|
9262
|
+
WDT_LOGISTICS: processErpLogistics,
|
|
9263
|
+
GY_LOGISTICS: processErpLogistics,
|
|
9264
|
+
BS_E3_LOGISTICS: processErpLogistics,
|
|
9265
|
+
KM_LOGISTICS: processErpLogistics,
|
|
9266
|
+
BS_SEND_GOOD: processErpSendGood,
|
|
9267
|
+
WLN_SEND_GOOD: processErpSendGood,
|
|
9268
|
+
WDT_SEND_GOOD: processErpSendGood,
|
|
9269
|
+
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9270
|
+
KM_SEND_GOOD: processErpSendGood,
|
|
9271
|
+
GY_SEND_GOOD: processErpSendGood,
|
|
9272
|
+
BS_POSTING: processBsPosting,
|
|
9273
|
+
BS_GOODS: processBsGoods,
|
|
9274
|
+
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9275
|
+
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9276
|
+
GY_GOODS: processGyGoods(templateColumns),
|
|
9277
|
+
KM_GOODS: processKmGoods(templateColumns),
|
|
9278
|
+
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9279
|
+
JST_GOODS: processJstGoods(templateColumns),
|
|
9280
|
+
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9281
|
+
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9282
|
+
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9283
|
+
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9284
|
+
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9285
|
+
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
9286
|
+
JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
|
|
9287
|
+
BS_SYSTEM_ORDER: processErpSystemOrder,
|
|
9288
|
+
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9289
|
+
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9290
|
+
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9291
|
+
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9292
|
+
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9293
|
+
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9294
|
+
BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
|
|
9295
|
+
ORDER_TYPE: processOrderType,
|
|
9296
|
+
REFUND_TYPE: processRefundType,
|
|
9297
|
+
RETURN_GOODS_TRADE_ID: processErpTradeId,
|
|
9298
|
+
BS_DELIVERY_NO: processErpTradeId,
|
|
9299
|
+
REISSUE_TRADE_ID: processErpTradeId,
|
|
9300
|
+
ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
|
|
9301
|
+
EXCHANGE_TRADE_ID: processErpTradeId,
|
|
9302
|
+
WLN_GOODS: processWlnGoods(templateColumns),
|
|
9303
|
+
WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
|
|
9304
|
+
GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
|
|
9305
|
+
GY_RETURN_GOODS: processGyReturnGoods(templateColumns),
|
|
9306
|
+
JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
|
|
9307
|
+
LABEL: processLabel,
|
|
9308
|
+
MEMBER_LEVEL: processMemberLevel,
|
|
9309
|
+
AFTER_SALES_ORDER_ID: processAfterSalesOrderId,
|
|
9310
|
+
BASIC_GRADE: processSingleField,
|
|
9311
|
+
TRADE_ID_INPUT: processSingleField,
|
|
9312
|
+
SHOP_NAME_INPUT: processSingleField,
|
|
9313
|
+
RECEIVER_NAME_INPUT: processSingleField,
|
|
9314
|
+
RECEIVER_MOBILE_INPUT: processSingleField,
|
|
9315
|
+
TRADE_CREATE_DATETIME: processSingleField,
|
|
9316
|
+
TRADE_PAYMENT_DATETIME: processSingleField,
|
|
9317
|
+
TRADE_DELIVERY_DATETIME: processSingleField,
|
|
9318
|
+
TRADE_CLOSING_DATETIME: processSingleField,
|
|
9319
|
+
TRADE_SIGNING_DATETIME: processSingleField,
|
|
9320
|
+
ACTUAL_PAYMENT: processSingleField,
|
|
9321
|
+
SYSTEM_ORDER_NO: processSingleField,
|
|
9322
|
+
BS_SIGNING_TIME: processSingleField,
|
|
9323
|
+
BS_SEND_TIME: processSingleField,
|
|
9324
|
+
BS_TRADE_PAYMENT_TIME: processSingleField,
|
|
9325
|
+
BS_NET_RECEIPTS: processSingleField,
|
|
9326
|
+
BS_PACKAGE_WEIGHT: processSingleField,
|
|
9327
|
+
BS_DEPOSIT: processSingleField,
|
|
9328
|
+
NEW_PAYMENT_STATUS: processSingleField,
|
|
9329
|
+
BUSINESS_ORDER_NO: processSingleField,
|
|
9330
|
+
PAYMENT_VOUCHER_CODE: processSingleField,
|
|
9331
|
+
BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
|
|
9332
|
+
ACTUAL_RECEIPT_PAYMENT: processSingleField,
|
|
9333
|
+
WDT_SHOP: processSingleField,
|
|
9334
|
+
KM_VIDEO: processKmVideo,
|
|
9335
|
+
WDT_TAGS: wdtTags,
|
|
9336
|
+
EXECUTE_ACTION_TYPE: processExecuteActionType,
|
|
9337
|
+
SKX_GOODS: processSkxGoods,
|
|
9338
|
+
SKX_LOGISTICS: processErpLogistics
|
|
9339
|
+
}, Object.keys(processSingleFieldTypeMapping).reduce(function (acc, key) {
|
|
9340
|
+
acc[key] = processSingleFieldByKey(processSingleFieldTypeMapping[key]);
|
|
9341
|
+
return acc;
|
|
9342
|
+
}, {}));
|
|
9343
|
+
return templateColumns.reduce(function (cur, nex) {
|
|
9344
|
+
var _componentProcessors$;
|
|
9345
|
+
var config = type === 'init' ? nex.componentConfig : {};
|
|
9346
|
+
var processFunc = (_componentProcessors$ = componentProcessors[nex.workOrderComponentType]) === null || _componentProcessors$ === void 0 ? void 0 : _componentProcessors$.call(componentProcessors, getValue);
|
|
9347
|
+
if (processFunc) {
|
|
9348
|
+
return _objectSpread2(_objectSpread2({}, cur), processFunc(nex, config));
|
|
9349
|
+
}
|
|
9350
|
+
return cur; // 如果没有找到处理函数,返回当前累积对象
|
|
9351
|
+
}, {});
|
|
9352
|
+
};
|
|
9353
|
+
};
|
|
9354
|
+
|
|
9355
|
+
var hostUrl = 'https://kefu.kuaimai.com';
|
|
9356
|
+
var FileRender = function FileRender(_ref) {
|
|
9357
|
+
var _ref$fileList = _ref.fileList,
|
|
9358
|
+
fileList = _ref$fileList === void 0 ? [] : _ref$fileList,
|
|
9359
|
+
_ref$canDownload = _ref.canDownload,
|
|
9360
|
+
canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
|
|
9361
|
+
id = _ref.id;
|
|
9362
|
+
var _useState = useState(false),
|
|
9363
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9364
|
+
visible = _useState2[0],
|
|
9365
|
+
setVisible = _useState2[1];
|
|
9366
|
+
var _useState3 = useState(''),
|
|
9367
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
9368
|
+
fileUrl = _useState4[0],
|
|
9369
|
+
setFileUrl = _useState4[1];
|
|
9370
|
+
var _useState5 = useState(''),
|
|
9371
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
9372
|
+
fileType = _useState6[0],
|
|
9373
|
+
setFileType = _useState6[1];
|
|
9374
|
+
var _useState7 = useState(''),
|
|
9375
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
9376
|
+
fileName = _useState8[0],
|
|
9377
|
+
setFileName = _useState8[1];
|
|
9378
|
+
var _useState9 = useState(false),
|
|
9379
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9380
|
+
downloading = _useState10[0],
|
|
9381
|
+
setDownloading = _useState10[1];
|
|
9382
|
+
var handleCancel = function handleCancel() {
|
|
9383
|
+
setFileUrl('');
|
|
9384
|
+
setFileName('');
|
|
9385
|
+
setVisible(false);
|
|
9386
|
+
setDownloading(false);
|
|
9387
|
+
};
|
|
9388
|
+
var onPreview = function onPreview(file) {
|
|
9389
|
+
var _file$url;
|
|
9390
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
|
|
9391
|
+
var fileType = fileArr[fileArr.length - 1];
|
|
9392
|
+
if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
|
|
9393
|
+
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
9394
|
+
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
9395
|
+
setFileType('pic');
|
|
9396
|
+
setVisible(true);
|
|
9397
|
+
} else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
|
|
9398
|
+
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
9399
|
+
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
9400
|
+
setFileType('video');
|
|
9401
|
+
setVisible(true);
|
|
9402
|
+
} else {
|
|
9403
|
+
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
9404
|
+
}
|
|
9405
|
+
};
|
|
9406
|
+
var download = function download(url, name) {
|
|
9407
|
+
setDownloading(true);
|
|
9408
|
+
fetch(url).then(function (res) {
|
|
9409
|
+
return res.blob();
|
|
9410
|
+
}).then(function (blob) {
|
|
9411
|
+
var a = document.createElement('a');
|
|
9412
|
+
document.body.appendChild(a);
|
|
9413
|
+
a.style.display = 'none';
|
|
9414
|
+
var url = window.URL.createObjectURL(blob);
|
|
9415
|
+
a.href = url;
|
|
9416
|
+
a.download = name;
|
|
9417
|
+
a.click();
|
|
9418
|
+
document.body.removeChild(a);
|
|
9419
|
+
window.URL.revokeObjectURL(url);
|
|
9420
|
+
}).finally(function () {
|
|
9421
|
+
setDownloading(false);
|
|
9422
|
+
});
|
|
9423
|
+
};
|
|
9424
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9425
|
+
onClick: function onClick(e) {
|
|
9426
|
+
e.stopPropagation();
|
|
9427
|
+
},
|
|
9428
|
+
id: id
|
|
9429
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
9430
|
+
getPopupContainer: function getPopupContainer() {
|
|
9431
|
+
return document.getElementById('subform');
|
|
9432
|
+
},
|
|
9433
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
9434
|
+
onClick: function onClick(e) {
|
|
9435
|
+
e.stopPropagation();
|
|
9436
|
+
}
|
|
9437
|
+
}, fileList.map(function (item) {
|
|
9438
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
9439
|
+
style: {
|
|
9440
|
+
display: 'block',
|
|
9441
|
+
width: '100%',
|
|
9442
|
+
color: '#1890ff',
|
|
9443
|
+
cursor: 'pointer'
|
|
9444
|
+
},
|
|
9445
|
+
onClick: function onClick(e) {
|
|
9446
|
+
console.log('onPreview');
|
|
9447
|
+
e.preventDefault();
|
|
9448
|
+
onPreview(item);
|
|
9449
|
+
},
|
|
9450
|
+
href: item === null || item === void 0 ? void 0 : item.url
|
|
9451
|
+
}, item.name);
|
|
9452
|
+
})),
|
|
9453
|
+
trigger: "hover",
|
|
9454
|
+
placement: "bottom"
|
|
9455
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9456
|
+
style: {
|
|
9457
|
+
overflow: 'hidden',
|
|
9458
|
+
textOverflow: 'ellipsis',
|
|
9459
|
+
whiteSpace: 'nowrap'
|
|
9460
|
+
},
|
|
9461
|
+
onClick: function onClick(e) {
|
|
9462
|
+
e.stopPropagation();
|
|
9463
|
+
}
|
|
9464
|
+
}, fileList.map(function (item) {
|
|
9465
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
9466
|
+
style: {
|
|
9467
|
+
display: 'block',
|
|
9468
|
+
width: '100%',
|
|
9469
|
+
color: '#1890ff',
|
|
9470
|
+
cursor: 'pointer',
|
|
9471
|
+
overflow: 'hidden',
|
|
9472
|
+
textOverflow: 'ellipsis',
|
|
9473
|
+
whiteSpace: 'nowrap'
|
|
9474
|
+
},
|
|
9475
|
+
onClick: function onClick(e) {
|
|
9476
|
+
e.stopPropagation();
|
|
9477
|
+
e.preventDefault();
|
|
9478
|
+
onPreview(item);
|
|
9479
|
+
},
|
|
9480
|
+
href: item === null || item === void 0 ? void 0 : item.url
|
|
9481
|
+
}, item.name);
|
|
9482
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
9483
|
+
visible: visible,
|
|
9484
|
+
title: fileName,
|
|
9485
|
+
footer: null,
|
|
9486
|
+
onCancel: handleCancel,
|
|
9487
|
+
getContainer: function getContainer() {
|
|
9488
|
+
return document.getElementById(id);
|
|
9489
|
+
}
|
|
9490
|
+
}, canDownload ? /*#__PURE__*/React.createElement(Button, {
|
|
9491
|
+
type: "link",
|
|
9492
|
+
onClick: function onClick() {
|
|
9493
|
+
return download(fileUrl, fileName);
|
|
9494
|
+
},
|
|
9495
|
+
loading: downloading
|
|
9496
|
+
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
9497
|
+
text: fileUrl,
|
|
9498
|
+
onCopy: function onCopy() {
|
|
9499
|
+
message.success('复制成功');
|
|
9500
|
+
}
|
|
9501
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
9502
|
+
type: "link"
|
|
9503
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), /*#__PURE__*/React.createElement("div", null, fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
|
|
9504
|
+
alt: "example",
|
|
9505
|
+
style: {
|
|
9506
|
+
width: '100%'
|
|
9507
|
+
},
|
|
9508
|
+
src: fileUrl
|
|
9509
|
+
}) : /*#__PURE__*/React.createElement("video", {
|
|
9510
|
+
style: {
|
|
9511
|
+
width: '100%',
|
|
9512
|
+
height: '100%'
|
|
9513
|
+
},
|
|
9514
|
+
autoPlay: true,
|
|
9515
|
+
controls: true,
|
|
9516
|
+
src: fileUrl
|
|
9517
|
+
}))));
|
|
9518
|
+
};
|
|
9519
|
+
var PictureRender = function PictureRender(_ref2) {
|
|
9520
|
+
var _ref2$value = _ref2.value,
|
|
9521
|
+
value = _ref2$value === void 0 ? [] : _ref2$value,
|
|
9522
|
+
_ref2$width = _ref2.width,
|
|
9523
|
+
width = _ref2$width === void 0 ? 32 : _ref2$width;
|
|
9524
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, value === null || value === void 0 ? void 0 : value.map(function (pic) {
|
|
9525
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9526
|
+
style: {
|
|
9527
|
+
marginRight: '5px',
|
|
9528
|
+
display: 'inline-block'
|
|
9529
|
+
},
|
|
9530
|
+
onClick: function onClick(e) {
|
|
9531
|
+
return e.stopPropagation();
|
|
9532
|
+
}
|
|
9533
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
9534
|
+
width: width,
|
|
9535
|
+
src: imgResize(pic || ''),
|
|
9536
|
+
preview: {
|
|
9537
|
+
src: imgResize(pic || '', 0, 0)
|
|
9538
|
+
}
|
|
9539
|
+
}));
|
|
9540
|
+
}));
|
|
9541
|
+
};
|
|
9542
|
+
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9543
|
+
var _ref5$value = _ref5.value,
|
|
9544
|
+
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
9545
|
+
return value === null || value === void 0 ? void 0 : value.join(',');
|
|
9546
|
+
};
|
|
9547
|
+
var renderMap = {
|
|
9548
|
+
PICTURE: function PICTURE() {
|
|
9549
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
9550
|
+
var finalPictures = value.map(function (item) {
|
|
9551
|
+
return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
|
|
9552
|
+
});
|
|
9553
|
+
return /*#__PURE__*/React.createElement(PictureRender, {
|
|
9554
|
+
value: finalPictures,
|
|
9555
|
+
hostUrl: 'https://kefu.kuaimai.com'
|
|
9556
|
+
});
|
|
9557
|
+
},
|
|
9558
|
+
FILE: function FILE(value, platform) {
|
|
9559
|
+
return /*#__PURE__*/React.createElement(FileRender, {
|
|
9560
|
+
id: "fileRender",
|
|
9561
|
+
fileList: value,
|
|
9562
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
|
|
9563
|
+
});
|
|
9564
|
+
},
|
|
9565
|
+
CHECKBOX: function CHECKBOX(value) {
|
|
9566
|
+
return /*#__PURE__*/React.createElement(MultipleSelectRender, {
|
|
9567
|
+
value: value
|
|
9568
|
+
});
|
|
9569
|
+
},
|
|
9570
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(value) {
|
|
9571
|
+
return /*#__PURE__*/React.createElement(MultipleSelectRender, {
|
|
9572
|
+
value: value
|
|
9573
|
+
});
|
|
9574
|
+
}
|
|
9575
|
+
};
|
|
9576
|
+
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9577
|
+
var _ref6$val = _ref6.val,
|
|
9578
|
+
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
9579
|
+
index = _ref6.index,
|
|
9580
|
+
t = _ref6.t,
|
|
9581
|
+
updateHandle = _ref6.updateHandle,
|
|
9582
|
+
disabled = _ref6.disabled,
|
|
9583
|
+
hostUrl = _ref6.hostUrl,
|
|
9584
|
+
platform = _ref6.platform;
|
|
9585
|
+
var finalPictures = val.map(function (item) {
|
|
9586
|
+
return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
|
|
9587
|
+
});
|
|
9588
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9589
|
+
style: {
|
|
9590
|
+
display: 'flex',
|
|
9591
|
+
flexWrap: 'wrap',
|
|
9592
|
+
border: '1px solid #d9d9d9',
|
|
9593
|
+
padding: '3px'
|
|
9594
|
+
}
|
|
9595
|
+
}, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9596
|
+
style: {
|
|
9597
|
+
fontSize: 18,
|
|
9598
|
+
color: '#aaa'
|
|
9599
|
+
}
|
|
9600
|
+
}) : /*#__PURE__*/React.createElement(Popover, {
|
|
9601
|
+
getPopupContainer: function getPopupContainer() {
|
|
9602
|
+
return document.getElementById('subform');
|
|
9603
|
+
},
|
|
9604
|
+
content: /*#__PURE__*/React.createElement(ApaasUploadAsync$1, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
|
|
9605
|
+
value: finalPictures,
|
|
9606
|
+
onChange: function onChange(e) {
|
|
9607
|
+
return updateHandle(e, index, t.key);
|
|
9608
|
+
},
|
|
9609
|
+
hostUrl: hostUrl,
|
|
9610
|
+
uniqueKey: t.key,
|
|
9611
|
+
platform: platform
|
|
9612
|
+
})),
|
|
9613
|
+
trigger: "click"
|
|
9614
|
+
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9615
|
+
style: {
|
|
9616
|
+
fontSize: 18
|
|
9617
|
+
}
|
|
9618
|
+
})), /*#__PURE__*/React.createElement(PictureRender, {
|
|
9619
|
+
value: finalPictures,
|
|
9620
|
+
width: 24,
|
|
9621
|
+
hostUrl: hostUrl
|
|
9622
|
+
}));
|
|
9623
|
+
};
|
|
9624
|
+
var EditFileRender = function EditFileRender(_ref7) {
|
|
9625
|
+
var _ref7$val = _ref7.val,
|
|
9626
|
+
val = _ref7$val === void 0 ? [] : _ref7$val,
|
|
9627
|
+
index = _ref7.index,
|
|
9628
|
+
t = _ref7.t,
|
|
9629
|
+
updateHandle = _ref7.updateHandle,
|
|
9630
|
+
disabled = _ref7.disabled,
|
|
9631
|
+
hostUrl = _ref7.hostUrl,
|
|
9632
|
+
platform = _ref7.platform;
|
|
9633
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9634
|
+
style: {
|
|
9635
|
+
display: 'flex',
|
|
9636
|
+
flexWrap: 'wrap',
|
|
9637
|
+
border: '1px solid #d9d9d9',
|
|
9638
|
+
padding: '3px'
|
|
9639
|
+
}
|
|
9640
|
+
}, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9641
|
+
style: {
|
|
9642
|
+
fontSize: 18,
|
|
9643
|
+
color: '#aaa'
|
|
9644
|
+
}
|
|
9645
|
+
}) : /*#__PURE__*/React.createElement(Popover, {
|
|
9646
|
+
getPopupContainer: function getPopupContainer() {
|
|
9647
|
+
return document.getElementById('subform');
|
|
9648
|
+
},
|
|
9649
|
+
content: /*#__PURE__*/React.createElement(ApaasUploadFile, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
|
|
9650
|
+
value: val,
|
|
9651
|
+
onChange: function onChange(e) {
|
|
9652
|
+
return updateHandle(e, index, t.key);
|
|
9653
|
+
},
|
|
9654
|
+
hostUrl: hostUrl,
|
|
9655
|
+
platform: platform
|
|
9656
|
+
})),
|
|
9657
|
+
trigger: "click"
|
|
9658
|
+
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9659
|
+
style: {
|
|
9660
|
+
fontSize: 18
|
|
9661
|
+
}
|
|
9662
|
+
})), /*#__PURE__*/React.createElement(FileRender, {
|
|
9663
|
+
id: "fileEdit",
|
|
9664
|
+
fileList: val,
|
|
9665
|
+
canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
|
|
9666
|
+
}));
|
|
9667
|
+
};
|
|
9668
|
+
var EditRenderMap = {
|
|
9669
|
+
INPUT: function INPUT(_ref8) {
|
|
9670
|
+
var val = _ref8.val,
|
|
9671
|
+
record = _ref8.record,
|
|
9672
|
+
index = _ref8.index,
|
|
9673
|
+
t = _ref8.t,
|
|
9674
|
+
updateHandle = _ref8.updateHandle,
|
|
9675
|
+
disabled = _ref8.disabled;
|
|
9676
|
+
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9677
|
+
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
9678
|
+
style: {
|
|
9679
|
+
width: '100%'
|
|
9680
|
+
},
|
|
9681
|
+
value: val,
|
|
9682
|
+
precision: precisionValue,
|
|
9683
|
+
onChange: function onChange(e) {
|
|
9684
|
+
return updateHandle(e, index, t.key);
|
|
9685
|
+
},
|
|
9686
|
+
stringMode: true
|
|
9687
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
9688
|
+
style: {
|
|
9689
|
+
width: '100%'
|
|
9690
|
+
},
|
|
9691
|
+
value: val,
|
|
9692
|
+
onChange: function onChange(e) {
|
|
9693
|
+
var _e$target;
|
|
9694
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
|
|
9695
|
+
}
|
|
9696
|
+
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9697
|
+
},
|
|
9698
|
+
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9699
|
+
var val = _ref9.val,
|
|
9700
|
+
record = _ref9.record,
|
|
9701
|
+
index = _ref9.index,
|
|
9702
|
+
t = _ref9.t,
|
|
9703
|
+
updateHandle = _ref9.updateHandle,
|
|
9704
|
+
disabled = _ref9.disabled;
|
|
9705
|
+
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
9706
|
+
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
9707
|
+
style: {
|
|
9708
|
+
width: '100%'
|
|
9709
|
+
},
|
|
9710
|
+
value: val,
|
|
9711
|
+
precision: precisionValue,
|
|
9712
|
+
onChange: function onChange(e) {
|
|
9713
|
+
return updateHandle(e, index, t.key);
|
|
9714
|
+
},
|
|
9715
|
+
stringMode: true
|
|
9716
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
9717
|
+
style: {
|
|
9718
|
+
width: '100%'
|
|
9719
|
+
},
|
|
9720
|
+
value: val,
|
|
9721
|
+
onChange: function onChange(e) {
|
|
9722
|
+
var _e$target2;
|
|
9723
|
+
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, index, t.key);
|
|
9724
|
+
}
|
|
9725
|
+
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
9726
|
+
},
|
|
9727
|
+
PICTURE: function PICTURE(_ref10) {
|
|
9728
|
+
var val = _ref10.val,
|
|
9729
|
+
record = _ref10.record,
|
|
9730
|
+
index = _ref10.index,
|
|
9731
|
+
t = _ref10.t,
|
|
9732
|
+
updateHandle = _ref10.updateHandle,
|
|
9733
|
+
disabled = _ref10.disabled,
|
|
9734
|
+
platform = _ref10.platform;
|
|
9735
|
+
return /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
9736
|
+
val: val,
|
|
9737
|
+
t: t,
|
|
9738
|
+
disabled: disabled,
|
|
9739
|
+
index: index,
|
|
9740
|
+
updateHandle: updateHandle,
|
|
9741
|
+
hostUrl: hostUrl,
|
|
9742
|
+
platform: platform
|
|
9743
|
+
});
|
|
9744
|
+
},
|
|
9745
|
+
FILE: function FILE(_ref11) {
|
|
9746
|
+
var val = _ref11.val,
|
|
9747
|
+
record = _ref11.record,
|
|
9748
|
+
index = _ref11.index,
|
|
9749
|
+
t = _ref11.t,
|
|
9750
|
+
updateHandle = _ref11.updateHandle,
|
|
9751
|
+
disabled = _ref11.disabled,
|
|
9752
|
+
platform = _ref11.platform;
|
|
9753
|
+
return /*#__PURE__*/React.createElement(EditFileRender, {
|
|
9754
|
+
val: val,
|
|
9755
|
+
t: t,
|
|
9756
|
+
disabled: disabled,
|
|
9757
|
+
index: index,
|
|
9758
|
+
updateHandle: updateHandle,
|
|
9759
|
+
hostUrl: hostUrl,
|
|
9760
|
+
platform: platform
|
|
9761
|
+
});
|
|
9762
|
+
},
|
|
9763
|
+
RADIO: function RADIO(_ref12) {
|
|
9764
|
+
var val = _ref12.val,
|
|
9765
|
+
record = _ref12.record,
|
|
9766
|
+
index = _ref12.index,
|
|
9767
|
+
t = _ref12.t,
|
|
9768
|
+
updateHandle = _ref12.updateHandle,
|
|
9769
|
+
disabled = _ref12.disabled,
|
|
9770
|
+
componentDto = _ref12.componentDto;
|
|
9771
|
+
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
|
|
9772
|
+
getPopupContainer: function getPopupContainer() {
|
|
9773
|
+
return document.getElementById('subform');
|
|
9774
|
+
}
|
|
9775
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9776
|
+
value: val,
|
|
9777
|
+
disabled: t.isEdit || disabled,
|
|
9778
|
+
allowClear: true,
|
|
9779
|
+
placement: "topLeft",
|
|
9780
|
+
listHeight: 120,
|
|
9781
|
+
onChange: function onChange(e) {
|
|
9782
|
+
return updateHandle(e, index, t.key);
|
|
9783
|
+
}
|
|
9784
|
+
}));
|
|
9785
|
+
},
|
|
9786
|
+
SELECT: function SELECT(_ref13) {
|
|
9787
|
+
var val = _ref13.val,
|
|
9788
|
+
record = _ref13.record,
|
|
9789
|
+
index = _ref13.index,
|
|
9790
|
+
t = _ref13.t,
|
|
9791
|
+
updateHandle = _ref13.updateHandle,
|
|
9792
|
+
disabled = _ref13.disabled,
|
|
9793
|
+
componentDto = _ref13.componentDto;
|
|
9794
|
+
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
|
|
9795
|
+
getPopupContainer: function getPopupContainer() {
|
|
9796
|
+
return document.getElementById('subform');
|
|
9797
|
+
}
|
|
9798
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9799
|
+
value: val,
|
|
9800
|
+
disabled: t.isEdit || disabled,
|
|
9801
|
+
allowClear: true,
|
|
9802
|
+
placement: "topLeft",
|
|
9803
|
+
listHeight: 120,
|
|
9804
|
+
onChange: function onChange(e) {
|
|
9805
|
+
return updateHandle(e, index, t.key);
|
|
9806
|
+
}
|
|
9807
|
+
}));
|
|
9808
|
+
},
|
|
9809
|
+
CHECKBOX: function CHECKBOX(_ref14) {
|
|
9810
|
+
var val = _ref14.val,
|
|
9811
|
+
record = _ref14.record,
|
|
9812
|
+
index = _ref14.index,
|
|
9813
|
+
t = _ref14.t,
|
|
9814
|
+
updateHandle = _ref14.updateHandle,
|
|
9815
|
+
disabled = _ref14.disabled,
|
|
9816
|
+
componentDto = _ref14.componentDto;
|
|
9817
|
+
return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
|
|
9818
|
+
getPopupContainer: function getPopupContainer() {
|
|
9819
|
+
return document.getElementById('subform');
|
|
9820
|
+
}
|
|
9821
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9822
|
+
value: val,
|
|
9823
|
+
placement: "topLeft",
|
|
9824
|
+
listHeight: 120,
|
|
9825
|
+
disabled: t.isEdit || disabled,
|
|
9826
|
+
onChange: function onChange(e) {
|
|
9827
|
+
return updateHandle(e, index, t.key);
|
|
9828
|
+
}
|
|
9829
|
+
}));
|
|
9830
|
+
},
|
|
9831
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9832
|
+
var val = _ref15.val,
|
|
9833
|
+
record = _ref15.record,
|
|
9834
|
+
index = _ref15.index,
|
|
9835
|
+
t = _ref15.t,
|
|
9836
|
+
updateHandle = _ref15.updateHandle,
|
|
9837
|
+
disabled = _ref15.disabled,
|
|
9838
|
+
componentDto = _ref15.componentDto;
|
|
9839
|
+
return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
|
|
9840
|
+
getPopupContainer: function getPopupContainer() {
|
|
9841
|
+
return document.getElementById('subform');
|
|
9842
|
+
}
|
|
9843
|
+
}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9844
|
+
value: val,
|
|
9845
|
+
placement: "topLeft",
|
|
9846
|
+
listHeight: 120,
|
|
9847
|
+
disabled: t.isEdit || disabled,
|
|
9848
|
+
onChange: function onChange(e) {
|
|
9849
|
+
return updateHandle(e, index, t.key);
|
|
9850
|
+
}
|
|
9851
|
+
}));
|
|
9852
|
+
}
|
|
9853
|
+
};
|
|
9854
|
+
|
|
8049
9855
|
function HoverTableRowDeleteIcon(_ref) {
|
|
8050
9856
|
var index = _ref.index,
|
|
8051
9857
|
hoveredRowIndex = _ref.hoveredRowIndex,
|
|
@@ -8071,8 +9877,15 @@ function HoverTableRowDeleteIcon(_ref) {
|
|
|
8071
9877
|
|
|
8072
9878
|
var WidgetMap = {
|
|
8073
9879
|
INPUT: 'input',
|
|
8074
|
-
TEXTAREA: 'textarea'
|
|
9880
|
+
TEXTAREA: 'textarea',
|
|
9881
|
+
PICTURE: 'picture',
|
|
9882
|
+
FILE: 'file',
|
|
9883
|
+
RADIO: 'radio',
|
|
9884
|
+
CHECKBOX: 'checkbox',
|
|
9885
|
+
SELECT: 'select',
|
|
9886
|
+
BASIC_MULT_SELECT: 'basicMultSelect'
|
|
8075
9887
|
};
|
|
9888
|
+
var filterComponentType = ['PICTURE', 'FILE'];
|
|
8076
9889
|
var pageSize = 50;
|
|
8077
9890
|
var SubForm = function SubForm(props) {
|
|
8078
9891
|
var _selectOptions$;
|
|
@@ -8121,6 +9934,10 @@ var SubForm = function SubForm(props) {
|
|
|
8121
9934
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
8122
9935
|
hoveredRowIndex = _useState14[0],
|
|
8123
9936
|
setHoveredRowIndex = _useState14[1];
|
|
9937
|
+
var _useState15 = useState([]),
|
|
9938
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
9939
|
+
componentDtoList = _useState16[0],
|
|
9940
|
+
setComponentDtoList = _useState16[1];
|
|
8124
9941
|
var updateHandle = function updateHandle(val, index, type) {
|
|
8125
9942
|
if (value === null || value === void 0 ? void 0 : value.length) {
|
|
8126
9943
|
var valueItem = tableHeader.find(function (t) {
|
|
@@ -8174,18 +9991,17 @@ var SubForm = function SubForm(props) {
|
|
|
8174
9991
|
ellipsis: true,
|
|
8175
9992
|
width: t.width,
|
|
8176
9993
|
render: function render(val, record, index) {
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
stringMode: true
|
|
9994
|
+
return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
|
|
9995
|
+
val: val,
|
|
9996
|
+
record: record,
|
|
9997
|
+
index: index,
|
|
9998
|
+
t: t,
|
|
9999
|
+
updateHandle: updateHandle,
|
|
10000
|
+
disabled: disabled,
|
|
10001
|
+
componentDto: componentDtoList.find(function (item) {
|
|
10002
|
+
return item.uniqueKey === t.key;
|
|
10003
|
+
}),
|
|
10004
|
+
platform: platform
|
|
8189
10005
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
8190
10006
|
style: {
|
|
8191
10007
|
width: '100%'
|
|
@@ -8195,7 +10011,7 @@ var SubForm = function SubForm(props) {
|
|
|
8195
10011
|
var _e$target;
|
|
8196
10012
|
return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
|
|
8197
10013
|
}
|
|
8198
|
-
})
|
|
10014
|
+
});
|
|
8199
10015
|
}
|
|
8200
10016
|
};
|
|
8201
10017
|
})), [disabled ? {} : {
|
|
@@ -8236,28 +10052,44 @@ var SubForm = function SubForm(props) {
|
|
|
8236
10052
|
return index + 1;
|
|
8237
10053
|
}
|
|
8238
10054
|
}].concat(_toConsumableArray(newTableHeader.map(function (t) {
|
|
8239
|
-
|
|
10055
|
+
var item = {
|
|
8240
10056
|
dataIndex: t.key,
|
|
8241
10057
|
title: t.name,
|
|
8242
10058
|
width: 90
|
|
8243
10059
|
};
|
|
10060
|
+
if (renderMap[t.workOrderComponentType]) {
|
|
10061
|
+
item.render = function (val) {
|
|
10062
|
+
return renderMap[t.workOrderComponentType](val, platform);
|
|
10063
|
+
};
|
|
10064
|
+
}
|
|
10065
|
+
return item;
|
|
8244
10066
|
})));
|
|
8245
10067
|
}, [newTableHeader]);
|
|
8246
10068
|
var valueMap = useMemo(function () {
|
|
8247
10069
|
return newTableHeader.reduce(function (prv, next) {
|
|
8248
|
-
|
|
10070
|
+
var item = {
|
|
10071
|
+
key: next.key,
|
|
10072
|
+
workOrderComponentType: next.workOrderComponentType,
|
|
10073
|
+
defaultValue: ''
|
|
10074
|
+
};
|
|
10075
|
+
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
10076
|
+
item.defaultValue = [];
|
|
10077
|
+
}
|
|
10078
|
+
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
8249
10079
|
return prv;
|
|
8250
10080
|
}, {});
|
|
8251
10081
|
}, [newTableHeader]);
|
|
8252
10082
|
var defaultValueMap = useMemo(function () {
|
|
8253
10083
|
return Object.keys(valueMap).reduce(function (prv, next) {
|
|
8254
|
-
prv["".concat(valueMap[next])] =
|
|
10084
|
+
prv["".concat(valueMap[next].key)] = valueMap[next].defaultValue;
|
|
8255
10085
|
return prv;
|
|
8256
10086
|
}, {});
|
|
8257
10087
|
}, [valueMap]);
|
|
8258
10088
|
var selectOptions = useMemo(function () {
|
|
8259
10089
|
var _options$;
|
|
8260
|
-
var options = newTableHeader.
|
|
10090
|
+
var options = newTableHeader.filter(function (item) {
|
|
10091
|
+
return !filterComponentType.includes(item.workOrderComponentType);
|
|
10092
|
+
}).map(function (item) {
|
|
8261
10093
|
return {
|
|
8262
10094
|
label: item.name,
|
|
8263
10095
|
value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
|
|
@@ -8299,16 +10131,20 @@ var SubForm = function SubForm(props) {
|
|
|
8299
10131
|
var _ref2,
|
|
8300
10132
|
_ref2$pageNo,
|
|
8301
10133
|
pageNo,
|
|
10134
|
+
_ref2$componentList,
|
|
10135
|
+
componentList,
|
|
8302
10136
|
params,
|
|
8303
10137
|
res,
|
|
8304
10138
|
data,
|
|
8305
10139
|
success,
|
|
10140
|
+
transDataSourceItem,
|
|
10141
|
+
headerKeys,
|
|
8306
10142
|
newList,
|
|
8307
10143
|
_args = arguments;
|
|
8308
10144
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8309
10145
|
while (1) switch (_context.prev = _context.next) {
|
|
8310
10146
|
case 0:
|
|
8311
|
-
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
|
|
10147
|
+
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo, _ref2$componentList = _ref2.componentList, componentList = _ref2$componentList === void 0 ? [] : _ref2$componentList;
|
|
8312
10148
|
if (!disabled) {
|
|
8313
10149
|
_context.next = 3;
|
|
8314
10150
|
break;
|
|
@@ -8349,13 +10185,18 @@ var SubForm = function SubForm(props) {
|
|
|
8349
10185
|
res = _context.sent;
|
|
8350
10186
|
data = res.data, success = res.success;
|
|
8351
10187
|
if (success) {
|
|
10188
|
+
transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'edit');
|
|
10189
|
+
headerKeys = correlationList.map(function (t) {
|
|
10190
|
+
return t.key;
|
|
10191
|
+
});
|
|
8352
10192
|
newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
10193
|
+
var value = transDataSourceItem(item);
|
|
8353
10194
|
var params = {
|
|
8354
10195
|
uuid: uuid()
|
|
8355
10196
|
};
|
|
8356
|
-
Object.keys(
|
|
8357
|
-
if (
|
|
8358
|
-
params[
|
|
10197
|
+
Object.keys(value).forEach(function (key) {
|
|
10198
|
+
if (headerKeys.includes(key)) {
|
|
10199
|
+
params[key] = value[key];
|
|
8359
10200
|
}
|
|
8360
10201
|
});
|
|
8361
10202
|
return params;
|
|
@@ -8379,10 +10220,61 @@ var SubForm = function SubForm(props) {
|
|
|
8379
10220
|
return _ref.apply(this, arguments);
|
|
8380
10221
|
};
|
|
8381
10222
|
}();
|
|
10223
|
+
var getTemplateDetail = /*#__PURE__*/function () {
|
|
10224
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
10225
|
+
var _yield$request, templateDetail;
|
|
10226
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10227
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10228
|
+
case 0:
|
|
10229
|
+
_context2.next = 2;
|
|
10230
|
+
return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
|
|
10231
|
+
method: 'post',
|
|
10232
|
+
data: {
|
|
10233
|
+
templateType: 'QY_CUSTOM',
|
|
10234
|
+
uniqueKey: workOrderTemplateId
|
|
10235
|
+
}
|
|
10236
|
+
});
|
|
10237
|
+
case 2:
|
|
10238
|
+
_yield$request = _context2.sent;
|
|
10239
|
+
templateDetail = _yield$request.data;
|
|
10240
|
+
setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
|
|
10241
|
+
return _context2.abrupt("return", (templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
|
|
10242
|
+
case 6:
|
|
10243
|
+
case "end":
|
|
10244
|
+
return _context2.stop();
|
|
10245
|
+
}
|
|
10246
|
+
}, _callee2);
|
|
10247
|
+
}));
|
|
10248
|
+
return function getTemplateDetail() {
|
|
10249
|
+
return _ref3.apply(this, arguments);
|
|
10250
|
+
};
|
|
10251
|
+
}();
|
|
10252
|
+
var initHandle = /*#__PURE__*/function () {
|
|
10253
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10254
|
+
var componentList;
|
|
10255
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10256
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
10257
|
+
case 0:
|
|
10258
|
+
_context3.next = 2;
|
|
10259
|
+
return getTemplateDetail();
|
|
10260
|
+
case 2:
|
|
10261
|
+
componentList = _context3.sent;
|
|
10262
|
+
getWorkOrderList({
|
|
10263
|
+
pageNo: 1,
|
|
10264
|
+
componentList: componentList
|
|
10265
|
+
});
|
|
10266
|
+
case 4:
|
|
10267
|
+
case "end":
|
|
10268
|
+
return _context3.stop();
|
|
10269
|
+
}
|
|
10270
|
+
}, _callee3);
|
|
10271
|
+
}));
|
|
10272
|
+
return function initHandle() {
|
|
10273
|
+
return _ref4.apply(this, arguments);
|
|
10274
|
+
};
|
|
10275
|
+
}();
|
|
8382
10276
|
useEffect(function () {
|
|
8383
|
-
|
|
8384
|
-
pageNo: 1
|
|
8385
|
-
});
|
|
10277
|
+
initHandle();
|
|
8386
10278
|
}, []);
|
|
8387
10279
|
useUpdateEffect(function () {
|
|
8388
10280
|
setPageNo(1);
|
|
@@ -8447,7 +10339,7 @@ var SubForm = function SubForm(props) {
|
|
|
8447
10339
|
ref: ref,
|
|
8448
10340
|
onScrollCapture: onScrollCapture,
|
|
8449
10341
|
style: {
|
|
8450
|
-
height:
|
|
10342
|
+
height: 200,
|
|
8451
10343
|
maxWidth: platform !== 'pc' ? '325px' : '700px',
|
|
8452
10344
|
overflowY: 'scroll',
|
|
8453
10345
|
overflowX: 'auto'
|
|
@@ -8485,6 +10377,7 @@ var SubForm = function SubForm(props) {
|
|
|
8485
10377
|
onChangeInput(e.target.value);
|
|
8486
10378
|
}
|
|
8487
10379
|
}))), /*#__PURE__*/React.createElement(Table, {
|
|
10380
|
+
id: "subform",
|
|
8488
10381
|
columns: column,
|
|
8489
10382
|
dataSource: value,
|
|
8490
10383
|
rowKey: 'uuid',
|
|
@@ -18277,7 +20170,7 @@ var isErpType = {
|
|
|
18277
20170
|
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
18278
20171
|
}
|
|
18279
20172
|
};
|
|
18280
|
-
var processGoods = function processGoods(_ref) {
|
|
20173
|
+
var processGoods$1 = function processGoods(_ref) {
|
|
18281
20174
|
var list = _ref.list,
|
|
18282
20175
|
type = _ref.type,
|
|
18283
20176
|
canUpdateNumber = _ref.canUpdateNumber,
|
|
@@ -18286,35 +20179,35 @@ var processGoods = function processGoods(_ref) {
|
|
|
18286
20179
|
var newList = [];
|
|
18287
20180
|
// 根据商品类型处理数据
|
|
18288
20181
|
if (isErpType.isWdt(type)) {
|
|
18289
|
-
newList = processWdtGoods({
|
|
20182
|
+
newList = processWdtGoods$1({
|
|
18290
20183
|
list: list,
|
|
18291
20184
|
type: type,
|
|
18292
20185
|
canUpdateNumber: canUpdateNumber,
|
|
18293
20186
|
source: source
|
|
18294
20187
|
});
|
|
18295
20188
|
} else if (isErpType.isBsE3(type)) {
|
|
18296
|
-
newList = processBsE3Goods({
|
|
20189
|
+
newList = processBsE3Goods$1({
|
|
18297
20190
|
list: list,
|
|
18298
20191
|
type: type,
|
|
18299
20192
|
canUpdateNumber: canUpdateNumber,
|
|
18300
20193
|
source: source
|
|
18301
20194
|
});
|
|
18302
20195
|
} else if (isErpType.isGy(type)) {
|
|
18303
|
-
newList = processGyGoods({
|
|
20196
|
+
newList = processGyGoods$1({
|
|
18304
20197
|
list: list,
|
|
18305
20198
|
type: type,
|
|
18306
20199
|
canUpdateNumber: canUpdateNumber,
|
|
18307
20200
|
source: source
|
|
18308
20201
|
});
|
|
18309
20202
|
} else if (isErpType.isJst(type)) {
|
|
18310
|
-
newList = processJstGoods({
|
|
20203
|
+
newList = processJstGoods$1({
|
|
18311
20204
|
list: list,
|
|
18312
20205
|
type: type,
|
|
18313
20206
|
canUpdateNumber: canUpdateNumber,
|
|
18314
20207
|
source: source
|
|
18315
20208
|
});
|
|
18316
20209
|
} else if (isErpType.isKm(type)) {
|
|
18317
|
-
newList = processKmGoods({
|
|
20210
|
+
newList = processKmGoods$1({
|
|
18318
20211
|
list: list,
|
|
18319
20212
|
type: type,
|
|
18320
20213
|
canUpdateNumber: canUpdateNumber,
|
|
@@ -18331,7 +20224,7 @@ var processGoods = function processGoods(_ref) {
|
|
|
18331
20224
|
return newList;
|
|
18332
20225
|
};
|
|
18333
20226
|
// 处理不同类型的商品数据
|
|
18334
|
-
var processWdtGoods = function processWdtGoods(_ref2) {
|
|
20227
|
+
var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
18335
20228
|
var list = _ref2.list,
|
|
18336
20229
|
type = _ref2.type,
|
|
18337
20230
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
@@ -18352,7 +20245,7 @@ var processWdtGoods = function processWdtGoods(_ref2) {
|
|
|
18352
20245
|
return processedItem;
|
|
18353
20246
|
});
|
|
18354
20247
|
};
|
|
18355
|
-
var processBsE3Goods = function processBsE3Goods(_ref3) {
|
|
20248
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
|
|
18356
20249
|
var list = _ref3.list,
|
|
18357
20250
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
18358
20251
|
return list.map(function (item) {
|
|
@@ -18389,7 +20282,7 @@ var processBsE3Goods = function processBsE3Goods(_ref3) {
|
|
|
18389
20282
|
});
|
|
18390
20283
|
});
|
|
18391
20284
|
};
|
|
18392
|
-
var processGyGoods = function processGyGoods(_ref4) {
|
|
20285
|
+
var processGyGoods$1 = function processGyGoods(_ref4) {
|
|
18393
20286
|
var list = _ref4.list,
|
|
18394
20287
|
source = _ref4.source;
|
|
18395
20288
|
var isFormWorkOrder = source === 'workOrder';
|
|
@@ -18418,7 +20311,7 @@ var processGyGoods = function processGyGoods(_ref4) {
|
|
|
18418
20311
|
});
|
|
18419
20312
|
});
|
|
18420
20313
|
};
|
|
18421
|
-
var processJstGoods = function processJstGoods(_ref5) {
|
|
20314
|
+
var processJstGoods$1 = function processJstGoods(_ref5) {
|
|
18422
20315
|
var list = _ref5.list;
|
|
18423
20316
|
return list.map(function (item) {
|
|
18424
20317
|
return {
|
|
@@ -18437,7 +20330,7 @@ var processJstGoods = function processJstGoods(_ref5) {
|
|
|
18437
20330
|
};
|
|
18438
20331
|
});
|
|
18439
20332
|
};
|
|
18440
|
-
var processKmGoods = function processKmGoods(_ref6) {
|
|
20333
|
+
var processKmGoods$1 = function processKmGoods(_ref6) {
|
|
18441
20334
|
var list = _ref6.list,
|
|
18442
20335
|
type = _ref6.type;
|
|
18443
20336
|
var initParamsMap = {
|
|
@@ -18927,7 +20820,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
18927
20820
|
}].concat(_toConsumableArray(columns));
|
|
18928
20821
|
}, []);
|
|
18929
20822
|
var onSubmit = function onSubmit(list) {
|
|
18930
|
-
var newList = processGoods({
|
|
20823
|
+
var newList = processGoods$1({
|
|
18931
20824
|
list: list,
|
|
18932
20825
|
canUpdateNumber: canUpdateNumber,
|
|
18933
20826
|
type: type,
|
|
@@ -24794,4 +26687,4 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
24794
26687
|
}));
|
|
24795
26688
|
};
|
|
24796
26689
|
|
|
24797
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$6 as getKmColumns, getColumns$7 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants };
|
|
26690
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$6 as getKmColumns, getColumns$7 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
|