@pisell/private-materials 6.3.84 → 6.3.86
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +5 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +6 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +154 -0
- package/es/plus/orderList/config.js +786 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +5 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +6 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +154 -0
- package/lib/plus/orderList/config.js +764 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +4 -4
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/plus/orderList/serve.ts
|
|
30
|
+
var serve_exports = {};
|
|
31
|
+
__export(serve_exports, {
|
|
32
|
+
batchAddOrderTags: () => batchAddOrderTags,
|
|
33
|
+
batchDeleteOrderTags: () => batchDeleteOrderTags,
|
|
34
|
+
batchPutOrderStatus: () => batchPutOrderStatus,
|
|
35
|
+
batchVoidedOrder: () => batchVoidedOrder,
|
|
36
|
+
editordership: () => editordership,
|
|
37
|
+
getChannelSelectOptions: () => getChannelSelectOptions,
|
|
38
|
+
getCustomerSelectOptions: () => getCustomerSelectOptions,
|
|
39
|
+
getLocationSelectOptions: () => getLocationSelectOptions,
|
|
40
|
+
getLogisticsSelectOptions: () => getLogisticsSelectOptions,
|
|
41
|
+
getPaymentSelectOptions: () => getPaymentSelectOptions,
|
|
42
|
+
getTagSelectOptions: () => getTagSelectOptions,
|
|
43
|
+
listApi: () => listApi,
|
|
44
|
+
openUrl: () => openUrl,
|
|
45
|
+
postSendInvoice: () => postSendInvoice,
|
|
46
|
+
printPack: () => printPack,
|
|
47
|
+
printPicking: () => printPicking
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(serve_exports);
|
|
50
|
+
var import_utils = require("../../utils");
|
|
51
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
52
|
+
var formatParams = (params) => {
|
|
53
|
+
const { pageNumber, pageSize, orderDate, total_amount, sort_key, ...rest } = params;
|
|
54
|
+
let order_by, sort;
|
|
55
|
+
if (sort_key) {
|
|
56
|
+
const [orderByValue, sortValue] = sort_key.split(":");
|
|
57
|
+
order_by = orderByValue;
|
|
58
|
+
sort = sortValue;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
...rest,
|
|
62
|
+
skip: pageNumber || 1,
|
|
63
|
+
num: pageSize || 10,
|
|
64
|
+
...(orderDate == null ? void 0 : orderDate[0]) && { start_time: (0, import_dayjs.default)(orderDate[0]).format("YYYY-MM-DD") },
|
|
65
|
+
...(orderDate == null ? void 0 : orderDate[1]) && { end_time: (0, import_dayjs.default)(orderDate[1]).format("YYYY-MM-DD") },
|
|
66
|
+
...(total_amount == null ? void 0 : total_amount.min) !== void 0 && { min_total_amount: total_amount.min },
|
|
67
|
+
...(total_amount == null ? void 0 : total_amount.max) !== void 0 && { max_total_amount: total_amount.max },
|
|
68
|
+
...order_by && { order_by },
|
|
69
|
+
...sort && { sort },
|
|
70
|
+
with: [
|
|
71
|
+
"customer",
|
|
72
|
+
"contactsInfo",
|
|
73
|
+
"tag",
|
|
74
|
+
"createAccount",
|
|
75
|
+
"paidPayment",
|
|
76
|
+
"lastEditAccount"
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
var listApi = async (params) => {
|
|
81
|
+
const res = await import_utils.request.getRequest().post(`/shop/order/v2/list`, formatParams(params), { abort: true, fullResult: true, isShopApi: true });
|
|
82
|
+
return res == null ? void 0 : res.data;
|
|
83
|
+
};
|
|
84
|
+
var getCustomerSelectOptions = async (params) => {
|
|
85
|
+
var _a;
|
|
86
|
+
const res = await import_utils.request.getRequest().get(`/shop/customer`, { search: params, skip: 1, num: 100 }, { abort: true, fullResult: true, isShopApi: true });
|
|
87
|
+
return ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.list) || [];
|
|
88
|
+
};
|
|
89
|
+
var getTagSelectOptions = async (params) => {
|
|
90
|
+
var _a;
|
|
91
|
+
const res = await import_utils.request.getRequest().get(`/shop/order/tag`, { name: params, skip: 1, num: 100 }, { abort: true, fullResult: true, isShopApi: true });
|
|
92
|
+
return ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.list) || [];
|
|
93
|
+
};
|
|
94
|
+
var getChannelSelectOptions = async (params) => {
|
|
95
|
+
const res = await import_utils.request.getRequest().get(`/shop/product/channel`, {}, { abort: true, fullResult: true, isShopApi: true });
|
|
96
|
+
return res == null ? void 0 : res.data;
|
|
97
|
+
};
|
|
98
|
+
var getPaymentSelectOptions = async (params) => {
|
|
99
|
+
const res = await import_utils.request.getRequest().get(`/shop/pay/custom-payment/shop`, {}, { abort: true, fullResult: true, isShopApi: true });
|
|
100
|
+
return res == null ? void 0 : res.data;
|
|
101
|
+
};
|
|
102
|
+
var getLogisticsSelectOptions = async (params) => {
|
|
103
|
+
const res = await import_utils.request.getRequest().get(`/shop/order/logistics-company`, {}, { abort: true, fullResult: true, isShopApi: true });
|
|
104
|
+
return res == null ? void 0 : res.data;
|
|
105
|
+
};
|
|
106
|
+
var getLocationSelectOptions = async (params) => {
|
|
107
|
+
const res = await import_utils.request.getRequest().get(`/shop/shop/location`, {}, { abort: true, fullResult: true, isShopApi: true });
|
|
108
|
+
return res == null ? void 0 : res.data;
|
|
109
|
+
};
|
|
110
|
+
var channelModules = (biz) => {
|
|
111
|
+
return {};
|
|
112
|
+
};
|
|
113
|
+
var editordership = (params) => {
|
|
114
|
+
return import_utils.request.getRequest().post("/shop/order/order/shipments", { ...params, ...channelModules() }, { isShopApi: true });
|
|
115
|
+
};
|
|
116
|
+
var postSendInvoice = (params) => {
|
|
117
|
+
return import_utils.request.getRequest().post("/shop/order/send-order-invoice", { ...params, ...channelModules() }, { isShopApi: true });
|
|
118
|
+
};
|
|
119
|
+
var openUrl = (host, url, shopId, ids) => {
|
|
120
|
+
let str = (ids || []).reduce((str2, item) => str2 + "&order_ids[]=" + item, "");
|
|
121
|
+
try {
|
|
122
|
+
const _host = host || (app == null ? void 0 : app.request.getConfig().getUrl({ url: "", config: { isShopApi: true } }));
|
|
123
|
+
const previewPrefix = "/shop";
|
|
124
|
+
const prefix = _host.indexOf(previewPrefix) !== -1 ? "" : previewPrefix;
|
|
125
|
+
window.open(
|
|
126
|
+
`${_host}${prefix}${url}?shop_id=${shopId}${str}`
|
|
127
|
+
);
|
|
128
|
+
} catch (err) {
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
var printPack = (params) => {
|
|
132
|
+
return openUrl("", "/order/print/packing", params.shop_id, params.ids);
|
|
133
|
+
};
|
|
134
|
+
var printPicking = (params) => {
|
|
135
|
+
return openUrl("", "/order/print/picking", params.shop_id, params.ids);
|
|
136
|
+
};
|
|
137
|
+
var batchAddOrderTags = (params) => {
|
|
138
|
+
return import_utils.request.getRequest().post("/shop/order/order/tag", {
|
|
139
|
+
status: "attach",
|
|
140
|
+
...params
|
|
141
|
+
}, {
|
|
142
|
+
isShopApi: true
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
var batchDeleteOrderTags = (params) => {
|
|
146
|
+
return import_utils.request.getRequest().post("/shop/order/order/tag", {
|
|
147
|
+
status: "detach",
|
|
148
|
+
...params
|
|
149
|
+
}, {
|
|
150
|
+
isShopApi: true
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
var batchVoidedOrder = (params) => {
|
|
154
|
+
return import_utils.request.getRequest().post("/shop/order/manual-voided", { ...params, ...channelModules() }, { isShopApi: true });
|
|
155
|
+
};
|
|
156
|
+
var batchPutOrderStatus = (params) => import_utils.request.getRequest().put("/shop/order/update-status", { order_ids: params.order_ids, status: params.status, is_void: params.is_void, ...channelModules() }, {
|
|
157
|
+
isShopApi: true
|
|
158
|
+
});
|
|
159
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
160
|
+
0 && (module.exports = {
|
|
161
|
+
batchAddOrderTags,
|
|
162
|
+
batchDeleteOrderTags,
|
|
163
|
+
batchPutOrderStatus,
|
|
164
|
+
batchVoidedOrder,
|
|
165
|
+
editordership,
|
|
166
|
+
getChannelSelectOptions,
|
|
167
|
+
getCustomerSelectOptions,
|
|
168
|
+
getLocationSelectOptions,
|
|
169
|
+
getLogisticsSelectOptions,
|
|
170
|
+
getPaymentSelectOptions,
|
|
171
|
+
getTagSelectOptions,
|
|
172
|
+
listApi,
|
|
173
|
+
openUrl,
|
|
174
|
+
postSendInvoice,
|
|
175
|
+
printPack,
|
|
176
|
+
printPicking
|
|
177
|
+
});
|
|
@@ -129,10 +129,10 @@ var SKUOptionsSelection = (0, import_react.forwardRef)((props, ref) => {
|
|
|
129
129
|
value: selectorValue,
|
|
130
130
|
onChange: (values) => {
|
|
131
131
|
var _a;
|
|
132
|
-
console.log("
|
|
132
|
+
console.log("selector_onChange_values>>>>>>>", values);
|
|
133
133
|
import_store.actions.updateSelectorValue(values);
|
|
134
134
|
const transformValue = (0, import_utils2.transformSelectorValueToValue)(values);
|
|
135
|
-
console.log("
|
|
135
|
+
console.log("selector_onChange_transformValue>>>>>>>", transformValue);
|
|
136
136
|
(_a = props == null ? void 0 : props.onChange) == null ? void 0 : _a.call(props, transformValue);
|
|
137
137
|
},
|
|
138
138
|
style: props == null ? void 0 : props.style,
|
|
@@ -88,7 +88,8 @@ var transformSelectorValueToValue = (selectorValue) => {
|
|
|
88
88
|
_newData.option.push({ ...(_itemDataItem == null ? void 0 : _itemDataItem.data) || {} });
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
|
|
91
|
+
const _restPricePrefix = (rest == null ? void 0 : rest.price_type) === "markdown" ? -1 : 1;
|
|
92
|
+
_newData.price = totalPrice.plus(new import_decimal.default((rest == null ? void 0 : rest.price) || 0).times(_restPricePrefix)).toString();
|
|
92
93
|
_newData.original_price = _newData == null ? void 0 : _newData.price;
|
|
93
94
|
_newData.original_total = _newData == null ? void 0 : _newData.price;
|
|
94
95
|
_newData.quantity = (_item == null ? void 0 : _item.quantity) || 0;
|
|
@@ -97,7 +98,12 @@ var transformSelectorValueToValue = (selectorValue) => {
|
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
} else {
|
|
100
|
-
|
|
101
|
+
const _newData = { ...(item == null ? void 0 : item.data) || {} };
|
|
102
|
+
const _pricePrefix = (_newData == null ? void 0 : _newData.price_type) === "markdown" ? -1 : 1;
|
|
103
|
+
_newData.price = new import_decimal.default((_newData == null ? void 0 : _newData.price) || 0).times(_pricePrefix).toString();
|
|
104
|
+
_newData.original_price = _newData == null ? void 0 : _newData.price;
|
|
105
|
+
_newData.original_total = _newData == null ? void 0 : _newData.price;
|
|
106
|
+
transformValue.bundle.push(_newData);
|
|
101
107
|
}
|
|
102
108
|
});
|
|
103
109
|
});
|
|
@@ -163,6 +169,7 @@ var transformSelectorValueToValue = (selectorValue) => {
|
|
|
163
169
|
}
|
|
164
170
|
}
|
|
165
171
|
}
|
|
172
|
+
console.log("transformSelectorValueToValue>>>>>", transformValue);
|
|
166
173
|
return transformValue;
|
|
167
174
|
};
|
|
168
175
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(transformValueToSelectorValue_exports);
|
|
|
35
35
|
var import_decimal = __toESM(require("decimal.js"));
|
|
36
36
|
var transformValueToSelectorValue = (value, dataSource) => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
38
|
+
console.log("transformValueToSelectorValue_value>>>>>>>", value);
|
|
38
39
|
if (!value || !dataSource || ((_a = Object.keys(value || {})) == null ? void 0 : _a.length) === 0 || ((_b = Object.keys(dataSource || {})) == null ? void 0 : _b.length) === 0) {
|
|
39
40
|
return {};
|
|
40
41
|
}
|
|
@@ -158,6 +159,7 @@ var createBundleValue = (v, dataSource) => {
|
|
|
158
159
|
if (!_createdValue) {
|
|
159
160
|
return null;
|
|
160
161
|
}
|
|
162
|
+
let totalQuantity = 0;
|
|
161
163
|
(_d = (_c = v == null ? void 0 : v.bundleOptions) == null ? void 0 : _c.forEach) == null ? void 0 : _d.call(_c, (v1) => {
|
|
162
164
|
var _a2, _b2;
|
|
163
165
|
if ((_a2 = v1 == null ? void 0 : v1.option) == null ? void 0 : _a2.length) {
|
|
@@ -170,12 +172,14 @@ var createBundleValue = (v, dataSource) => {
|
|
|
170
172
|
});
|
|
171
173
|
_createdValue.data._data = _data;
|
|
172
174
|
}
|
|
173
|
-
|
|
174
|
-
const _pricePrefix = (findedBundleItem == null ? void 0 : findedBundleItem.price_type) === "markdown" ? -1 : 1;
|
|
175
|
+
totalQuantity = totalQuantity + ((v1 == null ? void 0 : v1.quantity) || 0);
|
|
175
176
|
_createdValue.totalPrice = new import_decimal.default(_createdValue.totalPrice || 0).plus(
|
|
176
|
-
new import_decimal.default((v1 == null ? void 0 : v1.price) || 0).times((v1 == null ? void 0 : v1.quantity) || 1)
|
|
177
|
+
new import_decimal.default((v1 == null ? void 0 : v1.price) || 0).times((v1 == null ? void 0 : v1.quantity) || 1)
|
|
177
178
|
).toNumber();
|
|
178
179
|
});
|
|
180
|
+
_createdValue.quantity = totalQuantity;
|
|
181
|
+
_createdValue.data.quantity = totalQuantity;
|
|
182
|
+
_createdValue.data.num = totalQuantity;
|
|
179
183
|
return _createdValue;
|
|
180
184
|
};
|
|
181
185
|
var createOptionValue = (v, bundleItem) => {
|
|
@@ -9,7 +9,7 @@ const EcoCustomerListMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/private-materials",
|
|
12
|
-
"version": "6.
|
|
12
|
+
"version": "6.3.85",
|
|
13
13
|
"exportName": "EcoCustomerList",
|
|
14
14
|
"main": "src/index.ts",
|
|
15
15
|
"destructuring": true,
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* OrderList 组件 LowCode Meta 配置
|
|
5
|
+
* @description 订单列表组件,集成了数据源容器、表格展示、筛选、排序、分页等功能
|
|
6
|
+
*/
|
|
7
|
+
const OrderListMeta: ComponentMetadata = {
|
|
8
|
+
componentName: 'OrderList',
|
|
9
|
+
title: '订单列表',
|
|
10
|
+
docUrl: '',
|
|
11
|
+
screenshot: '',
|
|
12
|
+
devMode: 'proCode',
|
|
13
|
+
npm: {
|
|
14
|
+
package: '@pisell/private-materials',
|
|
15
|
+
version: '1.0.4',
|
|
16
|
+
exportName: 'OrderList',
|
|
17
|
+
main: 'src/index.ts',
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: '',
|
|
20
|
+
},
|
|
21
|
+
configure: {
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
title: {
|
|
25
|
+
label: {
|
|
26
|
+
type: 'i18n',
|
|
27
|
+
'en-US': 'business_code',
|
|
28
|
+
'zh-CN': '业务代码',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
name: 'business_code',
|
|
32
|
+
description: '业务代码,用于标识订单所属的业务类型',
|
|
33
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
34
|
+
isRequired: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title: {
|
|
38
|
+
label: {
|
|
39
|
+
type: 'i18n',
|
|
40
|
+
'en-US': 'className',
|
|
41
|
+
'zh-CN': '类名',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
name: 'className',
|
|
45
|
+
description: '自定义类名',
|
|
46
|
+
setter: ['StringSetter', 'VariableSetter'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: {
|
|
50
|
+
label: {
|
|
51
|
+
type: 'i18n',
|
|
52
|
+
'en-US': 'style',
|
|
53
|
+
'zh-CN': '样式',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
name: 'style',
|
|
57
|
+
description: '自定义样式',
|
|
58
|
+
setter: ['StyleSetter', 'VariableSetter'],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
supports: {
|
|
62
|
+
style: true,
|
|
63
|
+
className: true,
|
|
64
|
+
},
|
|
65
|
+
component: {
|
|
66
|
+
isContainer: false,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const snippets: Snippet[] = [
|
|
72
|
+
{
|
|
73
|
+
title: '订单列表',
|
|
74
|
+
screenshot: '',
|
|
75
|
+
schema: {
|
|
76
|
+
componentName: 'OrderList',
|
|
77
|
+
props: {
|
|
78
|
+
business_code: 'default_business',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
...OrderListMeta,
|
|
86
|
+
snippets,
|
|
87
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.86",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@alilc/lowcode-react-renderer": "^1.1.7",
|
|
15
15
|
"@alilc/lowcode-types": "1.1.7",
|
|
16
16
|
"@alilc/lowcode-utils": "1.1.6",
|
|
17
|
-
"@pisell/build-plugin-lowcode": "^1.0.
|
|
17
|
+
"@pisell/build-plugin-lowcode": "^1.0.13",
|
|
18
18
|
"@storybook/addon-essentials": "^7.6.19",
|
|
19
19
|
"@storybook/addon-interactions": "^7.6.19",
|
|
20
20
|
"@storybook/addon-links": "^7.6.19",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
-
"@pisell/icon": "0.0.11",
|
|
80
|
-
"@pisell/materials": "6.3.23",
|
|
81
79
|
"@pisell/utils": "3.0.5",
|
|
80
|
+
"@pisell/materials": "6.3.24",
|
|
81
|
+
"@pisell/icon": "0.0.11",
|
|
82
82
|
"@pisell/date-picker": "3.0.8"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|