widget.qw 1.0.50 → 1.0.51
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 +9 -9
- package/build/widget.qw.es.js +47 -11
- package/build/widget.qw.umd.js +47 -11
- package/package.json +1 -1
- package/src/components/AuditBar.vue +56 -10
package/build/style.css
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@charset "UTF-8";.widget[data-v-
|
|
1
|
+
@charset "UTF-8";.widget[data-v-3cac72de] {
|
|
2
2
|
text-align: center;
|
|
3
3
|
padding: 15px 15px;
|
|
4
4
|
}
|
|
5
|
-
.memo[data-v-
|
|
5
|
+
.memo[data-v-3cac72de] {
|
|
6
6
|
margin-bottom: 15px;
|
|
7
7
|
}
|
|
8
|
-
.refuse-btn[data-v-
|
|
8
|
+
.refuse-btn[data-v-3cac72de] {
|
|
9
9
|
width: 120px;
|
|
10
10
|
margin-right: 15px;
|
|
11
11
|
}
|
|
12
|
-
.pass-btn[data-v-
|
|
12
|
+
.pass-btn[data-v-3cac72de] {
|
|
13
13
|
width: 120px;
|
|
14
14
|
}
|
|
15
|
-
.apply-btn[data-v-
|
|
15
|
+
.apply-btn[data-v-3cac72de] {
|
|
16
16
|
width: 60vw;
|
|
17
17
|
}
|
|
18
|
-
.task-list[data-v-
|
|
18
|
+
.task-list[data-v-3cac72de] {
|
|
19
19
|
margin-top: 15px;
|
|
20
20
|
}
|
|
21
|
-
.task-title[data-v-
|
|
21
|
+
.task-title[data-v-3cac72de] {
|
|
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-
|
|
27
|
+
.task-user[data-v-3cac72de] {
|
|
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-
|
|
33
|
+
.audit-title[data-v-3cac72de] {
|
|
34
34
|
padding: 25px 15px 0 15px;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
font-weight: bold;
|
package/build/widget.qw.es.js
CHANGED
|
@@ -15766,7 +15766,7 @@ var lodash$1 = { exports: {} };
|
|
|
15766
15766
|
}).call(commonjsGlobal);
|
|
15767
15767
|
})(lodash$1, lodash$1.exports);
|
|
15768
15768
|
var lodash = lodash$1.exports;
|
|
15769
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15769
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-3cac72de] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-3cac72de] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-3cac72de] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-3cac72de] {\n width: 120px;\n}\n.apply-btn[data-v-3cac72de] {\n width: 60vw;\n}\n.task-list[data-v-3cac72de] {\n margin-top: 15px;\n}\n.task-title[data-v-3cac72de] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-3cac72de] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-3cac72de] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15770
15770
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15771
15771
|
var _export_sfc = (sfc, props) => {
|
|
15772
15772
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15791,11 +15791,26 @@ const _hoisted_6$8 = {
|
|
|
15791
15791
|
const _sfc_main$v = {
|
|
15792
15792
|
__name: "AuditBar",
|
|
15793
15793
|
props: {
|
|
15794
|
-
processId:
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15798
|
-
|
|
15794
|
+
processId: {
|
|
15795
|
+
type: Number,
|
|
15796
|
+
default: 0
|
|
15797
|
+
},
|
|
15798
|
+
mouldId: {
|
|
15799
|
+
type: Number,
|
|
15800
|
+
default: 0
|
|
15801
|
+
},
|
|
15802
|
+
userId: {
|
|
15803
|
+
type: String,
|
|
15804
|
+
default: ""
|
|
15805
|
+
},
|
|
15806
|
+
form: {
|
|
15807
|
+
type: Object,
|
|
15808
|
+
default: null
|
|
15809
|
+
},
|
|
15810
|
+
process_detail: {
|
|
15811
|
+
type: Function,
|
|
15812
|
+
default: null
|
|
15813
|
+
}
|
|
15799
15814
|
},
|
|
15800
15815
|
emits: ["pass", "refuse", "apply", "auth"],
|
|
15801
15816
|
setup(__props, {
|
|
@@ -15856,7 +15871,11 @@ const _sfc_main$v = {
|
|
|
15856
15871
|
const params = {
|
|
15857
15872
|
id: props.processId
|
|
15858
15873
|
};
|
|
15874
|
+
if (!util.process_detail)
|
|
15875
|
+
return;
|
|
15859
15876
|
const res = yield util.process_detail(params);
|
|
15877
|
+
if (res.code != 200)
|
|
15878
|
+
return;
|
|
15860
15879
|
data2.process = res.data;
|
|
15861
15880
|
});
|
|
15862
15881
|
const queryStepAuth = () => __async(this, null, function* () {
|
|
@@ -15869,6 +15888,16 @@ const _sfc_main$v = {
|
|
|
15869
15888
|
form: props.form
|
|
15870
15889
|
};
|
|
15871
15890
|
const res = yield util.process_step_auth(params);
|
|
15891
|
+
if (res.code != 200)
|
|
15892
|
+
return;
|
|
15893
|
+
if (params.processId != props.processId && !params.processId && props.processId)
|
|
15894
|
+
return;
|
|
15895
|
+
if (params.mouldId != props.mouldId && !params.mouldId && props.mouldId)
|
|
15896
|
+
return;
|
|
15897
|
+
if (params.userId != props.userId && !params.userId && props.userId)
|
|
15898
|
+
return;
|
|
15899
|
+
if (params.form != props.form && !params.form && props.form)
|
|
15900
|
+
return;
|
|
15872
15901
|
data2.stepAuth = res.data;
|
|
15873
15902
|
});
|
|
15874
15903
|
const updateAuth = () => {
|
|
@@ -15908,11 +15937,20 @@ const _sfc_main$v = {
|
|
|
15908
15937
|
data2.canApply = false;
|
|
15909
15938
|
return;
|
|
15910
15939
|
}
|
|
15911
|
-
let
|
|
15940
|
+
let params = {
|
|
15912
15941
|
mouldId: props.mouldId,
|
|
15913
15942
|
userId: props.userId,
|
|
15914
15943
|
form: props.form
|
|
15915
|
-
}
|
|
15944
|
+
};
|
|
15945
|
+
let res = yield util.process_can_apply(params);
|
|
15946
|
+
if (res.code != 200)
|
|
15947
|
+
return;
|
|
15948
|
+
if (params.mouldId != props.mouldId && !params.mouldId && props.mouldId)
|
|
15949
|
+
return;
|
|
15950
|
+
if (params.userId != props.userId && !params.userId && props.userId)
|
|
15951
|
+
return;
|
|
15952
|
+
if (params.form != props.form && !params.form && props.form)
|
|
15953
|
+
return;
|
|
15916
15954
|
data2.canApply = res.data;
|
|
15917
15955
|
});
|
|
15918
15956
|
const formatTitle = (task) => {
|
|
@@ -16013,8 +16051,6 @@ const _sfc_main$v = {
|
|
|
16013
16051
|
yield updateCanApply();
|
|
16014
16052
|
}), {
|
|
16015
16053
|
immediate: true
|
|
16016
|
-
}, {
|
|
16017
|
-
deep: true
|
|
16018
16054
|
});
|
|
16019
16055
|
return (_ctx, _cache) => {
|
|
16020
16056
|
const _component_van_field = resolveComponent("van-field");
|
|
@@ -16091,7 +16127,7 @@ const _sfc_main$v = {
|
|
|
16091
16127
|
};
|
|
16092
16128
|
}
|
|
16093
16129
|
};
|
|
16094
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
16130
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-3cac72de"]]);
|
|
16095
16131
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16096
16132
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16097
16133
|
const isDef = (val) => typeof val !== "undefined";
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -15769,7 +15769,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15769
15769
|
}).call(commonjsGlobal);
|
|
15770
15770
|
})(lodash$1, lodash$1.exports);
|
|
15771
15771
|
var lodash = lodash$1.exports;
|
|
15772
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15772
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-3cac72de] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-3cac72de] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-3cac72de] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-3cac72de] {\n width: 120px;\n}\n.apply-btn[data-v-3cac72de] {\n width: 60vw;\n}\n.task-list[data-v-3cac72de] {\n margin-top: 15px;\n}\n.task-title[data-v-3cac72de] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-3cac72de] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-3cac72de] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15773
15773
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15774
15774
|
var _export_sfc = (sfc, props) => {
|
|
15775
15775
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15794,11 +15794,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15794
15794
|
const _sfc_main$v = {
|
|
15795
15795
|
__name: "AuditBar",
|
|
15796
15796
|
props: {
|
|
15797
|
-
processId:
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15797
|
+
processId: {
|
|
15798
|
+
type: Number,
|
|
15799
|
+
default: 0
|
|
15800
|
+
},
|
|
15801
|
+
mouldId: {
|
|
15802
|
+
type: Number,
|
|
15803
|
+
default: 0
|
|
15804
|
+
},
|
|
15805
|
+
userId: {
|
|
15806
|
+
type: String,
|
|
15807
|
+
default: ""
|
|
15808
|
+
},
|
|
15809
|
+
form: {
|
|
15810
|
+
type: Object,
|
|
15811
|
+
default: null
|
|
15812
|
+
},
|
|
15813
|
+
process_detail: {
|
|
15814
|
+
type: Function,
|
|
15815
|
+
default: null
|
|
15816
|
+
}
|
|
15802
15817
|
},
|
|
15803
15818
|
emits: ["pass", "refuse", "apply", "auth"],
|
|
15804
15819
|
setup(__props, {
|
|
@@ -15859,7 +15874,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15859
15874
|
const params = {
|
|
15860
15875
|
id: props.processId
|
|
15861
15876
|
};
|
|
15877
|
+
if (!util.process_detail)
|
|
15878
|
+
return;
|
|
15862
15879
|
const res = yield util.process_detail(params);
|
|
15880
|
+
if (res.code != 200)
|
|
15881
|
+
return;
|
|
15863
15882
|
data2.process = res.data;
|
|
15864
15883
|
});
|
|
15865
15884
|
const queryStepAuth = () => __async(this, null, function* () {
|
|
@@ -15872,6 +15891,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15872
15891
|
form: props.form
|
|
15873
15892
|
};
|
|
15874
15893
|
const res = yield util.process_step_auth(params);
|
|
15894
|
+
if (res.code != 200)
|
|
15895
|
+
return;
|
|
15896
|
+
if (params.processId != props.processId && !params.processId && props.processId)
|
|
15897
|
+
return;
|
|
15898
|
+
if (params.mouldId != props.mouldId && !params.mouldId && props.mouldId)
|
|
15899
|
+
return;
|
|
15900
|
+
if (params.userId != props.userId && !params.userId && props.userId)
|
|
15901
|
+
return;
|
|
15902
|
+
if (params.form != props.form && !params.form && props.form)
|
|
15903
|
+
return;
|
|
15875
15904
|
data2.stepAuth = res.data;
|
|
15876
15905
|
});
|
|
15877
15906
|
const updateAuth = () => {
|
|
@@ -15911,11 +15940,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15911
15940
|
data2.canApply = false;
|
|
15912
15941
|
return;
|
|
15913
15942
|
}
|
|
15914
|
-
let
|
|
15943
|
+
let params = {
|
|
15915
15944
|
mouldId: props.mouldId,
|
|
15916
15945
|
userId: props.userId,
|
|
15917
15946
|
form: props.form
|
|
15918
|
-
}
|
|
15947
|
+
};
|
|
15948
|
+
let res = yield util.process_can_apply(params);
|
|
15949
|
+
if (res.code != 200)
|
|
15950
|
+
return;
|
|
15951
|
+
if (params.mouldId != props.mouldId && !params.mouldId && props.mouldId)
|
|
15952
|
+
return;
|
|
15953
|
+
if (params.userId != props.userId && !params.userId && props.userId)
|
|
15954
|
+
return;
|
|
15955
|
+
if (params.form != props.form && !params.form && props.form)
|
|
15956
|
+
return;
|
|
15919
15957
|
data2.canApply = res.data;
|
|
15920
15958
|
});
|
|
15921
15959
|
const formatTitle = (task) => {
|
|
@@ -16016,8 +16054,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16016
16054
|
yield updateCanApply();
|
|
16017
16055
|
}), {
|
|
16018
16056
|
immediate: true
|
|
16019
|
-
}, {
|
|
16020
|
-
deep: true
|
|
16021
16057
|
});
|
|
16022
16058
|
return (_ctx, _cache) => {
|
|
16023
16059
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
@@ -16094,7 +16130,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16094
16130
|
};
|
|
16095
16131
|
}
|
|
16096
16132
|
};
|
|
16097
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
16133
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-3cac72de"]]);
|
|
16098
16134
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16099
16135
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16100
16136
|
const isDef = (val) => typeof val !== "undefined";
|
package/package.json
CHANGED
|
@@ -34,11 +34,26 @@ import util from '../util'
|
|
|
34
34
|
import lodash from 'lodash'
|
|
35
35
|
|
|
36
36
|
const props = defineProps({
|
|
37
|
-
processId:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
processId: {
|
|
38
|
+
type:Number,
|
|
39
|
+
default:0
|
|
40
|
+
},
|
|
41
|
+
mouldId: {
|
|
42
|
+
type:Number,
|
|
43
|
+
default:0
|
|
44
|
+
},
|
|
45
|
+
userId: {
|
|
46
|
+
type:String,
|
|
47
|
+
default:''
|
|
48
|
+
},
|
|
49
|
+
form: {
|
|
50
|
+
type:Object,
|
|
51
|
+
default:null
|
|
52
|
+
},
|
|
53
|
+
process_detail: {
|
|
54
|
+
type:Function,
|
|
55
|
+
default:null
|
|
56
|
+
}
|
|
42
57
|
})
|
|
43
58
|
const emit = defineEmits(['pass', 'refuse', 'apply', 'auth'])
|
|
44
59
|
const data = reactive({
|
|
@@ -106,7 +121,13 @@ const queryDetail = async () => {
|
|
|
106
121
|
const params = {
|
|
107
122
|
id: props.processId
|
|
108
123
|
}
|
|
124
|
+
|
|
125
|
+
if(!util.process_detail)
|
|
126
|
+
return
|
|
127
|
+
|
|
109
128
|
const res = await util.process_detail(params)
|
|
129
|
+
if(res.code!=200)
|
|
130
|
+
return
|
|
110
131
|
data.process = res.data
|
|
111
132
|
}
|
|
112
133
|
|
|
@@ -121,6 +142,21 @@ const queryStepAuth = async () => {
|
|
|
121
142
|
form: props.form
|
|
122
143
|
}
|
|
123
144
|
const res = await util.process_step_auth(params)
|
|
145
|
+
if(res.code!=200)
|
|
146
|
+
return
|
|
147
|
+
|
|
148
|
+
if(params.processId!=props.processId && !params.processId && props.processId)
|
|
149
|
+
return
|
|
150
|
+
|
|
151
|
+
if(params.mouldId!=props.mouldId && !params.mouldId && props.mouldId)
|
|
152
|
+
return
|
|
153
|
+
|
|
154
|
+
if(params.userId!=props.userId && !params.userId && props.userId)
|
|
155
|
+
return
|
|
156
|
+
|
|
157
|
+
if(params.form!=props.form && !params.form && props.form)
|
|
158
|
+
return
|
|
159
|
+
|
|
124
160
|
data.stepAuth = res.data
|
|
125
161
|
}
|
|
126
162
|
|
|
@@ -173,11 +209,23 @@ const updateCanApply = async () => {
|
|
|
173
209
|
return
|
|
174
210
|
}
|
|
175
211
|
|
|
176
|
-
let
|
|
212
|
+
let params = {
|
|
177
213
|
mouldId: props.mouldId,
|
|
178
214
|
userId: props.userId,
|
|
179
215
|
form: props.form
|
|
180
|
-
}
|
|
216
|
+
}
|
|
217
|
+
let res = await util.process_can_apply(params)
|
|
218
|
+
if(res.code!=200)
|
|
219
|
+
return
|
|
220
|
+
|
|
221
|
+
if(params.mouldId!=props.mouldId && !params.mouldId && props.mouldId)
|
|
222
|
+
return
|
|
223
|
+
|
|
224
|
+
if(params.userId!=props.userId && !params.userId && props.userId)
|
|
225
|
+
return
|
|
226
|
+
|
|
227
|
+
if(params.form!=props.form && !params.form && props.form)
|
|
228
|
+
return
|
|
181
229
|
|
|
182
230
|
data.canApply = res.data
|
|
183
231
|
}
|
|
@@ -283,9 +331,7 @@ watch(() => JSON.stringify(props.form), async () => {
|
|
|
283
331
|
await queryStepAuth()
|
|
284
332
|
await updateAuth()
|
|
285
333
|
await updateCanApply()
|
|
286
|
-
}, { immediate: true }
|
|
287
|
-
deep: true
|
|
288
|
-
})
|
|
334
|
+
}, { immediate: true })
|
|
289
335
|
</script>
|
|
290
336
|
|
|
291
337
|
<style lang="scss" scoped>
|