szld-libs 0.3.76 → 0.3.77

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/lib/mock/index.js CHANGED
@@ -4,25 +4,112 @@ const baseAttrList = [];
4
4
  const attrList = [
5
5
  {
6
6
  xh: 1,
7
- asid: "2F79EF19DBD846D2AD5309E85A436689",
7
+ asid: "2FD08E801868439EA44CC593CA27F745",
8
8
  astype: 0,
9
- tname: "fjffrt_table2",
10
- attrid: "47081ED51BB4407C92070CB7CAA8D056",
11
- attrname: "Dates",
9
+ tname: "jy_table2_time",
10
+ attrid: "6A5984BD547449088172BD33F2A965E8",
11
+ attrname: "预定日期",
12
12
  attrtype: 0,
13
- info: '{"input":"range-picker","dataType":"date","input-width":370,"must":true,"readonly":true}',
13
+ info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true,"must":true}',
14
14
  info_base64: 0,
15
- createtime: "2026-02-11 15:18:12",
15
+ createtime: "2026-02-11 14:27:16",
16
16
  attrvalue: "",
17
17
  serialnum: 1,
18
18
  children: [],
19
19
  json: {
20
20
  input: "range-picker",
21
- dataType: "date",
22
- "input-width": 370,
23
- must: true,
24
- readonly: true
25
- }
21
+ "range-picker-save": "range",
22
+ dataType: "string",
23
+ length: 100,
24
+ "disable-date-goover": true,
25
+ must: true
26
+ },
27
+ attrLangConfig: [
28
+ {
29
+ jxqyglbh: "2579",
30
+ lanid: "2708E89E803144B799E775A763583601",
31
+ sysid: "1",
32
+ sysname: "属性集",
33
+ systype: "",
34
+ pageid: "2FD08E801868439EA44CC593CA27F745",
35
+ pageinfo: "DPQ寄养填写信息",
36
+ dataid: "27638FC5E2BA4FB88AFB0A9CF77558F7",
37
+ datainfo: "接走时间",
38
+ dicid: "10001",
39
+ info: "中文",
40
+ content: "接走时间"
41
+ },
42
+ {
43
+ jxqyglbh: "2580",
44
+ lanid: "FD9D30A5508447F7BFAE158A07F97DA1",
45
+ sysid: "1",
46
+ sysname: "属性集",
47
+ systype: "",
48
+ pageid: "2FD08E801868439EA44CC593CA27F745",
49
+ pageinfo: "DPQ寄养填写信息",
50
+ dataid: "4E507938BE7448E5883CFCD9C962707D",
51
+ datainfo: "送到时间",
52
+ dicid: "10001",
53
+ info: "中文",
54
+ content: "送到时间"
55
+ },
56
+ {
57
+ jxqyglbh: "2582",
58
+ lanid: "DBE02B29F07843678E8684D5A509F8EC",
59
+ sysid: "1",
60
+ sysname: "属性集",
61
+ systype: "",
62
+ pageid: "2FD08E801868439EA44CC593CA27F745",
63
+ pageinfo: "DPQ寄养填写信息",
64
+ dataid: "6A5984BD547449088172BD33F2A965E8",
65
+ datainfo: "预定日期",
66
+ dicid: "10001",
67
+ info: "中文",
68
+ content: "预定日期"
69
+ },
70
+ {
71
+ jxqyglbh: "2804",
72
+ lanid: "13455BEAD2054605AF4E7F2808E065F2",
73
+ sysid: "1",
74
+ sysname: "属性集",
75
+ systype: "",
76
+ pageid: "2FD08E801868439EA44CC593CA27F745",
77
+ pageinfo: "DPQ寄养填写信息2",
78
+ dataid: "6A5984BD547449088172BD33F2A965E8",
79
+ datainfo: "表单Dates",
80
+ dicid: "10001",
81
+ info: "中文",
82
+ content: "日期"
83
+ },
84
+ {
85
+ jxqyglbh: "2805",
86
+ lanid: "6D7CCAE35F3F463CBCDC8F6B3416526C",
87
+ sysid: "1",
88
+ sysname: "属性集",
89
+ systype: "",
90
+ pageid: "2FD08E801868439EA44CC593CA27F745",
91
+ pageinfo: "DPQ寄养填写信息2",
92
+ dataid: "4E507938BE7448E5883CFCD9C962707D",
93
+ datainfo: "表单-到店时间",
94
+ dicid: "10001",
95
+ info: "中文",
96
+ content: "到店时间"
97
+ },
98
+ {
99
+ jxqyglbh: "2807",
100
+ lanid: "FAFC582DC6104CF58A8ADEBDCCDA77A7",
101
+ sysid: "1",
102
+ sysname: "属性集",
103
+ systype: "",
104
+ pageid: "2FD08E801868439EA44CC593CA27F745",
105
+ pageinfo: "DPQ寄养填写信息2",
106
+ dataid: "27638FC5E2BA4FB88AFB0A9CF77558F7",
107
+ datainfo: "表单-离店时间",
108
+ dicid: "10001",
109
+ info: "中文",
110
+ content: "离店时间"
111
+ }
112
+ ]
26
113
  }
27
114
  ];
28
115
  const langConfig = [
@@ -66,3 +66,4 @@ export declare const handleSetTableRowColor: (record: any, index: number | undef
66
66
  backgroundColor: string;
67
67
  };
68
68
  };
69
+ export declare const handleFormatMobileDate: (values: Record<string, any>, format?: string) => Record<string, any>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const dayjs = require("dayjs");
3
4
  const handleGetAttrList = async (params, commonRequest, interfaceType) => {
4
5
  var _a;
5
6
  try {
@@ -64,7 +65,19 @@ const handleSetTableRowColor = (record, index, ngColor) => ({
64
65
  backgroundColor: index !== void 0 && index % 2 === 1 ? (ngColor == null ? void 0 : ngColor[0]) || "var(--bg-color-2)" : (ngColor == null ? void 0 : ngColor[1]) || "var(--bg-color-3)"
65
66
  }
66
67
  });
68
+ const handleFormatMobileDate = (values, format = "YYYY-MM-DD") => {
69
+ Object.entries(values).forEach(([key, value]) => {
70
+ if (Array.isArray(value) && value.length > 0 && value[0] instanceof Date) {
71
+ values[key] = value.map((item) => dayjs(item).format(format));
72
+ }
73
+ if (value instanceof Date) {
74
+ values[key] = dayjs(value).format(format);
75
+ }
76
+ });
77
+ return values;
78
+ };
67
79
  exports.handleCallSupportCode = handleCallSupportCode;
80
+ exports.handleFormatMobileDate = handleFormatMobileDate;
68
81
  exports.handleGetAttrDetail = handleGetAttrDetail;
69
82
  exports.handleGetAttrList = handleGetAttrList;
70
83
  exports.handleGetList = handleGetList;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.76",
4
+ "version": "0.3.77",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",