@pisell/private-materials 3.2.34 → 3.2.35

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.
Files changed (69) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/appointmentBooking/components/Cart/Item/index.js +4 -2
  8. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  9. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/utils.d.ts +1 -1
  11. package/es/components/appointmentBooking/utils.js +2 -2
  12. package/es/components/booking/components/footer/index.d.ts +0 -1
  13. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  14. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  15. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  16. package/es/components/booking/info/index.d.ts +0 -1
  17. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  18. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  19. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  20. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  21. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  22. package/es/components/eftposPay/amount.d.ts +1 -1
  23. package/es/components/eftposPay/device.d.ts +1 -1
  24. package/es/components/eftposPay/hooks.d.ts +1 -1
  25. package/es/components/eftposPay/store/index.d.ts +2 -2
  26. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  27. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  28. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  29. package/es/components/schedules/utils.d.ts +1 -1
  30. package/es/components/shoppingCart/components/Cart/Product.js +7 -4
  31. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  32. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  33. package/es/components/shoppingCart/status.js +2 -1
  34. package/es/components/shoppingCart/type.d.ts +1 -0
  35. package/es/components/workSpaceListDetail/index.d.ts +4 -0
  36. package/es/components/workSpaceListDetail/server.d.ts +4 -0
  37. package/es/utils/index.d.ts +1 -1
  38. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -2
  39. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  40. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -1
  41. package/lib/components/appointmentBooking/utils.d.ts +1 -1
  42. package/lib/components/appointmentBooking/utils.js +2 -2
  43. package/lib/components/booking/components/footer/index.d.ts +0 -1
  44. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  45. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  46. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  47. package/lib/components/booking/info/index.d.ts +0 -1
  48. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  49. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  50. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  51. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  52. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  53. package/lib/components/eftposPay/amount.d.ts +1 -1
  54. package/lib/components/eftposPay/device.d.ts +1 -1
  55. package/lib/components/eftposPay/hooks.d.ts +1 -1
  56. package/lib/components/eftposPay/store/index.d.ts +2 -2
  57. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  58. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  59. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  60. package/lib/components/schedules/utils.d.ts +1 -1
  61. package/lib/components/shoppingCart/components/Cart/Product.js +9 -4
  62. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  63. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  64. package/lib/components/shoppingCart/status.js +2 -1
  65. package/lib/components/shoppingCart/type.d.ts +1 -0
  66. package/lib/components/workSpaceListDetail/index.d.ts +4 -0
  67. package/lib/components/workSpaceListDetail/server.d.ts +4 -0
  68. package/lib/utils/index.d.ts +1 -1
  69. package/package.json +2 -2
@@ -50,6 +50,7 @@ var CartItem = function CartItem() {
50
50
  });
51
51
  }, [accountLists, isFormSubject]);
52
52
  var holders = useMemo(function () {
53
+ if (isFormSubject) return [];
53
54
  return formatHolder(accountLists);
54
55
  }, [accountLists, isFormSubject]);
55
56
 
@@ -97,7 +98,7 @@ var CartItem = function CartItem() {
97
98
  className: "content"
98
99
  }, /*#__PURE__*/React.createElement(ShoppingCart, {
99
100
  productParams: {
100
- products: formatCarts(carts, resources),
101
+ products: formatCarts(carts, resources, accountLists),
101
102
  hideAddBtn: false,
102
103
  holders: holders,
103
104
  disabledEdit: isLastStep,
@@ -105,7 +106,8 @@ var CartItem = function CartItem() {
105
106
  isShowDelete: (currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key) === 'select-service',
106
107
  isShowPackageNote: false,
107
108
  isShowChangeHolder: isFormSubject && isLogin,
108
- isShowHolder: isFormSubject
109
+ isShowHolder: isFormSubject,
110
+ isShowAddHolderButton: true
109
111
  },
110
112
  collapseParams: {
111
113
  activeKey: holderIds,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ConfirmInformation: () => JSX.Element;
4
3
  export default ConfirmInformation;
@@ -45,7 +45,7 @@ export declare const formatMonthDisplay: (dateString: string) => string;
45
45
  export declare const resourceTitle: (data: any) => any;
46
46
  export declare const formatHolder: (data: any[]) => any[];
47
47
  export declare const formatGuest: (data: any[], products: any) => any[];
48
- export declare const formatCarts: (data: any[], resources: any[]) => any[];
48
+ export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
49
49
  /**
50
50
  * @title: 对资源进行排序
51
51
  * @description:
@@ -132,7 +132,7 @@ export var formatGuest = function formatGuest(data, products) {
132
132
  });
133
133
  });
134
134
  };
135
- export var formatCarts = function formatCarts(data, resources) {
135
+ export var formatCarts = function formatCarts(data, resources, accountLists) {
136
136
  try {
137
137
  // const context = useEngineContext();
138
138
  // const utils = context.appHelper.utils || {};
@@ -161,7 +161,7 @@ export var formatCarts = function formatCarts(data, resources) {
161
161
  resources: currentResources,
162
162
  is_hide_like: true,
163
163
  holder_title: '',
164
- holders: []
164
+ holders: formatHolder(accountLists)
165
165
  });
166
166
  });
167
167
  } catch (error) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: () => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -22,7 +22,8 @@ var Product = function Product(props) {
22
22
  isShowChangeResource = state.isShowChangeResource,
23
23
  isShowDelete = state.isShowDelete,
24
24
  isShowChangeHolder = state.isShowChangeHolder,
25
- isShowHolder = state.isShowHolder;
25
+ isShowHolder = state.isShowHolder,
26
+ isShowAddHolderButton = state.isShowAddHolderButton;
26
27
  var clearCart = useClearCart(id);
27
28
 
28
29
  /**
@@ -45,9 +46,11 @@ var Product = function Product(props) {
45
46
  isShowChangeResource: isShowChangeResource,
46
47
  isShowChangeHolder: isShowChangeHolder,
47
48
  isShowDelete: isShowDelete,
48
- isShowHolder: isShowHolder
49
+ isShowHolder: isShowHolder,
50
+ isShowAddHolderButton: isShowAddHolderButton
49
51
  };
50
- }, [isShowNote, isShowPackageNote, disabledEdit, isShowChangeResource, isShowDelete]);
52
+ }, [isShowNote, isShowPackageNote, disabledEdit, isShowChangeResource, isShowDelete, isShowHolder, isShowAddHolderButton]);
53
+ console.log('productParams', productParams);
51
54
  return /*#__PURE__*/React.createElement("div", {
52
55
  className: "pisell-lowcode__shopping-cart-content"
53
56
  }, clearCart, lists === null || lists === void 0 ? void 0 : lists.map(function (item) {
@@ -80,7 +83,7 @@ var Product = function Product(props) {
80
83
  return handleChange(item, 'change_holder', e);
81
84
  },
82
85
  onAddHolder: function onAddHolder(e) {
83
- return handleChange(item, 'add_holder');
86
+ return handleChange(item, 'add_holder', e);
84
87
  }
85
88
  }, productParams));
86
89
  }), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -11,7 +11,8 @@ var productDefault = {
11
11
  disabledEdit: false,
12
12
  isShowChangeResource: false,
13
13
  isShowChangeHolder: false,
14
- isShowHolder: true
14
+ isShowHolder: true,
15
+ isShowAddHolderButton: false
15
16
  };
16
17
  export var defaultData = {
17
18
  isOpenGroup: true,
@@ -11,6 +11,7 @@ export interface productProps {
11
11
  isShowDelete?: boolean;
12
12
  isShowChangeHolder?: boolean;
13
13
  isShowHolder?: boolean;
14
+ isShowAddHolderButton?: boolean;
14
15
  }
15
16
  export interface shoppingCartProps {
16
17
  isOpenGroup?: boolean;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './index.less';
3
+ declare const WorkSpaceListDetail: FC;
4
+ export default WorkSpaceListDetail;
@@ -0,0 +1,4 @@
1
+ export declare const getStaffList: () => Promise<any>;
2
+ export declare const getProductChannel: () => Promise<any>;
3
+ export declare const getOrderTypes: () => Promise<any>;
4
+ export declare const getPaymentTypes: () => Promise<any>;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
@@ -71,6 +71,7 @@ var CartItem = () => {
71
71
  return accountLists.map((item) => item.id);
72
72
  }, [accountLists, isFormSubject]);
73
73
  const holders = (0, import_react.useMemo)(() => {
74
+ if (isFormSubject) return [];
74
75
  return (0, import_utils2.formatHolder)(accountLists);
75
76
  }, [accountLists, isFormSubject]);
76
77
  const hasGoodPassApp = (0, import_react.useMemo)(() => {
@@ -117,7 +118,7 @@ var CartItem = () => {
117
118
  import_shoppingCart.default,
118
119
  {
119
120
  productParams: {
120
- products: (0, import_utils2.formatCarts)(carts, resources),
121
+ products: (0, import_utils2.formatCarts)(carts, resources, accountLists),
121
122
  hideAddBtn: false,
122
123
  holders,
123
124
  disabledEdit: isLastStep,
@@ -125,7 +126,8 @@ var CartItem = () => {
125
126
  isShowDelete: ((_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key) === "select-service",
126
127
  isShowPackageNote: false,
127
128
  isShowChangeHolder: isFormSubject && isLogin,
128
- isShowHolder: isFormSubject
129
+ isShowHolder: isFormSubject,
130
+ isShowAddHolderButton: true
129
131
  },
130
132
  collapseParams: {
131
133
  activeKey: holderIds,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ConfirmInformation: () => JSX.Element;
4
3
  export default ConfirmInformation;
@@ -45,7 +45,7 @@ export declare const formatMonthDisplay: (dateString: string) => string;
45
45
  export declare const resourceTitle: (data: any) => any;
46
46
  export declare const formatHolder: (data: any[]) => any[];
47
47
  export declare const formatGuest: (data: any[], products: any) => any[];
48
- export declare const formatCarts: (data: any[], resources: any[]) => any[];
48
+ export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
49
49
  /**
50
50
  * @title: 对资源进行排序
51
51
  * @description:
@@ -118,7 +118,7 @@ var formatGuest = (data, products) => {
118
118
  };
119
119
  });
120
120
  };
121
- var formatCarts = (data, resources) => {
121
+ var formatCarts = (data, resources, accountLists) => {
122
122
  try {
123
123
  const locale = "en-US";
124
124
  const symbol = "$";
@@ -143,7 +143,7 @@ var formatCarts = (data, resources) => {
143
143
  resources: currentResources,
144
144
  is_hide_like: true,
145
145
  holder_title: "",
146
- holders: []
146
+ holders: formatHolder(accountLists)
147
147
  };
148
148
  });
149
149
  } catch (error) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const CartItem: () => JSX.Element;
4
3
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -49,7 +49,8 @@ var Product = (props) => {
49
49
  isShowChangeResource,
50
50
  isShowDelete,
51
51
  isShowChangeHolder,
52
- isShowHolder
52
+ isShowHolder,
53
+ isShowAddHolderButton
53
54
  } = state;
54
55
  const clearCart = (0, import_useClearCart.default)(id);
55
56
  const handleChange = (item, type, other) => {
@@ -64,15 +65,19 @@ var Product = (props) => {
64
65
  isShowChangeResource,
65
66
  isShowChangeHolder,
66
67
  isShowDelete,
67
- isShowHolder
68
+ isShowHolder,
69
+ isShowAddHolderButton
68
70
  };
69
71
  }, [
70
72
  isShowNote,
71
73
  isShowPackageNote,
72
74
  disabledEdit,
73
75
  isShowChangeResource,
74
- isShowDelete
76
+ isShowDelete,
77
+ isShowHolder,
78
+ isShowAddHolderButton
75
79
  ]);
80
+ console.log("productParams", productParams);
76
81
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__shopping-cart-content" }, clearCart, lists == null ? void 0 : lists.map((item) => {
77
82
  return /* @__PURE__ */ import_react.default.createElement(
78
83
  import_materials.ProductCard,
@@ -86,7 +91,7 @@ var Product = (props) => {
86
91
  onCard: (e) => handleChange == null ? void 0 : handleChange(e, "view"),
87
92
  onChangeResource: (e) => handleChange(item, "change_resource", e),
88
93
  onChangeHolder: (e) => handleChange(item, "change_holder", e),
89
- onAddHolder: (e) => handleChange(item, "add_holder"),
94
+ onAddHolder: (e) => handleChange(item, "add_holder", e),
90
95
  ...productParams
91
96
  }
92
97
  );
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -45,7 +45,8 @@ var productDefault = {
45
45
  disabledEdit: false,
46
46
  isShowChangeResource: false,
47
47
  isShowChangeHolder: false,
48
- isShowHolder: true
48
+ isShowHolder: true,
49
+ isShowAddHolderButton: false
49
50
  };
50
51
  var defaultData = {
51
52
  isOpenGroup: true,
@@ -11,6 +11,7 @@ export interface productProps {
11
11
  isShowDelete?: boolean;
12
12
  isShowChangeHolder?: boolean;
13
13
  isShowHolder?: boolean;
14
+ isShowAddHolderButton?: boolean;
14
15
  }
15
16
  export interface shoppingCartProps {
16
17
  isOpenGroup?: boolean;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import './index.less';
3
+ declare const WorkSpaceListDetail: FC;
4
+ export default WorkSpaceListDetail;
@@ -0,0 +1,4 @@
1
+ export declare const getStaffList: () => Promise<any>;
2
+ export declare const getProductChannel: () => Promise<any>;
3
+ export declare const getOrderTypes: () => Promise<any>;
4
+ export declare const getPaymentTypes: () => Promise<any>;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };