@kmkf-fe-packages/basic-components 2.10.9-beta.79 → 2.10.9-beta.80
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 +30 -18
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8542,6 +8542,17 @@ var processBasicMultSelect = function processBasicMultSelect(getValue) {
|
|
|
8542
8542
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
|
|
8543
8543
|
};
|
|
8544
8544
|
};
|
|
8545
|
+
var processJyAbnormalFlag = function processJyAbnormalFlag(getValue) {
|
|
8546
|
+
return function (nex, config) {
|
|
8547
|
+
var v = getValue("".concat(nex.uniqueKey, "_jyAbnormalFlag"));
|
|
8548
|
+
var values = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8549
|
+
var _config$basicMultSele2;
|
|
8550
|
+
if (config === null || config === void 0 ? void 0 : (_config$basicMultSele2 = config.basicMultSelect) === null || _config$basicMultSele2 === void 0 ? void 0 : _config$basicMultSele2.includes(next.value)) prv.push(next.value);
|
|
8551
|
+
return prv;
|
|
8552
|
+
}, []);
|
|
8553
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || values);
|
|
8554
|
+
};
|
|
8555
|
+
};
|
|
8545
8556
|
var processMultSelect = function processMultSelect(getValue) {
|
|
8546
8557
|
return function (nex, config) {
|
|
8547
8558
|
var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
|
|
@@ -8579,20 +8590,20 @@ var processSubForm = function processSubForm(getValue) {
|
|
|
8579
8590
|
};
|
|
8580
8591
|
var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
|
|
8581
8592
|
return function (nex, config) {
|
|
8582
|
-
var
|
|
8583
|
-
return
|
|
8593
|
+
var _ref24;
|
|
8594
|
+
return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
|
|
8584
8595
|
company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
|
|
8585
8596
|
order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
|
|
8586
|
-
}), _defineProperty(
|
|
8597
|
+
}), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref24;
|
|
8587
8598
|
};
|
|
8588
8599
|
};
|
|
8589
8600
|
var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
|
|
8590
8601
|
return function (nex, config) {
|
|
8591
|
-
var
|
|
8592
|
-
return
|
|
8602
|
+
var _ref25;
|
|
8603
|
+
return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
|
|
8593
8604
|
company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
|
|
8594
8605
|
order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
|
|
8595
|
-
}), _defineProperty(
|
|
8606
|
+
}), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref25;
|
|
8596
8607
|
};
|
|
8597
8608
|
};
|
|
8598
8609
|
var processRemarkInput = function processRemarkInput(getValue) {
|
|
@@ -8607,25 +8618,25 @@ var processRemarkInput = function processRemarkInput(getValue) {
|
|
|
8607
8618
|
};
|
|
8608
8619
|
var processStatus = function processStatus(getValue) {
|
|
8609
8620
|
return function (nex, config) {
|
|
8610
|
-
var
|
|
8621
|
+
var _ref27;
|
|
8611
8622
|
var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
|
|
8612
|
-
return
|
|
8623
|
+
return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
|
|
8613
8624
|
status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
|
|
8614
8625
|
customerService: jsonParseSecurity(customerService, customerService)
|
|
8615
|
-
}), _defineProperty(
|
|
8626
|
+
}), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref27;
|
|
8616
8627
|
};
|
|
8617
8628
|
};
|
|
8618
8629
|
var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
|
|
8619
8630
|
return function (nex, config) {
|
|
8620
|
-
var
|
|
8631
|
+
var _ref28;
|
|
8621
8632
|
var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
|
|
8622
8633
|
var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
|
|
8623
8634
|
var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
|
|
8624
|
-
return
|
|
8635
|
+
return _ref28 = {}, _defineProperty(_ref28, nex.uniqueKey, {
|
|
8625
8636
|
ordinaryMoney: ordinaryMoney,
|
|
8626
8637
|
ordinarySerial: ordinarySerial,
|
|
8627
8638
|
ordinaryTaitou: ordinaryTaitou
|
|
8628
|
-
}), _defineProperty(
|
|
8639
|
+
}), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref28;
|
|
8629
8640
|
};
|
|
8630
8641
|
};
|
|
8631
8642
|
var processLogisticsInterception = function processLogisticsInterception(getValue) {
|
|
@@ -8685,12 +8696,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8685
8696
|
};
|
|
8686
8697
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8687
8698
|
return function (nex, config) {
|
|
8688
|
-
var
|
|
8699
|
+
var _ref34;
|
|
8689
8700
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8690
8701
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8691
8702
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8692
8703
|
}, {});
|
|
8693
|
-
return
|
|
8704
|
+
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;
|
|
8694
8705
|
};
|
|
8695
8706
|
};
|
|
8696
8707
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9662,14 +9673,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9662
9673
|
};
|
|
9663
9674
|
var processLabel = function processLabel(getValue) {
|
|
9664
9675
|
return function (nex, config) {
|
|
9665
|
-
var
|
|
9666
|
-
return
|
|
9676
|
+
var _ref82;
|
|
9677
|
+
return _ref82 = {}, _defineProperty(_ref82, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref82, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref82;
|
|
9667
9678
|
};
|
|
9668
9679
|
};
|
|
9669
9680
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9670
9681
|
return function (nex, config) {
|
|
9671
|
-
var
|
|
9672
|
-
return
|
|
9682
|
+
var _ref83;
|
|
9683
|
+
return _ref83 = {}, _defineProperty(_ref83, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref83, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref83;
|
|
9673
9684
|
};
|
|
9674
9685
|
};
|
|
9675
9686
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9731,6 +9742,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9731
9742
|
PICTURE: processPicture,
|
|
9732
9743
|
PICTURE_PRO: processPicturePro,
|
|
9733
9744
|
BASIC_MULT_SELECT: processBasicMultSelect,
|
|
9745
|
+
JY_ABNORMAL_FLAG: processJyAbnormalFlag,
|
|
9734
9746
|
MULT_SELECT: processMultSelect,
|
|
9735
9747
|
BASIC_ADDRESS: processBasicAddress,
|
|
9736
9748
|
RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.80",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.80",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f7369dcbf465778730e5a468f4ccf52f73f93468"
|
|
70
70
|
}
|