@kmkf-fe-packages/services-components 1.0.6 → 1.0.7
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/esm/components/ActualPayment/BsDeposit.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsDeposit.js +50 -0
- package/dist/esm/components/ActualPayment/BsNetReceipts.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsNetReceipts.js +50 -0
- package/dist/esm/components/ActualPayment/BsPackageWeight.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsPackageWeight.js +50 -0
- package/dist/esm/components/ActualPayment/index.d.ts +16 -2
- package/dist/esm/components/ActualPayment/index.js +28 -35
- package/dist/esm/components/Address/index.d.ts +14 -0
- package/dist/esm/components/Address/index.js +15 -2
- package/dist/esm/components/Alipay/index.d.ts +30 -5
- package/dist/esm/components/Alipay/index.js +31 -6
- package/dist/esm/components/BS/BsDeposit/index.d.ts +60 -0
- package/dist/esm/components/BS/BsDeposit/index.js +165 -0
- package/dist/esm/components/BS/BsExchange/index.d.ts +39 -0
- package/dist/esm/components/BS/BsExchange/index.js +52 -1
- package/dist/esm/components/BS/BsGoods/index.d.ts +30 -0
- package/dist/esm/components/BS/BsGoods/index.js +31 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +33 -0
- package/dist/esm/components/BS/BsLogistics/index.js +62 -52
- package/dist/esm/components/BS/BsPosting/index.d.ts +15 -0
- package/dist/esm/components/BS/BsPosting/index.js +16 -1
- package/dist/esm/components/BS/BsReissue/index.d.ts +46 -7
- package/dist/esm/components/BS/BsReissue/index.js +70 -19
- package/dist/esm/components/BS/BsReturn/index.d.ts +39 -0
- package/dist/esm/components/BS/BsReturn/index.js +44 -1
- package/dist/esm/components/BS/BsSendGood/index.d.ts +36 -0
- package/dist/esm/components/BS/BsSendGood/index.js +68 -0
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +18 -29
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -138
- package/dist/esm/components/BusinessOrderNo/index.d.ts +26 -0
- package/dist/esm/components/BusinessOrderNo/index.js +53 -0
- package/dist/esm/components/BuyerMessageNotice/index.d.ts +37 -0
- package/dist/esm/components/BuyerMessageNotice/index.js +66 -0
- package/dist/esm/components/BuyerNick/index.d.ts +20 -0
- package/dist/esm/components/BuyerNick/index.js +21 -2
- package/dist/esm/components/Calculation/index.d.ts +18 -0
- package/dist/esm/components/Calculation/index.js +21 -3
- package/dist/esm/components/Cascader/index.d.ts +20 -5
- package/dist/esm/components/Cascader/index.js +35 -21
- package/dist/esm/components/Checkbox/index.d.ts +26 -4
- package/dist/esm/components/Checkbox/index.js +62 -19
- package/dist/esm/components/CommonDataTime/CompletedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/CompletedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/CreatedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/CreatedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/UpdateDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/UpdateDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
- package/dist/esm/components/CommonDataTime/index.js +1 -0
- package/dist/esm/components/CommonInput/index.d.ts +5 -0
- package/dist/esm/components/CommonInput/index.js +32 -18
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.d.ts +30 -0
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.js +69 -0
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.d.ts +30 -0
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.js +69 -0
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.d.ts +34 -0
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.js +83 -0
- package/dist/esm/components/CommonMultiStatus/index.d.ts +19 -20
- package/dist/esm/components/CommonMultiStatus/index.js +99 -109
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.d.ts +21 -0
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.js +48 -0
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.d.ts +22 -0
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.js +49 -0
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.d.ts +32 -0
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.js +60 -0
- package/dist/esm/components/CommonSystemOrder/TradeItemList.d.ts +23 -0
- package/dist/esm/components/CommonSystemOrder/TradeItemList.js +50 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +11 -4
- package/dist/esm/components/CommonSystemOrder/index.js +36 -66
- package/dist/esm/components/CompletedUser/index.d.ts +6 -4
- package/dist/esm/components/CompletedUser/index.js +9 -7
- package/dist/esm/components/DataTime/index.d.ts +20 -4
- package/dist/esm/components/DataTime/index.js +32 -16
- package/dist/esm/components/EItemEnCode/index.d.ts +36 -0
- package/dist/esm/components/EItemEnCode/index.js +38 -2
- package/dist/esm/components/EItemId/index.d.ts +21 -0
- package/dist/esm/components/EItemId/index.js +22 -1
- package/dist/esm/components/EItemSelect/index.d.ts +22 -1
- package/dist/esm/components/EItemSelect/index.js +23 -2
- package/dist/esm/components/File/index.d.ts +15 -0
- package/dist/esm/components/File/index.js +16 -1
- package/dist/esm/components/FlowCreator/index.d.ts +2 -0
- package/dist/esm/components/FlowCreator/index.js +2 -0
- package/dist/esm/components/FlowMarkSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowMarkSelect/index.js +2 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowStatusSelect/index.js +3 -2
- package/dist/esm/components/FlowTag/index.d.ts +2 -0
- package/dist/esm/components/FlowTag/index.js +2 -0
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/FlowWorkOrderId/index.js +3 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +6 -4
- package/dist/esm/components/FlowWorkOrderStatus/index.js +31 -29
- package/dist/esm/components/Grade/index.d.ts +25 -3
- package/dist/esm/components/Grade/index.js +29 -7
- package/dist/esm/components/Handler/index.d.ts +6 -4
- package/dist/esm/components/Handler/index.js +9 -7
- package/dist/esm/components/HandlerDeadLine/index.d.ts +2 -0
- package/dist/esm/components/HandlerDeadLine/index.js +3 -1
- package/dist/esm/components/Input/index.d.ts +53 -0
- package/dist/esm/components/Input/index.js +55 -1
- package/dist/esm/components/JST/JstItemSelect/index.d.ts +26 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +27 -1
- package/dist/esm/components/JST/JstLogistics/index.d.ts +5 -30
- package/dist/esm/components/JST/JstLogistics/index.js +49 -53
- package/dist/esm/components/JST/JstSendGood/index.d.ts +29 -46
- package/dist/esm/components/JST/JstSendGood/index.js +52 -230
- package/dist/esm/components/JST/JstSupply/index.d.ts +27 -0
- package/dist/esm/components/JST/JstSupply/index.js +34 -1
- package/dist/esm/components/JST/ReissueLogistics/index.d.ts +76 -0
- package/dist/esm/components/JST/ReissueLogistics/index.js +147 -0
- package/dist/esm/components/Label/index.d.ts +25 -0
- package/dist/esm/components/Label/index.js +26 -0
- package/dist/esm/components/Logistics/index.d.ts +36 -0
- package/dist/esm/components/Logistics/index.js +40 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +15 -0
- package/dist/esm/components/LogisticsInterception/index.js +16 -1
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +44 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +46 -15
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +56 -3
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +62 -9
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +48 -11
- package/dist/esm/components/LogisticsTrajectory/index.js +45 -8
- package/dist/esm/components/MsgStatus/index.d.ts +31 -4
- package/dist/esm/components/MsgStatus/index.js +72 -36
- package/dist/esm/components/MultSelect/index.d.ts +16 -0
- package/dist/esm/components/MultSelect/index.js +17 -1
- package/dist/esm/components/NewPaymentStatus/index.d.ts +41 -0
- package/dist/esm/components/NewPaymentStatus/index.js +105 -0
- package/dist/esm/components/NodeDeadLine/index.d.ts +2 -0
- package/dist/esm/components/NodeDeadLine/index.js +3 -1
- package/dist/esm/components/NodeInput/index.d.ts +6 -4
- package/dist/esm/components/NodeInput/index.js +9 -7
- package/dist/esm/components/NodeStayDuration/index.d.ts +2 -0
- package/dist/esm/components/NodeStayDuration/index.js +3 -1
- package/dist/esm/components/Ordinary/index.d.ts +27 -6
- package/dist/esm/components/Ordinary/index.js +39 -8
- package/dist/esm/components/OutFlowWorkOrderId/index.d.ts +34 -0
- package/dist/esm/components/OutFlowWorkOrderId/index.js +101 -0
- package/dist/esm/components/Payment/index.d.ts +25 -0
- package/dist/esm/components/Payment/index.js +26 -1
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +20 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +22 -2
- package/dist/esm/components/Picture/index.d.ts +18 -3
- package/dist/esm/components/Picture/index.js +31 -16
- package/dist/esm/components/PlatForm/index.d.ts +2 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/PostIng/index.d.ts +32 -0
- package/dist/esm/components/PostIng/index.js +39 -1
- package/dist/esm/components/PrevSubmitter/index.d.ts +2 -0
- package/dist/esm/components/PrevSubmitter/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +26 -0
- package/dist/esm/components/Radio/index.js +27 -1
- package/dist/esm/components/Rate/index.d.ts +22 -3
- package/dist/esm/components/Rate/index.js +49 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +15 -0
- package/dist/esm/components/ReceiverAddress/index.js +16 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +23 -3
- package/dist/esm/components/ReceiverMobile/index.js +29 -9
- package/dist/esm/components/ReceiverName/index.d.ts +18 -3
- package/dist/esm/components/ReceiverName/index.js +23 -8
- package/dist/esm/components/Remark/index.d.ts +49 -0
- package/dist/esm/components/Remark/index.js +59 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +37 -6
- package/dist/esm/components/ReturnLogistics/index.js +50 -16
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +32 -30
- package/dist/esm/components/SendGood/index.d.ts +54 -0
- package/dist/esm/components/SendGood/index.js +215 -0
- package/dist/esm/components/ShopInput/index.d.ts +7 -5
- package/dist/esm/components/ShopInput/index.js +10 -8
- package/dist/esm/components/ShopName/index.d.ts +15 -0
- package/dist/esm/components/ShopName/index.js +16 -1
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.js +68 -0
- package/dist/esm/components/StatusSelect/CreateStatus.d.ts +7 -0
- package/dist/esm/components/StatusSelect/CreateStatus.js +41 -0
- package/dist/esm/components/StatusSelect/InvoiceStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/InvoiceStatus.js +65 -0
- package/dist/esm/components/StatusSelect/InvoicingStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/InvoicingStatus.js +65 -0
- package/dist/esm/components/StatusSelect/ReissueStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/ReissueStatus.js +65 -0
- package/dist/esm/components/StatusSelect/index.d.ts +15 -1
- package/dist/esm/components/StatusSelect/index.js +30 -93
- package/dist/esm/components/Submitter/index.d.ts +6 -4
- package/dist/esm/components/Submitter/index.js +9 -7
- package/dist/esm/components/SystemOrder/index.d.ts +39 -0
- package/dist/esm/components/SystemOrder/index.js +162 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +18 -3
- package/dist/esm/components/SystemOrderNo/index.js +24 -9
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +3 -1
- package/dist/esm/components/TextArea/index.d.ts +15 -0
- package/dist/esm/components/TextArea/index.js +16 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +29 -3
- package/dist/esm/components/ThirdItemSelect/index.js +37 -11
- package/dist/esm/components/TradeDateTime/BsSendTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsSendTime.js +46 -0
- package/dist/esm/components/TradeDateTime/BsSigningTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsSigningTime.js +46 -0
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -4
- package/dist/esm/components/TradeDateTime/index.js +14 -39
- package/dist/esm/components/TradeId/index.d.ts +25 -5
- package/dist/esm/components/TradeId/index.js +29 -9
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +30 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +37 -1
- package/dist/esm/components/WDT/WdtLogistics/index.d.ts +93 -0
- package/dist/esm/components/WDT/WdtLogistics/index.js +227 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +39 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +44 -1
- package/dist/esm/components/WDT/WdtSendGood/index.d.ts +41 -0
- package/dist/esm/components/WDT/WdtSendGood/index.js +73 -0
- package/dist/esm/components/WDT/WdtSystemOrder/index.d.ts +21 -0
- package/dist/esm/components/WDT/WdtSystemOrder/index.js +48 -0
- package/dist/esm/components/WLN/WlnGoods/index.d.ts +30 -0
- package/dist/esm/components/WLN/WlnGoods/index.js +31 -1
- package/dist/esm/components/WLN/WlnLogistics/index.d.ts +88 -0
- package/dist/esm/components/WLN/WlnLogistics/index.js +222 -0
- package/dist/esm/components/WLN/WlnSendGood/index.d.ts +36 -0
- package/dist/esm/components/WLN/WlnSendGood/index.js +68 -0
- package/dist/esm/components/WLN/WlnSystemOrder/index.d.ts +21 -0
- package/dist/esm/components/WLN/WlnSystemOrder/index.js +48 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +3 -1
- package/dist/esm/constant.d.ts +2 -0
- package/dist/esm/constant.js +3 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +46 -20
- package/dist/esm/index.d.ts +39 -6
- package/dist/esm/index.js +39 -6
- package/package.json +6 -5
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PickOption } from "../../type";
|
|
2
|
+
import ActualPayment from "./index";
|
|
3
|
+
declare class BsDeposit extends ActualPayment {
|
|
4
|
+
suffixKey: string;
|
|
5
|
+
static group: string;
|
|
6
|
+
static configSchema: {
|
|
7
|
+
componentConfig: {
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
name: string;
|
|
11
|
+
uniqueKey: string;
|
|
12
|
+
schema: {
|
|
13
|
+
required: {
|
|
14
|
+
title: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
static type: string;
|
|
20
|
+
rules: any[];
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
}
|
|
23
|
+
export default BsDeposit;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import ActualPayment from "./index";
|
|
16
|
+
var BsDeposit = /*#__PURE__*/function (_ActualPayment) {
|
|
17
|
+
_inherits(BsDeposit, _ActualPayment);
|
|
18
|
+
var _super = _createSuper(BsDeposit);
|
|
19
|
+
function BsDeposit(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, BsDeposit);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "suffixKey", void 0);
|
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "rules", void 0);
|
|
25
|
+
_this.suffixKey = "bsDeposit";
|
|
26
|
+
_this.type = "BS_DEPOSIT";
|
|
27
|
+
_this.rules = [{
|
|
28
|
+
pattern: /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/,
|
|
29
|
+
message: "请输入数字"
|
|
30
|
+
}];
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return _createClass(BsDeposit);
|
|
34
|
+
}(ActualPayment);
|
|
35
|
+
_defineProperty(BsDeposit, "group", "THIRD_COMPONENT");
|
|
36
|
+
_defineProperty(BsDeposit, "configSchema", {
|
|
37
|
+
componentConfig: {
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
name: "bs预售定金",
|
|
41
|
+
uniqueKey: "eeqc89W67M",
|
|
42
|
+
schema: {
|
|
43
|
+
required: {
|
|
44
|
+
title: "必填",
|
|
45
|
+
type: "boolean"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(BsDeposit, "type", "BS_DEPOSIT");
|
|
50
|
+
export default BsDeposit;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PickOption } from "../../type";
|
|
2
|
+
import ActualPayment from "./index";
|
|
3
|
+
declare class BsNetReceipts extends ActualPayment {
|
|
4
|
+
suffixKey: string;
|
|
5
|
+
static group: string;
|
|
6
|
+
static configSchema: {
|
|
7
|
+
componentConfig: {
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
name: string;
|
|
11
|
+
uniqueKey: string;
|
|
12
|
+
schema: {
|
|
13
|
+
required: {
|
|
14
|
+
title: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
rules: any[];
|
|
20
|
+
static type: string;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
}
|
|
23
|
+
export default BsNetReceipts;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import ActualPayment from "./index";
|
|
16
|
+
var BsNetReceipts = /*#__PURE__*/function (_ActualPayment) {
|
|
17
|
+
_inherits(BsNetReceipts, _ActualPayment);
|
|
18
|
+
var _super = _createSuper(BsNetReceipts);
|
|
19
|
+
function BsNetReceipts(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, BsNetReceipts);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "suffixKey", void 0);
|
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "rules", void 0);
|
|
25
|
+
_this.suffixKey = "bsNetReceipts";
|
|
26
|
+
_this.type = "BS_NET_RECEIPTS";
|
|
27
|
+
_this.rules = [{
|
|
28
|
+
pattern: /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/,
|
|
29
|
+
message: "请输入数字"
|
|
30
|
+
}];
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return _createClass(BsNetReceipts);
|
|
34
|
+
}(ActualPayment);
|
|
35
|
+
_defineProperty(BsNetReceipts, "group", "THIRD_COMPONENT");
|
|
36
|
+
_defineProperty(BsNetReceipts, "configSchema", {
|
|
37
|
+
componentConfig: {
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
name: "bs实收金额",
|
|
41
|
+
uniqueKey: "VyYhWTEOzt",
|
|
42
|
+
schema: {
|
|
43
|
+
required: {
|
|
44
|
+
title: "必填",
|
|
45
|
+
type: "boolean"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(BsNetReceipts, "type", "BS_NET_RECEIPTS");
|
|
50
|
+
export default BsNetReceipts;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PickOption } from '../../type';
|
|
2
|
+
import ActualPayment from './index';
|
|
3
|
+
declare class BsNetReceipts extends ActualPayment {
|
|
4
|
+
suffixKey: string;
|
|
5
|
+
static group: string;
|
|
6
|
+
static configSchema: {
|
|
7
|
+
componentConfig: {
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
name: string;
|
|
11
|
+
uniqueKey: string;
|
|
12
|
+
schema: {
|
|
13
|
+
required: {
|
|
14
|
+
title: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
rules: any[];
|
|
20
|
+
static type: string;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
}
|
|
23
|
+
export default BsNetReceipts;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import ActualPayment from "./index";
|
|
16
|
+
var BsNetReceipts = /*#__PURE__*/function (_ActualPayment) {
|
|
17
|
+
_inherits(BsNetReceipts, _ActualPayment);
|
|
18
|
+
var _super = _createSuper(BsNetReceipts);
|
|
19
|
+
function BsNetReceipts(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, BsNetReceipts);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "suffixKey", void 0);
|
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "rules", void 0);
|
|
25
|
+
_this.suffixKey = 'bsPackageWeight';
|
|
26
|
+
_this.type = 'BS_PACKAGE_WEIGHT';
|
|
27
|
+
_this.rules = [{
|
|
28
|
+
pattern: /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/,
|
|
29
|
+
message: '请输入数字'
|
|
30
|
+
}];
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return _createClass(BsNetReceipts);
|
|
34
|
+
}(ActualPayment);
|
|
35
|
+
_defineProperty(BsNetReceipts, "group", 'THIRD_COMPONENT');
|
|
36
|
+
_defineProperty(BsNetReceipts, "configSchema", {
|
|
37
|
+
componentConfig: {
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
name: 'bs包裹重量',
|
|
41
|
+
uniqueKey: '6ULSJGyyHN',
|
|
42
|
+
schema: {
|
|
43
|
+
required: {
|
|
44
|
+
title: '必填',
|
|
45
|
+
type: 'boolean'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(BsNetReceipts, "type", 'BS_PACKAGE_WEIGHT');
|
|
50
|
+
export default BsNetReceipts;
|
|
@@ -12,9 +12,23 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
componentConfig: ComponentInterface['componentConfig'];
|
|
14
14
|
dataType: ComponentInterface['dataType'];
|
|
15
|
-
|
|
15
|
+
suffixKey: string;
|
|
16
|
+
static group: string;
|
|
17
|
+
static configSchema: {
|
|
18
|
+
componentConfig: {
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
name: string;
|
|
22
|
+
uniqueKey: string;
|
|
23
|
+
schema: {
|
|
24
|
+
required: {
|
|
25
|
+
title: string;
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
static type: string;
|
|
16
31
|
constructor(options: PickOption);
|
|
17
|
-
getKeyByComponentType: (type: string) => any;
|
|
18
32
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
33
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
34
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -15,12 +15,6 @@ import GetFormItem from "../GetFormItem";
|
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
|
-
var typeMap = {
|
|
19
|
-
ACTUAL_PAYMENT: 'actualPayment',
|
|
20
|
-
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
21
|
-
BS_DEPOSIT: 'bsDeposit',
|
|
22
|
-
BS_PACKAGE_WEIGHT: 'bsPackageWeight'
|
|
23
|
-
};
|
|
24
18
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
25
19
|
var _this = this;
|
|
26
20
|
_classCallCheck(this, ActualPayment);
|
|
@@ -35,10 +29,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
35
29
|
_defineProperty(this, "children", void 0);
|
|
36
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
37
31
|
_defineProperty(this, "dataType", void 0);
|
|
38
|
-
_defineProperty(this, "
|
|
39
|
-
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
40
|
-
return typeMap[type] || '';
|
|
41
|
-
});
|
|
32
|
+
_defineProperty(this, "suffixKey", void 0);
|
|
42
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
43
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
44
35
|
id: _this.id,
|
|
@@ -48,22 +39,18 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
48
39
|
});
|
|
49
40
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
41
|
var _record;
|
|
51
|
-
|
|
52
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record : '--');
|
|
42
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : '--');
|
|
53
43
|
});
|
|
54
44
|
_defineProperty(this, "renderLog", function (r) {
|
|
55
|
-
|
|
56
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
|
|
57
46
|
return _this.renderPc(undefined, r);
|
|
58
47
|
});
|
|
59
48
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
-
|
|
61
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
|
|
49
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
62
50
|
});
|
|
63
51
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
64
52
|
var _record2;
|
|
65
|
-
|
|
66
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
53
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
67
54
|
});
|
|
68
55
|
_defineProperty(this, "editRender", function (p) {
|
|
69
56
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -80,11 +67,10 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
80
67
|
});
|
|
81
68
|
});
|
|
82
69
|
_defineProperty(this, "filterConfig", function (item) {
|
|
83
|
-
var key = _this.getKeyByComponentType(item.type);
|
|
84
70
|
return {
|
|
85
71
|
searchDefaultConditions: SYMBOL.between,
|
|
86
72
|
type: item.type,
|
|
87
|
-
id: "".concat(item.id, "_").concat(
|
|
73
|
+
id: "".concat(item.id, "_").concat(_this.suffixKey),
|
|
88
74
|
// 过滤组件id
|
|
89
75
|
name: item.name,
|
|
90
76
|
// 过滤组件名称
|
|
@@ -134,7 +120,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
134
120
|
}],
|
|
135
121
|
props: {
|
|
136
122
|
placeholder: ["\u59CB-".concat(item.name), "\u7EC8-".concat(item.name)],
|
|
137
|
-
prefix:
|
|
123
|
+
prefix: _this.suffixKey === 'bsPackageWeight' ? '' : '¥'
|
|
138
124
|
},
|
|
139
125
|
formatFilterValue: function formatFilterValue(val) {
|
|
140
126
|
if (val !== null && val !== void 0 && val.some(function (v) {
|
|
@@ -146,33 +132,40 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
146
132
|
},
|
|
147
133
|
filterFn: function filterFn(value) {
|
|
148
134
|
return function (i) {
|
|
149
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
135
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey)).includes(value);
|
|
150
136
|
};
|
|
151
137
|
}
|
|
152
138
|
};
|
|
153
139
|
});
|
|
154
140
|
this.id = options.id;
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
141
|
+
this.suffixKey = 'actualPayment';
|
|
142
|
+
this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
143
|
+
this.formField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
157
144
|
this.name = options.name;
|
|
158
|
-
this.type =
|
|
145
|
+
this.type = 'ACTUAL_PAYMENT';
|
|
159
146
|
this.dataType = 'number';
|
|
160
147
|
this.isCombinationComponent = false;
|
|
161
148
|
this.canSort = true;
|
|
162
149
|
this.children = [];
|
|
163
150
|
this.componentConfig = options.componentConfig;
|
|
164
|
-
this.rules =
|
|
151
|
+
this.rules = [{
|
|
165
152
|
pattern: /^\d+(\.\d{1,2})?$/,
|
|
166
153
|
message: '字段为正数或最多两位小数'
|
|
167
|
-
}] : [{
|
|
168
|
-
pattern: /^(([0-9]*(\.[0-9]{1,})$)|([0-9]+$))/,
|
|
169
|
-
message: '请输入数字'
|
|
170
154
|
}];
|
|
171
|
-
this.dataMap = {
|
|
172
|
-
ACTUAL_PAYMENT: 'actualPayment',
|
|
173
|
-
BS_NET_RECEIPTS: 'bsNetReceipts',
|
|
174
|
-
BS_DEPOSIT: 'bsDeposit',
|
|
175
|
-
BS_PACKAGE_WEIGHT: 'bsPackageWeight'
|
|
176
|
-
};
|
|
177
155
|
});
|
|
156
|
+
_defineProperty(ActualPayment, "group", 'E_COMPONENT');
|
|
157
|
+
_defineProperty(ActualPayment, "configSchema", {
|
|
158
|
+
componentConfig: {
|
|
159
|
+
required: false
|
|
160
|
+
},
|
|
161
|
+
name: '实付金额',
|
|
162
|
+
uniqueKey: 'SveItZBEyd',
|
|
163
|
+
schema: {
|
|
164
|
+
required: {
|
|
165
|
+
title: '必填',
|
|
166
|
+
type: 'boolean'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
_defineProperty(ActualPayment, "type", 'ACTUAL_PAYMENT');
|
|
178
171
|
export default ActualPayment;
|
|
@@ -15,6 +15,20 @@ declare class Address implements ComponentInterface {
|
|
|
15
15
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
16
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
17
17
|
dataType: ComponentInterface["dataType"];
|
|
18
|
+
static group: string;
|
|
19
|
+
static configSchema: {
|
|
20
|
+
componentConfig: {
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
name: string;
|
|
24
|
+
schema: {
|
|
25
|
+
required: {
|
|
26
|
+
title: string;
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
static type: string;
|
|
18
32
|
constructor(options: PickOption);
|
|
19
33
|
/**
|
|
20
34
|
* 通过值计算展示内容
|
|
@@ -129,7 +129,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
129
129
|
this.id = options.id;
|
|
130
130
|
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
131
131
|
this.formField = "".concat(options.id, "_basicDistrict");
|
|
132
|
-
this.type =
|
|
132
|
+
this.type = "BASIC_ADDRESS";
|
|
133
133
|
this.dataType = "object";
|
|
134
134
|
this.isCombinationComponent = false;
|
|
135
135
|
this.canSort = true;
|
|
@@ -143,5 +143,18 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
143
143
|
* @param value
|
|
144
144
|
* @returns
|
|
145
145
|
*/);
|
|
146
|
-
|
|
146
|
+
_defineProperty(Address, "group", "BASIC_COMPONENT");
|
|
147
|
+
_defineProperty(Address, "configSchema", {
|
|
148
|
+
componentConfig: {
|
|
149
|
+
required: false
|
|
150
|
+
},
|
|
151
|
+
name: "省市区",
|
|
152
|
+
schema: {
|
|
153
|
+
required: {
|
|
154
|
+
title: "必填",
|
|
155
|
+
type: "boolean"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
_defineProperty(Address, "type", "BASIC_ADDRESS");
|
|
147
160
|
export default Address;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import EAlipayAccount from
|
|
4
|
-
import EAlipayName from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import EAlipayAccount from "../AlipayAccount";
|
|
4
|
+
import EAlipayName from "../AlipayName";
|
|
5
5
|
declare class Alipay implements ComponentInterface {
|
|
6
6
|
name: string;
|
|
7
7
|
id: string;
|
|
@@ -15,7 +15,32 @@ declare class Alipay implements ComponentInterface {
|
|
|
15
15
|
formField: string;
|
|
16
16
|
canSort: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
|
-
dataType: ComponentInterface[
|
|
18
|
+
dataType: ComponentInterface["dataType"];
|
|
19
|
+
static group: string;
|
|
20
|
+
static configSchema: {
|
|
21
|
+
componentConfig: {
|
|
22
|
+
isSingle: boolean;
|
|
23
|
+
required: boolean;
|
|
24
|
+
replaceWarn: boolean;
|
|
25
|
+
};
|
|
26
|
+
name: string;
|
|
27
|
+
uniqueKey: string;
|
|
28
|
+
schema: {
|
|
29
|
+
required: {
|
|
30
|
+
title: string;
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
replaceWarn: {
|
|
34
|
+
title: string;
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
isSingle: {
|
|
38
|
+
title: string;
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
static type: string;
|
|
19
44
|
constructor(options: PickOption);
|
|
20
45
|
renderClient: (record: Record) => React.JSX.Element;
|
|
21
46
|
renderPc: () => null;
|
|
@@ -8,8 +8,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import { AliPay } from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { AliPay } from "@kmkf-fe-packages/basic-components";
|
|
13
13
|
import EAlipayAccount from "../AlipayAccount";
|
|
14
14
|
import EAlipayName from "../AlipayName";
|
|
15
15
|
import GetFormItem from "../GetFormItem";
|
|
@@ -69,25 +69,50 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
69
69
|
this.id = options.id;
|
|
70
70
|
this.sortField = options.id;
|
|
71
71
|
this.formField = options.id;
|
|
72
|
-
this.type =
|
|
72
|
+
this.type = "ALI_PAY_INPUT";
|
|
73
73
|
this.isCombinationComponent = true;
|
|
74
74
|
this.canSort = false;
|
|
75
75
|
this.componentConfig = options.componentConfig;
|
|
76
76
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
77
77
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
78
|
-
this.dataType =
|
|
78
|
+
this.dataType = "object";
|
|
79
79
|
this.children = [this.alipayName, this.alipayAccount];
|
|
80
80
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
81
81
|
validator: function validator(_, value) {
|
|
82
82
|
var _this$componentConfig4;
|
|
83
83
|
if (!((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) && !(value !== null && value !== void 0 && value.name)) {
|
|
84
|
-
return Promise.reject(new Error(
|
|
84
|
+
return Promise.reject(new Error("请输入支付宝名称"));
|
|
85
85
|
}
|
|
86
86
|
if (!(value !== null && value !== void 0 && value.user)) {
|
|
87
|
-
return Promise.reject(new Error(
|
|
87
|
+
return Promise.reject(new Error("请输入支付宝账号"));
|
|
88
88
|
}
|
|
89
89
|
return Promise.resolve();
|
|
90
90
|
}
|
|
91
91
|
}] : [];
|
|
92
92
|
});
|
|
93
|
+
_defineProperty(Alipay, "group", "E_COMPONENT");
|
|
94
|
+
_defineProperty(Alipay, "configSchema", {
|
|
95
|
+
componentConfig: {
|
|
96
|
+
isSingle: false,
|
|
97
|
+
required: false,
|
|
98
|
+
replaceWarn: false
|
|
99
|
+
},
|
|
100
|
+
name: "支付宝",
|
|
101
|
+
uniqueKey: "KFlI7GzEyd",
|
|
102
|
+
schema: {
|
|
103
|
+
required: {
|
|
104
|
+
title: "必填",
|
|
105
|
+
type: "boolean"
|
|
106
|
+
},
|
|
107
|
+
replaceWarn: {
|
|
108
|
+
title: "重复校验",
|
|
109
|
+
type: "boolean"
|
|
110
|
+
},
|
|
111
|
+
isSingle: {
|
|
112
|
+
title: "仅需支付宝账号",
|
|
113
|
+
type: "boolean"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
_defineProperty(Alipay, "type", "ALI_PAY_INPUT");
|
|
93
118
|
export default Alipay;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
import Province from "../BsPosting/components/Province";
|
|
5
|
+
import City from "../BsPosting/components/City";
|
|
6
|
+
import District from "../BsPosting/components/District";
|
|
7
|
+
import Detail from "../BsPosting/components/Detail";
|
|
8
|
+
import ReceiverName from "../BsPosting/components/ReceiverName";
|
|
9
|
+
import ReceiverMobile from "../BsPosting/components/ReceiverMobile";
|
|
10
|
+
declare class BsDeposit implements ComponentInterface {
|
|
11
|
+
name: string;
|
|
12
|
+
id: string;
|
|
13
|
+
sortField: string;
|
|
14
|
+
type: string;
|
|
15
|
+
rules: any[];
|
|
16
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
17
|
+
isCombinationComponent: boolean;
|
|
18
|
+
formField: string;
|
|
19
|
+
canSort: boolean;
|
|
20
|
+
children: ComponentInterface[];
|
|
21
|
+
dataType: ComponentInterface["dataType"];
|
|
22
|
+
province: Province;
|
|
23
|
+
city: City;
|
|
24
|
+
district: District;
|
|
25
|
+
detail: Detail;
|
|
26
|
+
receiverName: ReceiverName;
|
|
27
|
+
receiverMobile: ReceiverMobile;
|
|
28
|
+
addressDateInstance: InstanceType<typeof AddressData>;
|
|
29
|
+
static group: string;
|
|
30
|
+
static configSchema: {
|
|
31
|
+
componentConfig: {
|
|
32
|
+
required: boolean;
|
|
33
|
+
};
|
|
34
|
+
name: string;
|
|
35
|
+
uniqueKey: string;
|
|
36
|
+
schema: {
|
|
37
|
+
required: {
|
|
38
|
+
title: string;
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
static type: string;
|
|
44
|
+
constructor(options: PickOption);
|
|
45
|
+
renderPc: () => null;
|
|
46
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
47
|
+
getComponentValue: (r: Record) => {
|
|
48
|
+
province: any;
|
|
49
|
+
city: any;
|
|
50
|
+
district: any;
|
|
51
|
+
detail: any;
|
|
52
|
+
name: any;
|
|
53
|
+
mobile: any;
|
|
54
|
+
};
|
|
55
|
+
renderExport: () => null;
|
|
56
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
57
|
+
editRender: (p: any) => React.JSX.Element;
|
|
58
|
+
filterConfig: () => never[];
|
|
59
|
+
}
|
|
60
|
+
export default BsDeposit;
|