- 将文件拖到此处,或点击上传
+
+ 将文件拖到此处,或
+ 点击上传
+
仅允许导入xls、xlsx格式文件。
下载模板
+ >下载模板
-->
- -->
+ -->
- 搜索
- 重置
+ 搜索
+ 重置
@@ -78,8 +70,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsCategory:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+ -->
+
-
+
-
+
修改
+ >修改
删除
+ >删除
@@ -192,12 +168,7 @@
:before-close="cancel"
>
-
+
-
+ >
+ />-->
-
+
+ -->
-->
-
+
{
- getStationCategoryList(id).then((res) => {
+ getStationCategoryList(id).then(res => {
// 接口请求
- res.data.forEach((e) => {
+ res.data.forEach(e => {
e.value = e.id;
e.label = e.goodsCategoryName;
});
resolve(
- res.data.map((item) => {
+ res.data.map(item => {
return {
- ...item,
+ ...item
};
})
);
});
}, 300);
- },
+ }
},
imgone: "",
baseurl: "",
@@ -333,35 +295,33 @@ export default {
categoryRemark: null,
sort: null,
parentId: 0,
- parentName: "",
+ parentName: ""
},
// 表单参数
form: {},
// 表单校验
rules: {
goodsCategoryName: [
- { required: true, message: "商品分类名称不能为空", trigger: "blur" },
+ { required: true, message: "商品分类名称不能为空", trigger: "blur" }
],
goodsCategoryCode: [
- { required: true, message: "商品分类编码不能为空", trigger: "blur" },
+ { required: true, message: "商品分类编码不能为空", trigger: "blur" }
],
goodsCategoryPicture: [
- { required: true, message: "商品分类图片不能为空", trigger: "blur" },
+ { required: true, message: "商品分类图片不能为空", trigger: "blur" }
],
categoryRemark: [
- { required: true, message: "分类概述不能为空", trigger: "blur" },
- ],
- sort: [
- { required: true, message: "显示顺序不能为空", trigger: "blur" },
+ { required: true, message: "分类概述不能为空", trigger: "blur" }
],
+ sort: [{ required: true, message: "显示顺序不能为空", trigger: "blur" }]
},
// 树选项
deptOptions: undefined,
categoryLevel: null,
defaultProps: {
children: "children",
- label: "goodsCategoryName",
- },
+ label: "goodsCategoryName"
+ }
};
},
@@ -383,12 +343,12 @@ export default {
this.queryParams.parentName = data.goodsCategoryName;
// this.categoryLevel = data.categoryLevel;
this.handleQuery();
- getStationCategoryList(data.id).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(data.id).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
this.loading = false;
@@ -398,20 +358,20 @@ export default {
/** 查询商品分类信息列表 */
info() {
this.loading = true;
- getStationCategoryList(0).then((res) => {
- res.data.forEach((e) => {
+ getStationCategoryList(0).then(res => {
+ res.data.forEach(e => {
e.children = [
{
- goodsCategoryName: "",
- },
+ goodsCategoryName: ""
+ }
];
});
var obj = [
{
goodsCategoryName: "商品分类名称",
children: res.data,
- id: 0,
- },
+ id: 0
+ }
];
this.deptOptions = obj;
this.loading = false;
@@ -419,7 +379,7 @@ export default {
},
getList() {
this.loading = true;
- listGoodsCategory(this.queryParams).then((response) => {
+ listGoodsCategory(this.queryParams).then(response => {
this.goodsCategoryList = response.rows;
this.total = response.total;
this.loading = false;
@@ -433,7 +393,7 @@ export default {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.open = false;
this.reset();
@@ -452,7 +412,7 @@ export default {
updateBy: null,
updateTime: null,
parentId: null,
- parentName: null,
+ parentName: null
};
this.resetForm("form");
},
@@ -466,14 +426,14 @@ export default {
this.queryParams = {
pageNum: 1,
pageSize: 10,
- parentId: 0,
+ parentId: 0
};
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -482,7 +442,6 @@ export default {
this.reset();
this.open = true;
this.title = "添加商品分类信息";
- console.log(this.queryParams);
// if (this.queryParams.parentId != 0) {
this.form.parentId = this.queryParams.parentId;
// }
@@ -493,26 +452,25 @@ export default {
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
- getGoodsCategory(id).then((response) => {
+ getGoodsCategory(id).then(response => {
this.form = response.data;
this.imgone = this.form.goodsCategoryPicture;
this.open = true;
this.title = "修改商品分类信息";
- console.log(this.form);
});
},
/** 提交按钮 */
submitForm() {
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- updateGoodsCategory(this.form).then((response) => {
+ updateGoodsCategory(this.form).then(response => {
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.imgone);
}
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {});
+ updatePicture(obj).then(res => {});
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow;
@@ -521,7 +479,7 @@ export default {
this.info();
});
} else {
- addGoodsCategory(this.form).then((response) => {
+ addGoodsCategory(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
++this.isResouceShow;
this.open = false;
@@ -534,20 +492,17 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- console.log(row);
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除?")
- .then(function () {
+ .then(function() {
return delGoodsCategory(ids);
})
.then(() => {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsCategoryPicture);
if (obj.pictureUrlList.length > 0) {
- updatePicture(obj).then((res) => {
- console.log(res);
- });
+ updatePicture(obj).then(res => {});
}
this.getList();
this.$modal.msgSuccess("删除成功");
@@ -559,15 +514,15 @@ export default {
this.download(
"system/goodsCategory/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`goodsCategory_${new Date().getTime()}.xlsx`
);
},
imgUrl(imgUrl) {
this.form.goodsCategoryPicture = imgUrl;
- },
- },
+ }
+ }
};
From 37ab33f1da1f88f9aabfc2d536218ca14532d5d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Thu, 13 Apr 2023 15:36:10 +0800
Subject: [PATCH 51/51] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/order/index.vue | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/views/system/order/index.vue b/src/views/system/order/index.vue
index 7dfe747..023e378 100644
--- a/src/views/system/order/index.vue
+++ b/src/views/system/order/index.vue
@@ -310,7 +310,7 @@
离线
-
+
@@ -321,6 +321,13 @@
{{ scope.row.nursePersonType == "NURSE_TEACHER" ? "护理师" : "" }}
+
+
+ {{ scope.row.positionalTitleLevel == "PRIMARY_LEVEL" ? "初级" : "" }}
+ {{ scope.row.positionalTitleLevel == "MIDDLE_LEVEL" ? "中级" : "" }}
+ {{ scope.row.positionalTitleLevel == "HIGH_LEVEL" ? "高级" : "" }}
+
+