widget.qw 1.0.38 → 1.0.40

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/.env.development CHANGED
@@ -1,6 +1,6 @@
1
1
  NODE_ENV ='development'
2
2
 
3
- VITE_DOMAIN= 'https://www.hbhjhx.asia'
3
+ VITE_DOMAIN= 'http://www.zjpsjdsb.online'
4
4
  VITE_TOKEN_KEY='Authorization'
5
5
  VITE_TOKEN_PREFIX='Bearer '
6
6
  VITE_NEED_LOGIN_CODE=401
package/build/style.css CHANGED
@@ -1,36 +1,36 @@
1
- @charset "UTF-8";.widget[data-v-56f52460] {
1
+ @charset "UTF-8";.widget[data-v-3d293c3a] {
2
2
  text-align: center;
3
3
  padding: 15px 15px;
4
4
  }
5
- .memo[data-v-56f52460] {
5
+ .memo[data-v-3d293c3a] {
6
6
  margin-bottom: 15px;
7
7
  }
8
- .refuse-btn[data-v-56f52460] {
8
+ .refuse-btn[data-v-3d293c3a] {
9
9
  width: 120px;
10
10
  margin-right: 15px;
11
11
  }
12
- .pass-btn[data-v-56f52460] {
12
+ .pass-btn[data-v-3d293c3a] {
13
13
  width: 120px;
14
14
  }
15
- .apply-btn[data-v-56f52460] {
15
+ .apply-btn[data-v-3d293c3a] {
16
16
  width: 60vw;
17
17
  }
18
- .task-list[data-v-56f52460] {
18
+ .task-list[data-v-3d293c3a] {
19
19
  margin-top: 15px;
20
20
  }
21
- .task-title[data-v-56f52460] {
21
+ .task-title[data-v-3d293c3a] {
22
22
  font-size: 14px;
23
23
  font-weight: bold;
24
24
  color: #333;
25
25
  text-align: left;
26
26
  }
27
- .task-user[data-v-56f52460] {
27
+ .task-user[data-v-3d293c3a] {
28
28
  font-size: 13px;
29
29
  color: #666;
30
30
  text-align: left;
31
31
  margin-top: 5px;
32
32
  }
33
- .audit-title[data-v-56f52460] {
33
+ .audit-title[data-v-3d293c3a] {
34
34
  padding: 25px 15px 0 15px;
35
35
  font-size: 16px;
36
36
  font-weight: bold;
@@ -15755,7 +15755,7 @@ var lodash$1 = { exports: {} };
15755
15755
  }).call(commonjsGlobal);
15756
15756
  })(lodash$1, lodash$1.exports);
15757
15757
  var lodash = lodash$1.exports;
15758
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-56f52460] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-56f52460] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-56f52460] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-56f52460] {\n width: 120px;\n}\n.apply-btn[data-v-56f52460] {\n width: 60vw;\n}\n.task-list[data-v-56f52460] {\n margin-top: 15px;\n}\n.task-title[data-v-56f52460] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-56f52460] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-56f52460] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15758
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-3d293c3a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-3d293c3a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-3d293c3a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-3d293c3a] {\n width: 120px;\n}\n.apply-btn[data-v-3d293c3a] {\n width: 60vw;\n}\n.task-list[data-v-3d293c3a] {\n margin-top: 15px;\n}\n.task-title[data-v-3d293c3a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-3d293c3a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-3d293c3a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15759
15759
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15760
15760
  var _export_sfc = (sfc, props) => {
15761
15761
  const target = sfc.__vccOpts || sfc;
@@ -15870,6 +15870,7 @@ const _sfc_main$u = {
15870
15870
  emit("auth", res);
15871
15871
  };
15872
15872
  const getAuth = (fieldAuth) => {
15873
+ console.log("+++ getAuth +++++++++++++", fieldAuth);
15873
15874
  let defaultCondition = "readonly";
15874
15875
  if (!fieldAuth) {
15875
15876
  return defaultCondition;
@@ -15992,7 +15993,7 @@ const _sfc_main$u = {
15992
15993
  }), {
15993
15994
  immediate: true
15994
15995
  });
15995
- watch(() => props.form, () => __async(this, null, function* () {
15996
+ watch(() => JSON.stringify(props.form), () => __async(this, null, function* () {
15996
15997
  if (!data2.stepAuth)
15997
15998
  return;
15998
15999
  yield queryDetail();
@@ -16079,7 +16080,7 @@ const _sfc_main$u = {
16079
16080
  };
16080
16081
  }
16081
16082
  };
16082
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-56f52460"]]);
16083
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-3d293c3a"]]);
16083
16084
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16084
16085
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16085
16086
  const isDef = (val) => typeof val !== "undefined";
@@ -15758,7 +15758,7 @@ var __async = (__this, __arguments, generator) => {
15758
15758
  }).call(commonjsGlobal);
15759
15759
  })(lodash$1, lodash$1.exports);
15760
15760
  var lodash = lodash$1.exports;
15761
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-56f52460] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-56f52460] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-56f52460] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-56f52460] {\n width: 120px;\n}\n.apply-btn[data-v-56f52460] {\n width: 60vw;\n}\n.task-list[data-v-56f52460] {\n margin-top: 15px;\n}\n.task-title[data-v-56f52460] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-56f52460] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-56f52460] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15761
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-3d293c3a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-3d293c3a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-3d293c3a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-3d293c3a] {\n width: 120px;\n}\n.apply-btn[data-v-3d293c3a] {\n width: 60vw;\n}\n.task-list[data-v-3d293c3a] {\n margin-top: 15px;\n}\n.task-title[data-v-3d293c3a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-3d293c3a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-3d293c3a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15762
15762
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15763
15763
  var _export_sfc = (sfc, props) => {
15764
15764
  const target = sfc.__vccOpts || sfc;
@@ -15873,6 +15873,7 @@ var __async = (__this, __arguments, generator) => {
15873
15873
  emit("auth", res);
15874
15874
  };
15875
15875
  const getAuth = (fieldAuth) => {
15876
+ console.log("+++ getAuth +++++++++++++", fieldAuth);
15876
15877
  let defaultCondition = "readonly";
15877
15878
  if (!fieldAuth) {
15878
15879
  return defaultCondition;
@@ -15995,7 +15996,7 @@ var __async = (__this, __arguments, generator) => {
15995
15996
  }), {
15996
15997
  immediate: true
15997
15998
  });
15998
- vue.watch(() => props.form, () => __async(this, null, function* () {
15999
+ vue.watch(() => JSON.stringify(props.form), () => __async(this, null, function* () {
15999
16000
  if (!data2.stepAuth)
16000
16001
  return;
16001
16002
  yield queryDetail();
@@ -16082,7 +16083,7 @@ var __async = (__this, __arguments, generator) => {
16082
16083
  };
16083
16084
  }
16084
16085
  };
16085
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-56f52460"]]);
16086
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-3d293c3a"]]);
16086
16087
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16087
16088
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16088
16089
  const isDef = (val) => typeof val !== "undefined";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.38",
4
+ "version": "1.0.40",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -137,6 +137,7 @@ const updateAuth = () => {
137
137
 
138
138
  // 根据条件列表获取权限
139
139
  const getAuth = (fieldAuth) => {
140
+ console.log('+++ getAuth +++++++++++++', fieldAuth)
140
141
  // 默认权限: 只读
141
142
  let defaultCondition = 'readonly'
142
143
 
@@ -274,7 +275,7 @@ watch(() => props.mouldId, async () => {
274
275
  await updateCanApply()
275
276
  }, { immediate: true })
276
277
 
277
- watch(() => props.form, async () => {
278
+ watch(() => JSON.stringify(props.form), async () => {
278
279
  if (!data.stepAuth)
279
280
  return
280
281
 
@@ -9,14 +9,283 @@
9
9
  import { onMounted, reactive } from "vue";
10
10
 
11
11
  const data = reactive({
12
- processId: 962, // 流程ID
12
+ processId: 46, // 流程ID
13
13
  // processId: null, // 流程ID
14
- mouldId: 4, // 模板ID
15
- userId: '014391',
14
+ mouldId: 70, // 模板ID
15
+ userId: 'HouMuXiaoHao',
16
16
  form:{
17
- userId: 'houmu',
18
- reason: '',
19
- areas:['base']
17
+ "createTime": "2025-08-30 16:11:59",
18
+ "updateTime": "2025-08-30 16:11:59",
19
+ "id": "JGYlNy5l",
20
+ "no": "250830001",
21
+ "processId": 46,
22
+ "projectId": "qWnOdjlZ",
23
+ "applicantId": "HouMu",
24
+ "partId": "gUxSbWTX",
25
+ "stageId": "5dnwEcR1",
26
+ "jobId": "kLhCnx6j",
27
+ "workerId": "HouMuXiaoHao",
28
+ "files": [
29
+ "http://www.zjpsjdsb.online/static//i9zX2twr.jpg"
30
+ ],
31
+ "price": 100.00,
32
+ "endTime": "2025-08-30 16:11:42",
33
+ "isPenalty": true,
34
+ "remark": "",
35
+ "isCancel": false,
36
+ "salaryId": null,
37
+ "project": {
38
+ "createTime": "2025-08-24 14:08:30",
39
+ "updateTime": "2025-08-24 14:08:30",
40
+ "id": "qWnOdjlZ",
41
+ "name": "银沙滩",
42
+ "files": null,
43
+ "price": 100000.00,
44
+ "pay": 10000.00,
45
+ "pays": [
46
+ {
47
+ "label": "首付款",
48
+ "value": 10000.00,
49
+ "time": "2025-08-27 11:26:17"
50
+ }
51
+ ],
52
+ "missions": [
53
+ {
54
+ "id": "eec37433",
55
+ "title": "点工",
56
+ "amount": 1000.00,
57
+ "finishAmount": 18.00,
58
+ "unit": "小时",
59
+ "unitPrice": 30.00,
60
+ "dayMax": 18.00
61
+ },
62
+ {
63
+ "id": "eec2a5d3",
64
+ "title": "卸货",
65
+ "amount": 2000.00,
66
+ "finishAmount": 0.00,
67
+ "unit": "个",
68
+ "unitPrice": 20.00,
69
+ "dayMax": 50.00
70
+ }
71
+ ],
72
+ "managerIds": [
73
+ "HouMu"
74
+ ],
75
+ "workerIds": [
76
+ "HouMu",
77
+ "HouMuXiaoHao",
78
+ "LiuXiaoYu"
79
+ ],
80
+ "remark": null
81
+ },
82
+ "applicant": {
83
+ "createTime": "2025-08-22 11:39:58",
84
+ "updateTime": "2025-08-22 11:39:58",
85
+ "userid": "HouMu",
86
+ "name": "侯木",
87
+ "position": "大工",
88
+ "gender": "",
89
+ "mainDepartment": "2",
90
+ "deptIds": [
91
+ "2"
92
+ ],
93
+ "mobile": null,
94
+ "telephone": "",
95
+ "avatar": "",
96
+ "address": "",
97
+ "status": 1,
98
+ "isleader": 0,
99
+ "idCardNo": null,
100
+ "salary": 100.00,
101
+ "roleIds": [
102
+ "项目经理",
103
+ "admin"
104
+ ]
105
+ },
106
+ "part": {
107
+ "createTime": "2025-08-26 11:07:27",
108
+ "updateTime": "2025-08-26 11:07:27",
109
+ "id": "gUxSbWTX",
110
+ "projectId": "qWnOdjlZ",
111
+ "treeCode": "01-01-02-01-02",
112
+ "level": 5,
113
+ "parentId": "bgNDb1vZ",
114
+ "name": "外机",
115
+ "quantity": 1,
116
+ "hasChildren": false,
117
+ "type": "空调",
118
+ "isOwnerModified": false,
119
+ "remark": null,
120
+ "state": "已开始",
121
+ "formatName": "外机空调",
122
+ "children": null,
123
+ "path": "1栋>1单元>12层>1201室>外机空调",
124
+ "paths": null
125
+ },
126
+ "stage": {
127
+ "createTime": "2025-08-26 11:09:10",
128
+ "updateTime": "2025-08-26 11:09:10",
129
+ "id": "5dnwEcR1",
130
+ "projectId": "qWnOdjlZ",
131
+ "partId": "gUxSbWTX",
132
+ "name": "连接外机喇叭口",
133
+ "orderIndex": 1,
134
+ "state": "已完成",
135
+ "quantity": 1,
136
+ "finishQuantity": 1,
137
+ "remainQuantity": 0,
138
+ "unitPrice": 1.00,
139
+ "remark": null
140
+ },
141
+ "job": {
142
+ "createTime": "2025-08-30 16:04:56",
143
+ "updateTime": "2025-08-30 16:04:56",
144
+ "id": "kLhCnx6j",
145
+ "projectId": "qWnOdjlZ",
146
+ "partId": "gUxSbWTX",
147
+ "stageId": "5dnwEcR1",
148
+ "workerId": "HouMuXiaoHao",
149
+ "finishQuantity": 1,
150
+ "unitPrice": 1.00,
151
+ "pay": 1.00,
152
+ "images": [],
153
+ "remark": "",
154
+ "salaryId": null,
155
+ "worker": {
156
+ "createTime": "2025-08-22 11:39:58",
157
+ "updateTime": "2025-08-22 11:39:58",
158
+ "userid": "HouMuXiaoHao",
159
+ "name": "侯木小号",
160
+ "position": "小工",
161
+ "gender": "",
162
+ "mainDepartment": "2",
163
+ "deptIds": [
164
+ "2"
165
+ ],
166
+ "mobile": null,
167
+ "telephone": "",
168
+ "avatar": "",
169
+ "address": "",
170
+ "status": 1,
171
+ "isleader": 0,
172
+ "idCardNo": null,
173
+ "salary": 1000.00,
174
+ "roleIds": [
175
+ "项目经理"
176
+ ]
177
+ },
178
+ "project": {
179
+ "createTime": "2025-08-24 14:08:30",
180
+ "updateTime": "2025-08-24 14:08:30",
181
+ "id": "qWnOdjlZ",
182
+ "name": "银沙滩",
183
+ "files": null,
184
+ "price": 100000.00,
185
+ "pay": 10000.00,
186
+ "pays": [
187
+ {
188
+ "label": "首付款",
189
+ "value": 10000.00,
190
+ "time": "2025-08-27 11:26:17"
191
+ }
192
+ ],
193
+ "missions": [
194
+ {
195
+ "id": "eec37433",
196
+ "title": "点工",
197
+ "amount": 1000.00,
198
+ "finishAmount": 18.00,
199
+ "unit": "小时",
200
+ "unitPrice": 30.00,
201
+ "dayMax": 18.00
202
+ },
203
+ {
204
+ "id": "eec2a5d3",
205
+ "title": "卸货",
206
+ "amount": 2000.00,
207
+ "finishAmount": 0.00,
208
+ "unit": "个",
209
+ "unitPrice": 20.00,
210
+ "dayMax": 50.00
211
+ }
212
+ ],
213
+ "managerIds": [
214
+ "HouMu"
215
+ ],
216
+ "workerIds": [
217
+ "HouMu",
218
+ "HouMuXiaoHao",
219
+ "LiuXiaoYu"
220
+ ],
221
+ "remark": null
222
+ }
223
+ },
224
+ "worker": {
225
+ "createTime": "2025-08-22 11:39:58",
226
+ "updateTime": "2025-08-22 11:39:58",
227
+ "userid": "HouMuXiaoHao",
228
+ "name": "侯木小号",
229
+ "position": "小工",
230
+ "gender": "",
231
+ "mainDepartment": "2",
232
+ "deptIds": [
233
+ "2"
234
+ ],
235
+ "mobile": null,
236
+ "telephone": "",
237
+ "avatar": "",
238
+ "address": "",
239
+ "status": 1,
240
+ "isleader": 0,
241
+ "idCardNo": null,
242
+ "salary": 1000.00,
243
+ "roleIds": [
244
+ "项目经理"
245
+ ]
246
+ },
247
+ "process": {
248
+ "id": 46,
249
+ "formId": "JGYlNy5l",
250
+ "formNo": "250830001",
251
+ "templateId": 238,
252
+ "mouldId": 70,
253
+ "mouldTitle": "整改单",
254
+ "startUserId": "HouMu",
255
+ "startUserName": "侯木",
256
+ "form": {
257
+ "id": "JGYlNy5l",
258
+ "no": "250830001",
259
+ "files": [
260
+ "http://www.zjpsjdsb.online/static//i9zX2twr.jpg"
261
+ ],
262
+ "jobId": "kLhCnx6j",
263
+ "price": 100,
264
+ "partId": "gUxSbWTX",
265
+ "remark": "",
266
+ "endTime": "2025-08-30 16:11:42",
267
+ "stageId": "5dnwEcR1",
268
+ "isCancel": false,
269
+ "salaryId": null,
270
+ "workerId": "HouMuXiaoHao",
271
+ "creatorId": null,
272
+ "isPenalty": true,
273
+ "processId": 46,
274
+ "projectId": "qWnOdjlZ",
275
+ "updaterId": "HouMu",
276
+ "createTime": "2025-08-30 16:11:59",
277
+ "updateTime": "2025-08-30 16:11:59",
278
+ "applicantId": "HouMu"
279
+ },
280
+ "state": "started",
281
+ "finishedAt": null,
282
+ "createdAt": "2025-08-30 16:11:59",
283
+ "updatedAt": "2025-08-30 16:19:12",
284
+ "deletedAt": null,
285
+ "loginUserState": "started",
286
+ "loginUserStateLabel": "待审核",
287
+ "stateLabel": "进行中"
288
+ }
20
289
  }
21
290
  })
22
291