widget.qw 1.0.49 → 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 +18 -18
- package/build/widget.qw.es.js +51 -15
- package/build/widget.qw.umd.js +51 -15
- package/package.json +1 -1
- package/src/components/AuditBar.vue +56 -10
- package/src/components/data_selector.vue +1 -0
- package/src/env.d.ts +8 -8
- package/src/views/objseditor/index.vue +13 -2
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
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;
|
|
@@ -99,31 +99,31 @@
|
|
|
99
99
|
opacity: 1;
|
|
100
100
|
-webkit-text-fill-color: #000;
|
|
101
101
|
}
|
|
102
|
-
.popup-style[data-v-
|
|
102
|
+
.popup-style[data-v-3925cc28] {
|
|
103
103
|
height: 21.25rem;
|
|
104
104
|
}
|
|
105
|
-
.showMultipleButton[data-v-
|
|
105
|
+
.showMultipleButton[data-v-3925cc28] {
|
|
106
106
|
padding-bottom: 0;
|
|
107
107
|
}
|
|
108
|
-
.showMultipleButton .van-button[data-v-
|
|
108
|
+
.showMultipleButton .van-button[data-v-3925cc28] {
|
|
109
109
|
border: 0;
|
|
110
110
|
}
|
|
111
|
-
.flex-between[data-v-
|
|
111
|
+
.flex-between[data-v-3925cc28] {
|
|
112
112
|
padding: 10px;
|
|
113
113
|
display: flex;
|
|
114
114
|
justify-content: space-between;
|
|
115
115
|
align-items: center;
|
|
116
116
|
}
|
|
117
|
-
.bold[data-v-
|
|
117
|
+
.bold[data-v-3925cc28] {
|
|
118
118
|
font-weight: bold;
|
|
119
119
|
color: #444;
|
|
120
120
|
}
|
|
121
|
-
.checkbox-style[data-v-
|
|
121
|
+
.checkbox-style[data-v-3925cc28] {
|
|
122
122
|
/* height: 220px; */
|
|
123
123
|
height: calc(220px - 30px);
|
|
124
124
|
overflow-y: auto;
|
|
125
125
|
}
|
|
126
|
-
.select-all-container[data-v-
|
|
126
|
+
.select-all-container[data-v-3925cc28] {
|
|
127
127
|
font-size: 14px;
|
|
128
128
|
padding: 0 16px;
|
|
129
129
|
margin: 10px 0;
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
justify-content: flex-end;
|
|
132
132
|
align-items: center;
|
|
133
133
|
}
|
|
134
|
-
.select-all-container .van-checkbox[data-v-
|
|
134
|
+
.select-all-container .van-checkbox[data-v-3925cc28] {
|
|
135
135
|
margin-left: auto;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/* 新增:调整方形复选框的边距 */
|
|
139
|
-
.van-checkbox--square[data-v-
|
|
139
|
+
.van-checkbox--square[data-v-3925cc28] {
|
|
140
140
|
margin-left: 8px;
|
|
141
141
|
}
|
|
142
142
|
|
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";
|
|
@@ -17123,7 +17159,7 @@ const _sfc_main$o = {
|
|
|
17123
17159
|
};
|
|
17124
17160
|
}
|
|
17125
17161
|
};
|
|
17126
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
17162
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-3925cc28] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-3925cc28] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-3925cc28] {\r\n border: 0;\n}\n.flex-between[data-v-3925cc28] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-3925cc28] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-3925cc28] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-3925cc28] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-3925cc28] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-3925cc28] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17127
17163
|
const _hoisted_1$g = {
|
|
17128
17164
|
class: "pad10 flex-between showMultipleButton"
|
|
17129
17165
|
};
|
|
@@ -17206,10 +17242,10 @@ const _sfc_main$n = {
|
|
|
17206
17242
|
if (!props.options)
|
|
17207
17243
|
return [];
|
|
17208
17244
|
return props.options.map((item) => {
|
|
17209
|
-
return {
|
|
17245
|
+
return __spreadProps(__spreadValues({}, item), {
|
|
17210
17246
|
text: item[props.columnsFieldNames.text],
|
|
17211
17247
|
value: item[props.columnsFieldNames.value]
|
|
17212
|
-
};
|
|
17248
|
+
});
|
|
17213
17249
|
});
|
|
17214
17250
|
});
|
|
17215
17251
|
const findTextsByValues = (valuesToFind, data2) => {
|
|
@@ -17435,7 +17471,7 @@ const _sfc_main$n = {
|
|
|
17435
17471
|
};
|
|
17436
17472
|
}
|
|
17437
17473
|
};
|
|
17438
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
17474
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-3925cc28"]]);
|
|
17439
17475
|
var mult_list_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\r\n/* // \u4FEE\u6539 confirmation-group \u548C confirmation-item \u7684\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n padding: 0 16px;\r\n --van-checkbox-disabled-icon-color: black;\n}\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 16px;\r\n margin: 0 -16px;\r\n border-bottom: 1px solid #f5f5f5;\r\n /* \u7981\u7528\u72B6\u6001\u6837\u5F0F */\n}\r\n\r\n/* // \u5728\u4E0B\u65B9\u6DFB\u52A0\u5A92\u4F53\u67E5\u8BE2\u9002\u914D\u5C0F\u5C4F\u5E55 */\n@media (max-width: 320px) {\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 8px;\r\n margin: 0 -8px;\n}\n}\n.confirmation-item[data-v-40a09897]:last-child {\r\n border-bottom: none;\n}\r\n\r\n/* \u65B0\u589E\u6837\u5F0F */\n.confirmation-tips[data-v-40a09897] {\r\n padding: 12px 16px;\r\n background: #f0faff;\r\n border-radius: 8px;\r\n margin: 10px 16px;\r\n display: flex;\r\n align-items: center;\r\n color: #1989fa;\r\n font-size: 13px;\r\n border: 1px solid #d9efff;\n}\n.confirmation-tips .van-icon[data-v-40a09897] {\r\n margin-right: 8px;\n}\r\n\r\n/* \u65B0\u589E\u5B57\u4F53\u7EE7\u627F\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n font-size: inherit; /* \u7EE7\u627F\u7236\u7EA7\u5B57\u4F53\u5927\u5C0F */\n}\n.option-text[data-v-40a09897] {\r\n font-size: 14px; /* \u660E\u786E\u6307\u5B9A\u5B57\u4F53\u5927\u5C0F */\r\n line-height: 1.5; /* \u4FDD\u6301\u884C\u9AD8\u4E00\u81F4 */\r\n /* color:black; */\n}\r\n\r\n/* \u9002\u914D\u79FB\u52A8\u7AEF\u7684\u5B57\u4F53\u8C03\u6574 */\n@media (max-width: 375px) {\n.option-text[data-v-40a09897] {\r\n font-size: 13px;\n}\n}\r\n\r\n/* \u65B0\u589E\u7981\u7528\u72B6\u6001\u6837\u5F0F */\n.custom-checkbox[data-v-40a09897]:disabled .--van-checkbox__icon {\r\n background-color: #f5f5f5;\r\n border-color: #ebedf0;\r\n transition: all 0.3s;\n}\n.custom-checkbox[data-v-40a09897]:disabled .van-checkbox__icon--checked {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\r\n opacity: 0.7;\n}\n.van-checkbox--disabled[data-v-40a09897] .option-text {\r\n color: #969799;\n}\n.van-checkbox--disabled.van-checkbox--checked[data-v-40a09897] .option-text {\r\n color: #1989fa;\r\n opacity: 0.8;\n}\r\n")();
|
|
17440
17476
|
const _hoisted_1$f = {
|
|
17441
17477
|
key: 0,
|
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";
|
|
@@ -17126,7 +17162,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17126
17162
|
};
|
|
17127
17163
|
}
|
|
17128
17164
|
};
|
|
17129
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
17165
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-3925cc28] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-3925cc28] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-3925cc28] {\r\n border: 0;\n}\n.flex-between[data-v-3925cc28] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-3925cc28] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-3925cc28] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-3925cc28] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-3925cc28] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-3925cc28] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17130
17166
|
const _hoisted_1$g = {
|
|
17131
17167
|
class: "pad10 flex-between showMultipleButton"
|
|
17132
17168
|
};
|
|
@@ -17209,10 +17245,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17209
17245
|
if (!props.options)
|
|
17210
17246
|
return [];
|
|
17211
17247
|
return props.options.map((item) => {
|
|
17212
|
-
return {
|
|
17248
|
+
return __spreadProps(__spreadValues({}, item), {
|
|
17213
17249
|
text: item[props.columnsFieldNames.text],
|
|
17214
17250
|
value: item[props.columnsFieldNames.value]
|
|
17215
|
-
};
|
|
17251
|
+
});
|
|
17216
17252
|
});
|
|
17217
17253
|
});
|
|
17218
17254
|
const findTextsByValues = (valuesToFind, data2) => {
|
|
@@ -17438,7 +17474,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17438
17474
|
};
|
|
17439
17475
|
}
|
|
17440
17476
|
};
|
|
17441
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
17477
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-3925cc28"]]);
|
|
17442
17478
|
var mult_list_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\r\n/* // \u4FEE\u6539 confirmation-group \u548C confirmation-item \u7684\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n padding: 0 16px;\r\n --van-checkbox-disabled-icon-color: black;\n}\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 16px;\r\n margin: 0 -16px;\r\n border-bottom: 1px solid #f5f5f5;\r\n /* \u7981\u7528\u72B6\u6001\u6837\u5F0F */\n}\r\n\r\n/* // \u5728\u4E0B\u65B9\u6DFB\u52A0\u5A92\u4F53\u67E5\u8BE2\u9002\u914D\u5C0F\u5C4F\u5E55 */\n@media (max-width: 320px) {\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 8px;\r\n margin: 0 -8px;\n}\n}\n.confirmation-item[data-v-40a09897]:last-child {\r\n border-bottom: none;\n}\r\n\r\n/* \u65B0\u589E\u6837\u5F0F */\n.confirmation-tips[data-v-40a09897] {\r\n padding: 12px 16px;\r\n background: #f0faff;\r\n border-radius: 8px;\r\n margin: 10px 16px;\r\n display: flex;\r\n align-items: center;\r\n color: #1989fa;\r\n font-size: 13px;\r\n border: 1px solid #d9efff;\n}\n.confirmation-tips .van-icon[data-v-40a09897] {\r\n margin-right: 8px;\n}\r\n\r\n/* \u65B0\u589E\u5B57\u4F53\u7EE7\u627F\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n font-size: inherit; /* \u7EE7\u627F\u7236\u7EA7\u5B57\u4F53\u5927\u5C0F */\n}\n.option-text[data-v-40a09897] {\r\n font-size: 14px; /* \u660E\u786E\u6307\u5B9A\u5B57\u4F53\u5927\u5C0F */\r\n line-height: 1.5; /* \u4FDD\u6301\u884C\u9AD8\u4E00\u81F4 */\r\n /* color:black; */\n}\r\n\r\n/* \u9002\u914D\u79FB\u52A8\u7AEF\u7684\u5B57\u4F53\u8C03\u6574 */\n@media (max-width: 375px) {\n.option-text[data-v-40a09897] {\r\n font-size: 13px;\n}\n}\r\n\r\n/* \u65B0\u589E\u7981\u7528\u72B6\u6001\u6837\u5F0F */\n.custom-checkbox[data-v-40a09897]:disabled .--van-checkbox__icon {\r\n background-color: #f5f5f5;\r\n border-color: #ebedf0;\r\n transition: all 0.3s;\n}\n.custom-checkbox[data-v-40a09897]:disabled .van-checkbox__icon--checked {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\r\n opacity: 0.7;\n}\n.van-checkbox--disabled[data-v-40a09897] .option-text {\r\n color: #969799;\n}\n.van-checkbox--disabled.van-checkbox--checked[data-v-40a09897] .option-text {\r\n color: #1989fa;\r\n opacity: 0.8;\n}\r\n")();
|
|
17443
17479
|
const _hoisted_1$f = {
|
|
17444
17480
|
key: 0,
|
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>
|
package/src/env.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
declare module '*.vue' {
|
|
4
|
-
import type { DefineComponent } from 'vue'
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
-
const component: DefineComponent<{}, {}, any>
|
|
7
|
-
export default component
|
|
8
|
-
}
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import type { DefineComponent } from 'vue'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
+
const component: DefineComponent<{}, {}, any>
|
|
7
|
+
export default component
|
|
8
|
+
}
|
|
@@ -87,7 +87,7 @@ const data = reactive({
|
|
|
87
87
|
auth: 'required'
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
},
|
|
91
91
|
},
|
|
92
92
|
// schema: {
|
|
93
93
|
// id:{
|
|
@@ -97,11 +97,21 @@ const data = reactive({
|
|
|
97
97
|
// default: 'uuid',
|
|
98
98
|
// //此字段是隐藏值
|
|
99
99
|
// auth: 'gone',
|
|
100
|
+
// schema: {
|
|
101
|
+
// options: [{
|
|
102
|
+
// name: '内机',
|
|
103
|
+
// value: 'nj',
|
|
104
|
+
// title: '内机'
|
|
105
|
+
// }]
|
|
106
|
+
// }
|
|
100
107
|
// },
|
|
101
108
|
// name: {
|
|
102
109
|
// label: '房号',
|
|
103
110
|
// type: 'String',
|
|
104
111
|
// default: '',
|
|
112
|
+
// auth: 'required'
|
|
113
|
+
// },
|
|
114
|
+
// finishQuantity: {
|
|
105
115
|
// auth:'required'
|
|
106
116
|
// },
|
|
107
117
|
// finishQuantity:{
|
|
@@ -120,6 +130,7 @@ const data = reactive({
|
|
|
120
130
|
// label: '空调',
|
|
121
131
|
// type: 'Array',
|
|
122
132
|
// default: [],
|
|
133
|
+
// auth: 'required',
|
|
123
134
|
// auth:'required',
|
|
124
135
|
// schema: {
|
|
125
136
|
// partStandardId: {
|
|
@@ -128,7 +139,7 @@ const data = reactive({
|
|
|
128
139
|
// default: '',
|
|
129
140
|
// schema: {
|
|
130
141
|
// options: [{
|
|
131
|
-
// name:'内机',
|
|
142
|
+
// name: '内机',
|
|
132
143
|
// value: 'nj',
|
|
133
144
|
// title: '内机'
|
|
134
145
|
// }]
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"jsx": "preserve",
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"lib": ["esnext", "dom"],
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
},
|
|
17
|
-
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
18
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"jsx": "preserve",
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"lib": ["esnext", "dom"],
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
},
|
|
17
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
18
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
19
|
+
}
|
package/tsconfig.node.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"composite": true,
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node"
|
|
6
|
-
},
|
|
7
|
-
"include": ["vite.config.ts"]
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"moduleResolution": "node"
|
|
6
|
+
},
|
|
7
|
+
"include": ["vite.config.ts"]
|
|
8
|
+
}
|