@kmkf-fe-packages/services-components 1.0.7 → 1.0.8
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/README.md +1 -0
- package/dist/esm/components/ActualPayment/index.d.ts +2 -16
- package/dist/esm/components/ActualPayment/index.js +35 -28
- package/dist/esm/components/Address/index.d.ts +0 -14
- package/dist/esm/components/Address/index.js +2 -15
- package/dist/esm/components/Alipay/index.d.ts +5 -30
- package/dist/esm/components/Alipay/index.js +6 -31
- package/dist/esm/components/BS/BsExchange/index.d.ts +0 -39
- package/dist/esm/components/BS/BsExchange/index.js +1 -52
- package/dist/esm/components/BS/BsGoods/index.d.ts +0 -30
- package/dist/esm/components/BS/BsGoods/index.js +1 -31
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -33
- package/dist/esm/components/BS/BsLogistics/index.js +52 -62
- package/dist/esm/components/BS/BsPosting/index.d.ts +0 -15
- package/dist/esm/components/BS/BsPosting/index.js +1 -16
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -46
- package/dist/esm/components/BS/BsReissue/index.js +19 -70
- package/dist/esm/components/BS/BsReturn/index.d.ts +0 -39
- package/dist/esm/components/BS/BsReturn/index.js +1 -44
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +29 -18
- package/dist/esm/components/BS/BsSystemOrder/index.js +138 -37
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +0 -20
- package/dist/esm/components/BuyerNick/index.js +2 -21
- package/dist/esm/components/Calculation/index.d.ts +0 -18
- package/dist/esm/components/Calculation/index.js +3 -21
- package/dist/esm/components/Cascader/index.d.ts +5 -20
- package/dist/esm/components/Cascader/index.js +21 -35
- package/dist/esm/components/Checkbox/index.d.ts +4 -26
- package/dist/esm/components/Checkbox/index.js +19 -62
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +185 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +0 -1
- package/dist/esm/components/CommonDataTime/index.js +0 -1
- package/dist/esm/components/CommonHeaderGood/index.js +182 -0
- package/dist/esm/components/CommonInput/index.d.ts +0 -5
- package/dist/esm/components/CommonInput/index.js +18 -32
- package/dist/esm/components/CommonMultiStatus/index.d.ts +20 -19
- package/dist/esm/components/CommonMultiStatus/index.js +118 -102
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -11
- package/dist/esm/components/CommonSystemOrder/index.js +71 -39
- package/dist/esm/components/CompletedUser/index.d.ts +4 -6
- package/dist/esm/components/CompletedUser/index.js +7 -9
- package/dist/esm/components/DataTime/index.d.ts +4 -20
- package/dist/esm/components/DataTime/index.js +16 -32
- package/dist/esm/components/EItemEnCode/index.d.ts +0 -36
- package/dist/esm/components/EItemEnCode/index.js +2 -38
- package/dist/esm/components/EItemId/index.d.ts +0 -21
- package/dist/esm/components/EItemId/index.js +1 -22
- package/dist/esm/components/EItemSelect/index.d.ts +1 -22
- package/dist/esm/components/EItemSelect/index.js +2 -23
- package/dist/esm/components/File/index.d.ts +0 -15
- package/dist/esm/components/File/index.js +1 -16
- package/dist/esm/components/FlowCreator/index.d.ts +0 -2
- package/dist/esm/components/FlowCreator/index.js +0 -2
- package/dist/esm/components/FlowMarkSelect/index.d.ts +0 -2
- package/dist/esm/components/FlowMarkSelect/index.js +0 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -2
- package/dist/esm/components/FlowStatusSelect/index.js +2 -3
- package/dist/esm/components/FlowTag/index.d.ts +0 -2
- package/dist/esm/components/FlowTag/index.js +0 -2
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +0 -2
- package/dist/esm/components/FlowWorkOrderId/index.js +1 -3
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +4 -6
- package/dist/esm/components/FlowWorkOrderStatus/index.js +29 -31
- package/dist/esm/components/Grade/index.d.ts +3 -25
- package/dist/esm/components/Grade/index.js +7 -29
- package/dist/esm/components/Handler/index.d.ts +4 -6
- package/dist/esm/components/Handler/index.js +7 -9
- package/dist/esm/components/HandlerDeadLine/index.d.ts +0 -2
- package/dist/esm/components/HandlerDeadLine/index.js +1 -3
- package/dist/esm/components/Input/index.d.ts +0 -53
- package/dist/esm/components/Input/index.js +1 -55
- package/dist/esm/components/JST/JstItemSelect/index.d.ts +0 -26
- package/dist/esm/components/JST/JstItemSelect/index.js +1 -27
- package/dist/esm/components/JST/JstLogistics/index.d.ts +30 -5
- package/dist/esm/components/JST/JstLogistics/index.js +53 -49
- package/dist/esm/components/JST/JstSendGood/index.d.ts +46 -29
- package/dist/esm/components/JST/JstSendGood/index.js +230 -52
- package/dist/esm/components/JST/JstSupply/index.d.ts +0 -27
- package/dist/esm/components/JST/JstSupply/index.js +1 -34
- package/dist/esm/components/Label/index.d.ts +0 -25
- package/dist/esm/components/Label/index.js +0 -26
- package/dist/esm/components/Logistics/index.d.ts +0 -36
- package/dist/esm/components/Logistics/index.js +1 -40
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -15
- package/dist/esm/components/LogisticsInterception/index.js +1 -16
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -44
- package/dist/esm/components/LogisticsMoreInterception/index.js +15 -46
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +3 -56
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +9 -62
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +11 -48
- package/dist/esm/components/LogisticsTrajectory/index.js +8 -45
- package/dist/esm/components/MsgStatus/index.d.ts +4 -31
- package/dist/esm/components/MsgStatus/index.js +36 -72
- package/dist/esm/components/MultSelect/index.d.ts +0 -16
- package/dist/esm/components/MultSelect/index.js +1 -17
- package/dist/esm/components/NodeDeadLine/index.d.ts +0 -2
- package/dist/esm/components/NodeDeadLine/index.js +1 -3
- package/dist/esm/components/NodeInput/index.d.ts +4 -6
- package/dist/esm/components/NodeInput/index.js +7 -9
- package/dist/esm/components/NodeStayDuration/index.d.ts +0 -2
- package/dist/esm/components/NodeStayDuration/index.js +1 -3
- package/dist/esm/components/Ordinary/index.d.ts +6 -27
- package/dist/esm/components/Ordinary/index.js +8 -39
- package/dist/esm/components/Payment/index.d.ts +0 -25
- package/dist/esm/components/Payment/index.js +1 -26
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -20
- package/dist/esm/components/PaymentVoucherCode/index.js +2 -22
- package/dist/esm/components/Picture/index.d.ts +3 -18
- package/dist/esm/components/Picture/index.js +16 -31
- package/dist/esm/components/PlatForm/index.d.ts +0 -2
- package/dist/esm/components/PlatForm/index.js +0 -2
- package/dist/esm/components/PostIng/index.d.ts +0 -32
- package/dist/esm/components/PostIng/index.js +1 -39
- package/dist/esm/components/PrevSubmitter/index.d.ts +0 -2
- package/dist/esm/components/PrevSubmitter/index.js +0 -2
- package/dist/esm/components/Radio/index.d.ts +0 -26
- package/dist/esm/components/Radio/index.js +1 -27
- package/dist/esm/components/Rate/index.d.ts +3 -22
- package/dist/esm/components/Rate/index.js +30 -49
- package/dist/esm/components/ReceiverAddress/index.d.ts +0 -15
- package/dist/esm/components/ReceiverAddress/index.js +1 -16
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -23
- package/dist/esm/components/ReceiverMobile/index.js +9 -29
- package/dist/esm/components/ReceiverName/index.d.ts +3 -18
- package/dist/esm/components/ReceiverName/index.js +8 -23
- package/dist/esm/components/Remark/index.d.ts +0 -49
- package/dist/esm/components/Remark/index.js +1 -59
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -37
- package/dist/esm/components/ReturnLogistics/index.js +16 -50
- package/dist/esm/components/Select/index.d.ts +1 -4
- package/dist/esm/components/Select/index.js +30 -32
- package/dist/esm/components/ShopInput/index.d.ts +5 -7
- package/dist/esm/components/ShopInput/index.js +8 -10
- package/dist/esm/components/ShopName/index.d.ts +0 -15
- package/dist/esm/components/ShopName/index.js +1 -16
- package/dist/esm/components/StatusSelect/index.d.ts +1 -15
- package/dist/esm/components/StatusSelect/index.js +96 -30
- package/dist/esm/components/Submitter/index.d.ts +4 -6
- package/dist/esm/components/Submitter/index.js +7 -9
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -18
- package/dist/esm/components/SystemOrderNo/index.js +9 -24
- package/dist/esm/components/TemplateSelect/index.d.ts +0 -2
- package/dist/esm/components/TemplateSelect/index.js +1 -3
- package/dist/esm/components/TextArea/index.d.ts +0 -15
- package/dist/esm/components/TextArea/index.js +1 -16
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -29
- package/dist/esm/components/ThirdItemSelect/index.js +11 -37
- package/dist/esm/components/TradeDateTime/index.d.ts +4 -3
- package/dist/esm/components/TradeDateTime/index.js +39 -14
- package/dist/esm/components/TradeId/index.d.ts +5 -25
- package/dist/esm/components/TradeId/index.js +9 -29
- package/dist/esm/components/{OutFlowWorkOrderId → WDT/WdtExchange}/index.d.ts +13 -12
- package/dist/esm/components/WDT/WdtExchange/index.js +183 -0
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +0 -30
- package/dist/esm/components/WDT/WdtGoods/index.js +1 -37
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +0 -39
- package/dist/esm/components/WDT/WdtRessuie/index.js +1 -44
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/{SystemOrder → WDT/WdtReturn}/index.js +79 -91
- package/dist/esm/components/WLN/WlnGoods/index.d.ts +0 -30
- package/dist/esm/components/WLN/WlnGoods/index.js +1 -31
- package/dist/esm/components/WorkOrderId/index.d.ts +0 -2
- package/dist/esm/components/WorkOrderId/index.js +1 -3
- package/dist/esm/constant.d.ts +0 -2
- package/dist/esm/constant.js +1 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +24 -46
- package/dist/esm/index.d.ts +8 -39
- package/dist/esm/index.js +8 -39
- package/dist/esm/type.d.ts +3 -2
- package/package.json +5 -6
- package/dist/esm/components/ActualPayment/BsDeposit.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsDeposit.js +0 -50
- package/dist/esm/components/ActualPayment/BsNetReceipts.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsNetReceipts.js +0 -50
- package/dist/esm/components/ActualPayment/BsPackageWeight.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsPackageWeight.js +0 -50
- package/dist/esm/components/BS/BsDeposit/index.d.ts +0 -60
- package/dist/esm/components/BS/BsDeposit/index.js +0 -165
- package/dist/esm/components/BS/BsSendGood/index.d.ts +0 -36
- package/dist/esm/components/BS/BsSendGood/index.js +0 -68
- package/dist/esm/components/BusinessOrderNo/index.d.ts +0 -26
- package/dist/esm/components/BusinessOrderNo/index.js +0 -53
- package/dist/esm/components/BuyerMessageNotice/index.d.ts +0 -37
- package/dist/esm/components/BuyerMessageNotice/index.js +0 -66
- package/dist/esm/components/CommonDataTime/CompletedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/CompletedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/CreatedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/CreatedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/UpdateDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/UpdateDateTime.js +0 -29
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.d.ts +0 -30
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.js +0 -69
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.d.ts +0 -30
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.js +0 -69
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.d.ts +0 -34
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.js +0 -83
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.d.ts +0 -21
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.js +0 -48
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.d.ts +0 -22
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.js +0 -49
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.d.ts +0 -32
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.js +0 -60
- package/dist/esm/components/CommonSystemOrder/TradeItemList.d.ts +0 -23
- package/dist/esm/components/CommonSystemOrder/TradeItemList.js +0 -50
- package/dist/esm/components/JST/ReissueLogistics/index.d.ts +0 -76
- package/dist/esm/components/JST/ReissueLogistics/index.js +0 -147
- package/dist/esm/components/NewPaymentStatus/index.d.ts +0 -41
- package/dist/esm/components/NewPaymentStatus/index.js +0 -105
- package/dist/esm/components/OutFlowWorkOrderId/index.js +0 -101
- package/dist/esm/components/SendGood/index.d.ts +0 -54
- package/dist/esm/components/SendGood/index.js +0 -215
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.js +0 -68
- package/dist/esm/components/StatusSelect/CreateStatus.d.ts +0 -7
- package/dist/esm/components/StatusSelect/CreateStatus.js +0 -41
- package/dist/esm/components/StatusSelect/InvoiceStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/InvoiceStatus.js +0 -65
- package/dist/esm/components/StatusSelect/InvoicingStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/InvoicingStatus.js +0 -65
- package/dist/esm/components/StatusSelect/ReissueStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/ReissueStatus.js +0 -65
- package/dist/esm/components/SystemOrder/index.d.ts +0 -39
- package/dist/esm/components/TradeDateTime/BsSendTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsSendTime.js +0 -46
- package/dist/esm/components/TradeDateTime/BsSigningTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsSigningTime.js +0 -46
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.js +0 -46
- package/dist/esm/components/WDT/WdtLogistics/index.d.ts +0 -93
- package/dist/esm/components/WDT/WdtLogistics/index.js +0 -227
- package/dist/esm/components/WDT/WdtSendGood/index.d.ts +0 -41
- package/dist/esm/components/WDT/WdtSendGood/index.js +0 -73
- package/dist/esm/components/WDT/WdtSystemOrder/index.d.ts +0 -21
- package/dist/esm/components/WDT/WdtSystemOrder/index.js +0 -48
- package/dist/esm/components/WLN/WlnLogistics/index.d.ts +0 -88
- package/dist/esm/components/WLN/WlnLogistics/index.js +0 -222
- package/dist/esm/components/WLN/WlnSendGood/index.d.ts +0 -36
- package/dist/esm/components/WLN/WlnSendGood/index.js +0 -68
- package/dist/esm/components/WLN/WlnSystemOrder/index.d.ts +0 -21
- package/dist/esm/components/WLN/WlnSystemOrder/index.js +0 -48
|
@@ -1,101 +0,0 @@
|
|
|
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 _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); }
|
|
3
|
-
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); } }
|
|
4
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
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; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
-
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); }
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
11
|
-
import { filterFn as _filterFn, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
-
import GetFormItem from "../GetFormItem";
|
|
13
|
-
import { SYMBOL } from "../../constant";
|
|
14
|
-
import CopyText from "../../commonComponents/CopyText";
|
|
15
|
-
var OutFlowWorkOrderId = /*#__PURE__*/_createClass(function OutFlowWorkOrderId(options) {
|
|
16
|
-
var _this = this;
|
|
17
|
-
_classCallCheck(this, OutFlowWorkOrderId);
|
|
18
|
-
_defineProperty(this, "name", void 0);
|
|
19
|
-
_defineProperty(this, "id", void 0);
|
|
20
|
-
_defineProperty(this, "sortField", void 0);
|
|
21
|
-
_defineProperty(this, "type", void 0);
|
|
22
|
-
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
-
_defineProperty(this, "effects", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "formField", void 0);
|
|
27
|
-
_defineProperty(this, "canSort", void 0);
|
|
28
|
-
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
31
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
32
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
33
|
-
}
|
|
34
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
35
|
-
onClick: function onClick(e) {
|
|
36
|
-
return e.stopPropagation();
|
|
37
|
-
}
|
|
38
|
-
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
39
|
-
text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
|
|
40
|
-
}));
|
|
41
|
-
});
|
|
42
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
44
|
-
return _this.renderPc(undefined, r);
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
47
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
48
|
-
});
|
|
49
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
|
-
var _record;
|
|
51
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "renderClient", function () {
|
|
54
|
-
return null;
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "editRender", function (p) {
|
|
57
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
58
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
59
|
-
title: _this.name,
|
|
60
|
-
name: _this.id,
|
|
61
|
-
rules: _this.rules,
|
|
62
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
64
|
-
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,
|
|
65
|
-
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
66
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
67
|
-
}))
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
71
|
-
return {
|
|
72
|
-
searchDefaultConditions: SYMBOL.like,
|
|
73
|
-
type: item.type,
|
|
74
|
-
id: item.id,
|
|
75
|
-
// 过滤组件id
|
|
76
|
-
name: item.name,
|
|
77
|
-
// 过滤组件名称
|
|
78
|
-
filterComponentType: "Input",
|
|
79
|
-
filterFn: function filterFn(value) {
|
|
80
|
-
return function (i) {
|
|
81
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, "")).includes(value);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
this.name = options.name;
|
|
87
|
-
this.id = options.id;
|
|
88
|
-
this.sortField = options.id;
|
|
89
|
-
this.formField = options.id;
|
|
90
|
-
this.type = "OUTER_WORK_ORDER_ID_INPUT";
|
|
91
|
-
this.componentConfig = options.componentConfig;
|
|
92
|
-
this.effects = options.effects;
|
|
93
|
-
this.dataType = "string";
|
|
94
|
-
this.rules = [];
|
|
95
|
-
this.isCombinationComponent = false;
|
|
96
|
-
this.canSort = true;
|
|
97
|
-
this.children = [];
|
|
98
|
-
});
|
|
99
|
-
_defineProperty(OutFlowWorkOrderId, "group", "BASIC_FIELD");
|
|
100
|
-
_defineProperty(OutFlowWorkOrderId, "type", "OUTER_WORK_ORDER_ID_INPUT");
|
|
101
|
-
export default OutFlowWorkOrderId;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class SendGood implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
sortChildField: {
|
|
8
|
-
name: string;
|
|
9
|
-
key: string;
|
|
10
|
-
dataType: string;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}[];
|
|
13
|
-
type: string;
|
|
14
|
-
rules: any[];
|
|
15
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
16
|
-
align: ALignType;
|
|
17
|
-
isCombinationComponent: boolean;
|
|
18
|
-
formField: string;
|
|
19
|
-
canSort: boolean;
|
|
20
|
-
children: ComponentInterface[];
|
|
21
|
-
dataType: ComponentInterface["dataType"];
|
|
22
|
-
suffixKey: string;
|
|
23
|
-
suffixName: string;
|
|
24
|
-
suffixSendId: string;
|
|
25
|
-
suffixSendName: string;
|
|
26
|
-
constructor(options: PickOption);
|
|
27
|
-
getSortChildFields: (type: string, options: PickOption) => any;
|
|
28
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
29
|
-
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
30
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
31
|
-
getComponentValue: (r: Record) => any;
|
|
32
|
-
renderExport: (value: any, record: any) => any;
|
|
33
|
-
editRender: (p: any) => React.JSX.Element;
|
|
34
|
-
filterConfig: (item: ColumnConfig) => ({
|
|
35
|
-
searchDefaultConditions: "in";
|
|
36
|
-
type: string;
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
filterComponentType: "MultipleSelect";
|
|
40
|
-
props: {
|
|
41
|
-
options: any[];
|
|
42
|
-
};
|
|
43
|
-
filterFn: (value: string) => (i: Record) => any;
|
|
44
|
-
} | {
|
|
45
|
-
searchDefaultConditions: "like";
|
|
46
|
-
type: string;
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
filterComponentType: "Input";
|
|
50
|
-
filterFn: (value: string) => (i: Record) => any;
|
|
51
|
-
props?: undefined;
|
|
52
|
-
})[];
|
|
53
|
-
}
|
|
54
|
-
export default SendGood;
|
|
@@ -1,215 +0,0 @@
|
|
|
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 _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); }
|
|
3
|
-
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); } }
|
|
4
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
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; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
-
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); }
|
|
9
|
-
import React from "react";
|
|
10
|
-
import some from "lodash/some";
|
|
11
|
-
import GetFormItem from "../GetFormItem";
|
|
12
|
-
import { JstGoodImage } from "../Common";
|
|
13
|
-
import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
14
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
-
import { SYMBOL } from "../../constant";
|
|
17
|
-
var SendGood = /*#__PURE__*/_createClass(function SendGood(_options) {
|
|
18
|
-
var _this = this,
|
|
19
|
-
_this$componentConfig,
|
|
20
|
-
_this$componentConfig2;
|
|
21
|
-
_classCallCheck(this, SendGood);
|
|
22
|
-
_defineProperty(this, "name", void 0);
|
|
23
|
-
_defineProperty(this, "id", void 0);
|
|
24
|
-
_defineProperty(this, "sortField", void 0);
|
|
25
|
-
_defineProperty(this, "sortChildField", void 0);
|
|
26
|
-
_defineProperty(this, "type", void 0);
|
|
27
|
-
_defineProperty(this, "rules", void 0);
|
|
28
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
29
|
-
_defineProperty(this, "align", void 0);
|
|
30
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
-
_defineProperty(this, "formField", void 0);
|
|
32
|
-
_defineProperty(this, "canSort", void 0);
|
|
33
|
-
_defineProperty(this, "children", void 0);
|
|
34
|
-
_defineProperty(this, "dataType", void 0);
|
|
35
|
-
_defineProperty(this, "suffixKey", void 0);
|
|
36
|
-
_defineProperty(this, "suffixName", void 0);
|
|
37
|
-
_defineProperty(this, "suffixSendId", void 0);
|
|
38
|
-
_defineProperty(this, "suffixSendName", void 0);
|
|
39
|
-
_defineProperty(this, "getSortChildFields", function (type, options) {
|
|
40
|
-
if (type === 'all') {
|
|
41
|
-
return [{
|
|
42
|
-
name: "发货仓名称",
|
|
43
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendName),
|
|
44
|
-
dataType: "string"
|
|
45
|
-
}, {
|
|
46
|
-
name: "发货仓编码",
|
|
47
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendId),
|
|
48
|
-
dataType: "string"
|
|
49
|
-
}];
|
|
50
|
-
}
|
|
51
|
-
if (type === 'sendName') {
|
|
52
|
-
return [{
|
|
53
|
-
name: "发货仓名称",
|
|
54
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendName),
|
|
55
|
-
dataType: "string"
|
|
56
|
-
}];
|
|
57
|
-
}
|
|
58
|
-
if (type === 'sendId') {
|
|
59
|
-
return [{
|
|
60
|
-
name: "发货仓编码",
|
|
61
|
-
key: "".concat(options.id, "_").concat(_this.suffixSendId),
|
|
62
|
-
dataType: "string"
|
|
63
|
-
}];
|
|
64
|
-
}
|
|
65
|
-
return [];
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
68
|
-
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) {
|
|
69
|
-
return !isNull(item);
|
|
70
|
-
}) : false;
|
|
71
|
-
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
72
|
-
id: _this.id,
|
|
73
|
-
label: _this.name,
|
|
74
|
-
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
75
|
-
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
76
|
-
type: 3,
|
|
77
|
-
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
78
|
-
})
|
|
79
|
-
}) : null;
|
|
80
|
-
});
|
|
81
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
82
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
83
|
-
//兼容多个商品
|
|
84
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
85
|
-
onClick: function onClick(e) {
|
|
86
|
-
return e.stopPropagation();
|
|
87
|
-
}
|
|
88
|
-
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
89
|
-
list: list,
|
|
90
|
-
type: 3,
|
|
91
|
-
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
92
|
-
}));
|
|
93
|
-
});
|
|
94
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
95
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
96
|
-
if (isNull(list)) return null;
|
|
97
|
-
return _this.renderPc(undefined, r);
|
|
98
|
-
});
|
|
99
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
100
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
101
|
-
});
|
|
102
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
103
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
104
|
-
return (list || []).map(function (item) {
|
|
105
|
-
return [item === null || item === void 0 ? void 0 : item.sendId, _this.type === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName) : item === null || item === void 0 ? void 0 : item.sendName].join("/");
|
|
106
|
-
}).join(",");
|
|
107
|
-
});
|
|
108
|
-
_defineProperty(this, "editRender", function (p) {
|
|
109
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
110
|
-
title: _this.name,
|
|
111
|
-
name: _this.id,
|
|
112
|
-
rules: _this.rules,
|
|
113
|
-
required: false,
|
|
114
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
115
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
116
|
-
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
117
|
-
type: 3,
|
|
118
|
-
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
119
|
-
}))
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
123
|
-
return [_this.type === 'WDT_SEND_GOOD' ? {
|
|
124
|
-
searchDefaultConditions: SYMBOL.in,
|
|
125
|
-
type: item.type,
|
|
126
|
-
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
127
|
-
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
128
|
-
filterComponentType: "MultipleSelect",
|
|
129
|
-
props: {
|
|
130
|
-
options: WdtSendData.getInstance().getWdtSendData() || []
|
|
131
|
-
},
|
|
132
|
-
filterFn: function filterFn(value) {
|
|
133
|
-
return function (i) {
|
|
134
|
-
var _ref;
|
|
135
|
-
return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, "sendName").split(",") || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
|
|
136
|
-
var _String;
|
|
137
|
-
var sendName = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
138
|
-
return sendName;
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
} : {
|
|
143
|
-
searchDefaultConditions: SYMBOL.like,
|
|
144
|
-
type: item.type,
|
|
145
|
-
id: "".concat(item.id, "_").concat(_this.suffixSendName),
|
|
146
|
-
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
147
|
-
filterComponentType: "Input",
|
|
148
|
-
filterFn: function filterFn(value) {
|
|
149
|
-
return function (i) {
|
|
150
|
-
var _ref2;
|
|
151
|
-
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
152
|
-
var _String2;
|
|
153
|
-
var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
|
|
154
|
-
return name;
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
}, {
|
|
159
|
-
searchDefaultConditions: SYMBOL.like,
|
|
160
|
-
type: item.type,
|
|
161
|
-
id: "".concat(item.id, "_").concat(_this.suffixSendId),
|
|
162
|
-
name: "".concat(_this.name, "\u7F16\u7801"),
|
|
163
|
-
filterComponentType: "Input",
|
|
164
|
-
filterFn: function filterFn(value) {
|
|
165
|
-
return function (i) {
|
|
166
|
-
var _ref3;
|
|
167
|
-
return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixKey) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
|
|
168
|
-
var _String3;
|
|
169
|
-
var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
|
|
170
|
-
return id;
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
}];
|
|
175
|
-
});
|
|
176
|
-
this.name = _options.name;
|
|
177
|
-
this.id = _options.id;
|
|
178
|
-
this.suffixKey = '';
|
|
179
|
-
this.suffixName = '';
|
|
180
|
-
this.suffixSendId = '';
|
|
181
|
-
this.suffixSendName = '';
|
|
182
|
-
this.sortField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
183
|
-
this.formField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
184
|
-
this.componentConfig = _options.componentConfig;
|
|
185
|
-
this.sortChildField = this.getSortChildFields(((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showField) || '', _options);
|
|
186
|
-
this.type = _options.type;
|
|
187
|
-
this.dataType = "object";
|
|
188
|
-
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
189
|
-
required: true,
|
|
190
|
-
validator: function validator(_, value) {
|
|
191
|
-
if (!value || !value.length) {
|
|
192
|
-
return Promise.reject(new Error("请选择宝贝"));
|
|
193
|
-
}
|
|
194
|
-
var hasNo = (value || []).some(function (item) {
|
|
195
|
-
var _this$componentConfig3, _this$componentConfig4;
|
|
196
|
-
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
|
|
197
|
-
return item.sendName;
|
|
198
|
-
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "")) {
|
|
199
|
-
return item.sendId;
|
|
200
|
-
} else {
|
|
201
|
-
return item.sendId && item.sendName;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
if (!hasNo) {
|
|
205
|
-
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
|
|
206
|
-
}
|
|
207
|
-
return Promise.resolve();
|
|
208
|
-
}
|
|
209
|
-
}] : [];
|
|
210
|
-
this.align = "left";
|
|
211
|
-
this.isCombinationComponent = false;
|
|
212
|
-
this.canSort = false;
|
|
213
|
-
this.children = [];
|
|
214
|
-
});
|
|
215
|
-
export default SendGood;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import StatusSelect from "./";
|
|
2
|
-
import { PickOption } from "../../type";
|
|
3
|
-
declare class AdjustWorkOrderStatus extends StatusSelect {
|
|
4
|
-
static group: string;
|
|
5
|
-
static configSchema: {
|
|
6
|
-
componentConfig: {
|
|
7
|
-
required: boolean;
|
|
8
|
-
options: {
|
|
9
|
-
label: string;
|
|
10
|
-
value: string;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
belongs: string[];
|
|
14
|
-
name: string;
|
|
15
|
-
uniqueKey: string;
|
|
16
|
-
schema: {
|
|
17
|
-
status: {
|
|
18
|
-
widget: string;
|
|
19
|
-
type: string;
|
|
20
|
-
default: {
|
|
21
|
-
created: number;
|
|
22
|
-
upgrade: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
static type: string;
|
|
28
|
-
constructor(options: PickOption);
|
|
29
|
-
}
|
|
30
|
-
export default AdjustWorkOrderStatus;
|
|
@@ -1,68 +0,0 @@
|
|
|
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 StatusSelect from "./";
|
|
16
|
-
import { SHOW_WRITE } from "../../constant";
|
|
17
|
-
var AdjustWorkOrderStatus = /*#__PURE__*/function (_StatusSelect) {
|
|
18
|
-
_inherits(AdjustWorkOrderStatus, _StatusSelect);
|
|
19
|
-
var _super = _createSuper(AdjustWorkOrderStatus);
|
|
20
|
-
function AdjustWorkOrderStatus(options) {
|
|
21
|
-
var _this;
|
|
22
|
-
_classCallCheck(this, AdjustWorkOrderStatus);
|
|
23
|
-
_this = _super.call(this, options);
|
|
24
|
-
_this.type = "ADJUST_WORK_ORDER_STATUS";
|
|
25
|
-
_this.suffixKey = "adjustWorkOrderStatusValue";
|
|
26
|
-
_this.suffixOptions = [{
|
|
27
|
-
value: "成功",
|
|
28
|
-
label: "成功",
|
|
29
|
-
color: "#52c41a"
|
|
30
|
-
}, {
|
|
31
|
-
value: "失败",
|
|
32
|
-
label: "失败",
|
|
33
|
-
color: "#ff4d4f"
|
|
34
|
-
}];
|
|
35
|
-
_this.suffixInfo = "adjustWorkOrderReason";
|
|
36
|
-
_this.suffixFailValue = "失败";
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
return _createClass(AdjustWorkOrderStatus);
|
|
40
|
-
}(StatusSelect);
|
|
41
|
-
_defineProperty(AdjustWorkOrderStatus, "group", "THIRD_SPECIAL_COMPONENT");
|
|
42
|
-
_defineProperty(AdjustWorkOrderStatus, "configSchema", {
|
|
43
|
-
componentConfig: {
|
|
44
|
-
required: false,
|
|
45
|
-
options: [{
|
|
46
|
-
label: "成功",
|
|
47
|
-
value: "成功"
|
|
48
|
-
}, {
|
|
49
|
-
label: "失败",
|
|
50
|
-
value: "失败"
|
|
51
|
-
}]
|
|
52
|
-
},
|
|
53
|
-
belongs: ["bs"],
|
|
54
|
-
name: "调整单状态(勿填)",
|
|
55
|
-
uniqueKey: "z0P1NUu6JR",
|
|
56
|
-
schema: {
|
|
57
|
-
status: {
|
|
58
|
-
widget: "StatusConfig",
|
|
59
|
-
type: "object",
|
|
60
|
-
default: {
|
|
61
|
-
created: SHOW_WRITE,
|
|
62
|
-
upgrade: SHOW_WRITE
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(AdjustWorkOrderStatus, "type", "ADJUST_WORK_ORDER_STATUS");
|
|
68
|
-
export default AdjustWorkOrderStatus;
|
|
@@ -1,41 +0,0 @@
|
|
|
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 StatusSelect from "./index";
|
|
16
|
-
var CreateStatus = /*#__PURE__*/function (_StatusSelect) {
|
|
17
|
-
_inherits(CreateStatus, _StatusSelect);
|
|
18
|
-
var _super = _createSuper(CreateStatus);
|
|
19
|
-
function CreateStatus(options) {
|
|
20
|
-
var _this;
|
|
21
|
-
_classCallCheck(this, CreateStatus);
|
|
22
|
-
_this = _super.call(this, options);
|
|
23
|
-
_this.type = 'CREATE_STATUS';
|
|
24
|
-
_this.suffixKey = 'createStatusValue';
|
|
25
|
-
_this.suffixOptions = [{
|
|
26
|
-
value: '成功',
|
|
27
|
-
label: '成功',
|
|
28
|
-
color: '#52c41a'
|
|
29
|
-
}, {
|
|
30
|
-
value: '失败',
|
|
31
|
-
label: '失败',
|
|
32
|
-
color: '#ff4d4f'
|
|
33
|
-
}];
|
|
34
|
-
_this.suffixInfo = 'createReason';
|
|
35
|
-
_this.suffixFailValue = '失败';
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
return _createClass(CreateStatus);
|
|
39
|
-
}(StatusSelect);
|
|
40
|
-
_defineProperty(CreateStatus, "type", 'CREATE_STATUS');
|
|
41
|
-
export default CreateStatus;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import StatusSelect from "./index";
|
|
2
|
-
import { PickOption } from "../../type";
|
|
3
|
-
declare class InvoiceStatus extends StatusSelect {
|
|
4
|
-
static group: string;
|
|
5
|
-
static configSchema: {
|
|
6
|
-
componentConfig: {
|
|
7
|
-
required: boolean;
|
|
8
|
-
};
|
|
9
|
-
name: string;
|
|
10
|
-
belongs: string[];
|
|
11
|
-
uniqueKey: string;
|
|
12
|
-
schema: {
|
|
13
|
-
required: {
|
|
14
|
-
title: string;
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
17
|
-
status: {
|
|
18
|
-
widget: string;
|
|
19
|
-
type: string;
|
|
20
|
-
default: {
|
|
21
|
-
created: number;
|
|
22
|
-
upgrade: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
static type: string;
|
|
28
|
-
constructor(options: PickOption);
|
|
29
|
-
}
|
|
30
|
-
export default InvoiceStatus;
|
|
@@ -1,65 +0,0 @@
|
|
|
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 StatusSelect from "./index";
|
|
16
|
-
import { SHOW_WRITE } from "../../constant";
|
|
17
|
-
var InvoiceStatus = /*#__PURE__*/function (_StatusSelect) {
|
|
18
|
-
_inherits(InvoiceStatus, _StatusSelect);
|
|
19
|
-
var _super = _createSuper(InvoiceStatus);
|
|
20
|
-
function InvoiceStatus(options) {
|
|
21
|
-
var _this;
|
|
22
|
-
_classCallCheck(this, InvoiceStatus);
|
|
23
|
-
_this = _super.call(this, options);
|
|
24
|
-
_this.type = "INVOICE_STATUS";
|
|
25
|
-
_this.suffixKey = "invoiceStatusValue";
|
|
26
|
-
_this.suffixOptions = [{
|
|
27
|
-
value: "成功",
|
|
28
|
-
label: "成功",
|
|
29
|
-
color: "#52c41a"
|
|
30
|
-
}, {
|
|
31
|
-
value: "失败",
|
|
32
|
-
label: "失败",
|
|
33
|
-
color: "#ff4d4f"
|
|
34
|
-
}];
|
|
35
|
-
_this.suffixInfo = "invoiceReason";
|
|
36
|
-
_this.suffixFailValue = "失败";
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
return _createClass(InvoiceStatus);
|
|
40
|
-
}(StatusSelect);
|
|
41
|
-
_defineProperty(InvoiceStatus, "group", "THIRD_SPECIAL_COMPONENT");
|
|
42
|
-
_defineProperty(InvoiceStatus, "configSchema", {
|
|
43
|
-
componentConfig: {
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
name: "发票状态(勿填)",
|
|
47
|
-
belongs: ["bs"],
|
|
48
|
-
uniqueKey: "Q87u6Y542B",
|
|
49
|
-
schema: {
|
|
50
|
-
required: {
|
|
51
|
-
title: "必填",
|
|
52
|
-
type: "boolean"
|
|
53
|
-
},
|
|
54
|
-
status: {
|
|
55
|
-
widget: "StatusConfig",
|
|
56
|
-
type: "object",
|
|
57
|
-
default: {
|
|
58
|
-
created: SHOW_WRITE,
|
|
59
|
-
upgrade: SHOW_WRITE
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(InvoiceStatus, "type", "INVOICE_STATUS");
|
|
65
|
-
export default InvoiceStatus;
|