@pisell/private-materials 3.0.128 → 3.0.130

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.
@@ -115,7 +115,7 @@ var Single = function Single(_ref) {
115
115
  // 手机号
116
116
  if (field.filed_type === "customer_phone") {
117
117
  if (val) {
118
- return "(+".concat(val.country_calling_code, ") ").concat(val.phone);
118
+ return "".concat(val.country_calling_code && "(+".concat(val.country_calling_code, ")"), " ").concat(val.phone || "");
119
119
  }
120
120
  }
121
121
  if (field.filed_type === "body_hotspot_image") {
@@ -86,7 +86,7 @@ var useClientFn = function useClientFn(_params) {
86
86
  franchisee_customer_ids: customer_ids
87
87
  } : {
88
88
  customer_ids: customer_ids
89
- }), !state.isFranchisee ? {
89
+ }), !state.isFranchisee && !returnResult ? {
90
90
  _config: {
91
91
  abort: true
92
92
  }
@@ -190,12 +190,12 @@ export declare const backUpProduction: (payload: Partial<State>) => {
190
190
  export declare const backUpFree: (payload: Partial<State>) => {
191
191
  type: EActionTypes;
192
192
  payload: {
193
- mode?: "refund" | "pay" | "query" | undefined;
193
+ mode?: "pay" | "refund" | "query" | undefined;
194
194
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "eftpos" | undefined;
195
195
  key?: number | undefined;
196
196
  step?: number | undefined;
197
197
  title?: string | undefined;
198
- type?: "unset" | "step" | undefined;
198
+ type?: "step" | "unset" | undefined;
199
199
  render?: boolean | undefined;
200
200
  component?: string | undefined;
201
201
  lastComponent?: string | undefined;
@@ -104,7 +104,7 @@ var Single = ({
104
104
  }
105
105
  if (field.filed_type === "customer_phone") {
106
106
  if (val) {
107
- return `(+${val.country_calling_code}) ${val.phone}`;
107
+ return `${val.country_calling_code && `(+${val.country_calling_code})`} ${val.phone || ""}`;
108
108
  }
109
109
  }
110
110
  if (field.filed_type === "body_hotspot_image") {
@@ -80,7 +80,7 @@ var useClientFn = (_params) => {
80
80
  const data = await api({
81
81
  ...resetParams,
82
82
  ...state.isFranchisee ? { franchisee_customer_ids: customer_ids } : { customer_ids },
83
- ...!state.isFranchisee ? { _config: { abort: true } } : {}
83
+ ...!state.isFranchisee && !returnResult ? { _config: { abort: true } } : {}
84
84
  });
85
85
  const list = ((data == null ? void 0 : data.list) || []).map((d) => {
86
86
  var _a2;
@@ -190,12 +190,12 @@ export declare const backUpProduction: (payload: Partial<State>) => {
190
190
  export declare const backUpFree: (payload: Partial<State>) => {
191
191
  type: EActionTypes;
192
192
  payload: {
193
- mode?: "refund" | "pay" | "query" | undefined;
193
+ mode?: "pay" | "refund" | "query" | undefined;
194
194
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "eftpos" | undefined;
195
195
  key?: number | undefined;
196
196
  step?: number | undefined;
197
197
  title?: string | undefined;
198
- type?: "unset" | "step" | undefined;
198
+ type?: "step" | "unset" | undefined;
199
199
  render?: boolean | undefined;
200
200
  component?: string | undefined;
201
201
  lastComponent?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.128",
3
+ "version": "3.0.130",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
+ "@pisell/materials": "3.0.44",
63
64
  "@pisell/icon": "0.0.11",
64
- "@pisell/date-picker": "1.0.99",
65
- "@pisell/materials": "3.0.43"
65
+ "@pisell/date-picker": "1.0.99"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",