@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
|
@@ -12,13 +12,19 @@ import GetFormItem from "../GetFormItem";
|
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
// interface TradeIdPropsType {
|
|
16
|
+
// [key: string]: {
|
|
17
|
+
// key: string;
|
|
18
|
+
// [key: string]: any;
|
|
19
|
+
// };
|
|
20
|
+
// }
|
|
21
|
+
// const INPUT_MAP: TradeIdPropsType = {
|
|
22
|
+
// BUSINESS_ORDER_NO: {
|
|
23
|
+
// key: "businessOrderNo",
|
|
24
|
+
// disabled: true,
|
|
25
|
+
// placeholder: "自动获取无需填写",
|
|
26
|
+
// },
|
|
27
|
+
// };
|
|
22
28
|
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
23
29
|
var _this = this;
|
|
24
30
|
_classCallCheck(this, CommonInput);
|
|
@@ -37,6 +43,9 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
37
43
|
_defineProperty(this, "children", void 0);
|
|
38
44
|
_defineProperty(this, "dataType", void 0);
|
|
39
45
|
_defineProperty(this, "options", void 0);
|
|
46
|
+
_defineProperty(this, "suffixKey", void 0);
|
|
47
|
+
_defineProperty(this, "suffixDisabled", void 0);
|
|
48
|
+
_defineProperty(this, "suffixPlaceholder", void 0);
|
|
40
49
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
50
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
42
51
|
id: _this.id,
|
|
@@ -45,21 +54,21 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
45
54
|
}) : null;
|
|
46
55
|
});
|
|
47
56
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
48
|
-
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(
|
|
57
|
+
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) === undefined) {
|
|
49
58
|
return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
|
|
50
59
|
}
|
|
51
|
-
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(
|
|
60
|
+
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
52
61
|
});
|
|
53
62
|
_defineProperty(this, "renderLog", function (r) {
|
|
54
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(
|
|
63
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)])) return null;
|
|
55
64
|
return _this.renderPc(undefined, r);
|
|
56
65
|
});
|
|
57
66
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
58
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(
|
|
67
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
59
68
|
});
|
|
60
69
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
61
70
|
var _record;
|
|
62
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(
|
|
71
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)]) !== null && _record !== void 0 ? _record : "--";
|
|
63
72
|
});
|
|
64
73
|
_defineProperty(this, "editRender", function (p) {
|
|
65
74
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -71,8 +80,8 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
71
80
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
72
81
|
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,
|
|
73
82
|
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
74
|
-
placeholder:
|
|
75
|
-
disabled:
|
|
83
|
+
placeholder: _this.suffixPlaceholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
84
|
+
disabled: _this.suffixDisabled
|
|
76
85
|
}))
|
|
77
86
|
});
|
|
78
87
|
});
|
|
@@ -80,7 +89,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
80
89
|
return {
|
|
81
90
|
searchDefaultConditions: SYMBOL.like,
|
|
82
91
|
type: item.type,
|
|
83
|
-
id: "".concat(item.id, "_").concat(
|
|
92
|
+
id: "".concat(item.id, "_").concat(_this.suffixKey),
|
|
84
93
|
// 过滤组件id
|
|
85
94
|
name: item.name,
|
|
86
95
|
// 过滤组件名称
|
|
@@ -89,8 +98,11 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
89
98
|
});
|
|
90
99
|
this.name = options.name;
|
|
91
100
|
this.id = options.id;
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
101
|
+
this.suffixKey = "";
|
|
102
|
+
this.suffixDisabled = false;
|
|
103
|
+
this.suffixPlaceholder = "";
|
|
104
|
+
this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
105
|
+
this.formField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
94
106
|
this.type = options.type;
|
|
95
107
|
this.showContains = false;
|
|
96
108
|
this.onlyContainsString = true;
|
|
@@ -98,8 +110,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
98
110
|
this.effects = options.effects;
|
|
99
111
|
this.rules = [];
|
|
100
112
|
this.isCombinationComponent = false;
|
|
101
|
-
this.canSort =
|
|
113
|
+
this.canSort = true;
|
|
102
114
|
this.children = [];
|
|
103
115
|
this.dataType = "string";
|
|
104
116
|
});
|
|
117
|
+
_defineProperty(CommonInput, "configSchema", {});
|
|
118
|
+
_defineProperty(CommonInput, "group", "BASIC_COMPONENT");
|
|
105
119
|
export default CommonInput;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import CommonMultiStatus from "./";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class ExchangeStatus extends CommonMultiStatus {
|
|
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 ExchangeStatus;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CommonMultiStatus from "./";
|
|
16
|
+
import { SHOW_WRITE } from "../../constant";
|
|
17
|
+
var ExchangeStatus = /*#__PURE__*/function (_CommonMultiStatus) {
|
|
18
|
+
_inherits(ExchangeStatus, _CommonMultiStatus);
|
|
19
|
+
var _super = _createSuper(ExchangeStatus);
|
|
20
|
+
function ExchangeStatus(options) {
|
|
21
|
+
var _this;
|
|
22
|
+
_classCallCheck(this, ExchangeStatus);
|
|
23
|
+
_this = _super.call(this, options);
|
|
24
|
+
_this.type = "EXCHANGE_STATUS";
|
|
25
|
+
_this.suffixKey = "exchangeReason";
|
|
26
|
+
_this.suffixCode = "exchangeStatusValue";
|
|
27
|
+
_this.suffixName = "换货状态";
|
|
28
|
+
_this.suffixType = 1;
|
|
29
|
+
_this.suffixValueKey = "status";
|
|
30
|
+
_this.suffixIdKey = "systemOrderId";
|
|
31
|
+
_this.suffixFailValue = "失败";
|
|
32
|
+
_this.suffixOptions = [{
|
|
33
|
+
value: "成功",
|
|
34
|
+
label: "成功",
|
|
35
|
+
color: "#52c41a"
|
|
36
|
+
}, {
|
|
37
|
+
value: "失败",
|
|
38
|
+
label: "失败",
|
|
39
|
+
color: "#ff4d4f"
|
|
40
|
+
}];
|
|
41
|
+
return _this;
|
|
42
|
+
}
|
|
43
|
+
return _createClass(ExchangeStatus);
|
|
44
|
+
}(CommonMultiStatus);
|
|
45
|
+
_defineProperty(ExchangeStatus, "group", "THIRD_SPECIAL_COMPONENT");
|
|
46
|
+
_defineProperty(ExchangeStatus, "configSchema", {
|
|
47
|
+
componentConfig: {
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
name: "换货状态(勿填)",
|
|
51
|
+
belongs: ["bs"],
|
|
52
|
+
uniqueKey: "6ee6f345cd",
|
|
53
|
+
schema: {
|
|
54
|
+
required: {
|
|
55
|
+
title: "必填",
|
|
56
|
+
type: "boolean"
|
|
57
|
+
},
|
|
58
|
+
status: {
|
|
59
|
+
widget: "StatusConfig",
|
|
60
|
+
type: "object",
|
|
61
|
+
default: {
|
|
62
|
+
created: SHOW_WRITE,
|
|
63
|
+
upgrade: SHOW_WRITE
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
_defineProperty(ExchangeStatus, "type", "EXCHANGE_STATUS");
|
|
69
|
+
export default ExchangeStatus;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import CommonMultiStatus from "./";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class ReturnGoodsStatus extends CommonMultiStatus {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
belongs: string[];
|
|
10
|
+
name: 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 ReturnGoodsStatus;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CommonMultiStatus from "./";
|
|
16
|
+
import { SHOW_WRITE } from "../../constant";
|
|
17
|
+
var ReturnGoodsStatus = /*#__PURE__*/function (_CommonMultiStatus) {
|
|
18
|
+
_inherits(ReturnGoodsStatus, _CommonMultiStatus);
|
|
19
|
+
var _super = _createSuper(ReturnGoodsStatus);
|
|
20
|
+
function ReturnGoodsStatus(options) {
|
|
21
|
+
var _this;
|
|
22
|
+
_classCallCheck(this, ReturnGoodsStatus);
|
|
23
|
+
_this = _super.call(this, options);
|
|
24
|
+
_this.type = "RETURN_GOODS_STATUS";
|
|
25
|
+
_this.suffixKey = "returnGoodsStatusList";
|
|
26
|
+
_this.suffixCode = "returnGoodsStatusValue";
|
|
27
|
+
_this.suffixName = "退货状态";
|
|
28
|
+
_this.suffixType = 1;
|
|
29
|
+
_this.suffixValueKey = "status";
|
|
30
|
+
_this.suffixIdKey = "systemOrderId";
|
|
31
|
+
_this.suffixFailValue = "失败";
|
|
32
|
+
_this.suffixOptions = [{
|
|
33
|
+
value: "成功",
|
|
34
|
+
label: "成功",
|
|
35
|
+
color: "#52c41a"
|
|
36
|
+
}, {
|
|
37
|
+
value: "失败",
|
|
38
|
+
label: "失败",
|
|
39
|
+
color: "#ff4d4f"
|
|
40
|
+
}];
|
|
41
|
+
return _this;
|
|
42
|
+
}
|
|
43
|
+
return _createClass(ReturnGoodsStatus);
|
|
44
|
+
}(CommonMultiStatus);
|
|
45
|
+
_defineProperty(ReturnGoodsStatus, "group", "THIRD_SPECIAL_COMPONENT");
|
|
46
|
+
_defineProperty(ReturnGoodsStatus, "configSchema", {
|
|
47
|
+
componentConfig: {
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
belongs: ["bs"],
|
|
51
|
+
name: "退货状态(勿填)",
|
|
52
|
+
uniqueKey: "a0lHvJy0nI",
|
|
53
|
+
schema: {
|
|
54
|
+
required: {
|
|
55
|
+
title: "必填",
|
|
56
|
+
type: "boolean"
|
|
57
|
+
},
|
|
58
|
+
status: {
|
|
59
|
+
widget: "StatusConfig",
|
|
60
|
+
type: "object",
|
|
61
|
+
default: {
|
|
62
|
+
created: SHOW_WRITE,
|
|
63
|
+
upgrade: SHOW_WRITE
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
_defineProperty(ReturnGoodsStatus, "type", "RETURN_GOODS_STATUS");
|
|
69
|
+
export default ReturnGoodsStatus;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import CommonMultiStatus from "./";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class WareHousingStatus extends CommonMultiStatus {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
reasonList: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
name: string;
|
|
14
|
+
belongs: string[];
|
|
15
|
+
uniqueKey: string;
|
|
16
|
+
schema: {
|
|
17
|
+
required: {
|
|
18
|
+
title: string;
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
status: {
|
|
22
|
+
widget: string;
|
|
23
|
+
type: string;
|
|
24
|
+
default: {
|
|
25
|
+
created: number;
|
|
26
|
+
upgrade: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
static type: string;
|
|
32
|
+
constructor(options: PickOption);
|
|
33
|
+
}
|
|
34
|
+
export default WareHousingStatus;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 CommonMultiStatus from "./";
|
|
16
|
+
import { SHOW_WRITE } from "../../constant";
|
|
17
|
+
var WareHousingStatus = /*#__PURE__*/function (_CommonMultiStatus) {
|
|
18
|
+
_inherits(WareHousingStatus, _CommonMultiStatus);
|
|
19
|
+
var _super = _createSuper(WareHousingStatus);
|
|
20
|
+
function WareHousingStatus(options) {
|
|
21
|
+
var _this;
|
|
22
|
+
_classCallCheck(this, WareHousingStatus);
|
|
23
|
+
_this = _super.call(this, options);
|
|
24
|
+
_this.type = "WAREHOUSING_STATUS";
|
|
25
|
+
_this.suffixKey = "inStockStatusItemList";
|
|
26
|
+
_this.suffixCode = "inStockStatusList";
|
|
27
|
+
_this.suffixName = "商品入库状态(勿填)";
|
|
28
|
+
_this.suffixType = 2;
|
|
29
|
+
_this.suffixValueKey = "status";
|
|
30
|
+
_this.suffixIdKey = "systemOrderId";
|
|
31
|
+
_this.suffixFailValue = "失败";
|
|
32
|
+
_this.suffixOptions = [{
|
|
33
|
+
value: "2",
|
|
34
|
+
label: "已入库",
|
|
35
|
+
color: "#52c41a"
|
|
36
|
+
}, {
|
|
37
|
+
value: "1",
|
|
38
|
+
label: "部分入库",
|
|
39
|
+
color: "#e7780f"
|
|
40
|
+
}, {
|
|
41
|
+
value: "0",
|
|
42
|
+
label: "未入库",
|
|
43
|
+
color: "#ff4d4f"
|
|
44
|
+
}];
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
return _createClass(WareHousingStatus);
|
|
48
|
+
}(CommonMultiStatus);
|
|
49
|
+
_defineProperty(WareHousingStatus, "group", "THIRD_SPECIAL_COMPONENT");
|
|
50
|
+
_defineProperty(WareHousingStatus, "configSchema", {
|
|
51
|
+
componentConfig: {
|
|
52
|
+
required: false,
|
|
53
|
+
reasonList: [{
|
|
54
|
+
label: "未入库",
|
|
55
|
+
value: "0"
|
|
56
|
+
}, {
|
|
57
|
+
label: "部分入库",
|
|
58
|
+
value: "1"
|
|
59
|
+
}, {
|
|
60
|
+
label: "已入库",
|
|
61
|
+
value: "2"
|
|
62
|
+
}]
|
|
63
|
+
},
|
|
64
|
+
name: "商品入库状态(勿填)",
|
|
65
|
+
belongs: ["bs"],
|
|
66
|
+
uniqueKey: "l7QcHuhT05",
|
|
67
|
+
schema: {
|
|
68
|
+
required: {
|
|
69
|
+
title: "必填",
|
|
70
|
+
type: "boolean"
|
|
71
|
+
},
|
|
72
|
+
status: {
|
|
73
|
+
widget: "StatusConfig",
|
|
74
|
+
type: "object",
|
|
75
|
+
default: {
|
|
76
|
+
created: SHOW_WRITE,
|
|
77
|
+
upgrade: SHOW_WRITE
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
_defineProperty(WareHousingStatus, "type", "WAREHOUSING_STATUS");
|
|
83
|
+
export default WareHousingStatus;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class CommonMultiStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
suffixKey: string;
|
|
17
|
+
suffixCode: string;
|
|
18
|
+
suffixName: string;
|
|
19
|
+
suffixType: number;
|
|
20
|
+
suffixValueKey: string;
|
|
21
|
+
suffixIdKey: string;
|
|
22
|
+
suffixFailValue: string;
|
|
23
|
+
static group: string;
|
|
24
|
+
static configSchema: {};
|
|
25
|
+
suffixOptions: Array<{
|
|
26
|
+
label: string;
|
|
27
|
+
value: any;
|
|
28
|
+
color: string;
|
|
29
|
+
}>;
|
|
16
30
|
constructor(options: PickOption);
|
|
17
31
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
32
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -20,21 +34,6 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
20
34
|
getComponentValue: (r: Record) => any;
|
|
21
35
|
renderExport: (value: any, record: any) => any;
|
|
22
36
|
editRender: (p: any) => React.JSX.Element;
|
|
23
|
-
filterConfig: (item: ColumnConfig) =>
|
|
24
|
-
searchDefaultConditions: "like" | "in";
|
|
25
|
-
type: string;
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
filterComponentType: "MultipleSelect" | "SelectInput";
|
|
29
|
-
props: {
|
|
30
|
-
options: any[] | undefined;
|
|
31
|
-
fieldNames: {
|
|
32
|
-
label: string;
|
|
33
|
-
value: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
-
formatFilterValue: ((value: any) => any) | null;
|
|
38
|
-
};
|
|
37
|
+
filterConfig: (item: ColumnConfig) => any;
|
|
39
38
|
}
|
|
40
39
|
export default CommonMultiStatus;
|