general-basic-form 1.0.21 → 1.0.25
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/README.md +19 -2
- package/package.json +1 -1
- package/src/GeneralBasicForm.vue +9 -6
package/README.md
CHANGED
|
@@ -40,10 +40,12 @@
|
|
|
40
40
|
|
|
41
41
|
表单数据校验需要拿到内部表单的ref
|
|
42
42
|
|
|
43
|
-
this.$refs["generalBasicForm"].$["queryFormRef"]
|
|
43
|
+
this.$refs["generalBasicForm"].$refs["queryFormRef"]
|
|
44
44
|
.validate(
|
|
45
45
|
async (valid) => {
|
|
46
|
-
if (valid) {
|
|
46
|
+
if (valid) {
|
|
47
|
+
console.log(this.$refs["generalBasicForm"]["queryParams"]);
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
50
|
);
|
|
49
51
|
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
label: "二次工艺",
|
|
80
82
|
prop: "spName",
|
|
81
83
|
type: "select",
|
|
84
|
+
multiple:true, //多选
|
|
82
85
|
option: [
|
|
83
86
|
{ value: "3", desc: "满印" },
|
|
84
87
|
{ value: "1", desc: "区域印花" },
|
|
@@ -91,6 +94,20 @@
|
|
|
91
94
|
type: "date-picker",
|
|
92
95
|
"value-format": "yyyyMMdd"
|
|
93
96
|
},
|
|
97
|
+
{
|
|
98
|
+
label: "二次工艺成本价格(人民币分)",
|
|
99
|
+
prop: "spCost",
|
|
100
|
+
type: "input-number",
|
|
101
|
+
"controls-position": "right",
|
|
102
|
+
min: 0,
|
|
103
|
+
rules: [
|
|
104
|
+
{
|
|
105
|
+
required: true,
|
|
106
|
+
message: "请输入二次工艺成本价格",
|
|
107
|
+
trigger: "blur",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
94
111
|
{
|
|
95
112
|
label: "分类",
|
|
96
113
|
prop: "分类",
|
package/package.json
CHANGED
package/src/GeneralBasicForm.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: 陈德立*******419287484@qq.com
|
|
3
3
|
* @Date: 2021-08-20 17:14:53
|
|
4
|
-
* @LastEditTime: 2021-11-
|
|
4
|
+
* @LastEditTime: 2021-11-23 17:49:55
|
|
5
5
|
* @LastEditors: 陈德立*******419287484@qq.com
|
|
6
6
|
* @Github: https://github.com/Alan1034
|
|
7
7
|
* @Description:
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
v-model="queryParams[item.prop]"
|
|
52
52
|
:size="size"
|
|
53
53
|
v-bind="selectSetting"
|
|
54
|
+
:multiple="item.multiple"
|
|
54
55
|
:placeholder="item.placeholder || selectSetting.placeholder"
|
|
55
56
|
>
|
|
56
57
|
<el-option
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
:min="item.min"
|
|
91
92
|
:max="item.max"
|
|
92
93
|
:controls-position="item['controls-position']"
|
|
94
|
+
:step-strictly="item['step-strictly']"
|
|
93
95
|
/>
|
|
94
96
|
</el-form-item>
|
|
95
97
|
<slot></slot>
|
|
@@ -231,6 +233,9 @@ export default {
|
|
|
231
233
|
query: { ...params },
|
|
232
234
|
});
|
|
233
235
|
}
|
|
236
|
+
this.queryParams = {
|
|
237
|
+
...(this.noUrlParameters ? {} : this.$route?.query),
|
|
238
|
+
};
|
|
234
239
|
this.handleQuery();
|
|
235
240
|
},
|
|
236
241
|
currentInputComponent() {
|
|
@@ -240,10 +245,8 @@ export default {
|
|
|
240
245
|
};
|
|
241
246
|
</script>
|
|
242
247
|
|
|
243
|
-
<style
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
margin-bottom: 3px;
|
|
247
|
-
}
|
|
248
|
+
<style scoped>
|
|
249
|
+
.el-form-item {
|
|
250
|
+
margin-bottom: 2px !important;
|
|
248
251
|
}
|
|
249
252
|
</style>
|