@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
|
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import { ExpressData } from
|
|
13
|
-
import { LogisticsTrajectory as Trajectory } from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { LogisticsTrajectory as Trajectory } from "@kmkf-fe-packages/basic-components";
|
|
14
14
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
15
15
|
import TrajectoryCode from "./trajectoryCode";
|
|
16
16
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
@@ -78,14 +78,14 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
78
78
|
});
|
|
79
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
80
80
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
81
|
-
subKey:
|
|
81
|
+
subKey: "trajectoryCompany"
|
|
82
82
|
})), _this.expressCode.filterConfig(item), _this.expressSnapshot.filterConfig(item)];
|
|
83
83
|
});
|
|
84
84
|
this.name = options.name;
|
|
85
85
|
this.id = options.id;
|
|
86
86
|
this.sortField = options.id;
|
|
87
87
|
this.formField = options.id;
|
|
88
|
-
this.type =
|
|
88
|
+
this.type = "LOGISTICS_TRAJECTORY";
|
|
89
89
|
this.componentConfig = options.componentConfig;
|
|
90
90
|
this.expressDateInstance = ExpressData.getInstance();
|
|
91
91
|
this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -115,18 +115,55 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
115
115
|
}));
|
|
116
116
|
this.isCombinationComponent = true;
|
|
117
117
|
this.canSort = false;
|
|
118
|
-
this.dataType =
|
|
118
|
+
this.dataType = "object";
|
|
119
119
|
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
120
120
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
121
121
|
validator: function validator(_, value) {
|
|
122
122
|
if (!value.trajectoryCompany) {
|
|
123
|
-
return Promise.reject(new Error(
|
|
123
|
+
return Promise.reject(new Error("请选择物流公司"));
|
|
124
124
|
}
|
|
125
125
|
if (!value.trajectoryCode) {
|
|
126
|
-
return Promise.reject(new Error(
|
|
126
|
+
return Promise.reject(new Error("请输入物流单号"));
|
|
127
127
|
}
|
|
128
128
|
return Promise.resolve();
|
|
129
129
|
}
|
|
130
130
|
}] : [];
|
|
131
131
|
});
|
|
132
|
+
_defineProperty(LogisticsTrajectory, "group", "SPECIAL_COMPONENT");
|
|
133
|
+
_defineProperty(LogisticsTrajectory, "configSchema", {
|
|
134
|
+
componentConfig: {
|
|
135
|
+
required: false,
|
|
136
|
+
showField: []
|
|
137
|
+
},
|
|
138
|
+
name: "物流轨迹",
|
|
139
|
+
uniqueKey: "jbCFrJV4m7",
|
|
140
|
+
schema: {
|
|
141
|
+
required: {
|
|
142
|
+
title: "必填",
|
|
143
|
+
type: "boolean"
|
|
144
|
+
},
|
|
145
|
+
showField: {
|
|
146
|
+
type: "array",
|
|
147
|
+
items: {
|
|
148
|
+
type: "string"
|
|
149
|
+
},
|
|
150
|
+
enum: ["snapshot"],
|
|
151
|
+
enumNames: ["物流状态快照"],
|
|
152
|
+
widget: "checkboxes"
|
|
153
|
+
},
|
|
154
|
+
trajectoryStatus: {
|
|
155
|
+
type: "boolean",
|
|
156
|
+
title: "物流状态"
|
|
157
|
+
},
|
|
158
|
+
trajectoryLastUpdateTime: {
|
|
159
|
+
type: "boolean",
|
|
160
|
+
title: "最新更新时间"
|
|
161
|
+
},
|
|
162
|
+
trajectoryLastLogisticsInfo: {
|
|
163
|
+
type: "boolean",
|
|
164
|
+
title: "最新物流信息"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
_defineProperty(LogisticsTrajectory, "type", "LOGISTICS_TRAJECTORY");
|
|
132
169
|
export default LogisticsTrajectory;
|
|
@@ -1,18 +1,45 @@
|
|
|
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 MsgStatus 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
|
+
static group: string;
|
|
17
|
+
static configSchema: {
|
|
18
|
+
componentConfig: {
|
|
19
|
+
required: boolean;
|
|
20
|
+
reasonList: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
name: string;
|
|
26
|
+
uniqueKey: string;
|
|
27
|
+
schema: {
|
|
28
|
+
required: {
|
|
29
|
+
title: string;
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
widget: string;
|
|
34
|
+
type: string;
|
|
35
|
+
default: {
|
|
36
|
+
created: number;
|
|
37
|
+
upgrade: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
static type: string;
|
|
16
43
|
constructor(options: PickOption);
|
|
17
44
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
45
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -8,47 +8,47 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import some from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import some from "lodash/some";
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import { MsgContent } from "../Common";
|
|
15
|
-
import { MsgStatus as Status } from
|
|
15
|
+
import { MsgStatus as Status } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull, filterFn as _filterFn } from
|
|
18
|
-
import { SYMBOL } from "../../constant";
|
|
17
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
|
+
import { SYMBOL, SHOW_WRITE } from "../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
20
|
MSG_STATUS: {
|
|
21
21
|
options: [{
|
|
22
|
-
value:
|
|
23
|
-
label:
|
|
24
|
-
color:
|
|
22
|
+
value: "发送成功",
|
|
23
|
+
label: "发送成功",
|
|
24
|
+
color: "#52c41a"
|
|
25
25
|
}, {
|
|
26
|
-
value:
|
|
27
|
-
label:
|
|
28
|
-
color:
|
|
26
|
+
value: "已发送",
|
|
27
|
+
label: "已发送",
|
|
28
|
+
color: "#52c41a"
|
|
29
29
|
}, {
|
|
30
|
-
value:
|
|
31
|
-
label:
|
|
32
|
-
color:
|
|
30
|
+
value: "发送失败",
|
|
31
|
+
label: "发送失败",
|
|
32
|
+
color: "#ff4d4f"
|
|
33
33
|
}, {
|
|
34
|
-
value:
|
|
35
|
-
label:
|
|
36
|
-
color:
|
|
34
|
+
value: "等待发送",
|
|
35
|
+
label: "等待发送",
|
|
36
|
+
color: "#e7780f"
|
|
37
37
|
}],
|
|
38
|
-
key:
|
|
39
|
-
code:
|
|
40
|
-
name:
|
|
38
|
+
key: "msgStatusValues",
|
|
39
|
+
code: "msgStatus4Search",
|
|
40
|
+
name: "消息状态",
|
|
41
41
|
type: 1,
|
|
42
|
-
valueKey:
|
|
43
|
-
idKey:
|
|
44
|
-
failValue:
|
|
42
|
+
valueKey: "status",
|
|
43
|
+
idKey: "systemOrderId",
|
|
44
|
+
failValue: "发送失败"
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
var msgTypeCh = {
|
|
48
|
-
ding:
|
|
49
|
-
wechat:
|
|
50
|
-
qq:
|
|
51
|
-
qywx:
|
|
48
|
+
ding: "钉钉",
|
|
49
|
+
wechat: "微信",
|
|
50
|
+
qq: "QQ",
|
|
51
|
+
qywx: "企业微信"
|
|
52
52
|
};
|
|
53
53
|
var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
54
54
|
var _this = this,
|
|
@@ -118,9 +118,9 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
118
118
|
var _typeMap$_this$type14;
|
|
119
119
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
120
120
|
});
|
|
121
|
-
var key = item.msgType ||
|
|
122
|
-
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) ||
|
|
123
|
-
}).join(
|
|
121
|
+
var key = item.msgType || "ding";
|
|
122
|
+
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
|
|
123
|
+
}).join(",");
|
|
124
124
|
});
|
|
125
125
|
_defineProperty(this, "editRender", function (p) {
|
|
126
126
|
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type16;
|
|
@@ -144,12 +144,12 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
144
144
|
type: item.type,
|
|
145
145
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.code),
|
|
146
146
|
name: "".concat(_this.name),
|
|
147
|
-
filterComponentType:
|
|
147
|
+
filterComponentType: "MultipleSelect",
|
|
148
148
|
props: {
|
|
149
149
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
150
150
|
fieldNames: {
|
|
151
|
-
label:
|
|
152
|
-
value:
|
|
151
|
+
label: "label",
|
|
152
|
+
value: "value"
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
filterFn: function filterFn(value) {
|
|
@@ -164,14 +164,14 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
164
164
|
this.id = options.id;
|
|
165
165
|
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
166
166
|
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
167
|
-
this.type =
|
|
167
|
+
this.type = 'MSG_STATUS';
|
|
168
168
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
169
169
|
options: typeMap[options.type].options
|
|
170
170
|
});
|
|
171
171
|
this.isCombinationComponent = false;
|
|
172
172
|
this.canSort = false;
|
|
173
173
|
this.children = [];
|
|
174
|
-
this.dataType =
|
|
174
|
+
this.dataType = "object";
|
|
175
175
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
176
176
|
required: true,
|
|
177
177
|
validator: function validator(_, value) {
|
|
@@ -186,6 +186,42 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
186
186
|
return Promise.resolve();
|
|
187
187
|
}
|
|
188
188
|
}] : [];
|
|
189
|
-
this.align =
|
|
189
|
+
this.align = "left";
|
|
190
190
|
});
|
|
191
|
+
_defineProperty(MsgStatus, "group", "SPECIAL_COMPONENT");
|
|
192
|
+
_defineProperty(MsgStatus, "configSchema", {
|
|
193
|
+
componentConfig: {
|
|
194
|
+
required: false,
|
|
195
|
+
reasonList: [{
|
|
196
|
+
label: "发送成功",
|
|
197
|
+
value: "发送成功"
|
|
198
|
+
}, {
|
|
199
|
+
label: "已发送",
|
|
200
|
+
value: "已发送"
|
|
201
|
+
}, {
|
|
202
|
+
label: "发送失败",
|
|
203
|
+
value: "发送失败"
|
|
204
|
+
}, {
|
|
205
|
+
label: "等待发送",
|
|
206
|
+
value: "等待发送"
|
|
207
|
+
}]
|
|
208
|
+
},
|
|
209
|
+
name: "消息状态(勿填)",
|
|
210
|
+
uniqueKey: "WHN0vUjkx2",
|
|
211
|
+
schema: {
|
|
212
|
+
required: {
|
|
213
|
+
title: "必填",
|
|
214
|
+
type: "boolean"
|
|
215
|
+
},
|
|
216
|
+
status: {
|
|
217
|
+
widget: "StatusConfig",
|
|
218
|
+
type: "object",
|
|
219
|
+
default: {
|
|
220
|
+
created: SHOW_WRITE,
|
|
221
|
+
upgrade: SHOW_WRITE
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
_defineProperty(MsgStatus, "type", 'MSG_STATUS');
|
|
191
227
|
export default MsgStatus;
|
|
@@ -13,6 +13,22 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
options: ComponentInterface["options"];
|
|
16
|
+
static group: string;
|
|
17
|
+
static configSchema: {
|
|
18
|
+
componentConfig: {
|
|
19
|
+
basicMultSelect: never[];
|
|
20
|
+
options: never[];
|
|
21
|
+
required: boolean;
|
|
22
|
+
};
|
|
23
|
+
name: string;
|
|
24
|
+
schema: {
|
|
25
|
+
required: {
|
|
26
|
+
title: string;
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
static type: string;
|
|
16
32
|
constructor(options: PickOption);
|
|
17
33
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
34
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -96,7 +96,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
96
96
|
this.id = options.id;
|
|
97
97
|
this.sortField = "".concat(options.id, "_basicMultSelect");
|
|
98
98
|
this.formField = "".concat(options.id, "_basicMultSelect");
|
|
99
|
-
this.type =
|
|
99
|
+
this.type = "BASIC_MULT_SELECT";
|
|
100
100
|
this.componentConfig = options.componentConfig;
|
|
101
101
|
this.rules = [];
|
|
102
102
|
this.isCombinationComponent = false;
|
|
@@ -105,4 +105,20 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
105
105
|
this.dataType = "array";
|
|
106
106
|
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
107
107
|
});
|
|
108
|
+
_defineProperty(BasicMultSelect, "group", "BASIC_COMPONENT");
|
|
109
|
+
_defineProperty(BasicMultSelect, "configSchema", {
|
|
110
|
+
componentConfig: {
|
|
111
|
+
basicMultSelect: [],
|
|
112
|
+
options: [],
|
|
113
|
+
required: false
|
|
114
|
+
},
|
|
115
|
+
name: "下拉多选框",
|
|
116
|
+
schema: {
|
|
117
|
+
required: {
|
|
118
|
+
title: "必填",
|
|
119
|
+
type: "boolean"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
_defineProperty(BasicMultSelect, "type", "BASIC_MULT_SELECT");
|
|
108
124
|
export default BasicMultSelect;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import BasicSelect from "../Select";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class NewPaymentStatus extends BasicSelect {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
suffixKey: string;
|
|
8
|
+
static group: string;
|
|
9
|
+
static configSchema: {
|
|
10
|
+
componentConfig: {
|
|
11
|
+
options: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
status: {
|
|
16
|
+
created: number;
|
|
17
|
+
upgrade: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
name: string;
|
|
21
|
+
workOrderComponentGroup: string;
|
|
22
|
+
workOrderComponentType: string;
|
|
23
|
+
uniqueKey: string;
|
|
24
|
+
schema: {
|
|
25
|
+
status: {
|
|
26
|
+
widget: string;
|
|
27
|
+
type: string;
|
|
28
|
+
default: {
|
|
29
|
+
created: number;
|
|
30
|
+
upgrade: number;
|
|
31
|
+
};
|
|
32
|
+
props: {
|
|
33
|
+
showOptionsKey: number[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
static type: string;
|
|
39
|
+
constructor(options: PickOption);
|
|
40
|
+
}
|
|
41
|
+
export default NewPaymentStatus;
|
|
@@ -0,0 +1,105 @@
|
|
|
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 _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); }
|
|
7
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8
|
+
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); }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13
|
+
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; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
+
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); }
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
|
|
18
|
+
import GetFormItem from "../GetFormItem";
|
|
19
|
+
import BasicSelect from "../Select";
|
|
20
|
+
import { SHOW_NOT_WRITE } from "../../constant";
|
|
21
|
+
var NewPaymentStatus = /*#__PURE__*/function (_BasicSelect) {
|
|
22
|
+
_inherits(NewPaymentStatus, _BasicSelect);
|
|
23
|
+
var _super = _createSuper(NewPaymentStatus);
|
|
24
|
+
function NewPaymentStatus(options) {
|
|
25
|
+
var _this;
|
|
26
|
+
_classCallCheck(this, NewPaymentStatus);
|
|
27
|
+
_this = _super.call(this, options);
|
|
28
|
+
_defineProperty(_assertThisInitialized(_this), "name", void 0);
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "id", void 0);
|
|
30
|
+
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
31
|
+
_defineProperty(_assertThisInitialized(_this), "suffixKey", void 0);
|
|
32
|
+
_this.name = options.name;
|
|
33
|
+
_this.id = options.id;
|
|
34
|
+
_this.suffixKey = "newPaymentStatus";
|
|
35
|
+
_this.type = "NEW_PAYMENT_STATUS";
|
|
36
|
+
_this.editRender = function (p) {
|
|
37
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
38
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
39
|
+
title: _this.name,
|
|
40
|
+
name: _this.id,
|
|
41
|
+
rules: _this.rules,
|
|
42
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
43
|
+
display: p === null || p === void 0 ? void 0 : p.display,
|
|
44
|
+
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,
|
|
45
|
+
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
46
|
+
placeholder: "自动获取无需填写",
|
|
47
|
+
showSearch: true,
|
|
48
|
+
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
49
|
+
}))
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return _this;
|
|
53
|
+
}
|
|
54
|
+
return _createClass(NewPaymentStatus);
|
|
55
|
+
}(BasicSelect);
|
|
56
|
+
_defineProperty(NewPaymentStatus, "group", "SPECIAL_COMPONENT");
|
|
57
|
+
_defineProperty(NewPaymentStatus, "configSchema", {
|
|
58
|
+
componentConfig: {
|
|
59
|
+
options: [{
|
|
60
|
+
label: "未打款",
|
|
61
|
+
value: "未打款"
|
|
62
|
+
}, {
|
|
63
|
+
label: "审核通过",
|
|
64
|
+
value: "审核通过"
|
|
65
|
+
}, {
|
|
66
|
+
label: "标记已打款",
|
|
67
|
+
value: "标记已打款"
|
|
68
|
+
}, {
|
|
69
|
+
label: "支付宝待付款",
|
|
70
|
+
value: "支付宝待付款"
|
|
71
|
+
}, {
|
|
72
|
+
label: "支付宝打款成功",
|
|
73
|
+
value: "支付宝打款成功"
|
|
74
|
+
}, {
|
|
75
|
+
label: "支付宝打款失败",
|
|
76
|
+
value: "支付宝打款失败"
|
|
77
|
+
}, {
|
|
78
|
+
label: "支付宝打款关闭",
|
|
79
|
+
value: "支付宝打款关闭"
|
|
80
|
+
}],
|
|
81
|
+
status: {
|
|
82
|
+
created: 2,
|
|
83
|
+
upgrade: 2
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
name: "打款状态(勿填)",
|
|
87
|
+
workOrderComponentGroup: "SPECIAL_COMPONENT",
|
|
88
|
+
workOrderComponentType: "NEW_PAYMENT_STATUS",
|
|
89
|
+
uniqueKey: "id8nUMdid7",
|
|
90
|
+
schema: {
|
|
91
|
+
status: {
|
|
92
|
+
widget: "StatusConfig",
|
|
93
|
+
type: "object",
|
|
94
|
+
default: {
|
|
95
|
+
created: SHOW_NOT_WRITE,
|
|
96
|
+
upgrade: SHOW_NOT_WRITE
|
|
97
|
+
},
|
|
98
|
+
props: {
|
|
99
|
+
showOptionsKey: [2, 0]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
_defineProperty(NewPaymentStatus, "type", "NEW_PAYMENT_STATUS");
|
|
105
|
+
export default NewPaymentStatus;
|
|
@@ -18,6 +18,8 @@ declare class NodeDeadLine implements ComponentInterface {
|
|
|
18
18
|
label: string;
|
|
19
19
|
value: string;
|
|
20
20
|
}>;
|
|
21
|
+
static group: string;
|
|
22
|
+
static type: string;
|
|
21
23
|
constructor(options: PickOption);
|
|
22
24
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
25
|
renderLog: () => null;
|
|
@@ -65,7 +65,7 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
|
65
65
|
this.id = options.id;
|
|
66
66
|
this.sortField = options.id;
|
|
67
67
|
this.formField = options.id;
|
|
68
|
-
this.type =
|
|
68
|
+
this.type = 'NODE_DEAD_LINE_INPUT';
|
|
69
69
|
this.componentConfig = options.componentConfig;
|
|
70
70
|
this.effects = options.effects;
|
|
71
71
|
this.dataType = 'string';
|
|
@@ -84,4 +84,6 @@ var NodeDeadLine = /*#__PURE__*/_createClass(function NodeDeadLine(options) {
|
|
|
84
84
|
value: 'NOT_SET'
|
|
85
85
|
}];
|
|
86
86
|
});
|
|
87
|
+
_defineProperty(NodeDeadLine, "group", 'BASIC_FIELD');
|
|
88
|
+
_defineProperty(NodeDeadLine, "type", 'NODE_DEAD_LINE_INPUT');
|
|
87
89
|
export default NodeDeadLine;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ComponentInterface, Record, PickOption } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentInterface, Record, PickOption } from "../../type";
|
|
3
3
|
declare class NodeInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,8 +10,10 @@ declare class NodeInput implements ComponentInterface {
|
|
|
10
10
|
formField: string;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface[
|
|
14
|
-
options: ComponentInterface[
|
|
13
|
+
dataType: ComponentInterface["dataType"];
|
|
14
|
+
options: ComponentInterface["options"];
|
|
15
|
+
static group: string;
|
|
16
|
+
static type: string;
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -5,8 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
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; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
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); }
|
|
8
|
-
import React from
|
|
9
|
-
import { isNull } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
10
|
var NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
|
|
11
11
|
var _this = this;
|
|
12
12
|
_classCallCheck(this, NodeInput);
|
|
@@ -23,11 +23,11 @@ var NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
|
|
|
23
23
|
_defineProperty(this, "options", void 0);
|
|
24
24
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
25
25
|
var _record;
|
|
26
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record :
|
|
26
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--");
|
|
27
27
|
});
|
|
28
28
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
29
29
|
var _record2;
|
|
30
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 :
|
|
30
|
+
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : "--";
|
|
31
31
|
});
|
|
32
32
|
_defineProperty(this, "renderLog", function (r) {
|
|
33
33
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -48,11 +48,13 @@ var NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
|
|
|
48
48
|
this.name = (options === null || options === void 0 ? void 0 : options.name) || "当前步骤";
|
|
49
49
|
this.id = (options === null || options === void 0 ? void 0 : options.id) || "nodeId";
|
|
50
50
|
this.type = "NODE_INPUT";
|
|
51
|
-
this.sortField =
|
|
52
|
-
this.formField =
|
|
51
|
+
this.sortField = "nodeId";
|
|
52
|
+
this.formField = "nodeId";
|
|
53
53
|
this.isCombinationComponent = false;
|
|
54
54
|
this.canSort = false;
|
|
55
55
|
this.children = [];
|
|
56
|
-
this.dataType =
|
|
56
|
+
this.dataType = "string";
|
|
57
57
|
});
|
|
58
|
+
_defineProperty(NodeInput, "group", "BASIC_FIELD");
|
|
59
|
+
_defineProperty(NodeInput, "type", "NODE_INPUT");
|
|
58
60
|
export default NodeInput;
|
|
@@ -14,6 +14,8 @@ declare class NodeStayDuration implements ComponentInterface {
|
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
dataType: ComponentInterface['dataType'];
|
|
17
|
+
static group: string;
|
|
18
|
+
static type: string;
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: () => null;
|
|
@@ -49,7 +49,7 @@ var NodeStayDuration = /*#__PURE__*/_createClass(function NodeStayDuration(optio
|
|
|
49
49
|
this.id = options.id;
|
|
50
50
|
this.sortField = options.id;
|
|
51
51
|
this.formField = options.id;
|
|
52
|
-
this.type =
|
|
52
|
+
this.type = 'NODE_STAY_DURATION_INPUT';
|
|
53
53
|
this.componentConfig = options.componentConfig;
|
|
54
54
|
this.effects = options.effects;
|
|
55
55
|
this.dataType = 'string';
|
|
@@ -58,4 +58,6 @@ var NodeStayDuration = /*#__PURE__*/_createClass(function NodeStayDuration(optio
|
|
|
58
58
|
this.canSort = false;
|
|
59
59
|
this.children = [];
|
|
60
60
|
});
|
|
61
|
+
_defineProperty(NodeStayDuration, "group", 'BASIC_FIELD');
|
|
62
|
+
_defineProperty(NodeStayDuration, "type", 'NODE_STAY_DURATION_INPUT');
|
|
61
63
|
export default NodeStayDuration;
|