widget.qw 1.0.54 → 1.0.56

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/style.css CHANGED
@@ -1,36 +1,36 @@
1
- @charset "UTF-8";.widget[data-v-28f3c354] {
1
+ @charset "UTF-8";.widget[data-v-1e9a1a8a] {
2
2
  text-align: center;
3
3
  padding: 15px 15px;
4
4
  }
5
- .memo[data-v-28f3c354] {
5
+ .memo[data-v-1e9a1a8a] {
6
6
  margin-bottom: 15px;
7
7
  }
8
- .refuse-btn[data-v-28f3c354] {
8
+ .refuse-btn[data-v-1e9a1a8a] {
9
9
  width: 120px;
10
10
  margin-right: 15px;
11
11
  }
12
- .pass-btn[data-v-28f3c354] {
12
+ .pass-btn[data-v-1e9a1a8a] {
13
13
  width: 120px;
14
14
  }
15
- .apply-btn[data-v-28f3c354] {
15
+ .apply-btn[data-v-1e9a1a8a] {
16
16
  width: 60vw;
17
17
  }
18
- .task-list[data-v-28f3c354] {
18
+ .task-list[data-v-1e9a1a8a] {
19
19
  margin-top: 15px;
20
20
  }
21
- .task-title[data-v-28f3c354] {
21
+ .task-title[data-v-1e9a1a8a] {
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-28f3c354] {
27
+ .task-user[data-v-1e9a1a8a] {
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-28f3c354] {
33
+ .audit-title[data-v-1e9a1a8a] {
34
34
  padding: 25px 15px 0 15px;
35
35
  font-size: 16px;
36
36
  font-weight: bold;
@@ -840,13 +840,13 @@
840
840
  }
841
841
  .widget .readonly-field[data-v-0c8e09c0] {
842
842
  margin: 4px 0;
843
- }.widget[data-v-c76ccd6e] {
843
+ }.widget[data-v-60000b36] {
844
844
  background: #fff;
845
845
  box-sizing: border-box;
846
846
  height: 100%;
847
847
  text-align: left;
848
848
  }
849
- .widget .option[data-v-c76ccd6e] {
849
+ .widget .option[data-v-60000b36] {
850
850
  margin: 0 8px 8px 0;
851
851
  padding: 5px 5px;
852
852
  border-radius: 4px;
@@ -855,6 +855,6 @@
855
855
  display: inline-block;
856
856
  position: relative;
857
857
  }
858
- [data-v-c76ccd6e] .van-field__label {
858
+ [data-v-60000b36] .van-field__label {
859
859
  margin: auto;
860
860
  }
@@ -3309,6 +3309,13 @@ const qw_department_children = (data2) => {
3309
3309
  data: data2
3310
3310
  });
3311
3311
  };
3312
+ const reform_detail = (data2) => {
3313
+ return service$3({
3314
+ url: vm.urlCallback() + "/ac-api/reform/detail",
3315
+ method: "POST",
3316
+ data: data2
3317
+ });
3318
+ };
3312
3319
  var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3313
3320
  __proto__: null,
3314
3321
  process_can_apply,
@@ -3327,7 +3334,8 @@ var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
3327
3334
  auth_get_user_info,
3328
3335
  part_children,
3329
3336
  part_detail,
3330
- qw_department_children
3337
+ qw_department_children,
3338
+ reform_detail
3331
3339
  }, Symbol.toStringTag, { value: "Module" }));
3332
3340
  function noop() {
3333
3341
  }
@@ -15766,7 +15774,7 @@ var lodash$1 = { exports: {} };
15766
15774
  }).call(commonjsGlobal);
15767
15775
  })(lodash$1, lodash$1.exports);
15768
15776
  var lodash = lodash$1.exports;
15769
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-28f3c354] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-28f3c354] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-28f3c354] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-28f3c354] {\n width: 120px;\n}\n.apply-btn[data-v-28f3c354] {\n width: 60vw;\n}\n.task-list[data-v-28f3c354] {\n margin-top: 15px;\n}\n.task-title[data-v-28f3c354] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-28f3c354] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-28f3c354] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15777
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1e9a1a8a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-1e9a1a8a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-1e9a1a8a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-1e9a1a8a] {\n width: 120px;\n}\n.apply-btn[data-v-1e9a1a8a] {\n width: 60vw;\n}\n.task-list[data-v-1e9a1a8a] {\n margin-top: 15px;\n}\n.task-title[data-v-1e9a1a8a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-1e9a1a8a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-1e9a1a8a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15770
15778
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15771
15779
  var _export_sfc = (sfc, props) => {
15772
15780
  const target = sfc.__vccOpts || sfc;
@@ -15835,6 +15843,9 @@ const _sfc_main$v = {
15835
15843
  };
15836
15844
  });
15837
15845
  });
15846
+ const canApply = computed(() => {
15847
+ return !data2.process.id && data2.canApply;
15848
+ });
15838
15849
  const canPass = computed(() => {
15839
15850
  return data2.process && data2.process.id && data2.process.canPass;
15840
15851
  });
@@ -15876,7 +15887,7 @@ const _sfc_main$v = {
15876
15887
  const res = yield util.process_detail(params);
15877
15888
  if (res.code != 200)
15878
15889
  return;
15879
- if (params.processId != props.processId && props.processId && !params.processId)
15890
+ if (params.id != props.processId && props.processId && !params.id)
15880
15891
  return;
15881
15892
  data2.process = res.data;
15882
15893
  });
@@ -15898,8 +15909,6 @@ const _sfc_main$v = {
15898
15909
  return;
15899
15910
  if (params.userId != props.userId && props.user && !params.userId)
15900
15911
  return;
15901
- if (params.form != props.form && !params.form && props.form)
15902
- return;
15903
15912
  data2.stepAuth = res.data;
15904
15913
  updateAuth();
15905
15914
  });
@@ -15952,8 +15961,6 @@ const _sfc_main$v = {
15952
15961
  return;
15953
15962
  if (params.userId != props.userId && props.userId && !params.userId)
15954
15963
  return;
15955
- if (params.form != props.form && !params.form && props.form)
15956
- return;
15957
15964
  data2.canApply = res.data;
15958
15965
  });
15959
15966
  const formatTitle = (task) => {
@@ -16090,7 +16097,7 @@ const _sfc_main$v = {
16090
16097
  }, {
16091
16098
  default: withCtx(() => [_hoisted_3$a]),
16092
16099
  _: 1
16093
- })) : createCommentVNode("", true), data2.canApply ? (openBlock(), createBlock(_component_van_button, {
16100
+ })) : createCommentVNode("", true), unref(canApply) ? (openBlock(), createBlock(_component_van_button, {
16094
16101
  key: 3,
16095
16102
  class: "apply-btn",
16096
16103
  type: "primary",
@@ -16125,7 +16132,7 @@ const _sfc_main$v = {
16125
16132
  };
16126
16133
  }
16127
16134
  };
16128
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-28f3c354"]]);
16135
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1e9a1a8a"]]);
16129
16136
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16130
16137
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16131
16138
  const isDef = (val) => typeof val !== "undefined";
@@ -20918,7 +20925,7 @@ const _sfc_main$1 = {
20918
20925
  }
20919
20926
  };
20920
20927
  var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
20921
- var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-c76ccd6e] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-c76ccd6e] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-c76ccd6e] .van-field__label {\n margin: auto;\n}")();
20928
+ var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-60000b36] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-60000b36] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-60000b36] .van-field__label {\n margin: auto;\n}")();
20922
20929
  const _hoisted_1 = {
20923
20930
  class: "widget"
20924
20931
  };
@@ -21022,7 +21029,6 @@ const _sfc_main = {
21022
21029
  let formatValues = v.map((e) => {
21023
21030
  let kvs = Object.keys(e).map((k) => {
21024
21031
  var _a2, _b2, _c2, _d2;
21025
- console.log("1111111");
21026
21032
  console.log(props.schema[key]);
21027
21033
  console.log(key);
21028
21034
  console.log(v);
@@ -21213,7 +21219,7 @@ const _sfc_main = {
21213
21219
  };
21214
21220
  }
21215
21221
  };
21216
- var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c76ccd6e"]]);
21222
+ var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60000b36"]]);
21217
21223
  const secret_notify = () => {
21218
21224
  showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
21219
21225
  };
@@ -3312,6 +3312,13 @@ var __async = (__this, __arguments, generator) => {
3312
3312
  data: data2
3313
3313
  });
3314
3314
  };
3315
+ const reform_detail = (data2) => {
3316
+ return service$3({
3317
+ url: vm.urlCallback() + "/ac-api/reform/detail",
3318
+ method: "POST",
3319
+ data: data2
3320
+ });
3321
+ };
3315
3322
  var ApiUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3316
3323
  __proto__: null,
3317
3324
  process_can_apply,
@@ -3330,7 +3337,8 @@ var __async = (__this, __arguments, generator) => {
3330
3337
  auth_get_user_info,
3331
3338
  part_children,
3332
3339
  part_detail,
3333
- qw_department_children
3340
+ qw_department_children,
3341
+ reform_detail
3334
3342
  }, Symbol.toStringTag, { value: "Module" }));
3335
3343
  function noop() {
3336
3344
  }
@@ -15769,7 +15777,7 @@ var __async = (__this, __arguments, generator) => {
15769
15777
  }).call(commonjsGlobal);
15770
15778
  })(lodash$1, lodash$1.exports);
15771
15779
  var lodash = lodash$1.exports;
15772
- var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-28f3c354] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-28f3c354] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-28f3c354] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-28f3c354] {\n width: 120px;\n}\n.apply-btn[data-v-28f3c354] {\n width: 60vw;\n}\n.task-list[data-v-28f3c354] {\n margin-top: 15px;\n}\n.task-title[data-v-28f3c354] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-28f3c354] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-28f3c354] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15780
+ var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1e9a1a8a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-1e9a1a8a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-1e9a1a8a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-1e9a1a8a] {\n width: 120px;\n}\n.apply-btn[data-v-1e9a1a8a] {\n width: 60vw;\n}\n.task-list[data-v-1e9a1a8a] {\n margin-top: 15px;\n}\n.task-title[data-v-1e9a1a8a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-1e9a1a8a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-1e9a1a8a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
15773
15781
  var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
15774
15782
  var _export_sfc = (sfc, props) => {
15775
15783
  const target = sfc.__vccOpts || sfc;
@@ -15838,6 +15846,9 @@ var __async = (__this, __arguments, generator) => {
15838
15846
  };
15839
15847
  });
15840
15848
  });
15849
+ const canApply = vue.computed(() => {
15850
+ return !data2.process.id && data2.canApply;
15851
+ });
15841
15852
  const canPass = vue.computed(() => {
15842
15853
  return data2.process && data2.process.id && data2.process.canPass;
15843
15854
  });
@@ -15879,7 +15890,7 @@ var __async = (__this, __arguments, generator) => {
15879
15890
  const res = yield util.process_detail(params);
15880
15891
  if (res.code != 200)
15881
15892
  return;
15882
- if (params.processId != props.processId && props.processId && !params.processId)
15893
+ if (params.id != props.processId && props.processId && !params.id)
15883
15894
  return;
15884
15895
  data2.process = res.data;
15885
15896
  });
@@ -15901,8 +15912,6 @@ var __async = (__this, __arguments, generator) => {
15901
15912
  return;
15902
15913
  if (params.userId != props.userId && props.user && !params.userId)
15903
15914
  return;
15904
- if (params.form != props.form && !params.form && props.form)
15905
- return;
15906
15915
  data2.stepAuth = res.data;
15907
15916
  updateAuth();
15908
15917
  });
@@ -15955,8 +15964,6 @@ var __async = (__this, __arguments, generator) => {
15955
15964
  return;
15956
15965
  if (params.userId != props.userId && props.userId && !params.userId)
15957
15966
  return;
15958
- if (params.form != props.form && !params.form && props.form)
15959
- return;
15960
15967
  data2.canApply = res.data;
15961
15968
  });
15962
15969
  const formatTitle = (task) => {
@@ -16093,7 +16100,7 @@ var __async = (__this, __arguments, generator) => {
16093
16100
  }, {
16094
16101
  default: vue.withCtx(() => [_hoisted_3$a]),
16095
16102
  _: 1
16096
- })) : vue.createCommentVNode("", true), data2.canApply ? (vue.openBlock(), vue.createBlock(_component_van_button, {
16103
+ })) : vue.createCommentVNode("", true), vue.unref(canApply) ? (vue.openBlock(), vue.createBlock(_component_van_button, {
16097
16104
  key: 3,
16098
16105
  class: "apply-btn",
16099
16106
  type: "primary",
@@ -16128,7 +16135,7 @@ var __async = (__this, __arguments, generator) => {
16128
16135
  };
16129
16136
  }
16130
16137
  };
16131
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-28f3c354"]]);
16138
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1e9a1a8a"]]);
16132
16139
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16133
16140
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16134
16141
  const isDef = (val) => typeof val !== "undefined";
@@ -20921,7 +20928,7 @@ var __async = (__this, __arguments, generator) => {
20921
20928
  }
20922
20929
  };
20923
20930
  var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
20924
- var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-c76ccd6e] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-c76ccd6e] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-c76ccd6e] .van-field__label {\n margin: auto;\n}")();
20931
+ var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-60000b36] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-60000b36] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-60000b36] .van-field__label {\n margin: auto;\n}")();
20925
20932
  const _hoisted_1 = {
20926
20933
  class: "widget"
20927
20934
  };
@@ -21025,7 +21032,6 @@ var __async = (__this, __arguments, generator) => {
21025
21032
  let formatValues = v.map((e) => {
21026
21033
  let kvs = Object.keys(e).map((k) => {
21027
21034
  var _a2, _b2, _c2, _d2;
21028
- console.log("1111111");
21029
21035
  console.log(props.schema[key]);
21030
21036
  console.log(key);
21031
21037
  console.log(v);
@@ -21216,7 +21222,7 @@ var __async = (__this, __arguments, generator) => {
21216
21222
  };
21217
21223
  }
21218
21224
  };
21219
- var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c76ccd6e"]]);
21225
+ var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60000b36"]]);
21220
21226
  const secret_notify = () => {
21221
21227
  showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
21222
21228
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.54",
4
+ "version": "1.0.56",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
package/src/api/index.js CHANGED
@@ -147,4 +147,12 @@ export const qw_department_children = (data) => {
147
147
  method: "POST",
148
148
  data: data,
149
149
  })
150
+ }
151
+
152
+ export const reform_detail = (data) => {
153
+ return request_json({
154
+ url: vm.urlCallback() + "/ac-api/reform/detail",
155
+ method: "POST",
156
+ data: data,
157
+ })
150
158
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  <van-button v-if="canPass" class="pass-btn" type="primary" native-type="submit" @click="onPass">提交</van-button>
13
13
 
14
- <van-button class="apply-btn" v-if="data.canApply" type="primary" native-type="submit"
14
+ <van-button class="apply-btn" v-if="canApply" type="primary" native-type="submit"
15
15
  @click="onApply">申请</van-button>
16
16
 
17
17
  <div class="audit-title" v-if="data.process && data.process.id">{{ formatProcessTitle }}</div>
@@ -75,6 +75,11 @@ const formatPrevSteps = computed(() => {
75
75
  }
76
76
  })
77
77
  })
78
+
79
+ const canApply = computed(()=>{
80
+ return !data.process.id && data.canApply
81
+ })
82
+
78
83
  const canPass = computed(() => {
79
84
  return data.process && data.process.id && data.process.canPass
80
85
  })
@@ -131,7 +136,7 @@ const queryDetail = async () => {
131
136
 
132
137
  //防止网络请求先发后返回
133
138
  //参数变化时,扔掉返回
134
- if (params.processId != props.processId && props.processId && !params.processId)
139
+ if (params.id != props.processId && props.processId && !params.id)
135
140
  return
136
141
 
137
142
  data.process = res.data
@@ -162,9 +167,6 @@ const queryStepAuth = async () => {
162
167
  if (params.userId != props.userId && props.user && !params.userId)
163
168
  return
164
169
 
165
- if (params.form != props.form && !params.form && props.form)
166
- return
167
-
168
170
  data.stepAuth = res.data
169
171
 
170
172
  updateAuth()
@@ -236,9 +238,6 @@ const updateCanApply = async () => {
236
238
  if (params.userId != props.userId && props.userId && !params.userId)
237
239
  return
238
240
 
239
- if (params.form != props.form && !params.form && props.form)
240
- return
241
-
242
241
  data.canApply = res.data
243
242
  }
244
243
 
@@ -147,7 +147,6 @@ const key2value = (key, item) => {
147
147
  if (Array.isArray(v)) {
148
148
  let formatValues = v.map(e => {
149
149
  let kvs = Object.keys(e).map(k => {
150
- console.log('1111111')
151
150
  console.log(props.schema[key])
152
151
  console.log(key)
153
152
  console.log(v)
@@ -7,288 +7,32 @@
7
7
 
8
8
  <script setup>
9
9
  import { onMounted, reactive } from "vue";
10
+ import util from '@/util'
10
11
 
11
12
  const data = reactive({
12
- processId: 46, // 流程ID
13
- // processId: null, // 流程ID
13
+ // processId: 46, // 流程ID
14
+ processId: 0, // 流程ID
14
15
  mouldId: 70, // 模板ID
15
16
  userId: 'HouMuXiaoHao',
16
- form:{
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
- }
289
- }
17
+ form:null
290
18
  })
291
19
 
20
+ onMounted(()=>{
21
+ query()
22
+ })
23
+
24
+ const query = async () => {
25
+ console.log("-------------------query.id-----------------------", util.getQueryParams().id);
26
+ let id = util.getQueryParams().id.toString() || '';
27
+ console.log("-------------------id-----------------------", id);
28
+ let res = await util.reform_detail({ id });
29
+ console.log("-------------------TargetData-----------------------", res);
30
+ if (res.code == 200) {
31
+ data.processId = res.data.processId
32
+ data.form = res.data
33
+ }
34
+ }
35
+
292
36
  const onApply = (e) => {
293
37
  console.log('onApply',e)
294
38
  // e: {