@kmkf-fe-packages/basic-components 2.2.5-beta.3 → 2.2.5-beta.30
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 +1580 -196
- package/dist/index.js +1581 -195
- package/dist/src/apaas/SubForm/render.d.ts +5 -2
- package/dist/src/apaas/SubForm/transformWorkOrderData.d.ts +15 -0
- package/dist/src/business/LogisticsInterception/index.d.ts +1 -0
- package/dist/src/jst/Goods/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,9 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
+
import every from 'lodash/every';
|
|
8
|
+
import maxBy from 'lodash/maxBy';
|
|
7
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
8
10
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
11
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
@@ -7227,7 +7229,7 @@ var ApaasUploadFile = function ApaasUploadFile(_ref) {
|
|
|
7227
7229
|
var _ref$maxCount = _ref.maxCount,
|
|
7228
7230
|
maxCount = _ref$maxCount === void 0 ? 20 : _ref$maxCount,
|
|
7229
7231
|
_ref$maxSize = _ref.maxSize,
|
|
7230
|
-
maxSize = _ref$maxSize === void 0 ?
|
|
7232
|
+
maxSize = _ref$maxSize === void 0 ? 200 : _ref$maxSize,
|
|
7231
7233
|
_ref$onChange = _ref.onChange,
|
|
7232
7234
|
onChange = _ref$onChange === void 0 ? fn$3 : _ref$onChange,
|
|
7233
7235
|
_ref$value = _ref.value,
|
|
@@ -8046,6 +8048,1310 @@ function withFormItem(WrappedComponent) {
|
|
|
8046
8048
|
*/
|
|
8047
8049
|
var extendRequest = extend$1({});
|
|
8048
8050
|
|
|
8051
|
+
var updateWorkTypeKeys = {
|
|
8052
|
+
BASIC_GRADE: 'basicGrade',
|
|
8053
|
+
TRADE_ID_INPUT: 'tradeId',
|
|
8054
|
+
SHOP_NAME_INPUT: 'shopName',
|
|
8055
|
+
RECEIVER_NAME_INPUT: 'receiveName',
|
|
8056
|
+
RECEIVER_MOBILE_INPUT: 'receiveMobile',
|
|
8057
|
+
TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
|
|
8058
|
+
TRADE_PAYMENT_DATETIME: 'tradePaymentDateTime',
|
|
8059
|
+
TRADE_DELIVERY_DATETIME: 'tradeDeliveryDateTime',
|
|
8060
|
+
TRADE_CLOSING_DATETIME: 'tradeClosingDateTime',
|
|
8061
|
+
TRADE_SIGNING_DATETIME: 'tradeSigningDateTime',
|
|
8062
|
+
ACTUAL_PAYMENT: 'actualPayment',
|
|
8063
|
+
SYSTEM_ORDER_NO: 'systemOrderNo',
|
|
8064
|
+
BS_SIGNING_TIME: 'bsSigningTime',
|
|
8065
|
+
BS_SEND_TIME: 'bsSendTime',
|
|
8066
|
+
BS_TRADE_PAYMENT_TIME: 'bsTradePaymentTime',
|
|
8067
|
+
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
8068
|
+
BS_PACKAGE_WEIGHT: 'bsPackageWeight',
|
|
8069
|
+
BS_DEPOSIT: 'bsDeposit',
|
|
8070
|
+
NEW_PAYMENT_STATUS: 'newPaymentStatus',
|
|
8071
|
+
BUSINESS_ORDER_NO: 'businessOrderNo',
|
|
8072
|
+
PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
|
|
8073
|
+
ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
|
|
8074
|
+
WDT_SHOP: 'shopCode'
|
|
8075
|
+
};
|
|
8076
|
+
var systemOrderMap = {
|
|
8077
|
+
BS_SYSTEM_ORDER: {
|
|
8078
|
+
no: 'bsSystemOrderNo',
|
|
8079
|
+
ids: 'bsSystemSelectIds',
|
|
8080
|
+
order: 'bsSystemShowOrder'
|
|
8081
|
+
},
|
|
8082
|
+
KM_SYSTEM_ORDER: {
|
|
8083
|
+
no: 'kmSystemOrderNo',
|
|
8084
|
+
ids: 'kmSystemSelectIds',
|
|
8085
|
+
order: 'kmSystemShowOrder'
|
|
8086
|
+
},
|
|
8087
|
+
WLN_SYSTEM_ORDER: {
|
|
8088
|
+
no: 'wlnSystemOrderNo',
|
|
8089
|
+
ids: 'wlnSystemSelectIds',
|
|
8090
|
+
order: 'wlnSystemShowOrder'
|
|
8091
|
+
},
|
|
8092
|
+
WDT_SYSTEM_ORDER: {
|
|
8093
|
+
no: 'wdtSystemOrderNo',
|
|
8094
|
+
ids: 'wdtSystemSelectIds',
|
|
8095
|
+
order: 'wdtSystemShowOrder'
|
|
8096
|
+
},
|
|
8097
|
+
BS_E3_SYSTEM_ORDER: {
|
|
8098
|
+
no: 'bsE3SystemOrderNo',
|
|
8099
|
+
ids: 'bsE3SystemSelectIds',
|
|
8100
|
+
order: 'bsE3SystemShowOrder'
|
|
8101
|
+
},
|
|
8102
|
+
GY_SYSTEM_ORDER: {
|
|
8103
|
+
no: 'gySystemOrderNo',
|
|
8104
|
+
ids: 'gySystemSelectIds',
|
|
8105
|
+
order: 'gySystemShowOrder'
|
|
8106
|
+
},
|
|
8107
|
+
JST_SYSTEM_ORDER: {
|
|
8108
|
+
no: 'jstSystemOrderNo',
|
|
8109
|
+
ids: 'jstSystemSelectIds',
|
|
8110
|
+
order: 'jstSystemShowOrder'
|
|
8111
|
+
}
|
|
8112
|
+
};
|
|
8113
|
+
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
8114
|
+
var processSingleFieldTypeMapping = {
|
|
8115
|
+
SKX_OUTBOUND_NOTICE_NO: 'skxOutboundNoticeNo',
|
|
8116
|
+
SKX_SHOP_NAME: 'skxShopName',
|
|
8117
|
+
SKX_WAREHOUSE: 'skxWarehouse',
|
|
8118
|
+
SKX_ORDER_TYPE: 'skxOrderType',
|
|
8119
|
+
SKX_ORDER_STATUS: 'skxOrderStatus',
|
|
8120
|
+
SKX_CREATE_TIME: 'dateTime'
|
|
8121
|
+
};
|
|
8122
|
+
var jsonParseSecurity = function jsonParseSecurity(value, securityValue) {
|
|
8123
|
+
try {
|
|
8124
|
+
return JSON.parse(value);
|
|
8125
|
+
} catch (e) {
|
|
8126
|
+
// console.error('JSON解析异常', value, typeof value);
|
|
8127
|
+
return securityValue;
|
|
8128
|
+
}
|
|
8129
|
+
};
|
|
8130
|
+
var transTextToNumber = function transTextToNumber(value) {
|
|
8131
|
+
return value ? +value : value;
|
|
8132
|
+
};
|
|
8133
|
+
var formatPictures = function formatPictures(pictures) {
|
|
8134
|
+
pictures = pictures.replace(/[\[\]]/g, '');
|
|
8135
|
+
pictures = pictures.replace(/\s/g, '');
|
|
8136
|
+
pictures = pictures ? pictures.split(',') : [];
|
|
8137
|
+
return pictures;
|
|
8138
|
+
};
|
|
8139
|
+
var getItemValue = function getItemValue(item) {
|
|
8140
|
+
return function (key) {
|
|
8141
|
+
return item.jsonMap[key];
|
|
8142
|
+
};
|
|
8143
|
+
};
|
|
8144
|
+
var processRadio = function processRadio(getValue) {
|
|
8145
|
+
return function (nex, config) {
|
|
8146
|
+
var radio, radioOther;
|
|
8147
|
+
if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) === '其他') {
|
|
8148
|
+
radio = config.showOther ? config.radio : undefined;
|
|
8149
|
+
radioOther = config.showOther ? config.radioOther : undefined;
|
|
8150
|
+
}
|
|
8151
|
+
if ((config === null || config === void 0 ? void 0 : config.radio) && (config === null || config === void 0 ? void 0 : config.radio) !== '其他') {
|
|
8152
|
+
radio = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (t) {
|
|
8153
|
+
return t.value === (config === null || config === void 0 ? void 0 : config.radio);
|
|
8154
|
+
}) ? config.radio : undefined;
|
|
8155
|
+
}
|
|
8156
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_radio")) || radio);
|
|
8157
|
+
};
|
|
8158
|
+
};
|
|
8159
|
+
var processInput = function processInput(getValue) {
|
|
8160
|
+
return function (nex, config) {
|
|
8161
|
+
var _getValue;
|
|
8162
|
+
return _defineProperty({}, nex.uniqueKey, (_getValue = getValue("".concat(nex.uniqueKey, "_input"))) !== null && _getValue !== void 0 ? _getValue : config === null || config === void 0 ? void 0 : config.input);
|
|
8163
|
+
};
|
|
8164
|
+
};
|
|
8165
|
+
var processNumericalCalculation = function processNumericalCalculation(getValue) {
|
|
8166
|
+
return function (nex, config) {
|
|
8167
|
+
var _getValue2;
|
|
8168
|
+
return _defineProperty({}, nex.uniqueKey, (_getValue2 = getValue("".concat(nex.uniqueKey, "_numericalCalculation"))) !== null && _getValue2 !== void 0 ? _getValue2 : config === null || config === void 0 ? void 0 : config.numericalCalculation);
|
|
8169
|
+
};
|
|
8170
|
+
};
|
|
8171
|
+
var processTextarea = function processTextarea(getValue) {
|
|
8172
|
+
return function (nex, config) {
|
|
8173
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_textarea")) || (config === null || config === void 0 ? void 0 : config.textarea));
|
|
8174
|
+
};
|
|
8175
|
+
};
|
|
8176
|
+
var processSelect = function processSelect(getValue) {
|
|
8177
|
+
return function (nex, config) {
|
|
8178
|
+
var select = ((config === null || config === void 0 ? void 0 : config.options) || []).some(function (item) {
|
|
8179
|
+
return item.value === (config === null || config === void 0 ? void 0 : config.select);
|
|
8180
|
+
}) ? config.select : undefined;
|
|
8181
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_select")) || select);
|
|
8182
|
+
};
|
|
8183
|
+
};
|
|
8184
|
+
var gyPaymentMethod = function gyPaymentMethod(getValue) {
|
|
8185
|
+
return function (nex, config) {
|
|
8186
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_gyPaymentMethod")));
|
|
8187
|
+
};
|
|
8188
|
+
};
|
|
8189
|
+
var processRate = function processRate(getValue) {
|
|
8190
|
+
return function (nex, config) {
|
|
8191
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_rate")), []));
|
|
8192
|
+
};
|
|
8193
|
+
};
|
|
8194
|
+
var processFile = function processFile(getValue) {
|
|
8195
|
+
return function (nex, config) {
|
|
8196
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_file")), []));
|
|
8197
|
+
};
|
|
8198
|
+
};
|
|
8199
|
+
var processKmVideo = function processKmVideo(getValue) {
|
|
8200
|
+
return function (nex, config) {
|
|
8201
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmVideo")), []));
|
|
8202
|
+
};
|
|
8203
|
+
};
|
|
8204
|
+
var processPosting = function processPosting(getValue) {
|
|
8205
|
+
return function (nex, config) {
|
|
8206
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingCity")))];
|
|
8207
|
+
var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_postingDistrict")));
|
|
8208
|
+
interceptDistrict && address.push(interceptDistrict);
|
|
8209
|
+
address = every(address, function (item) {
|
|
8210
|
+
return !item;
|
|
8211
|
+
}) ? [] : address;
|
|
8212
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8213
|
+
postingAddress: address,
|
|
8214
|
+
postingDetail: getValue("".concat(nex.uniqueKey, "_postingDetail")),
|
|
8215
|
+
postingReceiverName: getValue("".concat(nex.uniqueKey, "_postingReceiverName")),
|
|
8216
|
+
postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_postingReceiverMobile"))
|
|
8217
|
+
});
|
|
8218
|
+
};
|
|
8219
|
+
};
|
|
8220
|
+
var processBuyerNickInput = function processBuyerNickInput(getValue) {
|
|
8221
|
+
return function (nex, config) {
|
|
8222
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8223
|
+
buyerNick: getValue("".concat(nex.uniqueKey, "_buyerNick")),
|
|
8224
|
+
buyerOpenUid: getValue("".concat(nex.uniqueKey, "_buyerOpenUid"))
|
|
8225
|
+
});
|
|
8226
|
+
};
|
|
8227
|
+
};
|
|
8228
|
+
var processAliPayInput = function processAliPayInput(getValue) {
|
|
8229
|
+
return function (nex, config) {
|
|
8230
|
+
var _ref12;
|
|
8231
|
+
return _ref12 = {}, _defineProperty(_ref12, nex.uniqueKey, {
|
|
8232
|
+
name: getValue("".concat(nex.uniqueKey, "_alipayName")),
|
|
8233
|
+
user: getValue("".concat(nex.uniqueKey, "_alipayAccount"))
|
|
8234
|
+
}), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayName"), getValue("".concat(nex.uniqueKey, "_alipayName"))), _defineProperty(_ref12, "".concat(nex.uniqueKey, "_alipayAccount"), getValue("".concat(nex.uniqueKey, "_alipayAccount"))), _ref12;
|
|
8235
|
+
};
|
|
8236
|
+
};
|
|
8237
|
+
var processCheckbox = function processCheckbox(getValue) {
|
|
8238
|
+
return function (nex, config) {
|
|
8239
|
+
var _config$checkbox, _config$checkbox2, _config$checkbox3, _config$checkbox4;
|
|
8240
|
+
var checkbox = [],
|
|
8241
|
+
checkboxOther = '';
|
|
8242
|
+
if ((config === null || config === void 0 ? void 0 : (_config$checkbox = config.checkbox) === null || _config$checkbox === void 0 ? void 0 : _config$checkbox.length) && (config === null || config === void 0 ? void 0 : (_config$checkbox2 = config.checkbox) === null || _config$checkbox2 === void 0 ? void 0 : _config$checkbox2.includes('其他'))) {
|
|
8243
|
+
checkbox = config.showOther ? config.checkbox : config.checkbox.filter(function (t) {
|
|
8244
|
+
return t !== '其他';
|
|
8245
|
+
});
|
|
8246
|
+
checkboxOther = config.showOther ? config.checkboxOther : undefined;
|
|
8247
|
+
}
|
|
8248
|
+
if ((config === null || config === void 0 ? void 0 : (_config$checkbox3 = config.checkbox) === null || _config$checkbox3 === void 0 ? void 0 : _config$checkbox3.length) && !(config === null || config === void 0 ? void 0 : (_config$checkbox4 = config.checkbox) === null || _config$checkbox4 === void 0 ? void 0 : _config$checkbox4.includes('其他'))) {
|
|
8249
|
+
checkbox = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8250
|
+
if (config.checkbox.includes(next.value)) {
|
|
8251
|
+
prv.push(next.value);
|
|
8252
|
+
}
|
|
8253
|
+
return prv;
|
|
8254
|
+
}, []);
|
|
8255
|
+
}
|
|
8256
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_checkbox")), '') || checkbox);
|
|
8257
|
+
};
|
|
8258
|
+
};
|
|
8259
|
+
var processDatetime = function processDatetime(getValue) {
|
|
8260
|
+
return function (nex, config) {
|
|
8261
|
+
var v = getValue("".concat(nex.uniqueKey, "_dateTime"));
|
|
8262
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, v) || (config === null || config === void 0 ? void 0 : config.dateTime));
|
|
8263
|
+
};
|
|
8264
|
+
};
|
|
8265
|
+
var processPicture = function processPicture(getValue) {
|
|
8266
|
+
return function (nex, config) {
|
|
8267
|
+
var v = getValue("".concat(nex.uniqueKey, "_picture"));
|
|
8268
|
+
return _defineProperty({}, nex.uniqueKey, v ? formatPictures(v).map(function (item) {
|
|
8269
|
+
return "".concat(item);
|
|
8270
|
+
}) : (config === null || config === void 0 ? void 0 : config.picture) || []);
|
|
8271
|
+
};
|
|
8272
|
+
};
|
|
8273
|
+
var processPicturePro = function processPicturePro(getValue) {
|
|
8274
|
+
return function (nex, config) {
|
|
8275
|
+
var v = getValue("".concat(nex.uniqueKey, "_pictureProList"));
|
|
8276
|
+
var picturePro = jsonParseSecurity(v, v || []) || [];
|
|
8277
|
+
return _defineProperty({}, nex.uniqueKey, picturePro ? picturePro.map(function (item) {
|
|
8278
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
8279
|
+
url: item.url ? formatPictures(item.url)[0] : ''
|
|
8280
|
+
});
|
|
8281
|
+
}) : (config === null || config === void 0 ? void 0 : config.pictureProList) || []);
|
|
8282
|
+
};
|
|
8283
|
+
};
|
|
8284
|
+
var wdtTags = function wdtTags(getValue) {
|
|
8285
|
+
return function (nex, config) {
|
|
8286
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtTags")), []));
|
|
8287
|
+
};
|
|
8288
|
+
};
|
|
8289
|
+
var processBasicMultSelect = function processBasicMultSelect(getValue) {
|
|
8290
|
+
return function (nex, config) {
|
|
8291
|
+
var v = getValue("".concat(nex.uniqueKey, "_basicMultSelect"));
|
|
8292
|
+
var basicMultSelect = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8293
|
+
var _config$basicMultSele;
|
|
8294
|
+
if (config === null || config === void 0 ? void 0 : (_config$basicMultSele = config.basicMultSelect) === null || _config$basicMultSele === void 0 ? void 0 : _config$basicMultSele.includes(next.value)) {
|
|
8295
|
+
prv.push(next.value);
|
|
8296
|
+
}
|
|
8297
|
+
return prv;
|
|
8298
|
+
}, []);
|
|
8299
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
|
|
8300
|
+
};
|
|
8301
|
+
};
|
|
8302
|
+
var processMultSelect = function processMultSelect(getValue) {
|
|
8303
|
+
return function (nex, config) {
|
|
8304
|
+
var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
|
|
8305
|
+
var parseValue = jsonParseSecurity(v, v || []) || [];
|
|
8306
|
+
return _defineProperty({}, nex.uniqueKey, parseValue === null || parseValue === void 0 ? void 0 : parseValue.map(function (item) {
|
|
8307
|
+
return item.actived;
|
|
8308
|
+
}));
|
|
8309
|
+
};
|
|
8310
|
+
};
|
|
8311
|
+
var processBasicAddress = function processBasicAddress(getValue) {
|
|
8312
|
+
return function (nex, config) {
|
|
8313
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicCity"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_basicDistrict")))];
|
|
8314
|
+
address = every(address, function (item) {
|
|
8315
|
+
return !item;
|
|
8316
|
+
}) ? [] : address;
|
|
8317
|
+
return _defineProperty({}, nex.uniqueKey, address);
|
|
8318
|
+
};
|
|
8319
|
+
};
|
|
8320
|
+
var processReceiverAddressInput = function processReceiverAddressInput(getValue) {
|
|
8321
|
+
return function (nex, config) {
|
|
8322
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_province"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_city"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_district")))];
|
|
8323
|
+
address = every(address, function (item) {
|
|
8324
|
+
return !item;
|
|
8325
|
+
}) ? [] : address;
|
|
8326
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8327
|
+
address: address,
|
|
8328
|
+
detail: getValue("".concat(nex.uniqueKey, "_address"))
|
|
8329
|
+
});
|
|
8330
|
+
};
|
|
8331
|
+
};
|
|
8332
|
+
var processSubForm = function processSubForm(getValue) {
|
|
8333
|
+
return function (nex, config) {
|
|
8334
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_productList")), []));
|
|
8335
|
+
};
|
|
8336
|
+
};
|
|
8337
|
+
var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
|
|
8338
|
+
return function (nex, config) {
|
|
8339
|
+
var _ref23;
|
|
8340
|
+
return _ref23 = {}, _defineProperty(_ref23, nex.uniqueKey, {
|
|
8341
|
+
company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
|
|
8342
|
+
order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
|
|
8343
|
+
}), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref23, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref23;
|
|
8344
|
+
};
|
|
8345
|
+
};
|
|
8346
|
+
var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
|
|
8347
|
+
return function (nex, config) {
|
|
8348
|
+
var _ref24;
|
|
8349
|
+
return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
|
|
8350
|
+
company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
|
|
8351
|
+
order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
|
|
8352
|
+
}), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref24;
|
|
8353
|
+
};
|
|
8354
|
+
};
|
|
8355
|
+
var processRemarkInput = function processRemarkInput(getValue) {
|
|
8356
|
+
return function (nex, config) {
|
|
8357
|
+
var v = getValue("".concat(nex.uniqueKey, "_flag"));
|
|
8358
|
+
var remark = getValue("".concat(nex.uniqueKey, "_remark"));
|
|
8359
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8360
|
+
flag: v ? +v : (config === null || config === void 0 ? void 0 : config.flag) ? +(config === null || config === void 0 ? void 0 : config.flag) : '',
|
|
8361
|
+
remark: remark || (config === null || config === void 0 ? void 0 : config.remark) || ''
|
|
8362
|
+
});
|
|
8363
|
+
};
|
|
8364
|
+
};
|
|
8365
|
+
var processStatus = function processStatus(getValue) {
|
|
8366
|
+
return function (nex, config) {
|
|
8367
|
+
var _ref26;
|
|
8368
|
+
var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
|
|
8369
|
+
return _ref26 = {}, _defineProperty(_ref26, nex.uniqueKey, {
|
|
8370
|
+
status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
|
|
8371
|
+
customerService: jsonParseSecurity(customerService, customerService)
|
|
8372
|
+
}), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref26, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref26;
|
|
8373
|
+
};
|
|
8374
|
+
};
|
|
8375
|
+
var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
|
|
8376
|
+
return function (nex, config) {
|
|
8377
|
+
var _ref27;
|
|
8378
|
+
var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
|
|
8379
|
+
var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
|
|
8380
|
+
var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
|
|
8381
|
+
return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
|
|
8382
|
+
ordinaryMoney: ordinaryMoney,
|
|
8383
|
+
ordinarySerial: ordinarySerial,
|
|
8384
|
+
ordinaryTaitou: ordinaryTaitou
|
|
8385
|
+
}), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref27;
|
|
8386
|
+
};
|
|
8387
|
+
};
|
|
8388
|
+
var processLogisticsInterception = function processLogisticsInterception(getValue) {
|
|
8389
|
+
return function (nex, config) {
|
|
8390
|
+
var address = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptCity")))];
|
|
8391
|
+
//兼容地址是只有省市的
|
|
8392
|
+
var interceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_interceptDistrict")));
|
|
8393
|
+
interceptDistrict && address.push(interceptDistrict);
|
|
8394
|
+
address = every(address, function (item) {
|
|
8395
|
+
return !item;
|
|
8396
|
+
}) ? [] : address;
|
|
8397
|
+
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
|
|
8398
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8399
|
+
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8400
|
+
}, {});
|
|
8401
|
+
return _defineProperty({}, nex.uniqueKey, _objectSpread2(_objectSpread2({}, map), {}, {
|
|
8402
|
+
interceptAddress: address,
|
|
8403
|
+
interceptLogisticsApiStatus: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_interceptLogisticsApiStatus")), {})
|
|
8404
|
+
}));
|
|
8405
|
+
};
|
|
8406
|
+
};
|
|
8407
|
+
var processLogisticsInterceptionMore = function processLogisticsInterceptionMore(getValue) {
|
|
8408
|
+
return function (nex, config) {
|
|
8409
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_logisticsInterceptList")), [{}]));
|
|
8410
|
+
};
|
|
8411
|
+
};
|
|
8412
|
+
var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
|
|
8413
|
+
return function (nex, config) {
|
|
8414
|
+
var subFields = ['trajectoryCompany', 'trajectoryCode', 'trajectorySnapshot', 'trajectoryPhone', 'trajectoryApiStatus'];
|
|
8415
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8416
|
+
return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8417
|
+
}, {});
|
|
8418
|
+
return _defineProperty({}, nex.uniqueKey, map);
|
|
8419
|
+
};
|
|
8420
|
+
};
|
|
8421
|
+
var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
|
|
8422
|
+
return function (nex, config) {
|
|
8423
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryList")), []));
|
|
8424
|
+
};
|
|
8425
|
+
};
|
|
8426
|
+
var processGoods = function processGoods(getValue) {
|
|
8427
|
+
return function (nex, config) {
|
|
8428
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []));
|
|
8429
|
+
};
|
|
8430
|
+
};
|
|
8431
|
+
var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
8432
|
+
return function (nex, config) {
|
|
8433
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_itemList")), []);
|
|
8434
|
+
itemList.forEach(function (key) {
|
|
8435
|
+
key.itemId = key.itemId || key.supplierItemOuterId;
|
|
8436
|
+
});
|
|
8437
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8438
|
+
};
|
|
8439
|
+
};
|
|
8440
|
+
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8441
|
+
return function (nex, config) {
|
|
8442
|
+
var _ref34;
|
|
8443
|
+
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8444
|
+
var map = subFields.reduce(function (cur, nxt) {
|
|
8445
|
+
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8446
|
+
}, {});
|
|
8447
|
+
return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
|
|
8448
|
+
};
|
|
8449
|
+
};
|
|
8450
|
+
var processJstLogistics = function processJstLogistics(getValue) {
|
|
8451
|
+
return function (nex, config) {
|
|
8452
|
+
var initValue = [{
|
|
8453
|
+
logisticsCompany: null,
|
|
8454
|
+
logisticsCode: null
|
|
8455
|
+
}];
|
|
8456
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8457
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8458
|
+
};
|
|
8459
|
+
};
|
|
8460
|
+
var processJstItemSelectThird = function processJstItemSelectThird(getValue) {
|
|
8461
|
+
return function (nex, config) {
|
|
8462
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), []);
|
|
8463
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8464
|
+
};
|
|
8465
|
+
};
|
|
8466
|
+
var processJstSupply = function processJstSupply(getValue) {
|
|
8467
|
+
return function (nex, config) {
|
|
8468
|
+
var initValue = [{
|
|
8469
|
+
supplyId: null
|
|
8470
|
+
}];
|
|
8471
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8472
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8473
|
+
};
|
|
8474
|
+
};
|
|
8475
|
+
var processJstSendGood = function processJstSendGood(getValue) {
|
|
8476
|
+
return function (nex, config) {
|
|
8477
|
+
var initValue = [{
|
|
8478
|
+
sendName: '',
|
|
8479
|
+
sendId: '',
|
|
8480
|
+
sendSnapshotId: ''
|
|
8481
|
+
}];
|
|
8482
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstItemList")), initValue);
|
|
8483
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8484
|
+
};
|
|
8485
|
+
};
|
|
8486
|
+
var processBsMemo = function processBsMemo(getValue) {
|
|
8487
|
+
return function (nex, config) {
|
|
8488
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8489
|
+
remark: getValue("".concat(nex.uniqueKey, "_bsRemark")),
|
|
8490
|
+
flag: getValue("".concat(nex.uniqueKey, "_bsFlag"))
|
|
8491
|
+
});
|
|
8492
|
+
};
|
|
8493
|
+
};
|
|
8494
|
+
var processReissueLogistics = function processReissueLogistics(getValue) {
|
|
8495
|
+
return function (nex, config) {
|
|
8496
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_reissueLogisticsList")), []);
|
|
8497
|
+
return _defineProperty({}, nex.uniqueKey, itemList);
|
|
8498
|
+
};
|
|
8499
|
+
};
|
|
8500
|
+
var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
8501
|
+
return function (nex, config) {
|
|
8502
|
+
var STATUS_MAP = {
|
|
8503
|
+
REISSUE_STATUS: {
|
|
8504
|
+
status: 'reissueStatusValue',
|
|
8505
|
+
reason: 'reissueReason'
|
|
8506
|
+
},
|
|
8507
|
+
ADJUST_WORK_ORDER_STATUS: {
|
|
8508
|
+
status: 'adjustWorkOrderStatusValue',
|
|
8509
|
+
reason: 'adjustWorkOrderReason'
|
|
8510
|
+
},
|
|
8511
|
+
CREATE_STATUS: {
|
|
8512
|
+
status: 'createStatusValue',
|
|
8513
|
+
reason: 'createReason'
|
|
8514
|
+
},
|
|
8515
|
+
INVOICE_STATUS: {
|
|
8516
|
+
status: 'invoiceStatusValue',
|
|
8517
|
+
reason: 'invoiceReason'
|
|
8518
|
+
},
|
|
8519
|
+
INVOICING_STATUS: {
|
|
8520
|
+
status: 'invoicingStatusValue',
|
|
8521
|
+
reason: 'invoicingReason'
|
|
8522
|
+
},
|
|
8523
|
+
AGREE_REFUND_STATUS: {
|
|
8524
|
+
status: 'agreeRefundStatusValue',
|
|
8525
|
+
reason: 'agreeRefundStatusReason'
|
|
8526
|
+
},
|
|
8527
|
+
REJECT_REFUND_STATUS: {
|
|
8528
|
+
status: 'rejectRefundStatusValue',
|
|
8529
|
+
reason: 'rejectRefundStatusReason'
|
|
8530
|
+
},
|
|
8531
|
+
AGREE_RETURN_GOODS_STATUS: {
|
|
8532
|
+
status: 'agreeReturnGoodsStatusValue',
|
|
8533
|
+
reason: 'agreeReturnGoodsStatusReason'
|
|
8534
|
+
},
|
|
8535
|
+
REJECT_RETURN_GOODS_STATUS: {
|
|
8536
|
+
status: 'rejectReturnGoodsStatusValue',
|
|
8537
|
+
reason: 'rejectReturnGoodsStatusReason'
|
|
8538
|
+
},
|
|
8539
|
+
ERP_AFTER_SALE_STATUS: {
|
|
8540
|
+
status: 'erpAfterSaleStatusValue',
|
|
8541
|
+
reason: 'erpAfterSaleStatusReason'
|
|
8542
|
+
},
|
|
8543
|
+
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8544
|
+
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8545
|
+
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
8546
|
+
}
|
|
8547
|
+
};
|
|
8548
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8549
|
+
status: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].status)),
|
|
8550
|
+
reason: getValue("".concat(nex.uniqueKey, "_").concat(STATUS_MAP[nex.workOrderComponentType].reason))
|
|
8551
|
+
});
|
|
8552
|
+
};
|
|
8553
|
+
};
|
|
8554
|
+
var processSceneStatus = function processSceneStatus(getValue) {
|
|
8555
|
+
return function (nex, config) {
|
|
8556
|
+
var STATUS_LIST_MAP = {
|
|
8557
|
+
RETURN_GOODS_STATUS: 'returnGoodsStatusList',
|
|
8558
|
+
EXCHANGE_STATUS: 'exchangeReason',
|
|
8559
|
+
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8560
|
+
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8561
|
+
MSG_STATUS: 'msgStatusValues',
|
|
8562
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8563
|
+
};
|
|
8564
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8565
|
+
};
|
|
8566
|
+
};
|
|
8567
|
+
var processErpLogistics = function processErpLogistics(getValue) {
|
|
8568
|
+
return function (nex, config) {
|
|
8569
|
+
var LogisticsMap = {
|
|
8570
|
+
BS_LOGISTICS: {
|
|
8571
|
+
listKey: 'bsLogisticsList'
|
|
8572
|
+
},
|
|
8573
|
+
WLN_LOGISTICS: {
|
|
8574
|
+
listKey: 'wlnLogisticsList'
|
|
8575
|
+
},
|
|
8576
|
+
WDT_LOGISTICS: {
|
|
8577
|
+
listKey: 'wdtLogisticsList'
|
|
8578
|
+
},
|
|
8579
|
+
BS_E3_LOGISTICS: {
|
|
8580
|
+
listKey: 'bsE3LogisticsList'
|
|
8581
|
+
},
|
|
8582
|
+
KM_LOGISTICS: {
|
|
8583
|
+
listKey: 'kmLogisticsList'
|
|
8584
|
+
},
|
|
8585
|
+
GY_LOGISTICS: {
|
|
8586
|
+
listKey: 'gyLogisticsList'
|
|
8587
|
+
},
|
|
8588
|
+
SKX_LOGISTICS: {
|
|
8589
|
+
listKey: 'skxLogisticsList'
|
|
8590
|
+
}
|
|
8591
|
+
};
|
|
8592
|
+
var initValue = [{
|
|
8593
|
+
logisticsCompany: null,
|
|
8594
|
+
logisticsCode: null
|
|
8595
|
+
}];
|
|
8596
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(LogisticsMap[nex.workOrderComponentType].listKey)), initValue);
|
|
8597
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8598
|
+
};
|
|
8599
|
+
};
|
|
8600
|
+
var processErpSendGood = function processErpSendGood(getValue) {
|
|
8601
|
+
return function (nex, config) {
|
|
8602
|
+
var sendGoodMap = {
|
|
8603
|
+
BS_SEND_GOOD: {
|
|
8604
|
+
list: 'bsSendGood'
|
|
8605
|
+
},
|
|
8606
|
+
WLN_SEND_GOOD: {
|
|
8607
|
+
list: 'wlnSendGood'
|
|
8608
|
+
},
|
|
8609
|
+
WDT_SEND_GOOD: {
|
|
8610
|
+
list: 'wdtSendGood'
|
|
8611
|
+
},
|
|
8612
|
+
KM_SEND_GOOD: {
|
|
8613
|
+
list: 'kmSendGood'
|
|
8614
|
+
},
|
|
8615
|
+
BS_E3_SEND_GOOD: {
|
|
8616
|
+
list: 'bsE3SendGood'
|
|
8617
|
+
},
|
|
8618
|
+
GY_SEND_GOOD: {
|
|
8619
|
+
list: 'gySendGood'
|
|
8620
|
+
}
|
|
8621
|
+
};
|
|
8622
|
+
var initValue = [{
|
|
8623
|
+
sendName: '',
|
|
8624
|
+
sendId: ''
|
|
8625
|
+
}];
|
|
8626
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(sendGoodMap[nex.workOrderComponentType].list)), initValue);
|
|
8627
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8628
|
+
};
|
|
8629
|
+
};
|
|
8630
|
+
var processBsPosting = function processBsPosting(getValue) {
|
|
8631
|
+
return function (nex, config) {
|
|
8632
|
+
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
8633
|
+
//兼容地址是只有省市的
|
|
8634
|
+
var bsInterceptDistrict = transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingDistrict")));
|
|
8635
|
+
bsInterceptDistrict && bsAddress.push(bsInterceptDistrict);
|
|
8636
|
+
bsAddress = every(bsAddress, function (item) {
|
|
8637
|
+
return !item;
|
|
8638
|
+
}) ? [] : bsAddress;
|
|
8639
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8640
|
+
postingAddress: bsAddress,
|
|
8641
|
+
postingDetail: getValue("".concat(nex.uniqueKey, "_bsPostingDetail")),
|
|
8642
|
+
postingReceiverName: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverName")),
|
|
8643
|
+
postingReceiverMobile: getValue("".concat(nex.uniqueKey, "_bsPostingReceiverMobile"))
|
|
8644
|
+
});
|
|
8645
|
+
};
|
|
8646
|
+
};
|
|
8647
|
+
var processBsGoods = function processBsGoods(getValue) {
|
|
8648
|
+
return function (nex, config) {
|
|
8649
|
+
var _values = {
|
|
8650
|
+
bsGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsGoods")), []),
|
|
8651
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8652
|
+
};
|
|
8653
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8654
|
+
};
|
|
8655
|
+
};
|
|
8656
|
+
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8657
|
+
return function (getValue) {
|
|
8658
|
+
return function (nex, config) {
|
|
8659
|
+
var _values = {
|
|
8660
|
+
wdtGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtGoods")), []),
|
|
8661
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8662
|
+
};
|
|
8663
|
+
var selectIds = [];
|
|
8664
|
+
var orderNo = '';
|
|
8665
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8666
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8667
|
+
});
|
|
8668
|
+
if (tradeId) {
|
|
8669
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8670
|
+
}
|
|
8671
|
+
var wdtSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8672
|
+
return col.workOrderComponentType === 'WDT_SYSTEM_ORDER';
|
|
8673
|
+
});
|
|
8674
|
+
if (wdtSystemOrder) {
|
|
8675
|
+
selectIds = jsonParseSecurity(getValue("".concat(wdtSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtSystemOrder.workOrderComponentType].ids)), []);
|
|
8676
|
+
}
|
|
8677
|
+
_values.selectIds = selectIds;
|
|
8678
|
+
_values.orderNo = orderNo;
|
|
8679
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8680
|
+
};
|
|
8681
|
+
};
|
|
8682
|
+
};
|
|
8683
|
+
var processBsE3Goods = function processBsE3Goods(templateColumns) {
|
|
8684
|
+
return function (getValue) {
|
|
8685
|
+
return function (nex, config) {
|
|
8686
|
+
var _values = {
|
|
8687
|
+
bsE3Goods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3Goods")), []),
|
|
8688
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8689
|
+
};
|
|
8690
|
+
var selectIds = [];
|
|
8691
|
+
var orderNo = '';
|
|
8692
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8693
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8694
|
+
});
|
|
8695
|
+
if (tradeId) {
|
|
8696
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8697
|
+
}
|
|
8698
|
+
var bsE3SystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8699
|
+
return col.workOrderComponentType === 'BS_E3_SYSTEM_ORDER';
|
|
8700
|
+
});
|
|
8701
|
+
if (bsE3SystemOrder) {
|
|
8702
|
+
selectIds = jsonParseSecurity(getValue("".concat(bsE3SystemOrder.uniqueKey, "_").concat(systemOrderMap[bsE3SystemOrder.workOrderComponentType].ids)), []);
|
|
8703
|
+
}
|
|
8704
|
+
_values.selectIds = selectIds;
|
|
8705
|
+
_values.orderNo = orderNo;
|
|
8706
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8707
|
+
};
|
|
8708
|
+
};
|
|
8709
|
+
};
|
|
8710
|
+
var processJstGoods = function processJstGoods(templateColumns) {
|
|
8711
|
+
return function (getValue) {
|
|
8712
|
+
return function (nex, config) {
|
|
8713
|
+
var _values = {
|
|
8714
|
+
jstGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstGoods")), []),
|
|
8715
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8716
|
+
};
|
|
8717
|
+
var selectIds = [];
|
|
8718
|
+
var orderNo = '';
|
|
8719
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8720
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8721
|
+
});
|
|
8722
|
+
if (tradeId) {
|
|
8723
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8724
|
+
}
|
|
8725
|
+
var jstSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8726
|
+
return col.workOrderComponentType === 'JST_SYSTEM_ORDER';
|
|
8727
|
+
});
|
|
8728
|
+
if (jstSystemOrder) {
|
|
8729
|
+
selectIds = jsonParseSecurity(getValue("".concat(jstSystemOrder.uniqueKey, "_").concat(systemOrderMap[jstSystemOrder.workOrderComponentType].ids)), []);
|
|
8730
|
+
}
|
|
8731
|
+
_values.selectIds = selectIds;
|
|
8732
|
+
_values.orderNo = orderNo;
|
|
8733
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8734
|
+
};
|
|
8735
|
+
};
|
|
8736
|
+
};
|
|
8737
|
+
var processKmGoods = function processKmGoods(templateColumns) {
|
|
8738
|
+
return function (getValue) {
|
|
8739
|
+
return function (nex, config) {
|
|
8740
|
+
var _values = {
|
|
8741
|
+
kmGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmGoods")), []),
|
|
8742
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8743
|
+
};
|
|
8744
|
+
var selectIds = [];
|
|
8745
|
+
var orderNo = '';
|
|
8746
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8747
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8748
|
+
});
|
|
8749
|
+
if (tradeId) {
|
|
8750
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8751
|
+
}
|
|
8752
|
+
var kmSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8753
|
+
return col.workOrderComponentType === 'KM_SYSTEM_ORDER';
|
|
8754
|
+
});
|
|
8755
|
+
if (kmSystemOrder) {
|
|
8756
|
+
selectIds = jsonParseSecurity(getValue("".concat(kmSystemOrder.uniqueKey, "_").concat(systemOrderMap[kmSystemOrder.workOrderComponentType].ids)), []);
|
|
8757
|
+
}
|
|
8758
|
+
_values.selectIds = selectIds;
|
|
8759
|
+
_values.orderNo = orderNo;
|
|
8760
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8761
|
+
};
|
|
8762
|
+
};
|
|
8763
|
+
};
|
|
8764
|
+
var processGyGoods = function processGyGoods(templateColumns) {
|
|
8765
|
+
return function (getValue) {
|
|
8766
|
+
return function (nex, config) {
|
|
8767
|
+
var _values = {
|
|
8768
|
+
gyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyGoods")), []),
|
|
8769
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8770
|
+
};
|
|
8771
|
+
var selectIds = [];
|
|
8772
|
+
var orderNo = '';
|
|
8773
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8774
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8775
|
+
});
|
|
8776
|
+
if (tradeId) {
|
|
8777
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8778
|
+
}
|
|
8779
|
+
var gySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8780
|
+
return col.workOrderComponentType === 'GY_SYSTEM_ORDER';
|
|
8781
|
+
});
|
|
8782
|
+
if (gySystemOrder) {
|
|
8783
|
+
selectIds = jsonParseSecurity(getValue("".concat(gySystemOrder.uniqueKey, "_").concat(systemOrderMap[gySystemOrder.workOrderComponentType].ids)), []);
|
|
8784
|
+
}
|
|
8785
|
+
_values.selectIds = selectIds;
|
|
8786
|
+
_values.orderNo = orderNo;
|
|
8787
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8788
|
+
};
|
|
8789
|
+
};
|
|
8790
|
+
};
|
|
8791
|
+
var processSkxGoods = function processSkxGoods(getValue) {
|
|
8792
|
+
return function (nex, config) {
|
|
8793
|
+
var _values = {
|
|
8794
|
+
skxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_skxGoods")), [])
|
|
8795
|
+
};
|
|
8796
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8797
|
+
};
|
|
8798
|
+
};
|
|
8799
|
+
var processBsReissueGoods = function processBsReissueGoods(getValue) {
|
|
8800
|
+
return function (nex, config) {
|
|
8801
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8802
|
+
bsReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueType")), []),
|
|
8803
|
+
bsReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsReissueGoods")), []),
|
|
8804
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8805
|
+
});
|
|
8806
|
+
};
|
|
8807
|
+
};
|
|
8808
|
+
var processBsExchangeGoods = function processBsExchangeGoods(getValue) {
|
|
8809
|
+
return function (nex, config) {
|
|
8810
|
+
var bsExchangeType = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeType")), []);
|
|
8811
|
+
var bsExchangeReturnGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeReturnGoods")), []);
|
|
8812
|
+
var bsExchangeSwapOutGoods = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeSwapOutGoods")), []);
|
|
8813
|
+
//补发组装数据
|
|
8814
|
+
if ((bsExchangeType === null || bsExchangeType === void 0 ? void 0 : bsExchangeType.length) && ['2', '4'].includes(bsExchangeType[0])) {
|
|
8815
|
+
var maxLen = maxBy(bsExchangeReturnGoods, function (t) {
|
|
8816
|
+
return t.index;
|
|
8817
|
+
});
|
|
8818
|
+
var newGoods = Array((maxLen === null || maxLen === void 0 ? void 0 : maxLen.index) + 1 || 0).map(function () {
|
|
8819
|
+
return {
|
|
8820
|
+
bsExchangeReturnGoods: [],
|
|
8821
|
+
bsExchangeSwapOutGoods: []
|
|
8822
|
+
};
|
|
8823
|
+
});
|
|
8824
|
+
bsExchangeReturnGoods.forEach(function (item) {
|
|
8825
|
+
if (!newGoods[item.index]) {
|
|
8826
|
+
newGoods[item.index] = {
|
|
8827
|
+
bsExchangeReturnGoods: [],
|
|
8828
|
+
bsExchangeSwapOutGoods: []
|
|
8829
|
+
};
|
|
8830
|
+
}
|
|
8831
|
+
newGoods[item.index].bsExchangeReturnGoods.push(item);
|
|
8832
|
+
});
|
|
8833
|
+
bsExchangeSwapOutGoods.forEach(function (item) {
|
|
8834
|
+
newGoods[item.index].bsExchangeSwapOutGoods.push(item);
|
|
8835
|
+
});
|
|
8836
|
+
bsExchangeReturnGoods = newGoods;
|
|
8837
|
+
bsExchangeSwapOutGoods = [];
|
|
8838
|
+
}
|
|
8839
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8840
|
+
bsExchangeType: bsExchangeType,
|
|
8841
|
+
bsExchangeReturnGoods: bsExchangeReturnGoods,
|
|
8842
|
+
bsExchangeSwapOutGoods: bsExchangeSwapOutGoods,
|
|
8843
|
+
bsExchangeGiftGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsExchangeGiftGoods")), []),
|
|
8844
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8845
|
+
});
|
|
8846
|
+
};
|
|
8847
|
+
};
|
|
8848
|
+
var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
8849
|
+
return function (nex, config) {
|
|
8850
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8851
|
+
wdtExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtExchangeGoods")), []),
|
|
8852
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8853
|
+
});
|
|
8854
|
+
};
|
|
8855
|
+
};
|
|
8856
|
+
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
8857
|
+
return function (nex, config) {
|
|
8858
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8859
|
+
jstExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstExchangeGoods")), []),
|
|
8860
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8861
|
+
});
|
|
8862
|
+
};
|
|
8863
|
+
};
|
|
8864
|
+
var processBsReturnGoods = function processBsReturnGoods(getValue) {
|
|
8865
|
+
return function (nex, config) {
|
|
8866
|
+
var _$concat;
|
|
8867
|
+
var compType = nex.workOrderComponentType;
|
|
8868
|
+
var returnGoodsMap = {
|
|
8869
|
+
BS_RETURN_GOODS: {
|
|
8870
|
+
returnTypeKey: 'bsReturnType',
|
|
8871
|
+
returnGoodsKey: 'bsReturnGoods',
|
|
8872
|
+
shopCodeKey: 'shopCode'
|
|
8873
|
+
}
|
|
8874
|
+
};
|
|
8875
|
+
return _defineProperty({}, "".concat(nex.uniqueKey), (_$concat = {}, _defineProperty(_$concat, returnGoodsMap[compType].returnTypeKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnTypeKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].returnGoodsKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnGoodsKey)), [])), _defineProperty(_$concat, returnGoodsMap[compType].shopCodeKey, getValue("".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].shopCodeKey))), _$concat));
|
|
8876
|
+
};
|
|
8877
|
+
};
|
|
8878
|
+
var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
8879
|
+
return function (nex, config) {
|
|
8880
|
+
var systemOrderMap = {
|
|
8881
|
+
BS_SYSTEM_ORDER: {
|
|
8882
|
+
no: 'bsSystemOrderNo',
|
|
8883
|
+
ids: 'bsSystemSelectIds',
|
|
8884
|
+
order: 'bsSystemShowOrder'
|
|
8885
|
+
},
|
|
8886
|
+
KM_SYSTEM_ORDER: {
|
|
8887
|
+
no: 'kmSystemOrderNo',
|
|
8888
|
+
ids: 'kmSystemSelectIds',
|
|
8889
|
+
order: 'kmSystemShowOrder'
|
|
8890
|
+
},
|
|
8891
|
+
WLN_SYSTEM_ORDER: {
|
|
8892
|
+
no: 'wlnSystemOrderNo',
|
|
8893
|
+
ids: 'wlnSystemSelectIds',
|
|
8894
|
+
order: 'wlnSystemShowOrder'
|
|
8895
|
+
},
|
|
8896
|
+
WDT_SYSTEM_ORDER: {
|
|
8897
|
+
no: 'wdtSystemOrderNo',
|
|
8898
|
+
ids: 'wdtSystemSelectIds',
|
|
8899
|
+
order: 'wdtSystemShowOrder'
|
|
8900
|
+
},
|
|
8901
|
+
BS_E3_SYSTEM_ORDER: {
|
|
8902
|
+
no: 'bsE3SystemOrderNo',
|
|
8903
|
+
ids: 'bsE3SystemSelectIds',
|
|
8904
|
+
order: 'bsE3SystemShowOrder'
|
|
8905
|
+
},
|
|
8906
|
+
GY_SYSTEM_ORDER: {
|
|
8907
|
+
no: 'gySystemOrderNo',
|
|
8908
|
+
ids: 'gySystemSelectIds',
|
|
8909
|
+
order: 'gySystemShowOrder'
|
|
8910
|
+
},
|
|
8911
|
+
JST_SYSTEM_ORDER: {
|
|
8912
|
+
no: 'jstSystemOrderNo',
|
|
8913
|
+
ids: 'jstSystemSelectIds',
|
|
8914
|
+
order: 'jstSystemShowOrder'
|
|
8915
|
+
}
|
|
8916
|
+
};
|
|
8917
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8918
|
+
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
8919
|
+
orders: [],
|
|
8920
|
+
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
8921
|
+
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
8922
|
+
});
|
|
8923
|
+
};
|
|
8924
|
+
};
|
|
8925
|
+
var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
|
|
8926
|
+
return function (nex, config) {
|
|
8927
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_buyerMessageNotice")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8928
|
+
};
|
|
8929
|
+
};
|
|
8930
|
+
var processOrderType = function processOrderType(getValue) {
|
|
8931
|
+
return function (nex, config) {
|
|
8932
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_erpOrderType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8933
|
+
};
|
|
8934
|
+
};
|
|
8935
|
+
var processRefundType = function processRefundType(getValue) {
|
|
8936
|
+
return function (nex, config) {
|
|
8937
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_orderRefundType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8938
|
+
};
|
|
8939
|
+
};
|
|
8940
|
+
var processExecuteActionType = function processExecuteActionType(getValue) {
|
|
8941
|
+
return function (nex, config) {
|
|
8942
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_executeActionType")) || (config === null || config === void 0 ? void 0 : config.select));
|
|
8943
|
+
};
|
|
8944
|
+
};
|
|
8945
|
+
var processErpTradeId = function processErpTradeId(getValue) {
|
|
8946
|
+
return function (nex, config) {
|
|
8947
|
+
var SYSTEM_ORDER_MAP = {
|
|
8948
|
+
BS_DELIVERY_NO: {
|
|
8949
|
+
key: 'deliveryNoList',
|
|
8950
|
+
defaultValue: [{
|
|
8951
|
+
deliverNo: '',
|
|
8952
|
+
systemOrderId: ''
|
|
8953
|
+
}]
|
|
8954
|
+
},
|
|
8955
|
+
RETURN_GOODS_TRADE_ID: {
|
|
8956
|
+
key: 'returnGoodsTradeItemList',
|
|
8957
|
+
defaultValue: []
|
|
8958
|
+
},
|
|
8959
|
+
REISSUE_TRADE_ID: {
|
|
8960
|
+
key: 'tradeItemList',
|
|
8961
|
+
defaultValue: []
|
|
8962
|
+
},
|
|
8963
|
+
ERP_AFTER_SALE_TRADE_ID: {
|
|
8964
|
+
key: 'erpAfterSaleTradeItemList',
|
|
8965
|
+
defaultValue: []
|
|
8966
|
+
},
|
|
8967
|
+
EXCHANGE_TRADE_ID: {
|
|
8968
|
+
key: 'tradeItemList',
|
|
8969
|
+
defaultValue: []
|
|
8970
|
+
}
|
|
8971
|
+
};
|
|
8972
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
|
|
8973
|
+
};
|
|
8974
|
+
};
|
|
8975
|
+
var processWlnGoods = function processWlnGoods(templateColumns) {
|
|
8976
|
+
return function (getValue) {
|
|
8977
|
+
return function (nex, config) {
|
|
8978
|
+
var orderNo = '';
|
|
8979
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8980
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8981
|
+
});
|
|
8982
|
+
if (tradeId) {
|
|
8983
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8984
|
+
}
|
|
8985
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
8986
|
+
wlnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnGoods")), []),
|
|
8987
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
8988
|
+
orderNo: orderNo
|
|
8989
|
+
});
|
|
8990
|
+
};
|
|
8991
|
+
};
|
|
8992
|
+
};
|
|
8993
|
+
var processWdtReissueGoods = function processWdtReissueGoods(templateColumns) {
|
|
8994
|
+
return function (getValue) {
|
|
8995
|
+
return function (nex, config) {
|
|
8996
|
+
var orderNo = '';
|
|
8997
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8998
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8999
|
+
});
|
|
9000
|
+
if (tradeId) {
|
|
9001
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9002
|
+
}
|
|
9003
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9004
|
+
wdtSystemOrder: {
|
|
9005
|
+
orderNo: orderNo
|
|
9006
|
+
},
|
|
9007
|
+
wdtReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9008
|
+
wdtReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReissueGoods")), []),
|
|
9009
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9010
|
+
wdtSystemOrderNo: getValue("".concat(nex.uniqueKey, "_wdtSystemOrderNo"))
|
|
9011
|
+
});
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
};
|
|
9015
|
+
var processWdtReturnGoods = function processWdtReturnGoods(templateColumns) {
|
|
9016
|
+
return function (getValue) {
|
|
9017
|
+
return function (nex, config) {
|
|
9018
|
+
// let orderNo = '';
|
|
9019
|
+
// const tradeId = templateColumns?.find(
|
|
9020
|
+
// (col: { workOrderComponentType: string }) => col.workOrderComponentType === 'TRADE_ID_INPUT',
|
|
9021
|
+
// );
|
|
9022
|
+
// if (tradeId) {
|
|
9023
|
+
// orderNo = getValue(
|
|
9024
|
+
// `${tradeId.uniqueKey}_${updateWorkTypeKeys[tradeId.workOrderComponentType]}`,
|
|
9025
|
+
// );
|
|
9026
|
+
// }
|
|
9027
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9028
|
+
wdtReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9029
|
+
wdtReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtReturnGoods")), []),
|
|
9030
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9031
|
+
});
|
|
9032
|
+
};
|
|
9033
|
+
};
|
|
9034
|
+
};
|
|
9035
|
+
var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
9036
|
+
return function (getValue) {
|
|
9037
|
+
return function (nex, config) {
|
|
9038
|
+
var orderNo = '';
|
|
9039
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9040
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9041
|
+
});
|
|
9042
|
+
if (tradeId) {
|
|
9043
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9044
|
+
}
|
|
9045
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9046
|
+
kmSystemOrder: {
|
|
9047
|
+
orderNo: orderNo
|
|
9048
|
+
},
|
|
9049
|
+
kmReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9050
|
+
kmReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReissueGoods")), []),
|
|
9051
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9052
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9053
|
+
});
|
|
9054
|
+
};
|
|
9055
|
+
};
|
|
9056
|
+
};
|
|
9057
|
+
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9058
|
+
return function (getValue) {
|
|
9059
|
+
return function (nex, config) {
|
|
9060
|
+
var orderNo = '';
|
|
9061
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9062
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9063
|
+
});
|
|
9064
|
+
if (tradeId) {
|
|
9065
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9066
|
+
}
|
|
9067
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9068
|
+
gySystemOrder: {
|
|
9069
|
+
orderNo: orderNo
|
|
9070
|
+
},
|
|
9071
|
+
gyReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9072
|
+
gyReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReissueGoods")), []),
|
|
9073
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9074
|
+
vipCode: getValue("".concat(nex.uniqueKey, "_vipCode")),
|
|
9075
|
+
gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
|
|
9076
|
+
});
|
|
9077
|
+
};
|
|
9078
|
+
};
|
|
9079
|
+
};
|
|
9080
|
+
var processGyReturnGoods = function processGyReturnGoods(templateColumns) {
|
|
9081
|
+
return function (getValue) {
|
|
9082
|
+
return function (nex, config) {
|
|
9083
|
+
var orderNo = '';
|
|
9084
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9085
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9086
|
+
});
|
|
9087
|
+
if (tradeId) {
|
|
9088
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9089
|
+
}
|
|
9090
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9091
|
+
gySystemOrder: {
|
|
9092
|
+
orderNo: orderNo
|
|
9093
|
+
},
|
|
9094
|
+
gyReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9095
|
+
gyReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_gyReturnGoods")), []),
|
|
9096
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9097
|
+
gySystemOrderNo: getValue("".concat(nex.uniqueKey, "_gySystemOrderNo"))
|
|
9098
|
+
});
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
var processJstReissueGoods = function processJstReissueGoods(templateColumns) {
|
|
9103
|
+
return function (getValue) {
|
|
9104
|
+
return function (nex, config) {
|
|
9105
|
+
var orderNo = '';
|
|
9106
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9107
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9108
|
+
});
|
|
9109
|
+
if (tradeId) {
|
|
9110
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9111
|
+
}
|
|
9112
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9113
|
+
jstSystemOrder: {
|
|
9114
|
+
orderNo: orderNo
|
|
9115
|
+
},
|
|
9116
|
+
jstReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9117
|
+
jstReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReissueGoods")), []),
|
|
9118
|
+
jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
|
|
9119
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9120
|
+
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9121
|
+
});
|
|
9122
|
+
};
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
9126
|
+
return function (getValue) {
|
|
9127
|
+
return function (nex, config) {
|
|
9128
|
+
var orderNo = '';
|
|
9129
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9130
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9131
|
+
});
|
|
9132
|
+
if (tradeId) {
|
|
9133
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9134
|
+
}
|
|
9135
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9136
|
+
jstSystemOrder: {
|
|
9137
|
+
orderNo: orderNo
|
|
9138
|
+
},
|
|
9139
|
+
jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9140
|
+
jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
|
|
9141
|
+
jstSystemOrderBillType: getValue("".concat(nex.uniqueKey, "_jstSystemOrderBillType")) || '',
|
|
9142
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9143
|
+
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9144
|
+
});
|
|
9145
|
+
};
|
|
9146
|
+
};
|
|
9147
|
+
};
|
|
9148
|
+
var processLabel = function processLabel(getValue) {
|
|
9149
|
+
return function (nex, config) {
|
|
9150
|
+
var _ref72;
|
|
9151
|
+
return _ref72 = {}, _defineProperty(_ref72, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref72, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref72;
|
|
9152
|
+
};
|
|
9153
|
+
};
|
|
9154
|
+
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9155
|
+
return function (nex, config) {
|
|
9156
|
+
var _ref73;
|
|
9157
|
+
return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref73;
|
|
9158
|
+
};
|
|
9159
|
+
};
|
|
9160
|
+
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
9161
|
+
return function (nex, config) {
|
|
9162
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_afterSalesOrderId")));
|
|
9163
|
+
};
|
|
9164
|
+
};
|
|
9165
|
+
var processSingleField = function processSingleField(getValue) {
|
|
9166
|
+
return function (nex, config) {
|
|
9167
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(updateWorkTypeKeys[nex.workOrderComponentType])));
|
|
9168
|
+
};
|
|
9169
|
+
};
|
|
9170
|
+
var processSingleFieldByKey = function processSingleFieldByKey(key) {
|
|
9171
|
+
return function (getValue) {
|
|
9172
|
+
return function (nex, config) {
|
|
9173
|
+
return _defineProperty({}, nex.uniqueKey, getValue("".concat(nex.uniqueKey, "_").concat(key)));
|
|
9174
|
+
};
|
|
9175
|
+
};
|
|
9176
|
+
};
|
|
9177
|
+
var processBsE3ReissueGoods = function processBsE3ReissueGoods(templateColumns) {
|
|
9178
|
+
return function (getValue) {
|
|
9179
|
+
return function (nex, config) {
|
|
9180
|
+
var orderNo = '';
|
|
9181
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9182
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9183
|
+
});
|
|
9184
|
+
if (tradeId) {
|
|
9185
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9186
|
+
}
|
|
9187
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9188
|
+
bsE3SystemOrder: {
|
|
9189
|
+
orderNo: orderNo
|
|
9190
|
+
},
|
|
9191
|
+
bsE3SystemOrderNo: getValue("".concat(nex.uniqueKey, "_bsE3SystemOrderNo")),
|
|
9192
|
+
bsE3ReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9193
|
+
bsE3ReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_bsE3ReissueGoods")), [])
|
|
9194
|
+
});
|
|
9195
|
+
};
|
|
9196
|
+
};
|
|
9197
|
+
};
|
|
9198
|
+
var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
9199
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'edit';
|
|
9200
|
+
return function (item) {
|
|
9201
|
+
var getValue = getItemValue(item);
|
|
9202
|
+
var componentProcessors = _objectSpread2({
|
|
9203
|
+
RADIO: processRadio,
|
|
9204
|
+
INPUT: processInput,
|
|
9205
|
+
NUMERICAL_CALCULATION: processNumericalCalculation,
|
|
9206
|
+
TEXTAREA: processTextarea,
|
|
9207
|
+
SELECT: processSelect,
|
|
9208
|
+
GY_PAYMENT_METHOD: gyPaymentMethod,
|
|
9209
|
+
RATE: processRate,
|
|
9210
|
+
FILE: processFile,
|
|
9211
|
+
POSTING: processPosting,
|
|
9212
|
+
BUYER_NICK_INPUT: processBuyerNickInput,
|
|
9213
|
+
ALI_PAY_INPUT: processAliPayInput,
|
|
9214
|
+
CHECKBOX: processCheckbox,
|
|
9215
|
+
DATETIME: processDatetime,
|
|
9216
|
+
PICTURE: processPicture,
|
|
9217
|
+
PICTURE_PRO: processPicturePro,
|
|
9218
|
+
BASIC_MULT_SELECT: processBasicMultSelect,
|
|
9219
|
+
MULT_SELECT: processMultSelect,
|
|
9220
|
+
BASIC_ADDRESS: processBasicAddress,
|
|
9221
|
+
RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
|
|
9222
|
+
SUBFORM: processSubForm,
|
|
9223
|
+
EXPRESS_LOGISTICS_SELECT: processExpressLogisticsSelect,
|
|
9224
|
+
RETURN_LOGISTICS_SELECT: processReturnLogisticsSelect,
|
|
9225
|
+
REMARK_INPUT: processRemarkInput,
|
|
9226
|
+
STATUS: processStatus,
|
|
9227
|
+
ORDINARY_INVOICE: processOrdinaryInvoice,
|
|
9228
|
+
LOGISTICS_INTERCEPTION: processLogisticsInterception,
|
|
9229
|
+
LOGISTICS_INTERCEPTION_MORE: processLogisticsInterceptionMore,
|
|
9230
|
+
LOGISTICS_TRAJECTORY: processLogisticsTrajectory,
|
|
9231
|
+
LOGISTICS_TRAJECTORY_MORE: processLogisticsTrajectoryMore,
|
|
9232
|
+
ITEM_SELECT: processGoods,
|
|
9233
|
+
ITEM_ENCODE: processGoods,
|
|
9234
|
+
ITEM_ID: processGoods,
|
|
9235
|
+
ITEM_SELECT_THIRD: processItemSelectThird,
|
|
9236
|
+
ENTERPRISE_PAYMENT: processEnterPrisePayment,
|
|
9237
|
+
JST_LOGISTICS: processJstLogistics,
|
|
9238
|
+
JST_ITEM_SELECT_THIRD: processJstItemSelectThird,
|
|
9239
|
+
JST_SUPPLY: processJstSupply,
|
|
9240
|
+
JST_SEND_GOOD: processJstSendGood,
|
|
9241
|
+
BS_MEMO: processBsMemo,
|
|
9242
|
+
REISSUE_LOGISTICS: processReissueLogistics,
|
|
9243
|
+
REISSUE_STATUS: processCallBackStatus,
|
|
9244
|
+
ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
|
|
9245
|
+
CREATE_STATUS: processCallBackStatus,
|
|
9246
|
+
INVOICE_STATUS: processCallBackStatus,
|
|
9247
|
+
INVOICING_STATUS: processCallBackStatus,
|
|
9248
|
+
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9249
|
+
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9250
|
+
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9251
|
+
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9252
|
+
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9253
|
+
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
9254
|
+
RETURN_GOODS_STATUS: processSceneStatus,
|
|
9255
|
+
EXCHANGE_STATUS: processSceneStatus,
|
|
9256
|
+
WAREHOUSING_STATUS: processSceneStatus,
|
|
9257
|
+
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9258
|
+
MSG_STATUS: processSceneStatus,
|
|
9259
|
+
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9260
|
+
BS_LOGISTICS: processErpLogistics,
|
|
9261
|
+
WLN_LOGISTICS: processErpLogistics,
|
|
9262
|
+
WDT_LOGISTICS: processErpLogistics,
|
|
9263
|
+
GY_LOGISTICS: processErpLogistics,
|
|
9264
|
+
BS_E3_LOGISTICS: processErpLogistics,
|
|
9265
|
+
KM_LOGISTICS: processErpLogistics,
|
|
9266
|
+
BS_SEND_GOOD: processErpSendGood,
|
|
9267
|
+
WLN_SEND_GOOD: processErpSendGood,
|
|
9268
|
+
WDT_SEND_GOOD: processErpSendGood,
|
|
9269
|
+
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9270
|
+
KM_SEND_GOOD: processErpSendGood,
|
|
9271
|
+
GY_SEND_GOOD: processErpSendGood,
|
|
9272
|
+
BS_POSTING: processBsPosting,
|
|
9273
|
+
BS_GOODS: processBsGoods,
|
|
9274
|
+
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9275
|
+
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9276
|
+
GY_GOODS: processGyGoods(templateColumns),
|
|
9277
|
+
KM_GOODS: processKmGoods(templateColumns),
|
|
9278
|
+
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9279
|
+
JST_GOODS: processJstGoods(templateColumns),
|
|
9280
|
+
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9281
|
+
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9282
|
+
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9283
|
+
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9284
|
+
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9285
|
+
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
9286
|
+
JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
|
|
9287
|
+
BS_SYSTEM_ORDER: processErpSystemOrder,
|
|
9288
|
+
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9289
|
+
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9290
|
+
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9291
|
+
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9292
|
+
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9293
|
+
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9294
|
+
BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
|
|
9295
|
+
ORDER_TYPE: processOrderType,
|
|
9296
|
+
REFUND_TYPE: processRefundType,
|
|
9297
|
+
RETURN_GOODS_TRADE_ID: processErpTradeId,
|
|
9298
|
+
BS_DELIVERY_NO: processErpTradeId,
|
|
9299
|
+
REISSUE_TRADE_ID: processErpTradeId,
|
|
9300
|
+
ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
|
|
9301
|
+
EXCHANGE_TRADE_ID: processErpTradeId,
|
|
9302
|
+
WLN_GOODS: processWlnGoods(templateColumns),
|
|
9303
|
+
WDT_REISSUE_GOODS: processWdtReissueGoods(templateColumns),
|
|
9304
|
+
GY_REISSUE_GOODS: processGyReissueGoods(templateColumns),
|
|
9305
|
+
GY_RETURN_GOODS: processGyReturnGoods(templateColumns),
|
|
9306
|
+
JST_REISSUE_GOODS: processJstReissueGoods(templateColumns),
|
|
9307
|
+
LABEL: processLabel,
|
|
9308
|
+
MEMBER_LEVEL: processMemberLevel,
|
|
9309
|
+
AFTER_SALES_ORDER_ID: processAfterSalesOrderId,
|
|
9310
|
+
BASIC_GRADE: processSingleField,
|
|
9311
|
+
TRADE_ID_INPUT: processSingleField,
|
|
9312
|
+
SHOP_NAME_INPUT: processSingleField,
|
|
9313
|
+
RECEIVER_NAME_INPUT: processSingleField,
|
|
9314
|
+
RECEIVER_MOBILE_INPUT: processSingleField,
|
|
9315
|
+
TRADE_CREATE_DATETIME: processSingleField,
|
|
9316
|
+
TRADE_PAYMENT_DATETIME: processSingleField,
|
|
9317
|
+
TRADE_DELIVERY_DATETIME: processSingleField,
|
|
9318
|
+
TRADE_CLOSING_DATETIME: processSingleField,
|
|
9319
|
+
TRADE_SIGNING_DATETIME: processSingleField,
|
|
9320
|
+
ACTUAL_PAYMENT: processSingleField,
|
|
9321
|
+
SYSTEM_ORDER_NO: processSingleField,
|
|
9322
|
+
BS_SIGNING_TIME: processSingleField,
|
|
9323
|
+
BS_SEND_TIME: processSingleField,
|
|
9324
|
+
BS_TRADE_PAYMENT_TIME: processSingleField,
|
|
9325
|
+
BS_NET_RECEIPTS: processSingleField,
|
|
9326
|
+
BS_PACKAGE_WEIGHT: processSingleField,
|
|
9327
|
+
BS_DEPOSIT: processSingleField,
|
|
9328
|
+
NEW_PAYMENT_STATUS: processSingleField,
|
|
9329
|
+
BUSINESS_ORDER_NO: processSingleField,
|
|
9330
|
+
PAYMENT_VOUCHER_CODE: processSingleField,
|
|
9331
|
+
BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
|
|
9332
|
+
ACTUAL_RECEIPT_PAYMENT: processSingleField,
|
|
9333
|
+
WDT_SHOP: processSingleField,
|
|
9334
|
+
KM_VIDEO: processKmVideo,
|
|
9335
|
+
WDT_TAGS: wdtTags,
|
|
9336
|
+
EXECUTE_ACTION_TYPE: processExecuteActionType,
|
|
9337
|
+
SKX_GOODS: processSkxGoods,
|
|
9338
|
+
SKX_LOGISTICS: processErpLogistics
|
|
9339
|
+
}, Object.keys(processSingleFieldTypeMapping).reduce(function (acc, key) {
|
|
9340
|
+
acc[key] = processSingleFieldByKey(processSingleFieldTypeMapping[key]);
|
|
9341
|
+
return acc;
|
|
9342
|
+
}, {}));
|
|
9343
|
+
return templateColumns.reduce(function (cur, nex) {
|
|
9344
|
+
var _componentProcessors$;
|
|
9345
|
+
var config = type === 'init' ? nex.componentConfig : {};
|
|
9346
|
+
var processFunc = (_componentProcessors$ = componentProcessors[nex.workOrderComponentType]) === null || _componentProcessors$ === void 0 ? void 0 : _componentProcessors$.call(componentProcessors, getValue);
|
|
9347
|
+
if (processFunc) {
|
|
9348
|
+
return _objectSpread2(_objectSpread2({}, cur), processFunc(nex, config));
|
|
9349
|
+
}
|
|
9350
|
+
return cur; // 如果没有找到处理函数,返回当前累积对象
|
|
9351
|
+
}, {});
|
|
9352
|
+
};
|
|
9353
|
+
};
|
|
9354
|
+
|
|
8049
9355
|
var hostUrl = 'https://kefu.kuaimai.com';
|
|
8050
9356
|
var FileRender = function FileRender(_ref) {
|
|
8051
9357
|
var _ref$fileList = _ref.fileList,
|
|
@@ -8114,12 +9420,39 @@ var FileRender = function FileRender(_ref) {
|
|
|
8114
9420
|
setDownloading(false);
|
|
8115
9421
|
});
|
|
8116
9422
|
};
|
|
8117
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
9423
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popover, {
|
|
9424
|
+
content: /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
9425
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
9426
|
+
style: {
|
|
9427
|
+
display: 'block',
|
|
9428
|
+
width: '100%',
|
|
9429
|
+
color: '#1890ff',
|
|
9430
|
+
cursor: 'pointer'
|
|
9431
|
+
},
|
|
9432
|
+
onClick: function onClick(e) {
|
|
9433
|
+
e.preventDefault();
|
|
9434
|
+
onPreview(item);
|
|
9435
|
+
},
|
|
9436
|
+
href: item === null || item === void 0 ? void 0 : item.url
|
|
9437
|
+
}, item.name);
|
|
9438
|
+
})),
|
|
9439
|
+
trigger: "hover"
|
|
9440
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9441
|
+
style: {
|
|
9442
|
+
overflow: 'hidden',
|
|
9443
|
+
textOverflow: 'ellipsis',
|
|
9444
|
+
whiteSpace: 'nowrap'
|
|
9445
|
+
}
|
|
9446
|
+
}, fileList.map(function (item) {
|
|
8118
9447
|
return /*#__PURE__*/React.createElement("a", {
|
|
8119
9448
|
style: {
|
|
9449
|
+
display: 'block',
|
|
9450
|
+
width: '100%',
|
|
8120
9451
|
color: '#1890ff',
|
|
8121
9452
|
cursor: 'pointer',
|
|
8122
|
-
|
|
9453
|
+
overflow: 'hidden',
|
|
9454
|
+
textOverflow: 'ellipsis',
|
|
9455
|
+
whiteSpace: 'nowrap'
|
|
8123
9456
|
},
|
|
8124
9457
|
onClick: function onClick(e) {
|
|
8125
9458
|
e.preventDefault();
|
|
@@ -8127,7 +9460,7 @@ var FileRender = function FileRender(_ref) {
|
|
|
8127
9460
|
},
|
|
8128
9461
|
href: item === null || item === void 0 ? void 0 : item.url
|
|
8129
9462
|
}, item.name);
|
|
8130
|
-
}), /*#__PURE__*/React.createElement(Modal, {
|
|
9463
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
8131
9464
|
visible: visible,
|
|
8132
9465
|
title: fileName,
|
|
8133
9466
|
footer: null,
|
|
@@ -8184,25 +9517,10 @@ var PictureRender = function PictureRender(_ref2) {
|
|
|
8184
9517
|
}));
|
|
8185
9518
|
}));
|
|
8186
9519
|
};
|
|
8187
|
-
var
|
|
8188
|
-
var
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.value, (value === null || value === void 0 ? void 0 : value.value) && typeof value.value === 'string' && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf('其他')) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
|
|
8192
|
-
};
|
|
8193
|
-
var CheckboxRender = function CheckboxRender(_ref4) {
|
|
8194
|
-
var _value$value2, _value$value3, _value$value4;
|
|
8195
|
-
var _ref4$value = _ref4.value,
|
|
8196
|
-
value = _ref4$value === void 0 ? [] : _ref4$value;
|
|
8197
|
-
if ((value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
8198
|
-
var findIndex = value === null || value === void 0 ? void 0 : (_value$value3 = value.value) === null || _value$value3 === void 0 ? void 0 : _value$value3.findIndex(function (item) {
|
|
8199
|
-
return item === '其他';
|
|
8200
|
-
});
|
|
8201
|
-
if (findIndex > -1 && (value === null || value === void 0 ? void 0 : value.other)) {
|
|
8202
|
-
// @ts-ignore
|
|
8203
|
-
value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
|
|
8204
|
-
}
|
|
8205
|
-
return value === null || value === void 0 ? void 0 : (_value$value4 = value.value) === null || _value$value4 === void 0 ? void 0 : _value$value4.join('/');
|
|
9520
|
+
var MultipleSelectRender = function MultipleSelectRender(_ref5) {
|
|
9521
|
+
var _ref5$value = _ref5.value,
|
|
9522
|
+
value = _ref5$value === void 0 ? [] : _ref5$value;
|
|
9523
|
+
return value === null || value === void 0 ? void 0 : value.join(',');
|
|
8206
9524
|
};
|
|
8207
9525
|
var renderMap = {
|
|
8208
9526
|
PICTURE: function PICTURE() {
|
|
@@ -8221,25 +9539,26 @@ var renderMap = {
|
|
|
8221
9539
|
canDownload: true
|
|
8222
9540
|
});
|
|
8223
9541
|
},
|
|
8224
|
-
|
|
8225
|
-
return /*#__PURE__*/React.createElement(
|
|
9542
|
+
CHECKBOX: function CHECKBOX(value) {
|
|
9543
|
+
return /*#__PURE__*/React.createElement(MultipleSelectRender, {
|
|
8226
9544
|
value: value
|
|
8227
9545
|
});
|
|
8228
9546
|
},
|
|
8229
|
-
|
|
8230
|
-
return /*#__PURE__*/React.createElement(
|
|
9547
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(value) {
|
|
9548
|
+
return /*#__PURE__*/React.createElement(MultipleSelectRender, {
|
|
8231
9549
|
value: value
|
|
8232
9550
|
});
|
|
8233
9551
|
}
|
|
8234
9552
|
};
|
|
8235
|
-
var EditPictureRender = function EditPictureRender(
|
|
8236
|
-
var
|
|
8237
|
-
val =
|
|
8238
|
-
index =
|
|
8239
|
-
t =
|
|
8240
|
-
updateHandle =
|
|
8241
|
-
disabled =
|
|
8242
|
-
hostUrl =
|
|
9553
|
+
var EditPictureRender = function EditPictureRender(_ref6) {
|
|
9554
|
+
var _ref6$val = _ref6.val,
|
|
9555
|
+
val = _ref6$val === void 0 ? [] : _ref6$val,
|
|
9556
|
+
index = _ref6.index,
|
|
9557
|
+
t = _ref6.t,
|
|
9558
|
+
updateHandle = _ref6.updateHandle,
|
|
9559
|
+
disabled = _ref6.disabled,
|
|
9560
|
+
hostUrl = _ref6.hostUrl,
|
|
9561
|
+
platform = _ref6.platform;
|
|
8243
9562
|
var finalPictures = val.map(function (item) {
|
|
8244
9563
|
return item.startsWith('http') ? item : "".concat(hostUrl, "/").concat(item);
|
|
8245
9564
|
});
|
|
@@ -8250,38 +9569,41 @@ var EditPictureRender = function EditPictureRender(_ref5) {
|
|
|
8250
9569
|
border: '1px solid #d9d9d9',
|
|
8251
9570
|
padding: '3px'
|
|
8252
9571
|
}
|
|
8253
|
-
},
|
|
9572
|
+
}, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9573
|
+
style: {
|
|
9574
|
+
fontSize: 18,
|
|
9575
|
+
color: '#aaa'
|
|
9576
|
+
}
|
|
9577
|
+
}) : /*#__PURE__*/React.createElement(Popover, {
|
|
8254
9578
|
content: /*#__PURE__*/React.createElement(ApaasUploadAsync$1, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
|
|
8255
9579
|
value: finalPictures,
|
|
8256
9580
|
onChange: function onChange(e) {
|
|
8257
9581
|
return updateHandle(e, index, t.key);
|
|
8258
9582
|
},
|
|
8259
|
-
hostUrl: hostUrl
|
|
9583
|
+
hostUrl: hostUrl,
|
|
9584
|
+
uniqueKey: t.key,
|
|
9585
|
+
platform: platform
|
|
8260
9586
|
})),
|
|
8261
9587
|
trigger: "click"
|
|
8262
9588
|
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
8263
9589
|
style: {
|
|
8264
9590
|
fontSize: 18
|
|
8265
9591
|
}
|
|
8266
|
-
}))
|
|
8267
|
-
style: {
|
|
8268
|
-
fontSize: 18,
|
|
8269
|
-
color: '#333'
|
|
8270
|
-
}
|
|
8271
|
-
}), /*#__PURE__*/React.createElement(PictureRender, {
|
|
9592
|
+
})), /*#__PURE__*/React.createElement(PictureRender, {
|
|
8272
9593
|
value: finalPictures,
|
|
8273
9594
|
width: 24,
|
|
8274
9595
|
hostUrl: hostUrl
|
|
8275
9596
|
}));
|
|
8276
9597
|
};
|
|
8277
|
-
var EditFileRender = function EditFileRender(
|
|
8278
|
-
var
|
|
8279
|
-
val =
|
|
8280
|
-
index =
|
|
8281
|
-
t =
|
|
8282
|
-
updateHandle =
|
|
8283
|
-
disabled =
|
|
8284
|
-
hostUrl =
|
|
9598
|
+
var EditFileRender = function EditFileRender(_ref7) {
|
|
9599
|
+
var _ref7$val = _ref7.val,
|
|
9600
|
+
val = _ref7$val === void 0 ? [] : _ref7$val,
|
|
9601
|
+
index = _ref7.index,
|
|
9602
|
+
t = _ref7.t,
|
|
9603
|
+
updateHandle = _ref7.updateHandle,
|
|
9604
|
+
disabled = _ref7.disabled,
|
|
9605
|
+
hostUrl = _ref7.hostUrl,
|
|
9606
|
+
platform = _ref7.platform;
|
|
8285
9607
|
return /*#__PURE__*/React.createElement("div", {
|
|
8286
9608
|
style: {
|
|
8287
9609
|
display: 'flex',
|
|
@@ -8289,37 +9611,38 @@ var EditFileRender = function EditFileRender(_ref6) {
|
|
|
8289
9611
|
border: '1px solid #d9d9d9',
|
|
8290
9612
|
padding: '3px'
|
|
8291
9613
|
}
|
|
8292
|
-
},
|
|
9614
|
+
}, t.isEdit || disabled ? /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
9615
|
+
style: {
|
|
9616
|
+
fontSize: 18,
|
|
9617
|
+
color: '#aaa'
|
|
9618
|
+
}
|
|
9619
|
+
}) : /*#__PURE__*/React.createElement(Popover, {
|
|
8293
9620
|
content: /*#__PURE__*/React.createElement(ApaasUploadFile, _objectSpread2(_objectSpread2({}, t.componentConfig), {}, {
|
|
8294
9621
|
value: val,
|
|
8295
9622
|
onChange: function onChange(e) {
|
|
8296
9623
|
return updateHandle(e, index, t.key);
|
|
8297
9624
|
},
|
|
8298
|
-
hostUrl: hostUrl
|
|
9625
|
+
hostUrl: hostUrl,
|
|
9626
|
+
platform: platform
|
|
8299
9627
|
})),
|
|
8300
9628
|
trigger: "click"
|
|
8301
9629
|
}, /*#__PURE__*/React.createElement(PlusSquareOutlined, {
|
|
8302
9630
|
style: {
|
|
8303
9631
|
fontSize: 18
|
|
8304
9632
|
}
|
|
8305
|
-
}))
|
|
8306
|
-
style: {
|
|
8307
|
-
fontSize: 18,
|
|
8308
|
-
color: '#333'
|
|
8309
|
-
}
|
|
8310
|
-
}), /*#__PURE__*/React.createElement(FileRender, {
|
|
9633
|
+
})), /*#__PURE__*/React.createElement(FileRender, {
|
|
8311
9634
|
fileList: val,
|
|
8312
9635
|
canDownload: true
|
|
8313
9636
|
}));
|
|
8314
9637
|
};
|
|
8315
9638
|
var EditRenderMap = {
|
|
8316
|
-
INPUT: function INPUT(
|
|
8317
|
-
var val =
|
|
8318
|
-
record =
|
|
8319
|
-
index =
|
|
8320
|
-
t =
|
|
8321
|
-
updateHandle =
|
|
8322
|
-
disabled =
|
|
9639
|
+
INPUT: function INPUT(_ref8) {
|
|
9640
|
+
var val = _ref8.val,
|
|
9641
|
+
record = _ref8.record,
|
|
9642
|
+
index = _ref8.index,
|
|
9643
|
+
t = _ref8.t,
|
|
9644
|
+
updateHandle = _ref8.updateHandle,
|
|
9645
|
+
disabled = _ref8.disabled;
|
|
8323
9646
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
8324
9647
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
8325
9648
|
style: {
|
|
@@ -8342,13 +9665,13 @@ var EditRenderMap = {
|
|
|
8342
9665
|
}
|
|
8343
9666
|
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
8344
9667
|
},
|
|
8345
|
-
TEXTAREA: function TEXTAREA(
|
|
8346
|
-
var val =
|
|
8347
|
-
record =
|
|
8348
|
-
index =
|
|
8349
|
-
t =
|
|
8350
|
-
updateHandle =
|
|
8351
|
-
disabled =
|
|
9668
|
+
TEXTAREA: function TEXTAREA(_ref9) {
|
|
9669
|
+
var val = _ref9.val,
|
|
9670
|
+
record = _ref9.record,
|
|
9671
|
+
index = _ref9.index,
|
|
9672
|
+
t = _ref9.t,
|
|
9673
|
+
updateHandle = _ref9.updateHandle,
|
|
9674
|
+
disabled = _ref9.disabled;
|
|
8352
9675
|
var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
|
|
8353
9676
|
return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
8354
9677
|
style: {
|
|
@@ -8371,62 +9694,41 @@ var EditRenderMap = {
|
|
|
8371
9694
|
}
|
|
8372
9695
|
}) : /*#__PURE__*/React.createElement("div", null, val);
|
|
8373
9696
|
},
|
|
8374
|
-
PICTURE: function PICTURE(
|
|
8375
|
-
var val = _ref9.val,
|
|
8376
|
-
record = _ref9.record,
|
|
8377
|
-
index = _ref9.index,
|
|
8378
|
-
t = _ref9.t,
|
|
8379
|
-
updateHandle = _ref9.updateHandle,
|
|
8380
|
-
disabled = _ref9.disabled;
|
|
8381
|
-
return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
8382
|
-
val: val,
|
|
8383
|
-
t: t,
|
|
8384
|
-
disabled: disabled,
|
|
8385
|
-
index: index,
|
|
8386
|
-
updateHandle: updateHandle,
|
|
8387
|
-
hostUrl: hostUrl
|
|
8388
|
-
}) : /*#__PURE__*/React.createElement(PictureRender, {
|
|
8389
|
-
value: val,
|
|
8390
|
-
width: 20,
|
|
8391
|
-
hostUrl: hostUrl
|
|
8392
|
-
});
|
|
8393
|
-
},
|
|
8394
|
-
FILE: function FILE(_ref10) {
|
|
9697
|
+
PICTURE: function PICTURE(_ref10) {
|
|
8395
9698
|
var val = _ref10.val,
|
|
8396
9699
|
record = _ref10.record,
|
|
8397
9700
|
index = _ref10.index,
|
|
8398
9701
|
t = _ref10.t,
|
|
8399
9702
|
updateHandle = _ref10.updateHandle,
|
|
8400
|
-
disabled = _ref10.disabled
|
|
8401
|
-
|
|
9703
|
+
disabled = _ref10.disabled,
|
|
9704
|
+
platform = _ref10.platform;
|
|
9705
|
+
return /*#__PURE__*/React.createElement(EditPictureRender, {
|
|
8402
9706
|
val: val,
|
|
8403
9707
|
t: t,
|
|
8404
9708
|
disabled: disabled,
|
|
8405
9709
|
index: index,
|
|
8406
9710
|
updateHandle: updateHandle,
|
|
8407
|
-
hostUrl: hostUrl
|
|
8408
|
-
|
|
8409
|
-
fileList: val,
|
|
8410
|
-
canDownload: true
|
|
9711
|
+
hostUrl: hostUrl,
|
|
9712
|
+
platform: platform
|
|
8411
9713
|
});
|
|
8412
9714
|
},
|
|
8413
|
-
|
|
9715
|
+
FILE: function FILE(_ref11) {
|
|
8414
9716
|
var val = _ref11.val,
|
|
8415
9717
|
record = _ref11.record,
|
|
8416
9718
|
index = _ref11.index,
|
|
8417
9719
|
t = _ref11.t,
|
|
8418
9720
|
updateHandle = _ref11.updateHandle,
|
|
8419
|
-
disabled = _ref11.disabled
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
disabled:
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
})
|
|
9721
|
+
disabled = _ref11.disabled;
|
|
9722
|
+
return /*#__PURE__*/React.createElement(EditFileRender, {
|
|
9723
|
+
val: val,
|
|
9724
|
+
t: t,
|
|
9725
|
+
disabled: disabled,
|
|
9726
|
+
index: index,
|
|
9727
|
+
updateHandle: updateHandle,
|
|
9728
|
+
hostUrl: hostUrl
|
|
9729
|
+
});
|
|
8428
9730
|
},
|
|
8429
|
-
|
|
9731
|
+
RADIO: function RADIO(_ref12) {
|
|
8430
9732
|
var val = _ref12.val,
|
|
8431
9733
|
record = _ref12.record,
|
|
8432
9734
|
index = _ref12.index,
|
|
@@ -8437,12 +9739,13 @@ var EditRenderMap = {
|
|
|
8437
9739
|
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
8438
9740
|
value: val,
|
|
8439
9741
|
disabled: t.isEdit || disabled,
|
|
9742
|
+
allowClear: true,
|
|
8440
9743
|
onChange: function onChange(e) {
|
|
8441
9744
|
return updateHandle(e, index, t.key);
|
|
8442
9745
|
}
|
|
8443
9746
|
}));
|
|
8444
9747
|
},
|
|
8445
|
-
|
|
9748
|
+
SELECT: function SELECT(_ref13) {
|
|
8446
9749
|
var val = _ref13.val,
|
|
8447
9750
|
record = _ref13.record,
|
|
8448
9751
|
index = _ref13.index,
|
|
@@ -8450,15 +9753,16 @@ var EditRenderMap = {
|
|
|
8450
9753
|
updateHandle = _ref13.updateHandle,
|
|
8451
9754
|
disabled = _ref13.disabled,
|
|
8452
9755
|
componentDto = _ref13.componentDto;
|
|
8453
|
-
return /*#__PURE__*/React.createElement(
|
|
9756
|
+
return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
8454
9757
|
value: val,
|
|
8455
9758
|
disabled: t.isEdit || disabled,
|
|
9759
|
+
allowClear: true,
|
|
8456
9760
|
onChange: function onChange(e) {
|
|
8457
9761
|
return updateHandle(e, index, t.key);
|
|
8458
9762
|
}
|
|
8459
9763
|
}));
|
|
8460
9764
|
},
|
|
8461
|
-
|
|
9765
|
+
CHECKBOX: function CHECKBOX(_ref14) {
|
|
8462
9766
|
var val = _ref14.val,
|
|
8463
9767
|
record = _ref14.record,
|
|
8464
9768
|
index = _ref14.index,
|
|
@@ -8473,6 +9777,22 @@ var EditRenderMap = {
|
|
|
8473
9777
|
return updateHandle(e, index, t.key);
|
|
8474
9778
|
}
|
|
8475
9779
|
}));
|
|
9780
|
+
},
|
|
9781
|
+
BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
|
|
9782
|
+
var val = _ref15.val,
|
|
9783
|
+
record = _ref15.record,
|
|
9784
|
+
index = _ref15.index,
|
|
9785
|
+
t = _ref15.t,
|
|
9786
|
+
updateHandle = _ref15.updateHandle,
|
|
9787
|
+
disabled = _ref15.disabled,
|
|
9788
|
+
componentDto = _ref15.componentDto;
|
|
9789
|
+
return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({}, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
|
|
9790
|
+
value: val,
|
|
9791
|
+
disabled: t.isEdit || disabled,
|
|
9792
|
+
onChange: function onChange(e) {
|
|
9793
|
+
return updateHandle(e, index, t.key);
|
|
9794
|
+
}
|
|
9795
|
+
}));
|
|
8476
9796
|
}
|
|
8477
9797
|
};
|
|
8478
9798
|
|
|
@@ -8595,7 +9915,7 @@ var SubForm = function SubForm(props) {
|
|
|
8595
9915
|
title: '序号',
|
|
8596
9916
|
width: 50,
|
|
8597
9917
|
render: function render(val, record, index) {
|
|
8598
|
-
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
9918
|
+
return disabled ? /*#__PURE__*/React.createElement("div", null, index + 1) : /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
8599
9919
|
index: index,
|
|
8600
9920
|
hoveredRowIndex: hoveredRowIndex,
|
|
8601
9921
|
handleClick: function handleClick() {
|
|
@@ -8624,7 +9944,8 @@ var SubForm = function SubForm(props) {
|
|
|
8624
9944
|
disabled: disabled,
|
|
8625
9945
|
componentDto: componentDtoList.find(function (item) {
|
|
8626
9946
|
return item.uniqueKey === t.key;
|
|
8627
|
-
})
|
|
9947
|
+
}),
|
|
9948
|
+
platform: platform
|
|
8628
9949
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
8629
9950
|
style: {
|
|
8630
9951
|
width: '100%'
|
|
@@ -8695,18 +10016,9 @@ var SubForm = function SubForm(props) {
|
|
|
8695
10016
|
workOrderComponentType: next.workOrderComponentType,
|
|
8696
10017
|
defaultValue: ''
|
|
8697
10018
|
};
|
|
8698
|
-
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT'].includes(next.workOrderComponentType)) {
|
|
10019
|
+
if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
8699
10020
|
item.defaultValue = [];
|
|
8700
10021
|
}
|
|
8701
|
-
if (['RADIO', 'CHECKBOX'].includes(next.workOrderComponentType)) {
|
|
8702
|
-
item.defaultValue = {
|
|
8703
|
-
value: next.workOrderComponentType === 'RADIO' ? '' : [],
|
|
8704
|
-
other: ''
|
|
8705
|
-
};
|
|
8706
|
-
}
|
|
8707
|
-
if (['SELECT'].includes(next.workOrderComponentType)) {
|
|
8708
|
-
item.defaultValue = '';
|
|
8709
|
-
}
|
|
8710
10022
|
prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
|
|
8711
10023
|
return prv;
|
|
8712
10024
|
}, {});
|
|
@@ -8745,7 +10057,6 @@ var SubForm = function SubForm(props) {
|
|
|
8745
10057
|
newValue.splice(index, 0, _objectSpread2(_objectSpread2({}, defaultValueMap), {}, {
|
|
8746
10058
|
uuid: uuid()
|
|
8747
10059
|
}));
|
|
8748
|
-
console.log('newValue', newValue);
|
|
8749
10060
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
8750
10061
|
};
|
|
8751
10062
|
var onScrollCapture = function onScrollCapture(e) {
|
|
@@ -8764,8 +10075,8 @@ var SubForm = function SubForm(props) {
|
|
|
8764
10075
|
var _ref2,
|
|
8765
10076
|
_ref2$pageNo,
|
|
8766
10077
|
pageNo,
|
|
8767
|
-
|
|
8768
|
-
|
|
10078
|
+
_ref2$componentList,
|
|
10079
|
+
componentList,
|
|
8769
10080
|
params,
|
|
8770
10081
|
res,
|
|
8771
10082
|
data,
|
|
@@ -8777,25 +10088,13 @@ var SubForm = function SubForm(props) {
|
|
|
8777
10088
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8778
10089
|
while (1) switch (_context.prev = _context.next) {
|
|
8779
10090
|
case 0:
|
|
8780
|
-
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo;
|
|
10091
|
+
_ref2 = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}, _ref2$pageNo = _ref2.pageNo, pageNo = _ref2$pageNo === void 0 ? 1 : _ref2$pageNo, _ref2$componentList = _ref2.componentList, componentList = _ref2$componentList === void 0 ? [] : _ref2$componentList;
|
|
8781
10092
|
if (!disabled) {
|
|
8782
10093
|
_context.next = 3;
|
|
8783
10094
|
break;
|
|
8784
10095
|
}
|
|
8785
10096
|
return _context.abrupt("return");
|
|
8786
10097
|
case 3:
|
|
8787
|
-
_context.next = 5;
|
|
8788
|
-
return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
|
|
8789
|
-
method: 'post',
|
|
8790
|
-
data: {
|
|
8791
|
-
templateType: 'QY_CUSTOM',
|
|
8792
|
-
uniqueKey: workOrderTemplateId
|
|
8793
|
-
}
|
|
8794
|
-
});
|
|
8795
|
-
case 5:
|
|
8796
|
-
_yield$request = _context.sent;
|
|
8797
|
-
templateDetail = _yield$request.data;
|
|
8798
|
-
setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
|
|
8799
10098
|
params = {
|
|
8800
10099
|
flowNodeId: nodeId,
|
|
8801
10100
|
flowTemplateKey: flowTemplateKey === null || flowTemplateKey === void 0 ? void 0 : flowTemplateKey[1],
|
|
@@ -8821,17 +10120,17 @@ var SubForm = function SubForm(props) {
|
|
|
8821
10120
|
value: [inputValue]
|
|
8822
10121
|
}];
|
|
8823
10122
|
}
|
|
8824
|
-
_context.next =
|
|
10123
|
+
_context.next = 7;
|
|
8825
10124
|
return extendRequest('/qy/view/workOrderList', {
|
|
8826
10125
|
method: 'post',
|
|
8827
10126
|
data: params
|
|
8828
10127
|
});
|
|
8829
|
-
case
|
|
10128
|
+
case 7:
|
|
8830
10129
|
res = _context.sent;
|
|
8831
10130
|
data = res.data, success = res.success;
|
|
8832
10131
|
if (success) {
|
|
8833
|
-
transDataSourceItem = transformWorkOrderData(
|
|
8834
|
-
headerKeys =
|
|
10132
|
+
transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'init');
|
|
10133
|
+
headerKeys = correlationList.map(function (t) {
|
|
8835
10134
|
return t.key;
|
|
8836
10135
|
});
|
|
8837
10136
|
newList = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
|
|
@@ -8855,7 +10154,7 @@ var SubForm = function SubForm(props) {
|
|
|
8855
10154
|
setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
|
|
8856
10155
|
isRequest.current = false;
|
|
8857
10156
|
}
|
|
8858
|
-
case
|
|
10157
|
+
case 10:
|
|
8859
10158
|
case "end":
|
|
8860
10159
|
return _context.stop();
|
|
8861
10160
|
}
|
|
@@ -8865,10 +10164,61 @@ var SubForm = function SubForm(props) {
|
|
|
8865
10164
|
return _ref.apply(this, arguments);
|
|
8866
10165
|
};
|
|
8867
10166
|
}();
|
|
10167
|
+
var getTemplateDetail = /*#__PURE__*/function () {
|
|
10168
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
10169
|
+
var _yield$request, templateDetail;
|
|
10170
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10171
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10172
|
+
case 0:
|
|
10173
|
+
_context2.next = 2;
|
|
10174
|
+
return extendRequest('/qy/gdfw/template/queryTemplateDetail', {
|
|
10175
|
+
method: 'post',
|
|
10176
|
+
data: {
|
|
10177
|
+
templateType: 'QY_CUSTOM',
|
|
10178
|
+
uniqueKey: workOrderTemplateId
|
|
10179
|
+
}
|
|
10180
|
+
});
|
|
10181
|
+
case 2:
|
|
10182
|
+
_yield$request = _context2.sent;
|
|
10183
|
+
templateDetail = _yield$request.data;
|
|
10184
|
+
setComponentDtoList((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
|
|
10185
|
+
return _context2.abrupt("return", (templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []);
|
|
10186
|
+
case 6:
|
|
10187
|
+
case "end":
|
|
10188
|
+
return _context2.stop();
|
|
10189
|
+
}
|
|
10190
|
+
}, _callee2);
|
|
10191
|
+
}));
|
|
10192
|
+
return function getTemplateDetail() {
|
|
10193
|
+
return _ref3.apply(this, arguments);
|
|
10194
|
+
};
|
|
10195
|
+
}();
|
|
10196
|
+
var initHandle = /*#__PURE__*/function () {
|
|
10197
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10198
|
+
var componentList;
|
|
10199
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10200
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
10201
|
+
case 0:
|
|
10202
|
+
_context3.next = 2;
|
|
10203
|
+
return getTemplateDetail();
|
|
10204
|
+
case 2:
|
|
10205
|
+
componentList = _context3.sent;
|
|
10206
|
+
getWorkOrderList({
|
|
10207
|
+
pageNo: 1,
|
|
10208
|
+
componentList: componentList
|
|
10209
|
+
});
|
|
10210
|
+
case 4:
|
|
10211
|
+
case "end":
|
|
10212
|
+
return _context3.stop();
|
|
10213
|
+
}
|
|
10214
|
+
}, _callee3);
|
|
10215
|
+
}));
|
|
10216
|
+
return function initHandle() {
|
|
10217
|
+
return _ref4.apply(this, arguments);
|
|
10218
|
+
};
|
|
10219
|
+
}();
|
|
8868
10220
|
useEffect(function () {
|
|
8869
|
-
|
|
8870
|
-
pageNo: 1
|
|
8871
|
-
});
|
|
10221
|
+
initHandle();
|
|
8872
10222
|
}, []);
|
|
8873
10223
|
useUpdateEffect(function () {
|
|
8874
10224
|
setPageNo(1);
|
|
@@ -11364,7 +12714,7 @@ styleInject(css_248z$9);
|
|
|
11364
12714
|
|
|
11365
12715
|
var Item = Form.Item;
|
|
11366
12716
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
11367
|
-
var _value$
|
|
12717
|
+
var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
|
|
11368
12718
|
var LogisticsAddress = LogisticsAddressData.getInstance();
|
|
11369
12719
|
var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
|
|
11370
12720
|
var address = AddressData.getInstance();
|
|
@@ -11562,17 +12912,19 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
11562
12912
|
status: '',
|
|
11563
12913
|
reason: ''
|
|
11564
12914
|
},
|
|
12915
|
+
interceptLogisticsApiStatusReason: undefined,
|
|
11565
12916
|
interceptLogisticsUserKCode: undefined,
|
|
11566
12917
|
interceptLogisticsUserSecretKey: undefined
|
|
11567
12918
|
});
|
|
11568
12919
|
}
|
|
11569
12920
|
if (type === 'interceptLogisticsApiStatus') {
|
|
11570
|
-
var _value$interceptLogis;
|
|
12921
|
+
var _value$interceptLogis, _value$interceptLogis2;
|
|
11571
12922
|
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
11572
12923
|
interceptLogisticsApiStatus: {
|
|
11573
12924
|
status: val,
|
|
11574
12925
|
reason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis = value.interceptLogisticsApiStatus) === null || _value$interceptLogis === void 0 ? void 0 : _value$interceptLogis.reason) || ''
|
|
11575
|
-
}
|
|
12926
|
+
},
|
|
12927
|
+
interceptLogisticsApiStatusReason: (value === null || value === void 0 ? void 0 : (_value$interceptLogis2 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis2 === void 0 ? void 0 : _value$interceptLogis2.reason) || ''
|
|
11576
12928
|
});
|
|
11577
12929
|
}
|
|
11578
12930
|
if (type === 'interceptLogisticsUserKCode') {
|
|
@@ -11795,7 +13147,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
11795
13147
|
label: '接口状态',
|
|
11796
13148
|
key: 'interceptLogisticsApiStatus'
|
|
11797
13149
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
11798
|
-
value: (value === null || value === void 0 ? void 0 : (_value$
|
|
13150
|
+
value: (value === null || value === void 0 ? void 0 : (_value$interceptLogis3 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis3 === void 0 ? void 0 : _value$interceptLogis3.status) || null,
|
|
11799
13151
|
disabled: true,
|
|
11800
13152
|
style: {
|
|
11801
13153
|
width: '200px'
|
|
@@ -11811,11 +13163,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
11811
13163
|
label: '失败',
|
|
11812
13164
|
value: '失败'
|
|
11813
13165
|
}]
|
|
11814
|
-
}), (value === null || value === void 0 ? void 0 : (_value$
|
|
13166
|
+
}), (value === null || value === void 0 ? void 0 : (_value$interceptLogis4 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis4 === void 0 ? void 0 : _value$interceptLogis4.reason) ? /*#__PURE__*/React.createElement("div", {
|
|
11815
13167
|
style: {
|
|
11816
13168
|
color: 'red'
|
|
11817
13169
|
}
|
|
11818
|
-
}, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : (_value$
|
|
13170
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : (_value$interceptLogis5 = value.interceptLogisticsApiStatus) === null || _value$interceptLogis5 === void 0 ? void 0 : _value$interceptLogis5.reason) : null), /*#__PURE__*/React.createElement(Item, {
|
|
13171
|
+
label: '接口状态原因',
|
|
13172
|
+
key: 'interceptLogisticsApiStatusReason'
|
|
13173
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
13174
|
+
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsApiStatusReason,
|
|
13175
|
+
disabled: true,
|
|
13176
|
+
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13177
|
+
onChange: function onChange(e) {
|
|
13178
|
+
return changeHandle(e.target.value, 'interceptLogisticsApiStatusReason');
|
|
13179
|
+
}
|
|
13180
|
+
})));
|
|
11819
13181
|
};
|
|
11820
13182
|
|
|
11821
13183
|
var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
@@ -12296,6 +13658,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
12296
13658
|
var _props$value = props.value,
|
|
12297
13659
|
value = _props$value === void 0 ? [] : _props$value,
|
|
12298
13660
|
onChange = props.onChange,
|
|
13661
|
+
_onBlur = props.onBlur,
|
|
12299
13662
|
disabled = props.disabled,
|
|
12300
13663
|
_props$type = props.type,
|
|
12301
13664
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
@@ -12310,7 +13673,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
12310
13673
|
changeIndex = _useState2[0],
|
|
12311
13674
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
12312
13675
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
12313
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
13676
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
12314
13677
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
12315
13678
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
12316
13679
|
useEffect(function () {
|
|
@@ -12425,6 +13788,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
12425
13788
|
onChange: function onChange(e) {
|
|
12426
13789
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
12427
13790
|
},
|
|
13791
|
+
onBlur: function onBlur(e) {
|
|
13792
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value);
|
|
13793
|
+
},
|
|
12428
13794
|
value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.logisticsCode
|
|
12429
13795
|
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
12430
13796
|
disabled: disabled,
|
|
@@ -15606,7 +16972,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
|
|
|
15606
16972
|
maxTagCount: "responsive",
|
|
15607
16973
|
valueMapping: "uniqueKey",
|
|
15608
16974
|
style: {
|
|
15609
|
-
width: '
|
|
16975
|
+
width: '190px'
|
|
15610
16976
|
}
|
|
15611
16977
|
}, props));
|
|
15612
16978
|
} : componentMap$1[filterComponentType];
|
|
@@ -15873,7 +17239,7 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
15873
17239
|
hidden: !show,
|
|
15874
17240
|
style: {
|
|
15875
17241
|
marginRight: '4px',
|
|
15876
|
-
minWidth: '
|
|
17242
|
+
minWidth: '190px'
|
|
15877
17243
|
},
|
|
15878
17244
|
key: item.id
|
|
15879
17245
|
}, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
|
|
@@ -19662,7 +21028,7 @@ var isErpType = {
|
|
|
19662
21028
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
19663
21029
|
}
|
|
19664
21030
|
};
|
|
19665
|
-
var processGoods = function processGoods(_ref) {
|
|
21031
|
+
var processGoods$1 = function processGoods(_ref) {
|
|
19666
21032
|
var list = _ref.list,
|
|
19667
21033
|
type = _ref.type,
|
|
19668
21034
|
canUpdateNumber = _ref.canUpdateNumber,
|
|
@@ -19671,35 +21037,35 @@ var processGoods = function processGoods(_ref) {
|
|
|
19671
21037
|
var newList = [];
|
|
19672
21038
|
// 根据商品类型处理数据
|
|
19673
21039
|
if (isErpType.isWdt(type)) {
|
|
19674
|
-
newList = processWdtGoods({
|
|
21040
|
+
newList = processWdtGoods$1({
|
|
19675
21041
|
list: list,
|
|
19676
21042
|
type: type,
|
|
19677
21043
|
canUpdateNumber: canUpdateNumber,
|
|
19678
21044
|
source: source
|
|
19679
21045
|
});
|
|
19680
21046
|
} else if (isErpType.isBsE3(type)) {
|
|
19681
|
-
newList = processBsE3Goods({
|
|
21047
|
+
newList = processBsE3Goods$1({
|
|
19682
21048
|
list: list,
|
|
19683
21049
|
type: type,
|
|
19684
21050
|
canUpdateNumber: canUpdateNumber,
|
|
19685
21051
|
source: source
|
|
19686
21052
|
});
|
|
19687
21053
|
} else if (isErpType.isGy(type)) {
|
|
19688
|
-
newList = processGyGoods({
|
|
21054
|
+
newList = processGyGoods$1({
|
|
19689
21055
|
list: list,
|
|
19690
21056
|
type: type,
|
|
19691
21057
|
canUpdateNumber: canUpdateNumber,
|
|
19692
21058
|
source: source
|
|
19693
21059
|
});
|
|
19694
21060
|
} else if (isErpType.isJst(type)) {
|
|
19695
|
-
newList = processJstGoods({
|
|
21061
|
+
newList = processJstGoods$1({
|
|
19696
21062
|
list: list,
|
|
19697
21063
|
type: type,
|
|
19698
21064
|
canUpdateNumber: canUpdateNumber,
|
|
19699
21065
|
source: source
|
|
19700
21066
|
});
|
|
19701
21067
|
} else if (isErpType.isKm(type)) {
|
|
19702
|
-
newList = processKmGoods({
|
|
21068
|
+
newList = processKmGoods$1({
|
|
19703
21069
|
list: list,
|
|
19704
21070
|
type: type,
|
|
19705
21071
|
canUpdateNumber: canUpdateNumber,
|
|
@@ -19716,7 +21082,7 @@ var processGoods = function processGoods(_ref) {
|
|
|
19716
21082
|
return newList;
|
|
19717
21083
|
};
|
|
19718
21084
|
// 处理不同类型的商品数据
|
|
19719
|
-
var processWdtGoods = function processWdtGoods(_ref2) {
|
|
21085
|
+
var processWdtGoods$1 = function processWdtGoods(_ref2) {
|
|
19720
21086
|
var list = _ref2.list,
|
|
19721
21087
|
type = _ref2.type,
|
|
19722
21088
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
@@ -19737,7 +21103,7 @@ var processWdtGoods = function processWdtGoods(_ref2) {
|
|
|
19737
21103
|
return processedItem;
|
|
19738
21104
|
});
|
|
19739
21105
|
};
|
|
19740
|
-
var processBsE3Goods = function processBsE3Goods(_ref3) {
|
|
21106
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref3) {
|
|
19741
21107
|
var list = _ref3.list,
|
|
19742
21108
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
19743
21109
|
return list.map(function (item) {
|
|
@@ -19774,7 +21140,7 @@ var processBsE3Goods = function processBsE3Goods(_ref3) {
|
|
|
19774
21140
|
});
|
|
19775
21141
|
});
|
|
19776
21142
|
};
|
|
19777
|
-
var processGyGoods = function processGyGoods(_ref4) {
|
|
21143
|
+
var processGyGoods$1 = function processGyGoods(_ref4) {
|
|
19778
21144
|
var list = _ref4.list,
|
|
19779
21145
|
source = _ref4.source;
|
|
19780
21146
|
var isFormWorkOrder = source === 'workOrder';
|
|
@@ -19803,7 +21169,7 @@ var processGyGoods = function processGyGoods(_ref4) {
|
|
|
19803
21169
|
});
|
|
19804
21170
|
});
|
|
19805
21171
|
};
|
|
19806
|
-
var processJstGoods = function processJstGoods(_ref5) {
|
|
21172
|
+
var processJstGoods$1 = function processJstGoods(_ref5) {
|
|
19807
21173
|
var list = _ref5.list;
|
|
19808
21174
|
return list.map(function (item) {
|
|
19809
21175
|
return {
|
|
@@ -19822,7 +21188,7 @@ var processJstGoods = function processJstGoods(_ref5) {
|
|
|
19822
21188
|
};
|
|
19823
21189
|
});
|
|
19824
21190
|
};
|
|
19825
|
-
var processKmGoods = function processKmGoods(_ref6) {
|
|
21191
|
+
var processKmGoods$1 = function processKmGoods(_ref6) {
|
|
19826
21192
|
var list = _ref6.list,
|
|
19827
21193
|
type = _ref6.type;
|
|
19828
21194
|
var initParamsMap = {
|
|
@@ -20318,7 +21684,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
20318
21684
|
}].concat(_toConsumableArray(columns));
|
|
20319
21685
|
}, []);
|
|
20320
21686
|
var onSubmit = function onSubmit(list) {
|
|
20321
|
-
var newList = processGoods({
|
|
21687
|
+
var newList = processGoods$1({
|
|
20322
21688
|
list: list,
|
|
20323
21689
|
canUpdateNumber: canUpdateNumber,
|
|
20324
21690
|
type: type,
|
|
@@ -22291,6 +23657,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
22291
23657
|
manual = props.manual,
|
|
22292
23658
|
correlationList = props.subConfig.correlationList,
|
|
22293
23659
|
effects = props.effects;
|
|
23660
|
+
console.log('effects', effects);
|
|
22294
23661
|
var valueRef = useRef(value);
|
|
22295
23662
|
useEffect(function () {
|
|
22296
23663
|
valueRef.current = value;
|
|
@@ -22352,7 +23719,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
22352
23719
|
width: 80,
|
|
22353
23720
|
ellipsis: true,
|
|
22354
23721
|
render: function render(val, record, index) {
|
|
22355
|
-
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
23722
|
+
return disabled ? /*#__PURE__*/React.createElement("div", null, index + 1) : /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
22356
23723
|
index: index,
|
|
22357
23724
|
hoveredRowIndex: hoveredRowIndex,
|
|
22358
23725
|
handleClick: function handleClick() {
|
|
@@ -22415,8 +23782,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
22415
23782
|
});
|
|
22416
23783
|
}
|
|
22417
23784
|
return list;
|
|
22418
|
-
}, [newTableHeader, disabled, updateHandle]);
|
|
22419
|
-
console.log('column', column);
|
|
23785
|
+
}, [newTableHeader, disabled, updateHandle, hoveredRowIndex]);
|
|
22420
23786
|
var orderModalColumns = useMemo(function () {
|
|
22421
23787
|
return [{
|
|
22422
23788
|
dataIndex: '',
|
|
@@ -22471,11 +23837,16 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
22471
23837
|
}));
|
|
22472
23838
|
};
|
|
22473
23839
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
22474
|
-
var
|
|
22475
|
-
|
|
22476
|
-
|
|
22477
|
-
|
|
22478
|
-
|
|
23840
|
+
var _ref = effects || {},
|
|
23841
|
+
shopList = _ref.shopList,
|
|
23842
|
+
form = _ref.form;
|
|
23843
|
+
var _ref2 = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {},
|
|
23844
|
+
_ref2$shopId = _ref2.shopId,
|
|
23845
|
+
shopId = _ref2$shopId === void 0 ? '' : _ref2$shopId;
|
|
23846
|
+
var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
|
|
23847
|
+
return !item.notJoin && item.shopId == shopId;
|
|
23848
|
+
});
|
|
23849
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$4({
|
|
22479
23850
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
22480
23851
|
shopId: shopId
|
|
22481
23852
|
}).then(function (data) {
|
|
@@ -22483,7 +23854,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
22483
23854
|
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
22484
23855
|
allOrders: allOrders
|
|
22485
23856
|
}));
|
|
22486
|
-
}) : Promise.resolve();
|
|
23857
|
+
}).catch(console.debug) : Promise.resolve();
|
|
22487
23858
|
};
|
|
22488
23859
|
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
22489
23860
|
var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
|
|
@@ -25920,13 +27291,11 @@ var typeMap$6 = {
|
|
|
25920
27291
|
}
|
|
25921
27292
|
},
|
|
25922
27293
|
asyncGetData: function () {
|
|
25923
|
-
var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
27294
|
+
var _asyncGetData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
25924
27295
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
25925
27296
|
while (1) switch (_context.prev = _context.next) {
|
|
25926
27297
|
case 0:
|
|
25927
|
-
return _context.abrupt("return", servers.SKX.querySkxOrderDetailSingleton({
|
|
25928
|
-
tid: tradeId
|
|
25929
|
-
}).then(function (res) {
|
|
27298
|
+
return _context.abrupt("return", servers.SKX.querySkxOrderDetailSingleton(params).then(function (res) {
|
|
25930
27299
|
var orderDetailInfoList = res.data.orderDetailInfoList || [];
|
|
25931
27300
|
return orderDetailInfoList;
|
|
25932
27301
|
}));
|
|
@@ -25961,13 +27330,11 @@ var typeMap$6 = {
|
|
|
25961
27330
|
}
|
|
25962
27331
|
},
|
|
25963
27332
|
asyncGetData: function () {
|
|
25964
|
-
var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(
|
|
27333
|
+
var _asyncGetData2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
|
|
25965
27334
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
25966
27335
|
while (1) switch (_context2.prev = _context2.next) {
|
|
25967
27336
|
case 0:
|
|
25968
|
-
return _context2.abrupt("return", servers.SKX.queryReturnOrderDetailSingleton({
|
|
25969
|
-
tid: tradeId
|
|
25970
|
-
}).then(function (res) {
|
|
27337
|
+
return _context2.abrupt("return", servers.SKX.queryReturnOrderDetailSingleton(params).then(function (res) {
|
|
25971
27338
|
var skqReturnOrderDetailInfoDtos = res.data.skqReturnOrderDetailInfoDtos || [];
|
|
25972
27339
|
return skqReturnOrderDetailInfoDtos;
|
|
25973
27340
|
}));
|
|
@@ -26032,32 +27399,42 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
26032
27399
|
}, [value]);
|
|
26033
27400
|
var asyncQueryData = /*#__PURE__*/function () {
|
|
26034
27401
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
26035
|
-
var
|
|
27402
|
+
var _form$getFieldValue, _form$getFieldValue$;
|
|
27403
|
+
var tradeId, skxReturnExpressCode, blurFrom;
|
|
26036
27404
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
26037
27405
|
while (1) switch (_context3.prev = _context3.next) {
|
|
26038
27406
|
case 0:
|
|
26039
27407
|
tradeId = form.getFieldValue('m3ap1EvEyd');
|
|
27408
|
+
skxReturnExpressCode = (_form$getFieldValue = form.getFieldValue('4487c6516b')) === null || _form$getFieldValue === void 0 ? void 0 : (_form$getFieldValue$ = _form$getFieldValue[0]) === null || _form$getFieldValue$ === void 0 ? void 0 : _form$getFieldValue$.logisticsCode;
|
|
27409
|
+
blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
|
|
26040
27410
|
console.log('asyncQueryData---', {
|
|
27411
|
+
skxReturnExpressCode: skxReturnExpressCode,
|
|
27412
|
+
blurFrom: blurFrom,
|
|
26041
27413
|
tradeId: tradeId,
|
|
26042
27414
|
tradeIdRef: tradeIdRef.current,
|
|
26043
27415
|
form: form
|
|
26044
27416
|
});
|
|
26045
|
-
if (tradeId) {
|
|
26046
|
-
_context3.next =
|
|
27417
|
+
if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
|
|
27418
|
+
_context3.next = 7;
|
|
26047
27419
|
break;
|
|
26048
27420
|
}
|
|
26049
27421
|
setDataSource([]);
|
|
26050
27422
|
return _context3.abrupt("return");
|
|
26051
|
-
case
|
|
27423
|
+
case 7:
|
|
26052
27424
|
setSpinning(true);
|
|
26053
|
-
|
|
27425
|
+
// 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
|
|
27426
|
+
typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
|
|
27427
|
+
expressCode: skxReturnExpressCode
|
|
27428
|
+
} : {
|
|
27429
|
+
tid: tradeId
|
|
27430
|
+
}).then(function (data) {
|
|
26054
27431
|
setDataSource(data);
|
|
26055
27432
|
}).catch(function () {
|
|
26056
27433
|
setDataSource([]);
|
|
26057
27434
|
}).finally(function () {
|
|
26058
27435
|
setSpinning(false);
|
|
26059
27436
|
});
|
|
26060
|
-
case
|
|
27437
|
+
case 9:
|
|
26061
27438
|
case "end":
|
|
26062
27439
|
return _context3.stop();
|
|
26063
27440
|
}
|
|
@@ -26154,7 +27531,14 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
26154
27531
|
value: value,
|
|
26155
27532
|
isInput: isInput
|
|
26156
27533
|
});
|
|
26157
|
-
|
|
27534
|
+
var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
|
|
27535
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
|
|
27536
|
+
// 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
|
|
27537
|
+
isReturnBillNoChange && (_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur({
|
|
27538
|
+
target: {
|
|
27539
|
+
value: val
|
|
27540
|
+
}
|
|
27541
|
+
}));
|
|
26158
27542
|
// 关闭浮窗
|
|
26159
27543
|
setPopoverVisible(false);
|
|
26160
27544
|
};
|