From 4117fee0f41a2c0e5478da941b0962c8198b0fdf Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Tue, 22 Jul 2025 14:32:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99=E7=B1=BB?=
=?UTF-8?q?=E5=88=AB=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=E5=B1=95=E7=A4=BA?=
=?UTF-8?q?=E5=BD=A2=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ConfigMaterial/ConfigMaterialAllList.vue | 246 +++++++++++++-----
.../ConfigMaterialCategory.data.ts | 26 +-
.../components/ConfigMaterialCategoryForm.vue | 201 +++++++++-----
.../ConfigMaterialCategoryModal.vue | 135 +++++-----
.../ConfigMaterialMedicationForm.vue | 24 +-
.../components/ConfigMaterialTypeForm.vue | 19 +-
6 files changed, 420 insertions(+), 231 deletions(-)
diff --git a/src/views/invoicing/ConfigMaterial/ConfigMaterialAllList.vue b/src/views/invoicing/ConfigMaterial/ConfigMaterialAllList.vue
index 74e4593..77f76f2 100644
--- a/src/views/invoicing/ConfigMaterial/ConfigMaterialAllList.vue
+++ b/src/views/invoicing/ConfigMaterial/ConfigMaterialAllList.vue
@@ -6,14 +6,14 @@
- 物料类别
-
+ 一级分类
+
- 物料类型
-
+ 二级分类
+
@@ -27,60 +27,129 @@
-
-
-
-
- 物料类别
- 物料类型
- 用药类型
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{{title}}
+
(已停用)
+
+
+
+
+
+
+
+
+
+ 添加本级
+
+
+ 添加下级
+
+
+ 编辑
+
+
+ 启用
+
+
+ 停用
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialCategoryModal.vue b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialCategoryModal.vue
index 776982f..9477b0f 100644
--- a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialCategoryModal.vue
+++ b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialCategoryModal.vue
@@ -1,76 +1,77 @@
-
-
-
+
+
+
-
\ No newline at end of file
+
+
diff --git a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialMedicationForm.vue b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialMedicationForm.vue
index 0339dc7..ed8cfa8 100644
--- a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialMedicationForm.vue
+++ b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialMedicationForm.vue
@@ -5,23 +5,18 @@
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
@@ -53,7 +48,6 @@
categoryId: '',
typeId: '',
medicationName: '',
- izEnabled: '',
});
const { createMessage } = useMessage();
const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } });
@@ -61,9 +55,9 @@
const confirmLoading = ref(false);
//表单验证
const validatorRules = reactive({
- categoryId: [{ required: true, message: '请输入物料类别!'},],
- typeId: [{ required: true, message: '请输入物料类型!'},],
- medicationName: [{ required: true, message: '请输入名称!'},],
+ categoryId: [{ required: true, message: '请输入一级分类!'},],
+ typeId: [{ required: true, message: '请输入二级分类!'},],
+ medicationName: [{ required: true, message: '请输入三级分类!'},],
});
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
diff --git a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialTypeForm.vue b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialTypeForm.vue
index 4d1fcf5..8ef3e8f 100644
--- a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialTypeForm.vue
+++ b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialTypeForm.vue
@@ -5,18 +5,13 @@
-
-
+
+
-
-
-
-
-
-
-
+
+
@@ -47,7 +42,6 @@
id: '',
categoryId: '',
typeName: '',
- izEnabled: '',
});
const { createMessage } = useMessage();
const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } });
@@ -55,8 +49,8 @@
const confirmLoading = ref(false);
//表单验证
const validatorRules = reactive({
- categoryId: [{ required: true, message: '请输入物料类别!'},],
- typeName: [{ required: true, message: '请输入物料类型!'},],
+ categoryId: [{ required: true, message: '请输入一级分类!'},],
+ typeName: [{ required: true, message: '请输入二级分类!'},],
});
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
@@ -84,6 +78,7 @@
* 编辑
*/
function edit(record) {
+ console.log("🚀 ~ edit ~ record:", record)
nextTick(() => {
resetFields();
const tmpData = {};