@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,227 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
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); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
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
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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 "react";
|
|
12
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import some from "lodash/some";
|
|
14
|
+
import GetFormItem from "../../GetFormItem";
|
|
15
|
+
import { JstGoodImage } from "../../Common";
|
|
16
|
+
import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
17
|
+
import ItemView from "../../../commonComponents/ItemView";
|
|
18
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
|
+
import ExpressCompany from "../../BS/common/expressCompany";
|
|
20
|
+
import ExpressCode from "../../BS/common/expressCode";
|
|
21
|
+
var WdtLogistics = /*#__PURE__*/_createClass(function WdtLogistics(_options) {
|
|
22
|
+
var _this = this,
|
|
23
|
+
_this$componentConfig3,
|
|
24
|
+
_this$componentConfig5;
|
|
25
|
+
_classCallCheck(this, WdtLogistics);
|
|
26
|
+
_defineProperty(this, "name", void 0);
|
|
27
|
+
_defineProperty(this, "id", void 0);
|
|
28
|
+
_defineProperty(this, "sortField", void 0);
|
|
29
|
+
_defineProperty(this, "sortChildField", void 0);
|
|
30
|
+
_defineProperty(this, "type", void 0);
|
|
31
|
+
_defineProperty(this, "rules", void 0);
|
|
32
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
33
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
34
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
35
|
+
_defineProperty(this, "formField", void 0);
|
|
36
|
+
_defineProperty(this, "canSort", void 0);
|
|
37
|
+
_defineProperty(this, "children", void 0);
|
|
38
|
+
_defineProperty(this, "dataType", void 0);
|
|
39
|
+
_defineProperty(this, "expressCompany", void 0);
|
|
40
|
+
_defineProperty(this, "expressCode", void 0);
|
|
41
|
+
_defineProperty(this, "suffixKey", void 0);
|
|
42
|
+
_defineProperty(this, "suffixName", void 0);
|
|
43
|
+
_defineProperty(this, "suffixCompany", void 0);
|
|
44
|
+
_defineProperty(this, "suffixCode", void 0);
|
|
45
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
46
|
+
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
47
|
+
return !isNull(item);
|
|
48
|
+
}) : false;
|
|
49
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
50
|
+
id: _this.id,
|
|
51
|
+
label: _this.name,
|
|
52
|
+
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
53
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
54
|
+
type: 1,
|
|
55
|
+
platformType: "wdt"
|
|
56
|
+
})
|
|
57
|
+
}) : null;
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
60
|
+
if (!type) {
|
|
61
|
+
return [{
|
|
62
|
+
name: "物流公司",
|
|
63
|
+
key: "".concat(options.id, "_").concat(_this.suffixCompany),
|
|
64
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
65
|
+
dataType: "string"
|
|
66
|
+
}, {
|
|
67
|
+
name: "物流单号",
|
|
68
|
+
key: "".concat(options.id, "_").concat(_this.suffixCode),
|
|
69
|
+
dataType: "string"
|
|
70
|
+
}];
|
|
71
|
+
}
|
|
72
|
+
if (type === "logisticsCompany") {
|
|
73
|
+
return [{
|
|
74
|
+
name: "物流公司",
|
|
75
|
+
key: "".concat(options.id, "_").concat(_this.suffixCompany),
|
|
76
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
77
|
+
dataType: "string"
|
|
78
|
+
}];
|
|
79
|
+
}
|
|
80
|
+
if (type === "logisticsCode") {
|
|
81
|
+
return [{
|
|
82
|
+
name: "物流单号",
|
|
83
|
+
key: "".concat(options.id, "_").concat(_this.suffixCode),
|
|
84
|
+
dataType: "string"
|
|
85
|
+
}];
|
|
86
|
+
}
|
|
87
|
+
return [];
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
90
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
91
|
+
//兼容多个商品
|
|
92
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
93
|
+
onClick: function onClick(e) {
|
|
94
|
+
return e.stopPropagation();
|
|
95
|
+
}
|
|
96
|
+
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
97
|
+
list: list,
|
|
98
|
+
type: 1,
|
|
99
|
+
platformType: "wdt"
|
|
100
|
+
}));
|
|
101
|
+
});
|
|
102
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
103
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
104
|
+
if (isNull(list)) return null;
|
|
105
|
+
return _this.renderPc(undefined, r);
|
|
106
|
+
});
|
|
107
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
108
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
109
|
+
});
|
|
110
|
+
_defineProperty(this, "renderExport", function () {
|
|
111
|
+
return null;
|
|
112
|
+
});
|
|
113
|
+
_defineProperty(this, "editRender", function (p) {
|
|
114
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
115
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
116
|
+
title: _this.name,
|
|
117
|
+
name: _this.id,
|
|
118
|
+
rules: _this.rules,
|
|
119
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
120
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
121
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
122
|
+
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
123
|
+
type: 1,
|
|
124
|
+
platformType: "wdt",
|
|
125
|
+
options: _this.expressDateInstance.getExpressData(),
|
|
126
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
127
|
+
}))
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
131
|
+
return [_this.expressCompany.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
132
|
+
subKey: _this.suffixCompany
|
|
133
|
+
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
134
|
+
subKey: _this.suffixCode
|
|
135
|
+
}))];
|
|
136
|
+
});
|
|
137
|
+
this.name = _options.name;
|
|
138
|
+
this.id = _options.id;
|
|
139
|
+
this.suffixKey = "wdtLogisticsList";
|
|
140
|
+
this.suffixName = "旺店通";
|
|
141
|
+
this.suffixCompany = "wdtLogisticsCompany";
|
|
142
|
+
this.suffixCode = "wdtLogisticsCode";
|
|
143
|
+
this.sortField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
144
|
+
this.formField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
145
|
+
this.type = "WDT_LOGISTICS";
|
|
146
|
+
this.componentConfig = _options.componentConfig;
|
|
147
|
+
this.isCombinationComponent = true;
|
|
148
|
+
this.canSort = false;
|
|
149
|
+
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
|
|
150
|
+
name: "物流公司",
|
|
151
|
+
parentName: this.name,
|
|
152
|
+
id: "".concat(_options.id, "_").concat(this.suffixKey, "_").concat(this.suffixCompany),
|
|
153
|
+
width: 200,
|
|
154
|
+
platformType: "wdt"
|
|
155
|
+
}));
|
|
156
|
+
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
|
|
157
|
+
name: "物流单号",
|
|
158
|
+
parentName: this.name,
|
|
159
|
+
id: "".concat(_options.id, "_").concat(this.suffixKey, "_").concat(this.suffixCode),
|
|
160
|
+
width: 200
|
|
161
|
+
}));
|
|
162
|
+
this.children = [this.expressCompany, this.expressCode];
|
|
163
|
+
this.dataType = "object";
|
|
164
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
165
|
+
required: true,
|
|
166
|
+
validator: function validator(_, value) {
|
|
167
|
+
var _this$componentConfig4;
|
|
168
|
+
var showField = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField;
|
|
169
|
+
var hasNo = (value || []).some(function (item) {
|
|
170
|
+
if (showField === "logisticsCompany") {
|
|
171
|
+
return item.logisticsCompany;
|
|
172
|
+
} else if (showField === "logisticsCode") {
|
|
173
|
+
return item.logisticsCode;
|
|
174
|
+
} else {
|
|
175
|
+
return item.logisticsCompany && item.logisticsCode;
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
if (!hasNo) {
|
|
179
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u7269\u6D41\u4FE1\u606F"));
|
|
180
|
+
}
|
|
181
|
+
return Promise.resolve();
|
|
182
|
+
}
|
|
183
|
+
}] : [];
|
|
184
|
+
this.expressDateInstance = ExpressData.getInstance("wdt");
|
|
185
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) || "", _options);
|
|
186
|
+
});
|
|
187
|
+
_defineProperty(WdtLogistics, "group", "THIRD_COMPONENT");
|
|
188
|
+
_defineProperty(WdtLogistics, "configSchema", {
|
|
189
|
+
componentConfig: {
|
|
190
|
+
required: false,
|
|
191
|
+
showField: "",
|
|
192
|
+
notOrderBack: false
|
|
193
|
+
},
|
|
194
|
+
name: "旺店通物流信息",
|
|
195
|
+
uniqueKey: "c61QlHxYSs",
|
|
196
|
+
schema: {
|
|
197
|
+
required: {
|
|
198
|
+
title: "必填",
|
|
199
|
+
type: "boolean"
|
|
200
|
+
},
|
|
201
|
+
showField: {
|
|
202
|
+
type: "string",
|
|
203
|
+
widget: "select",
|
|
204
|
+
props: {
|
|
205
|
+
style: {
|
|
206
|
+
width: 200
|
|
207
|
+
},
|
|
208
|
+
options: [{
|
|
209
|
+
label: "全部",
|
|
210
|
+
value: ""
|
|
211
|
+
}, {
|
|
212
|
+
label: "物流公司",
|
|
213
|
+
value: "logisticsCompany"
|
|
214
|
+
}, {
|
|
215
|
+
label: "物流单号",
|
|
216
|
+
value: "logisticsCode"
|
|
217
|
+
}]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
notOrderBack: {
|
|
221
|
+
title: "不根据系统单号反填",
|
|
222
|
+
type: "boolean"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
_defineProperty(WdtLogistics, "type", "WDT_LOGISTICS");
|
|
227
|
+
export default WdtLogistics;
|
|
@@ -19,6 +19,45 @@ declare class WdtReissue implements ComponentInterface {
|
|
|
19
19
|
bsMemo: BsMemo;
|
|
20
20
|
systemOrderNo: SystemOrderNo;
|
|
21
21
|
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
22
|
+
static group: string;
|
|
23
|
+
static configSchema: {
|
|
24
|
+
componentConfig: {
|
|
25
|
+
required: boolean;
|
|
26
|
+
showHeader: string[];
|
|
27
|
+
reasonList: {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
children: never[];
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
name: string;
|
|
34
|
+
uniqueKey: string;
|
|
35
|
+
schema: {
|
|
36
|
+
required: {
|
|
37
|
+
title: string;
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
showHeader: {
|
|
41
|
+
type: string;
|
|
42
|
+
items: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
props: {
|
|
46
|
+
style: {
|
|
47
|
+
minWidth: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
enum: string[];
|
|
51
|
+
enumNames: string[];
|
|
52
|
+
widget: string;
|
|
53
|
+
};
|
|
54
|
+
reasonList: {
|
|
55
|
+
type: string;
|
|
56
|
+
widget: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
static type: string;
|
|
22
61
|
constructor(options: PickOption);
|
|
23
62
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
63
|
renderPc: () => null;
|
|
@@ -150,7 +150,7 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
150
150
|
this.id = options.id;
|
|
151
151
|
this.sortField = "".concat(options.id);
|
|
152
152
|
this.formField = "".concat(options.id);
|
|
153
|
-
this.type =
|
|
153
|
+
this.type = "WDT_REISSUE_GOODS";
|
|
154
154
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
155
155
|
this.isCombinationComponent = true;
|
|
156
156
|
this.canSort = false;
|
|
@@ -188,4 +188,47 @@ var WdtReissue = /*#__PURE__*/_createClass(function WdtReissue(options) {
|
|
|
188
188
|
}] : [];
|
|
189
189
|
this.dataType = "object";
|
|
190
190
|
});
|
|
191
|
+
_defineProperty(WdtReissue, "group", "THIRD_COMPONENT");
|
|
192
|
+
_defineProperty(WdtReissue, "configSchema", {
|
|
193
|
+
componentConfig: {
|
|
194
|
+
required: false,
|
|
195
|
+
showHeader: ["goodId", "goodNo", "goodName", "specId", "specNo", "specName", "orderPrice", "num", "sharePrice", "giftType"],
|
|
196
|
+
reasonList: [{
|
|
197
|
+
label: "原单补",
|
|
198
|
+
value: "1",
|
|
199
|
+
children: []
|
|
200
|
+
}, {
|
|
201
|
+
label: "非原单补",
|
|
202
|
+
value: "2",
|
|
203
|
+
children: []
|
|
204
|
+
}]
|
|
205
|
+
},
|
|
206
|
+
name: "旺店通补发商品信息",
|
|
207
|
+
uniqueKey: "HnKYWNvO4s",
|
|
208
|
+
schema: {
|
|
209
|
+
required: {
|
|
210
|
+
title: "必填",
|
|
211
|
+
type: "boolean"
|
|
212
|
+
},
|
|
213
|
+
showHeader: {
|
|
214
|
+
type: "array",
|
|
215
|
+
items: {
|
|
216
|
+
type: "string"
|
|
217
|
+
},
|
|
218
|
+
props: {
|
|
219
|
+
style: {
|
|
220
|
+
minWidth: 200
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
enum: ["goodId", "goodNo", "goodName", "specId", "specNo", "specName", "orderPrice", "num", "sharePrice", "giftType"],
|
|
224
|
+
enumNames: ["SPUID", "商品SPU编码", "商品名称", "SKUID", "商品SKU编码", "商品SKU名称", "实付总金额", "数量", "分摊价", "赠品方式"],
|
|
225
|
+
widget: "multiSelect"
|
|
226
|
+
},
|
|
227
|
+
reasonList: {
|
|
228
|
+
type: "array",
|
|
229
|
+
widget: "BsCascaderOptions"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
_defineProperty(WdtReissue, "type", "WDT_REISSUE_GOODS");
|
|
191
234
|
export default WdtReissue;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import SendGood from "../../SendGood";
|
|
2
|
+
import { PickOption } from "../../../type";
|
|
3
|
+
declare class WdtSendGood extends SendGood {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
showField: string;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
required: boolean;
|
|
10
|
+
notOrderBack: boolean;
|
|
11
|
+
};
|
|
12
|
+
name: string;
|
|
13
|
+
uniqueKey: string;
|
|
14
|
+
schema: {
|
|
15
|
+
required: {
|
|
16
|
+
title: string;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
showField: {
|
|
20
|
+
type: string;
|
|
21
|
+
widget: string;
|
|
22
|
+
props: {
|
|
23
|
+
style: {
|
|
24
|
+
width: number;
|
|
25
|
+
};
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
notOrderBack: {
|
|
33
|
+
title: string;
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
static type: string;
|
|
39
|
+
constructor(options: PickOption);
|
|
40
|
+
}
|
|
41
|
+
export default WdtSendGood;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 SendGood from "../../SendGood";
|
|
16
|
+
var WdtSendGood = /*#__PURE__*/function (_SendGood) {
|
|
17
|
+
_inherits(WdtSendGood, _SendGood);
|
|
18
|
+
var _super = _createSuper(WdtSendGood);
|
|
19
|
+
function WdtSendGood(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, WdtSendGood);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_this.type = "WDT_SEND_GOOD";
|
|
24
|
+
_this.suffixKey = "wdtSendGood";
|
|
25
|
+
_this.suffixName = "wdt";
|
|
26
|
+
_this.suffixSendId = "wdtSendId";
|
|
27
|
+
_this.suffixSendName = "wdtSendName";
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return _createClass(WdtSendGood);
|
|
31
|
+
}(SendGood);
|
|
32
|
+
_defineProperty(WdtSendGood, "group", "THIRD_COMPONENT");
|
|
33
|
+
_defineProperty(WdtSendGood, "configSchema", {
|
|
34
|
+
componentConfig: {
|
|
35
|
+
showField: "all",
|
|
36
|
+
maxLength: 20,
|
|
37
|
+
required: false,
|
|
38
|
+
notOrderBack: false
|
|
39
|
+
},
|
|
40
|
+
name: "旺店通发货仓",
|
|
41
|
+
uniqueKey: "H9Ia43v5Q4",
|
|
42
|
+
schema: {
|
|
43
|
+
required: {
|
|
44
|
+
title: "必填",
|
|
45
|
+
type: "boolean"
|
|
46
|
+
},
|
|
47
|
+
showField: {
|
|
48
|
+
type: "string",
|
|
49
|
+
widget: "select",
|
|
50
|
+
props: {
|
|
51
|
+
style: {
|
|
52
|
+
width: 200
|
|
53
|
+
},
|
|
54
|
+
options: [{
|
|
55
|
+
label: "全部",
|
|
56
|
+
value: "all"
|
|
57
|
+
}, {
|
|
58
|
+
label: "发货仓名称",
|
|
59
|
+
value: "sendName"
|
|
60
|
+
}, {
|
|
61
|
+
label: "发货仓编码",
|
|
62
|
+
value: "sendId"
|
|
63
|
+
}]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
notOrderBack: {
|
|
67
|
+
title: "不根据系统单号反填",
|
|
68
|
+
type: "boolean"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
_defineProperty(WdtSendGood, "type", "WDT_SEND_GOOD");
|
|
73
|
+
export default WdtSendGood;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PickOption } from "../../../type";
|
|
2
|
+
import SystemOrder from "../../SystemOrder";
|
|
3
|
+
declare class WdtSystemOrder extends SystemOrder {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
name: string;
|
|
10
|
+
uniqueKey: string;
|
|
11
|
+
schema: {
|
|
12
|
+
required: {
|
|
13
|
+
title: string;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
static type: string;
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
}
|
|
21
|
+
export default WdtSystemOrder;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 SystemOrder from "../../SystemOrder";
|
|
16
|
+
var WdtSystemOrder = /*#__PURE__*/function (_SystemOrder) {
|
|
17
|
+
_inherits(WdtSystemOrder, _SystemOrder);
|
|
18
|
+
var _super = _createSuper(WdtSystemOrder);
|
|
19
|
+
function WdtSystemOrder(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, WdtSystemOrder);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_this.suffixKey = "wdtSystemShowOrder";
|
|
24
|
+
_this.suffixName = "旺店通";
|
|
25
|
+
_this.suffixTypeName = "订单类型";
|
|
26
|
+
_this.suffixTagName = "订单标签";
|
|
27
|
+
_this.suffixSelectId = "wdtSystemSelectIds";
|
|
28
|
+
_this.type = "WDT_SYSTEM_ORDER";
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return _createClass(WdtSystemOrder);
|
|
32
|
+
}(SystemOrder);
|
|
33
|
+
_defineProperty(WdtSystemOrder, "group", "THIRD_COMPONENT");
|
|
34
|
+
_defineProperty(WdtSystemOrder, "configSchema", {
|
|
35
|
+
componentConfig: {
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
name: "旺店通系统订单号",
|
|
39
|
+
uniqueKey: "u0VDJWJO04",
|
|
40
|
+
schema: {
|
|
41
|
+
required: {
|
|
42
|
+
title: "必填",
|
|
43
|
+
type: "boolean"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(WdtSystemOrder, "type", "WDT_SYSTEM_ORDER");
|
|
48
|
+
export default WdtSystemOrder;
|
|
@@ -15,6 +15,36 @@ declare class WlnGoods implements ComponentInterface {
|
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface["dataType"];
|
|
17
17
|
wlnGoods: BsHeaderGood;
|
|
18
|
+
static group: string;
|
|
19
|
+
static configSchema: {
|
|
20
|
+
componentConfig: {
|
|
21
|
+
required: boolean;
|
|
22
|
+
showHeader: string[];
|
|
23
|
+
};
|
|
24
|
+
name: string;
|
|
25
|
+
uniqueKey: string;
|
|
26
|
+
schema: {
|
|
27
|
+
required: {
|
|
28
|
+
title: string;
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
showHeader: {
|
|
32
|
+
type: string;
|
|
33
|
+
items: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
props: {
|
|
37
|
+
style: {
|
|
38
|
+
minWidth: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
enum: string[];
|
|
42
|
+
enumNames: string[];
|
|
43
|
+
widget: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
static type: string;
|
|
18
48
|
constructor(options: PickOption);
|
|
19
49
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
50
|
renderPc: () => null;
|
|
@@ -94,7 +94,7 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
|
|
|
94
94
|
this.id = options.id;
|
|
95
95
|
this.sortField = "".concat(options.id, "_wlnGoods");
|
|
96
96
|
this.formField = "".concat(options.id, "_wlnGoods");
|
|
97
|
-
this.type =
|
|
97
|
+
this.type = "WLN_GOODS";
|
|
98
98
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
99
99
|
this.isCombinationComponent = true;
|
|
100
100
|
this.canSort = false;
|
|
@@ -116,4 +116,34 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
|
|
|
116
116
|
}] : [];
|
|
117
117
|
this.dataType = "object";
|
|
118
118
|
});
|
|
119
|
+
_defineProperty(WlnGoods, "group", "THIRD_COMPONENT");
|
|
120
|
+
_defineProperty(WlnGoods, "configSchema", {
|
|
121
|
+
componentConfig: {
|
|
122
|
+
required: false,
|
|
123
|
+
showHeader: ["skuName", "pic", "name", "code", "sku", "money", "number", "share", "type"]
|
|
124
|
+
},
|
|
125
|
+
name: "万里牛商品信息",
|
|
126
|
+
uniqueKey: "egVftQJyFj",
|
|
127
|
+
schema: {
|
|
128
|
+
required: {
|
|
129
|
+
title: "必填",
|
|
130
|
+
type: "boolean"
|
|
131
|
+
},
|
|
132
|
+
showHeader: {
|
|
133
|
+
type: "array",
|
|
134
|
+
items: {
|
|
135
|
+
type: "string"
|
|
136
|
+
},
|
|
137
|
+
props: {
|
|
138
|
+
style: {
|
|
139
|
+
minWidth: 200
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
enum: ["skuName", "pic", "name", "code", "sku", "money", "number", "share", "type"],
|
|
143
|
+
enumNames: ["sku名称", "图片", "名称", "编码", "sku编码", "实付金额", "数量", "分摊价", "赠品类型"],
|
|
144
|
+
widget: "multiSelect"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
_defineProperty(WlnGoods, "type", "WLN_GOODS");
|
|
119
149
|
export default WlnGoods;
|