widget.qw 1.0.36 → 1.0.38
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 +24 -21
- package/build/widget.qw.umd.js +24 -21
- package/package.json +1 -1
- package/src/components/AuditBar.vue +4 -4
- package/src/env.d.ts +8 -8
- 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-56f52460] {
|
|
2
2
|
text-align: center;
|
|
3
3
|
padding: 15px 15px;
|
|
4
4
|
}
|
|
5
|
-
.memo[data-v-
|
|
5
|
+
.memo[data-v-56f52460] {
|
|
6
6
|
margin-bottom: 15px;
|
|
7
7
|
}
|
|
8
|
-
.refuse-btn[data-v-
|
|
8
|
+
.refuse-btn[data-v-56f52460] {
|
|
9
9
|
width: 120px;
|
|
10
10
|
margin-right: 15px;
|
|
11
11
|
}
|
|
12
|
-
.pass-btn[data-v-
|
|
12
|
+
.pass-btn[data-v-56f52460] {
|
|
13
13
|
width: 120px;
|
|
14
14
|
}
|
|
15
|
-
.apply-btn[data-v-
|
|
15
|
+
.apply-btn[data-v-56f52460] {
|
|
16
16
|
width: 60vw;
|
|
17
17
|
}
|
|
18
|
-
.task-list[data-v-
|
|
18
|
+
.task-list[data-v-56f52460] {
|
|
19
19
|
margin-top: 15px;
|
|
20
20
|
}
|
|
21
|
-
.task-title[data-v-
|
|
21
|
+
.task-title[data-v-56f52460] {
|
|
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-56f52460] {
|
|
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-56f52460] {
|
|
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-3f1c4b3e] {
|
|
103
103
|
height: 21.25rem;
|
|
104
104
|
}
|
|
105
|
-
.showMultipleButton[data-v-
|
|
105
|
+
.showMultipleButton[data-v-3f1c4b3e] {
|
|
106
106
|
padding-bottom: 0;
|
|
107
107
|
}
|
|
108
|
-
.showMultipleButton .van-button[data-v-
|
|
108
|
+
.showMultipleButton .van-button[data-v-3f1c4b3e] {
|
|
109
109
|
border: 0;
|
|
110
110
|
}
|
|
111
|
-
.flex-between[data-v-
|
|
111
|
+
.flex-between[data-v-3f1c4b3e] {
|
|
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-3f1c4b3e] {
|
|
118
118
|
font-weight: bold;
|
|
119
119
|
color: #444;
|
|
120
120
|
}
|
|
121
|
-
.checkbox-style[data-v-
|
|
121
|
+
.checkbox-style[data-v-3f1c4b3e] {
|
|
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-3f1c4b3e] {
|
|
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-3f1c4b3e] {
|
|
135
135
|
margin-left: auto;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/* 新增:调整方形复选框的边距 */
|
|
139
|
-
.van-checkbox--square[data-v-
|
|
139
|
+
.van-checkbox--square[data-v-3f1c4b3e] {
|
|
140
140
|
margin-left: 8px;
|
|
141
141
|
}
|
|
142
142
|
|
package/build/widget.qw.es.js
CHANGED
|
@@ -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-
|
|
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}")();
|
|
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;
|
|
@@ -15892,8 +15892,10 @@ const _sfc_main$u = {
|
|
|
15892
15892
|
return defaultCondition;
|
|
15893
15893
|
};
|
|
15894
15894
|
const updateCanApply = () => __async(this, null, function* () {
|
|
15895
|
-
if (props.processId)
|
|
15896
|
-
|
|
15895
|
+
if (props.processId) {
|
|
15896
|
+
data2.canApply = false;
|
|
15897
|
+
return;
|
|
15898
|
+
}
|
|
15897
15899
|
let res = yield util.process_can_apply({
|
|
15898
15900
|
mouldId: props.mouldId,
|
|
15899
15901
|
userId: props.userId,
|
|
@@ -15944,8 +15946,6 @@ const _sfc_main$u = {
|
|
|
15944
15946
|
action = `\u5DF2\u6284\u9001 ${executor.updatedAt}`;
|
|
15945
15947
|
else
|
|
15946
15948
|
action = `\u5DF2\u5BA1\u6838 ${executor.updatedAt}`;
|
|
15947
|
-
} else if (data2.process.state == "finish_refuse") {
|
|
15948
|
-
action = `\u5DF2\u64A4\u9500 ${executor.updatedAt}`;
|
|
15949
15949
|
} else if (executor.state == "refuse") {
|
|
15950
15950
|
action = `\u5DF2\u9A73\u56DE ${executor.updatedAt}`;
|
|
15951
15951
|
}
|
|
@@ -16079,7 +16079,7 @@ const _sfc_main$u = {
|
|
|
16079
16079
|
};
|
|
16080
16080
|
}
|
|
16081
16081
|
};
|
|
16082
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16082
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-56f52460"]]);
|
|
16083
16083
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16084
16084
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16085
16085
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -17107,7 +17107,7 @@ const _sfc_main$n = {
|
|
|
17107
17107
|
};
|
|
17108
17108
|
}
|
|
17109
17109
|
};
|
|
17110
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
17110
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-3f1c4b3e] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-3f1c4b3e] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-3f1c4b3e] {\r\n border: 0;\n}\n.flex-between[data-v-3f1c4b3e] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-3f1c4b3e] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-3f1c4b3e] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-3f1c4b3e] {\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-3f1c4b3e] {\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-3f1c4b3e] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17111
17111
|
const _hoisted_1$f = {
|
|
17112
17112
|
class: "pad10 flex-between showMultipleButton"
|
|
17113
17113
|
};
|
|
@@ -17127,18 +17127,16 @@ const _hoisted_7$6 = {
|
|
|
17127
17127
|
const _sfc_main$m = {
|
|
17128
17128
|
__name: "data_selector",
|
|
17129
17129
|
props: {
|
|
17130
|
-
|
|
17131
|
-
type:
|
|
17132
|
-
default:
|
|
17133
|
-
validator: (v) => ["single", "multiple"].includes(v)
|
|
17130
|
+
multiple: {
|
|
17131
|
+
type: Boolean,
|
|
17132
|
+
default: false
|
|
17134
17133
|
},
|
|
17135
17134
|
options: {
|
|
17136
17135
|
type: Array,
|
|
17137
17136
|
required: true
|
|
17138
17137
|
},
|
|
17139
17138
|
modelValue: {
|
|
17140
|
-
type: [Array, String, Number]
|
|
17141
|
-
default: () => []
|
|
17139
|
+
type: [Array, String, Number]
|
|
17142
17140
|
},
|
|
17143
17141
|
rules: {
|
|
17144
17142
|
type: Array,
|
|
@@ -17171,6 +17169,11 @@ const _sfc_main$m = {
|
|
|
17171
17169
|
isDisabled
|
|
17172
17170
|
} = util.props2auth(props);
|
|
17173
17171
|
const selectedItems = ref([]);
|
|
17172
|
+
const selectdItemsLabel = computed(() => {
|
|
17173
|
+
if (!selectedItems.value)
|
|
17174
|
+
return "";
|
|
17175
|
+
return selectedItems.value.join(",");
|
|
17176
|
+
});
|
|
17174
17177
|
const popupVisible = ref(false);
|
|
17175
17178
|
const searchKeyword = ref(null);
|
|
17176
17179
|
const checkboxRefs = ref([]);
|
|
@@ -17191,7 +17194,7 @@ const _sfc_main$m = {
|
|
|
17191
17194
|
const reShow = () => {
|
|
17192
17195
|
if (props.modelValue) {
|
|
17193
17196
|
if (Array.isArray(props.options)) {
|
|
17194
|
-
if (props.
|
|
17197
|
+
if (props.multiple) {
|
|
17195
17198
|
selectedItems.value = findTextsByValues(props.modelValue, props.options);
|
|
17196
17199
|
} else {
|
|
17197
17200
|
const foundItem = props.options.find((item) => item.value === props.modelValue);
|
|
@@ -17215,7 +17218,7 @@ const _sfc_main$m = {
|
|
|
17215
17218
|
if (isReadonly.value) {
|
|
17216
17219
|
return;
|
|
17217
17220
|
}
|
|
17218
|
-
if (props.
|
|
17221
|
+
if (props.multiple) {
|
|
17219
17222
|
checkedValue.value = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
17220
17223
|
} else {
|
|
17221
17224
|
checkedValue.value = props.modelValue;
|
|
@@ -17226,7 +17229,7 @@ const _sfc_main$m = {
|
|
|
17226
17229
|
popupVisible.value = false;
|
|
17227
17230
|
};
|
|
17228
17231
|
const confirmSelection = () => {
|
|
17229
|
-
if (props.
|
|
17232
|
+
if (props.multiple) {
|
|
17230
17233
|
selectedItems.value = findTextsByValues(checkedValue.value, props.options);
|
|
17231
17234
|
emit("update:modelValue", checkedValue.value);
|
|
17232
17235
|
emit("select", values2items(checkedValue.value));
|
|
@@ -17254,7 +17257,7 @@ const _sfc_main$m = {
|
|
|
17254
17257
|
});
|
|
17255
17258
|
});
|
|
17256
17259
|
watch(checkedValue, () => {
|
|
17257
|
-
if (props.
|
|
17260
|
+
if (props.multiple) {
|
|
17258
17261
|
if (filteredColumns.value.length === 0) {
|
|
17259
17262
|
isAllChecked.value = false;
|
|
17260
17263
|
} else {
|
|
@@ -17292,7 +17295,7 @@ const _sfc_main$m = {
|
|
|
17292
17295
|
type: "textarea",
|
|
17293
17296
|
rows: "1",
|
|
17294
17297
|
autosize: "",
|
|
17295
|
-
modelValue:
|
|
17298
|
+
modelValue: unref(selectdItemsLabel),
|
|
17296
17299
|
readonly: "",
|
|
17297
17300
|
clearable: "",
|
|
17298
17301
|
required: unref(isRequired),
|
|
@@ -17335,7 +17338,7 @@ const _sfc_main$m = {
|
|
|
17335
17338
|
},
|
|
17336
17339
|
clearable: "",
|
|
17337
17340
|
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57"
|
|
17338
|
-
}, null, 8, ["modelValue"]),
|
|
17341
|
+
}, null, 8, ["modelValue"]), props.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$7, [createVNode(_component_van_checkbox, {
|
|
17339
17342
|
shape: "square",
|
|
17340
17343
|
modelValue: isAllChecked.value,
|
|
17341
17344
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
@@ -17344,7 +17347,7 @@ const _sfc_main$m = {
|
|
|
17344
17347
|
}, {
|
|
17345
17348
|
default: withCtx(() => [_hoisted_6$6]),
|
|
17346
17349
|
_: 1
|
|
17347
|
-
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$6, [
|
|
17350
|
+
}, 8, ["modelValue"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$6, [props.multiple ? (openBlock(), createBlock(_component_van_checkbox_group, {
|
|
17348
17351
|
key: 0,
|
|
17349
17352
|
modelValue: checkedValue.value,
|
|
17350
17353
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkedValue.value = $event)
|
|
@@ -17399,7 +17402,7 @@ const _sfc_main$m = {
|
|
|
17399
17402
|
};
|
|
17400
17403
|
}
|
|
17401
17404
|
};
|
|
17402
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
17405
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3f1c4b3e"]]);
|
|
17403
17406
|
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")();
|
|
17404
17407
|
const _hoisted_1$e = {
|
|
17405
17408
|
key: 0,
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -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-
|
|
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}")();
|
|
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;
|
|
@@ -15895,8 +15895,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15895
15895
|
return defaultCondition;
|
|
15896
15896
|
};
|
|
15897
15897
|
const updateCanApply = () => __async(this, null, function* () {
|
|
15898
|
-
if (props.processId)
|
|
15899
|
-
|
|
15898
|
+
if (props.processId) {
|
|
15899
|
+
data2.canApply = false;
|
|
15900
|
+
return;
|
|
15901
|
+
}
|
|
15900
15902
|
let res = yield util.process_can_apply({
|
|
15901
15903
|
mouldId: props.mouldId,
|
|
15902
15904
|
userId: props.userId,
|
|
@@ -15947,8 +15949,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15947
15949
|
action = `\u5DF2\u6284\u9001 ${executor.updatedAt}`;
|
|
15948
15950
|
else
|
|
15949
15951
|
action = `\u5DF2\u5BA1\u6838 ${executor.updatedAt}`;
|
|
15950
|
-
} else if (data2.process.state == "finish_refuse") {
|
|
15951
|
-
action = `\u5DF2\u64A4\u9500 ${executor.updatedAt}`;
|
|
15952
15952
|
} else if (executor.state == "refuse") {
|
|
15953
15953
|
action = `\u5DF2\u9A73\u56DE ${executor.updatedAt}`;
|
|
15954
15954
|
}
|
|
@@ -16082,7 +16082,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16082
16082
|
};
|
|
16083
16083
|
}
|
|
16084
16084
|
};
|
|
16085
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16085
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-56f52460"]]);
|
|
16086
16086
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16087
16087
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16088
16088
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -17110,7 +17110,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17110
17110
|
};
|
|
17111
17111
|
}
|
|
17112
17112
|
};
|
|
17113
|
-
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-
|
|
17113
|
+
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-3f1c4b3e] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-3f1c4b3e] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-3f1c4b3e] {\r\n border: 0;\n}\n.flex-between[data-v-3f1c4b3e] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-3f1c4b3e] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-3f1c4b3e] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-3f1c4b3e] {\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-3f1c4b3e] {\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-3f1c4b3e] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17114
17114
|
const _hoisted_1$f = {
|
|
17115
17115
|
class: "pad10 flex-between showMultipleButton"
|
|
17116
17116
|
};
|
|
@@ -17130,18 +17130,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17130
17130
|
const _sfc_main$m = {
|
|
17131
17131
|
__name: "data_selector",
|
|
17132
17132
|
props: {
|
|
17133
|
-
|
|
17134
|
-
type:
|
|
17135
|
-
default:
|
|
17136
|
-
validator: (v) => ["single", "multiple"].includes(v)
|
|
17133
|
+
multiple: {
|
|
17134
|
+
type: Boolean,
|
|
17135
|
+
default: false
|
|
17137
17136
|
},
|
|
17138
17137
|
options: {
|
|
17139
17138
|
type: Array,
|
|
17140
17139
|
required: true
|
|
17141
17140
|
},
|
|
17142
17141
|
modelValue: {
|
|
17143
|
-
type: [Array, String, Number]
|
|
17144
|
-
default: () => []
|
|
17142
|
+
type: [Array, String, Number]
|
|
17145
17143
|
},
|
|
17146
17144
|
rules: {
|
|
17147
17145
|
type: Array,
|
|
@@ -17174,6 +17172,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17174
17172
|
isDisabled
|
|
17175
17173
|
} = util.props2auth(props);
|
|
17176
17174
|
const selectedItems = vue.ref([]);
|
|
17175
|
+
const selectdItemsLabel = vue.computed(() => {
|
|
17176
|
+
if (!selectedItems.value)
|
|
17177
|
+
return "";
|
|
17178
|
+
return selectedItems.value.join(",");
|
|
17179
|
+
});
|
|
17177
17180
|
const popupVisible = vue.ref(false);
|
|
17178
17181
|
const searchKeyword = vue.ref(null);
|
|
17179
17182
|
const checkboxRefs = vue.ref([]);
|
|
@@ -17194,7 +17197,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17194
17197
|
const reShow = () => {
|
|
17195
17198
|
if (props.modelValue) {
|
|
17196
17199
|
if (Array.isArray(props.options)) {
|
|
17197
|
-
if (props.
|
|
17200
|
+
if (props.multiple) {
|
|
17198
17201
|
selectedItems.value = findTextsByValues(props.modelValue, props.options);
|
|
17199
17202
|
} else {
|
|
17200
17203
|
const foundItem = props.options.find((item) => item.value === props.modelValue);
|
|
@@ -17218,7 +17221,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17218
17221
|
if (isReadonly.value) {
|
|
17219
17222
|
return;
|
|
17220
17223
|
}
|
|
17221
|
-
if (props.
|
|
17224
|
+
if (props.multiple) {
|
|
17222
17225
|
checkedValue.value = Array.isArray(props.modelValue) ? props.modelValue : [];
|
|
17223
17226
|
} else {
|
|
17224
17227
|
checkedValue.value = props.modelValue;
|
|
@@ -17229,7 +17232,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17229
17232
|
popupVisible.value = false;
|
|
17230
17233
|
};
|
|
17231
17234
|
const confirmSelection = () => {
|
|
17232
|
-
if (props.
|
|
17235
|
+
if (props.multiple) {
|
|
17233
17236
|
selectedItems.value = findTextsByValues(checkedValue.value, props.options);
|
|
17234
17237
|
emit("update:modelValue", checkedValue.value);
|
|
17235
17238
|
emit("select", values2items(checkedValue.value));
|
|
@@ -17257,7 +17260,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17257
17260
|
});
|
|
17258
17261
|
});
|
|
17259
17262
|
vue.watch(checkedValue, () => {
|
|
17260
|
-
if (props.
|
|
17263
|
+
if (props.multiple) {
|
|
17261
17264
|
if (filteredColumns.value.length === 0) {
|
|
17262
17265
|
isAllChecked.value = false;
|
|
17263
17266
|
} else {
|
|
@@ -17295,7 +17298,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17295
17298
|
type: "textarea",
|
|
17296
17299
|
rows: "1",
|
|
17297
17300
|
autosize: "",
|
|
17298
|
-
modelValue:
|
|
17301
|
+
modelValue: vue.unref(selectdItemsLabel),
|
|
17299
17302
|
readonly: "",
|
|
17300
17303
|
clearable: "",
|
|
17301
17304
|
required: vue.unref(isRequired),
|
|
@@ -17338,7 +17341,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17338
17341
|
},
|
|
17339
17342
|
clearable: "",
|
|
17340
17343
|
placeholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57"
|
|
17341
|
-
}, null, 8, ["modelValue"]),
|
|
17344
|
+
}, null, 8, ["modelValue"]), props.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, [vue.createVNode(_component_van_checkbox, {
|
|
17342
17345
|
shape: "square",
|
|
17343
17346
|
modelValue: isAllChecked.value,
|
|
17344
17347
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isAllChecked.value = $event),
|
|
@@ -17347,7 +17350,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17347
17350
|
}, {
|
|
17348
17351
|
default: vue.withCtx(() => [_hoisted_6$6]),
|
|
17349
17352
|
_: 1
|
|
17350
|
-
}, 8, ["modelValue"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_7$6, [
|
|
17353
|
+
}, 8, ["modelValue"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_7$6, [props.multiple ? (vue.openBlock(), vue.createBlock(_component_van_checkbox_group, {
|
|
17351
17354
|
key: 0,
|
|
17352
17355
|
modelValue: checkedValue.value,
|
|
17353
17356
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkedValue.value = $event)
|
|
@@ -17402,7 +17405,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17402
17405
|
};
|
|
17403
17406
|
}
|
|
17404
17407
|
};
|
|
17405
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
17408
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3f1c4b3e"]]);
|
|
17406
17409
|
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")();
|
|
17407
17410
|
const _hoisted_1$e = {
|
|
17408
17411
|
key: 0,
|
package/package.json
CHANGED
|
@@ -167,8 +167,10 @@ const getAuth = (fieldAuth) => {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
const updateCanApply = async () => {
|
|
170
|
-
if (props.processId)
|
|
171
|
-
|
|
170
|
+
if (props.processId){
|
|
171
|
+
data.canApply = false
|
|
172
|
+
return
|
|
173
|
+
}
|
|
172
174
|
|
|
173
175
|
let res = await util.process_can_apply({
|
|
174
176
|
mouldId: props.mouldId,
|
|
@@ -223,8 +225,6 @@ const formatExecutor = (executor, task) => {
|
|
|
223
225
|
action = `已抄送 ${executor.updatedAt}`
|
|
224
226
|
else
|
|
225
227
|
action = `已审核 ${executor.updatedAt}`
|
|
226
|
-
} else if (data.process.state == 'finish_refuse') {
|
|
227
|
-
action = `已撤销 ${executor.updatedAt}`
|
|
228
228
|
} else if (executor.state == 'refuse') {
|
|
229
229
|
action = `已驳回 ${executor.updatedAt}`
|
|
230
230
|
}
|
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
|
+
}
|
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
|
+
}
|