@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,78 +8,59 @@ 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 { CommonOrderContent } from "../Common";
|
|
15
|
-
import { CommonMultiStatus as Status } from
|
|
15
|
+
import { CommonMultiStatus as Status } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull, filterFn as _filterFn } from
|
|
17
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
value: '1',
|
|
63
|
-
label: '部分入库',
|
|
64
|
-
color: '#e7780f'
|
|
65
|
-
}, {
|
|
66
|
-
value: '0',
|
|
67
|
-
label: '未入库',
|
|
68
|
-
color: '#ff4d4f'
|
|
69
|
-
}],
|
|
70
|
-
key: 'inStockStatusItemList',
|
|
71
|
-
code: 'inStockStatusList',
|
|
72
|
-
name: '商品入库状态(勿填)',
|
|
73
|
-
type: 2,
|
|
74
|
-
valueKey: 'status',
|
|
75
|
-
idKey: 'systemOrderId',
|
|
76
|
-
failValue: '失败'
|
|
77
|
-
}
|
|
78
|
-
};
|
|
19
|
+
|
|
20
|
+
// const typeMap: Record = {
|
|
21
|
+
// RETURN_GOODS_STATUS: {
|
|
22
|
+
// options: [
|
|
23
|
+
// { value: '成功', label: '成功', color: '#52c41a' },
|
|
24
|
+
// { value: '失败', label: '失败', color: '#ff4d4f' },
|
|
25
|
+
// ],
|
|
26
|
+
// key: 'returnGoodsStatusList',
|
|
27
|
+
// code: 'returnGoodsStatusValue',
|
|
28
|
+
// name: '退货状态',
|
|
29
|
+
// type: 1,
|
|
30
|
+
// valueKey: 'status',
|
|
31
|
+
// idKey: 'systemOrderId',
|
|
32
|
+
// failValue: '失败',
|
|
33
|
+
// },
|
|
34
|
+
// EXCHANGE_STATUS: {
|
|
35
|
+
// options: [
|
|
36
|
+
// { value: '成功', label: '成功', color: '#52c41a' },
|
|
37
|
+
// { value: '失败', label: '失败', color: '#ff4d4f' },
|
|
38
|
+
// ],
|
|
39
|
+
// key: 'exchangeReason',
|
|
40
|
+
// code: 'exchangeStatusValue',
|
|
41
|
+
// name: '换货状态',
|
|
42
|
+
// type: 1,
|
|
43
|
+
// valueKey: 'status',
|
|
44
|
+
// idKey: 'systemOrderId',
|
|
45
|
+
// failValue: '失败',
|
|
46
|
+
// },
|
|
47
|
+
// WAREHOUSING_STATUS: {
|
|
48
|
+
// options: [
|
|
49
|
+
// { value: '2', label: '已入库', color: '#52c41a' },
|
|
50
|
+
// { value: '1', label: '部分入库', color: '#e7780f' },
|
|
51
|
+
// { value: '0', label: '未入库', color: '#ff4d4f' },
|
|
52
|
+
// ],
|
|
53
|
+
// key: 'inStockStatusItemList',
|
|
54
|
+
// code: 'inStockStatusList',
|
|
55
|
+
// name: '商品入库状态(勿填)',
|
|
56
|
+
// type: 2,
|
|
57
|
+
// valueKey: 'status',
|
|
58
|
+
// idKey: 'systemOrderId',
|
|
59
|
+
// failValue: '失败',
|
|
60
|
+
// },
|
|
61
|
+
// };
|
|
79
62
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
80
63
|
var _this = this,
|
|
81
|
-
_typeMap$options$type,
|
|
82
|
-
_typeMap$options$type2,
|
|
83
64
|
_this$componentConfig3;
|
|
84
65
|
_classCallCheck(this, CommonMultiStatus);
|
|
85
66
|
_defineProperty(this, "name", void 0);
|
|
@@ -94,8 +75,15 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
94
75
|
_defineProperty(this, "canSort", void 0);
|
|
95
76
|
_defineProperty(this, "children", void 0);
|
|
96
77
|
_defineProperty(this, "dataType", void 0);
|
|
78
|
+
_defineProperty(this, "suffixKey", void 0);
|
|
79
|
+
_defineProperty(this, "suffixCode", void 0);
|
|
80
|
+
_defineProperty(this, "suffixName", void 0);
|
|
81
|
+
_defineProperty(this, "suffixType", void 0);
|
|
82
|
+
_defineProperty(this, "suffixValueKey", void 0);
|
|
83
|
+
_defineProperty(this, "suffixIdKey", void 0);
|
|
84
|
+
_defineProperty(this, "suffixFailValue", void 0);
|
|
85
|
+
_defineProperty(this, "suffixOptions", void 0);
|
|
97
86
|
_defineProperty(this, "renderClient", function (record) {
|
|
98
|
-
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
99
87
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
100
88
|
return !isNull(item);
|
|
101
89
|
}) : false;
|
|
@@ -104,15 +92,14 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
104
92
|
label: _this.name,
|
|
105
93
|
value: /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
106
94
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
107
|
-
valueKey:
|
|
108
|
-
failValue:
|
|
109
|
-
options:
|
|
95
|
+
valueKey: _this.suffixValueKey,
|
|
96
|
+
failValue: _this.suffixFailValue,
|
|
97
|
+
options: _this.suffixOptions
|
|
110
98
|
})
|
|
111
99
|
}) : null;
|
|
112
100
|
});
|
|
113
101
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
114
|
-
var
|
|
115
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
102
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
116
103
|
//兼容多个商品
|
|
117
104
|
return /*#__PURE__*/React.createElement("span", {
|
|
118
105
|
onClick: function onClick(e) {
|
|
@@ -120,35 +107,31 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
120
107
|
}
|
|
121
108
|
}, /*#__PURE__*/React.createElement(CommonOrderContent, {
|
|
122
109
|
list: list,
|
|
123
|
-
valueKey:
|
|
124
|
-
failValue:
|
|
125
|
-
options:
|
|
110
|
+
valueKey: _this.suffixValueKey,
|
|
111
|
+
failValue: _this.suffixFailValue,
|
|
112
|
+
options: _this.suffixOptions
|
|
126
113
|
}));
|
|
127
114
|
});
|
|
128
115
|
_defineProperty(this, "renderLog", function (r) {
|
|
129
|
-
var
|
|
130
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
|
|
116
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
131
117
|
if (isNull(list)) return null;
|
|
132
118
|
return _this.renderPc(undefined, r);
|
|
133
119
|
});
|
|
134
120
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
135
|
-
|
|
136
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
|
|
121
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
137
122
|
});
|
|
138
123
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
139
|
-
var
|
|
140
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
124
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
|
|
141
125
|
return (list || []).map(function (item) {
|
|
142
|
-
var
|
|
143
|
-
var currentOption = (
|
|
144
|
-
|
|
145
|
-
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
126
|
+
var _this$suffixOptions, _this$suffixOptions$f;
|
|
127
|
+
var currentOption = (_this$suffixOptions = _this.suffixOptions) === null || _this$suffixOptions === void 0 ? void 0 : (_this$suffixOptions$f = _this$suffixOptions.find) === null || _this$suffixOptions$f === void 0 ? void 0 : _this$suffixOptions$f.call(_this$suffixOptions, function (option) {
|
|
128
|
+
return item[_this.suffixValueKey] === option.value;
|
|
146
129
|
});
|
|
147
|
-
return "".concat(item === null || item === void 0 ? void 0 : item[
|
|
148
|
-
}).join(
|
|
130
|
+
return "".concat(item === null || item === void 0 ? void 0 : item[_this.suffixIdKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[_this.suffixValueKey]) || "");
|
|
131
|
+
}).join(",");
|
|
149
132
|
});
|
|
150
133
|
_defineProperty(this, "editRender", function (p) {
|
|
151
|
-
var _this$componentConfig, _this$componentConfig2
|
|
134
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
152
135
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
153
136
|
title: _this.name,
|
|
154
137
|
name: _this.id,
|
|
@@ -157,34 +140,33 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
157
140
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
158
141
|
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,
|
|
159
142
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
160
|
-
type:
|
|
161
|
-
failValue:
|
|
143
|
+
type: _this.suffixType,
|
|
144
|
+
failValue: _this.suffixFailValue
|
|
162
145
|
}))
|
|
163
146
|
});
|
|
164
147
|
});
|
|
165
148
|
_defineProperty(this, "filterConfig", function (item) {
|
|
166
|
-
var
|
|
149
|
+
var _item$templateConfig;
|
|
167
150
|
return {
|
|
168
|
-
searchDefaultConditions: _this.type ===
|
|
151
|
+
searchDefaultConditions: _this.type === "WAREHOUSING_STATUS" ? SYMBOL.in : SYMBOL.like,
|
|
169
152
|
type: item.type,
|
|
170
|
-
id: "".concat(item.id, "_").concat(
|
|
153
|
+
id: "".concat(item.id, "_").concat(_this.suffixCode),
|
|
171
154
|
name: "".concat(_this.name),
|
|
172
|
-
filterComponentType: _this.type ===
|
|
155
|
+
filterComponentType: _this.type === "WAREHOUSING_STATUS" ? "MultipleSelect" : "SelectInput",
|
|
173
156
|
props: {
|
|
174
157
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
175
158
|
fieldNames: {
|
|
176
|
-
label:
|
|
177
|
-
value:
|
|
159
|
+
label: "label",
|
|
160
|
+
value: "value"
|
|
178
161
|
}
|
|
179
162
|
},
|
|
180
163
|
filterFn: function filterFn(value) {
|
|
181
164
|
return function (i) {
|
|
182
|
-
|
|
183
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code), value);
|
|
165
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, _this.suffixCode), value);
|
|
184
166
|
};
|
|
185
167
|
},
|
|
186
|
-
formatFilterValue: _this.type ===
|
|
187
|
-
if (value.type ===
|
|
168
|
+
formatFilterValue: _this.type === "WAREHOUSING_STATUS" ? null : function (value) {
|
|
169
|
+
if (value.type === "keywords") {
|
|
188
170
|
return value.keywords;
|
|
189
171
|
} else {
|
|
190
172
|
return value;
|
|
@@ -194,30 +176,38 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
194
176
|
});
|
|
195
177
|
this.name = options.name;
|
|
196
178
|
this.id = options.id;
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
179
|
+
this.suffixKey = "";
|
|
180
|
+
this.suffixCode = "";
|
|
181
|
+
this.suffixName = "";
|
|
182
|
+
this.suffixType = 0;
|
|
183
|
+
this.suffixValueKey = "";
|
|
184
|
+
this.suffixIdKey = "";
|
|
185
|
+
this.suffixFailValue = "";
|
|
186
|
+
this.suffixOptions = [];
|
|
187
|
+
this.sortField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
188
|
+
this.formField = "".concat(options.id, "_").concat(this.suffixKey);
|
|
199
189
|
this.type = options.type;
|
|
200
190
|
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
201
|
-
options:
|
|
191
|
+
options: this.suffixOptions
|
|
202
192
|
});
|
|
203
193
|
this.isCombinationComponent = false;
|
|
204
194
|
this.canSort = false;
|
|
205
195
|
this.children = [];
|
|
206
|
-
this.dataType =
|
|
196
|
+
this.dataType = "object";
|
|
207
197
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
208
198
|
required: true,
|
|
209
199
|
validator: function validator(_, value) {
|
|
210
200
|
var hasNo = (value || []).some(function (item) {
|
|
211
|
-
|
|
212
|
-
return item[(_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.valueKey];
|
|
201
|
+
return item[_this.suffixValueKey];
|
|
213
202
|
});
|
|
214
203
|
if (!hasNo) {
|
|
215
|
-
|
|
216
|
-
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.name)));
|
|
204
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat(_this.suffixName)));
|
|
217
205
|
}
|
|
218
206
|
return Promise.resolve();
|
|
219
207
|
}
|
|
220
208
|
}] : [];
|
|
221
|
-
this.align =
|
|
209
|
+
this.align = "left";
|
|
222
210
|
});
|
|
211
|
+
_defineProperty(CommonMultiStatus, "group", "BASIC_COMPONENT");
|
|
212
|
+
_defineProperty(CommonMultiStatus, "configSchema", {});
|
|
223
213
|
export default CommonMultiStatus;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import SystemOrder from "./index";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class DeliveryNoList extends SystemOrder {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
name: string;
|
|
10
|
+
uniqueKey: string;
|
|
11
|
+
schema: {
|
|
12
|
+
required: {
|
|
13
|
+
title: string;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
static type: string;
|
|
19
|
+
constructor(options: PickOption);
|
|
20
|
+
}
|
|
21
|
+
export default DeliveryNoList;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import SystemOrder from "./index";
|
|
16
|
+
var DeliveryNoList = /*#__PURE__*/function (_SystemOrder) {
|
|
17
|
+
_inherits(DeliveryNoList, _SystemOrder);
|
|
18
|
+
var _super = _createSuper(DeliveryNoList);
|
|
19
|
+
function DeliveryNoList(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, DeliveryNoList);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_this.suffixKey = "deliveryNoList";
|
|
24
|
+
_this.suffixCode = "deliveryNoIds";
|
|
25
|
+
_this.suffixName = "出库单";
|
|
26
|
+
_this.suffixType = 1;
|
|
27
|
+
_this.suffixValueKey = "deliveryNo";
|
|
28
|
+
_this.type = "BS_DELIVERY_NO";
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return _createClass(DeliveryNoList);
|
|
32
|
+
}(SystemOrder);
|
|
33
|
+
_defineProperty(DeliveryNoList, "group", "THIRD_COMPONENT");
|
|
34
|
+
_defineProperty(DeliveryNoList, "configSchema", {
|
|
35
|
+
componentConfig: {
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
name: "bs出库单编号",
|
|
39
|
+
uniqueKey: "Ul84M4FKvZ",
|
|
40
|
+
schema: {
|
|
41
|
+
required: {
|
|
42
|
+
title: "必填",
|
|
43
|
+
type: "boolean"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(DeliveryNoList, "type", "BS_DELIVERY_NO");
|
|
48
|
+
export default DeliveryNoList;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import SystemOrder from "./index";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class ExchangeTradeId extends SystemOrder {
|
|
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
|
+
};
|
|
18
|
+
};
|
|
19
|
+
static type: string;
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
}
|
|
22
|
+
export default ExchangeTradeId;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import SystemOrder from "./index";
|
|
16
|
+
var ExchangeTradeId = /*#__PURE__*/function (_SystemOrder) {
|
|
17
|
+
_inherits(ExchangeTradeId, _SystemOrder);
|
|
18
|
+
var _super = _createSuper(ExchangeTradeId);
|
|
19
|
+
function ExchangeTradeId(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, ExchangeTradeId);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_this.suffixKey = "tradeItemList";
|
|
24
|
+
_this.suffixCode = "tradeIdList";
|
|
25
|
+
_this.suffixName = "换货单id";
|
|
26
|
+
_this.suffixType = 4;
|
|
27
|
+
_this.suffixValueKey = "billNo";
|
|
28
|
+
_this.type = "EXCHANGE_TRADE_ID";
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return _createClass(ExchangeTradeId);
|
|
32
|
+
}(SystemOrder);
|
|
33
|
+
_defineProperty(ExchangeTradeId, "group", "THIRD_SPECIAL_COMPONENT");
|
|
34
|
+
_defineProperty(ExchangeTradeId, "configSchema", {
|
|
35
|
+
componentConfig: {
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
name: "换货单id",
|
|
39
|
+
belongs: ["bs"],
|
|
40
|
+
uniqueKey: "549c837b31",
|
|
41
|
+
schema: {
|
|
42
|
+
required: {
|
|
43
|
+
title: "必填",
|
|
44
|
+
type: "boolean"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(ExchangeTradeId, "type", "EXCHANGE_TRADE_ID");
|
|
49
|
+
export default ExchangeTradeId;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import SystemOrder from "./index";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class ReturnGoodsTradeItemList extends SystemOrder {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
belongs: string[];
|
|
10
|
+
name: string;
|
|
11
|
+
workOrderComponentGroup: string;
|
|
12
|
+
workOrderComponentType: string;
|
|
13
|
+
uniqueKey: string;
|
|
14
|
+
schema: {
|
|
15
|
+
required: {
|
|
16
|
+
title: string;
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
status: {
|
|
20
|
+
widget: string;
|
|
21
|
+
type: string;
|
|
22
|
+
default: {
|
|
23
|
+
created: number;
|
|
24
|
+
upgrade: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
static type: string;
|
|
30
|
+
constructor(options: PickOption);
|
|
31
|
+
}
|
|
32
|
+
export default ReturnGoodsTradeItemList;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import SystemOrder from "./index";
|
|
16
|
+
import { SHOW_WRITE } from "../../constant";
|
|
17
|
+
var ReturnGoodsTradeItemList = /*#__PURE__*/function (_SystemOrder) {
|
|
18
|
+
_inherits(ReturnGoodsTradeItemList, _SystemOrder);
|
|
19
|
+
var _super = _createSuper(ReturnGoodsTradeItemList);
|
|
20
|
+
function ReturnGoodsTradeItemList(options) {
|
|
21
|
+
var _this;
|
|
22
|
+
_classCallCheck(this, ReturnGoodsTradeItemList);
|
|
23
|
+
_this = _super.call(this, options);
|
|
24
|
+
_this.suffixKey = "returnGoodsTradeItemList";
|
|
25
|
+
_this.suffixCode = "returnGoodsTradeIdList";
|
|
26
|
+
_this.suffixName = "退货单id";
|
|
27
|
+
_this.suffixType = 2;
|
|
28
|
+
_this.suffixValueKey = "returnGoodsTradeId";
|
|
29
|
+
_this.type = "RETURN_GOODS_TRADE_ID";
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return _createClass(ReturnGoodsTradeItemList);
|
|
33
|
+
}(SystemOrder);
|
|
34
|
+
_defineProperty(ReturnGoodsTradeItemList, "group", "THIRD_SPECIAL_COMPONENT");
|
|
35
|
+
_defineProperty(ReturnGoodsTradeItemList, "configSchema", {
|
|
36
|
+
componentConfig: {
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
belongs: ["bs"],
|
|
40
|
+
name: "退货单id(勿填)",
|
|
41
|
+
workOrderComponentGroup: "THIRD_SPECIAL_COMPONENT",
|
|
42
|
+
workOrderComponentType: "RETURN_GOODS_TRADE_ID",
|
|
43
|
+
uniqueKey: "6UdrMM8WCx",
|
|
44
|
+
schema: {
|
|
45
|
+
required: {
|
|
46
|
+
title: "必填",
|
|
47
|
+
type: "boolean"
|
|
48
|
+
},
|
|
49
|
+
status: {
|
|
50
|
+
widget: "StatusConfig",
|
|
51
|
+
type: "object",
|
|
52
|
+
default: {
|
|
53
|
+
created: SHOW_WRITE,
|
|
54
|
+
upgrade: SHOW_WRITE
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(ReturnGoodsTradeItemList, "type", "RETURN_GOODS_TRADE_ID");
|
|
60
|
+
export default ReturnGoodsTradeItemList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import SystemOrder from "./index";
|
|
2
|
+
import { PickOption } from "../../type";
|
|
3
|
+
declare class TradeItemList extends SystemOrder {
|
|
4
|
+
static group: string;
|
|
5
|
+
static configSchema: {
|
|
6
|
+
componentConfig: {
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
belongs: string[];
|
|
10
|
+
name: string;
|
|
11
|
+
isThird: boolean;
|
|
12
|
+
uniqueKey: string;
|
|
13
|
+
schema: {
|
|
14
|
+
required: {
|
|
15
|
+
title: string;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
static type: string;
|
|
21
|
+
constructor(options: PickOption);
|
|
22
|
+
}
|
|
23
|
+
export default TradeItemList;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
import SystemOrder from "./index";
|
|
16
|
+
var TradeItemList = /*#__PURE__*/function (_SystemOrder) {
|
|
17
|
+
_inherits(TradeItemList, _SystemOrder);
|
|
18
|
+
var _super = _createSuper(TradeItemList);
|
|
19
|
+
function TradeItemList(options) {
|
|
20
|
+
var _this;
|
|
21
|
+
_classCallCheck(this, TradeItemList);
|
|
22
|
+
_this = _super.call(this, options);
|
|
23
|
+
_this.suffixKey = "tradeItemList";
|
|
24
|
+
_this.suffixCode = "tradeIdList";
|
|
25
|
+
_this.suffixName = "补发单id";
|
|
26
|
+
_this.suffixType = 3;
|
|
27
|
+
_this.suffixValueKey = "billNo";
|
|
28
|
+
_this.type = "REISSUE_TRADE_ID";
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return _createClass(TradeItemList);
|
|
32
|
+
}(SystemOrder);
|
|
33
|
+
_defineProperty(TradeItemList, "group", "THIRD_SPECIAL_COMPONENT");
|
|
34
|
+
_defineProperty(TradeItemList, "configSchema", {
|
|
35
|
+
componentConfig: {
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
belongs: ["bs", "wdt"],
|
|
39
|
+
name: "补发单id",
|
|
40
|
+
isThird: true,
|
|
41
|
+
uniqueKey: "769940c2ba",
|
|
42
|
+
schema: {
|
|
43
|
+
required: {
|
|
44
|
+
title: "必填",
|
|
45
|
+
type: "boolean"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(TradeItemList, "type", "REISSUE_TRADE_ID");
|
|
50
|
+
export default TradeItemList;
|