widget.qw 1.0.29 → 1.0.30

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-5ad893b4] {
1
+ @charset "UTF-8";.widget[data-v-6ce090e6] {
2
2
  text-align: center;
3
3
  padding: 15px 15px;
4
4
  }
5
- .memo[data-v-5ad893b4] {
5
+ .memo[data-v-6ce090e6] {
6
6
  margin-bottom: 15px;
7
7
  }
8
- .refuse-btn[data-v-5ad893b4] {
8
+ .refuse-btn[data-v-6ce090e6] {
9
9
  width: 120px;
10
10
  margin-right: 15px;
11
11
  }
12
- .pass-btn[data-v-5ad893b4] {
12
+ .pass-btn[data-v-6ce090e6] {
13
13
  width: 120px;
14
14
  }
15
- .apply-btn[data-v-5ad893b4] {
15
+ .apply-btn[data-v-6ce090e6] {
16
16
  width: 60vw;
17
17
  }
18
- .task-list[data-v-5ad893b4] {
18
+ .task-list[data-v-6ce090e6] {
19
19
  margin-top: 15px;
20
20
  }
21
- .task-title[data-v-5ad893b4] {
21
+ .task-title[data-v-6ce090e6] {
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-5ad893b4] {
27
+ .task-user[data-v-6ce090e6] {
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-5ad893b4] {
33
+ .audit-title[data-v-6ce090e6] {
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-5ad893b4] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-5ad893b4] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-5ad893b4] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-5ad893b4] {\n width: 120px;\n}\n.apply-btn[data-v-5ad893b4] {\n width: 60vw;\n}\n.task-list[data-v-5ad893b4] {\n margin-top: 15px;\n}\n.task-title[data-v-5ad893b4] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-5ad893b4] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-5ad893b4] {\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-6ce090e6] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-6ce090e6] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-6ce090e6] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-6ce090e6] {\n width: 120px;\n}\n.apply-btn[data-v-6ce090e6] {\n width: 60vw;\n}\n.task-list[data-v-6ce090e6] {\n margin-top: 15px;\n}\n.task-title[data-v-6ce090e6] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-6ce090e6] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-6ce090e6] {\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;
@@ -15992,7 +15992,7 @@ const _sfc_main$u = {
15992
15992
  }), {
15993
15993
  immediate: true
15994
15994
  });
15995
- watch(() => JSON.stringify(props.form), () => __async(this, null, function* () {
15995
+ watch(() => props.form, () => __async(this, null, function* () {
15996
15996
  if (!data2.stepAuth)
15997
15997
  return;
15998
15998
  queryDetail();
@@ -16001,6 +16001,8 @@ const _sfc_main$u = {
16001
16001
  updateCanApply();
16002
16002
  }), {
16003
16003
  immediate: true
16004
+ }, {
16005
+ deep: true
16004
16006
  });
16005
16007
  return (_ctx, _cache) => {
16006
16008
  const _component_van_field = resolveComponent("van-field");
@@ -16077,7 +16079,7 @@ const _sfc_main$u = {
16077
16079
  };
16078
16080
  }
16079
16081
  };
16080
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5ad893b4"]]);
16082
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-6ce090e6"]]);
16081
16083
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16082
16084
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16083
16085
  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-5ad893b4] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-5ad893b4] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-5ad893b4] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-5ad893b4] {\n width: 120px;\n}\n.apply-btn[data-v-5ad893b4] {\n width: 60vw;\n}\n.task-list[data-v-5ad893b4] {\n margin-top: 15px;\n}\n.task-title[data-v-5ad893b4] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-5ad893b4] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-5ad893b4] {\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-6ce090e6] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-6ce090e6] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-6ce090e6] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-6ce090e6] {\n width: 120px;\n}\n.apply-btn[data-v-6ce090e6] {\n width: 60vw;\n}\n.task-list[data-v-6ce090e6] {\n margin-top: 15px;\n}\n.task-title[data-v-6ce090e6] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-6ce090e6] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-6ce090e6] {\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;
@@ -15995,7 +15995,7 @@ var __async = (__this, __arguments, generator) => {
15995
15995
  }), {
15996
15996
  immediate: true
15997
15997
  });
15998
- vue.watch(() => JSON.stringify(props.form), () => __async(this, null, function* () {
15998
+ vue.watch(() => props.form, () => __async(this, null, function* () {
15999
15999
  if (!data2.stepAuth)
16000
16000
  return;
16001
16001
  queryDetail();
@@ -16004,6 +16004,8 @@ var __async = (__this, __arguments, generator) => {
16004
16004
  updateCanApply();
16005
16005
  }), {
16006
16006
  immediate: true
16007
+ }, {
16008
+ deep: true
16007
16009
  });
16008
16010
  return (_ctx, _cache) => {
16009
16011
  const _component_van_field = vue.resolveComponent("van-field");
@@ -16080,7 +16082,7 @@ var __async = (__this, __arguments, generator) => {
16080
16082
  };
16081
16083
  }
16082
16084
  };
16083
- var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-5ad893b4"]]);
16085
+ var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-6ce090e6"]]);
16084
16086
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
16085
16087
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
16086
16088
  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.29",
4
+ "version": "1.0.30",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -11,7 +11,8 @@
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" @click="onApply">申请</van-button>
14
+ <van-button class="apply-btn" v-if="data.canApply" type="primary" native-type="submit"
15
+ @click="onApply">申请</van-button>
15
16
 
16
17
  <div class="audit-title" v-if="data.process && data.process.id">{{ formatProcessTitle }}</div>
17
18
 
@@ -37,7 +38,7 @@ const props = defineProps({
37
38
  mouldId: Number,
38
39
  userId: String,
39
40
  form: Object,
40
- process_detail:Function,
41
+ process_detail: Function,
41
42
  })
42
43
  const emit = defineEmits(['pass', 'refuse', 'apply', 'auth'])
43
44
  const data = reactive({
@@ -110,7 +111,7 @@ const queryDetail = async () => {
110
111
  }
111
112
 
112
113
  const queryStepAuth = async () => {
113
- if(!props.processId && !props.mouldId)
114
+ if (!props.processId && !props.mouldId)
114
115
  return
115
116
 
116
117
  const params = {
@@ -215,21 +216,21 @@ const formatTitle = (task) => {
215
216
 
216
217
  const formatExecutor = (executor, task) => {
217
218
  let action = ''
218
- let username =''
219
+ let username = ''
219
220
  let memo = executor.memo
220
221
  if (executor.state == 'pass') {
221
222
  if (task.category == 'notify')
222
- action = `已抄送 ${executor.updatedAt}`
223
+ action = `已抄送 ${executor.updatedAt}`
223
224
  else
224
225
  action = `已审核 ${executor.updatedAt}`
225
- }else if(data.process.state == 'finish_refuse'){
226
+ } else if (data.process.state == 'finish_refuse') {
226
227
  action = `已撤销 ${executor.updatedAt}`
227
228
  } else if (executor.state == 'refuse') {
228
229
  action = `已驳回 ${executor.updatedAt}`
229
230
  }
230
231
 
231
- if(executor.user.name!=executor.submiterName && executor.submiterName)
232
- username =`${executor.user.name}/${executor.submiterName}`
232
+ if (executor.user.name != executor.submiterName && executor.submiterName)
233
+ username = `${executor.user.name}/${executor.submiterName}`
233
234
  else
234
235
  username = `${executor.user.name}`
235
236
 
@@ -273,7 +274,7 @@ watch(() => props.mouldId, async () => {
273
274
  updateCanApply()
274
275
  }, { immediate: true })
275
276
 
276
- watch(() => JSON.stringify(props.form), async () => {
277
+ watch(() => props.form, async () => {
277
278
  if (!data.stepAuth)
278
279
  return
279
280
 
@@ -281,7 +282,9 @@ watch(() => JSON.stringify(props.form), async () => {
281
282
  await queryStepAuth()
282
283
  updateAuth()
283
284
  updateCanApply()
284
- }, { immediate: true })
285
+ }, { immediate: true }, {
286
+ deep: true
287
+ })
285
288
  </script>
286
289
 
287
290
  <style lang="scss" scoped>