收费挂号项目 up by dh
This commit is contained in:
@@ -56,7 +56,7 @@ export function deptTreeSelect(queryParams) {
|
|||||||
// 查询地点树形数据
|
// 查询地点树形数据
|
||||||
export function locationTreeSelect(queryParams) {
|
export function locationTreeSelect(queryParams) {
|
||||||
return request({
|
return request({
|
||||||
url: '/basedatamanage/organization/organization',
|
url: '/basedatamanage/cabinet-location/cabinet-location',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
param: queryParams
|
param: queryParams
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -63,28 +63,6 @@
|
|||||||
>添加</el-button
|
>添加</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="danger"
|
|
||||||
plain
|
|
||||||
icon="Remove"
|
|
||||||
:disabled="multiple"
|
|
||||||
@click="handleClose"
|
|
||||||
v-hasPermi="['system:user:edit']"
|
|
||||||
>停用</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="success"
|
|
||||||
plain
|
|
||||||
icon="CirclePlus"
|
|
||||||
:disabled="multiple"
|
|
||||||
@click="handleStart"
|
|
||||||
v-hasPermi="['system:user:remove']"
|
|
||||||
>启用</el-button
|
|
||||||
>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@@ -299,7 +277,7 @@
|
|||||||
<el-form-item label="地点" prop="locationId">
|
<el-form-item label="地点" prop="locationId">
|
||||||
<el-tree-select
|
<el-tree-select
|
||||||
v-model="form.locationId"
|
v-model="form.locationId"
|
||||||
:data="deptOptions"
|
:data="locationOptions"
|
||||||
:props="{ value: 'id', label: 'name', children: 'children' }"
|
:props="{ value: 'id', label: 'name', children: 'children' }"
|
||||||
value-key="id"
|
value-key="id"
|
||||||
placeholder="请选择地点"
|
placeholder="请选择地点"
|
||||||
@@ -363,9 +341,9 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-form-item label="服务说明" prop="description">
|
<el-form-item label="服务说明" prop="comment">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.description"
|
v-model="form.comment"
|
||||||
:autosize="{ minRows: 4, maxRows: 10 }"
|
:autosize="{ minRows: 4, maxRows: 10 }"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
@@ -429,9 +407,9 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24" v-if="form.id == undefined">
|
<el-row :gutter="24" v-if="form.id == undefined">
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-form-item label="收费说明" prop="comment">
|
<el-form-item label="收费说明" prop="description">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.comment"
|
v-model="form.description"
|
||||||
:autosize="{ minRows: 4, maxRows: 10 }"
|
:autosize="{ minRows: 4, maxRows: 10 }"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
@@ -464,6 +442,7 @@ import {
|
|||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
const registrationfeeRef = ref(null); // 初始化 ref
|
||||||
const {
|
const {
|
||||||
adm_location,
|
adm_location,
|
||||||
category_code,
|
category_code,
|
||||||
@@ -617,7 +596,7 @@ function reset() {
|
|||||||
cwTypeCode: undefined,
|
cwTypeCode: undefined,
|
||||||
fwTypeCode: undefined,
|
fwTypeCode: undefined,
|
||||||
specialtyCode: undefined,
|
specialtyCode: undefined,
|
||||||
locationId: 1,
|
locationId: undefined,
|
||||||
offeredOrgId: undefined,
|
offeredOrgId: undefined,
|
||||||
activeFlag: undefined,
|
activeFlag: undefined,
|
||||||
extraDetails: undefined,
|
extraDetails: undefined,
|
||||||
@@ -628,6 +607,7 @@ function reset() {
|
|||||||
description: undefined,
|
description: undefined,
|
||||||
ybType: undefined,
|
ybType: undefined,
|
||||||
title: undefined,
|
title: undefined,
|
||||||
|
comment: undefined,
|
||||||
};
|
};
|
||||||
proxy.resetForm("registrationfeeRef");
|
proxy.resetForm("registrationfeeRef");
|
||||||
}
|
}
|
||||||
@@ -639,37 +619,12 @@ function cancel() {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
function handleAdd() {
|
function handleAdd() {
|
||||||
reset();
|
reset();
|
||||||
// 恢复规则
|
|
||||||
rules.value.cwTypeCode = [
|
|
||||||
{ required: true, message: "财务类别不能为空", trigger: "blur" },
|
|
||||||
];
|
|
||||||
rules.value.ybType = [
|
|
||||||
{ required: true, message: "医保类别不能为空", trigger: "blur" },
|
|
||||||
];
|
|
||||||
rules.value.price = [
|
|
||||||
{ required: true, message: "基础价格不能为空", trigger: "blur" },
|
|
||||||
];
|
|
||||||
|
|
||||||
rules.value.chargeName = [
|
|
||||||
{ required: true, message: "名称不能为空", trigger: "blur" },
|
|
||||||
];
|
|
||||||
rules.value.description = [
|
|
||||||
{ required: true, message: "描述不能为空", trigger: "blur" },
|
|
||||||
];
|
|
||||||
|
|
||||||
open.value = true;
|
open.value = true;
|
||||||
title.value = "新增";
|
title.value = "新增";
|
||||||
}
|
}
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
function handleUpdate(row) {
|
function handleUpdate(row) {
|
||||||
reset();
|
reset();
|
||||||
// 移除规则
|
|
||||||
rules.value.chargeName = [];
|
|
||||||
rules.value.description = [];
|
|
||||||
rules.value.cwTypeCode = [];
|
|
||||||
rules.value.ybType = [];
|
|
||||||
rules.value.price = [];
|
|
||||||
console.log(row, "row");
|
|
||||||
form.value = JSON.parse(JSON.stringify(row));
|
form.value = JSON.parse(JSON.stringify(row));
|
||||||
form.value.fwTypeCode = form.value.typeCode;
|
form.value.fwTypeCode = form.value.typeCode;
|
||||||
open.value = true;
|
open.value = true;
|
||||||
@@ -677,6 +632,32 @@ function handleUpdate(row) {
|
|||||||
}
|
}
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
function submitForm() {
|
function submitForm() {
|
||||||
|
if (form.value.id != undefined) {
|
||||||
|
// 移除规则
|
||||||
|
rules.value.chargeName = [];
|
||||||
|
rules.value.description = [];
|
||||||
|
rules.value.cwTypeCode = [];
|
||||||
|
rules.value.ybType = [];
|
||||||
|
rules.value.price = [];
|
||||||
|
} else {
|
||||||
|
// 恢复规则
|
||||||
|
rules.value.cwTypeCode = [
|
||||||
|
{ required: true, message: "财务类别不能为空", trigger: "blur" },
|
||||||
|
];
|
||||||
|
rules.value.ybType = [
|
||||||
|
{ required: true, message: "医保类别不能为空", trigger: "blur" },
|
||||||
|
];
|
||||||
|
rules.value.price = [
|
||||||
|
{ required: true, message: "基础价格不能为空", trigger: "blur" },
|
||||||
|
];
|
||||||
|
|
||||||
|
rules.value.chargeName = [
|
||||||
|
{ required: true, message: "名称不能为空", trigger: "blur" },
|
||||||
|
];
|
||||||
|
rules.value.description = [
|
||||||
|
{ required: true, message: "描述不能为空", trigger: "blur" },
|
||||||
|
];
|
||||||
|
}
|
||||||
proxy.$refs["registrationfeeRef"].validate((valid) => {
|
proxy.$refs["registrationfeeRef"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (form.value.id != undefined) {
|
if (form.value.id != undefined) {
|
||||||
@@ -687,6 +668,7 @@ function submitForm() {
|
|||||||
editRegistrationfee(transformFormEditParam).then((response) => {
|
editRegistrationfee(transformFormEditParam).then((response) => {
|
||||||
proxy.$modal.msgSuccess("修改成功");
|
proxy.$modal.msgSuccess("修改成功");
|
||||||
open.value = false;
|
open.value = false;
|
||||||
|
reset();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -694,6 +676,7 @@ function submitForm() {
|
|||||||
const transformedData = transformFormData(form);
|
const transformedData = transformFormData(form);
|
||||||
console.log(transformedData, "transformedData");
|
console.log(transformedData, "transformedData");
|
||||||
addRegistrationfee(transformedData).then((response) => {
|
addRegistrationfee(transformedData).then((response) => {
|
||||||
|
reset();
|
||||||
proxy.$modal.msgSuccess("新增成功");
|
proxy.$modal.msgSuccess("新增成功");
|
||||||
open.value = false;
|
open.value = false;
|
||||||
getList();
|
getList();
|
||||||
@@ -749,6 +732,7 @@ const transformFormData = (form) => {
|
|||||||
description,
|
description,
|
||||||
ybType,
|
ybType,
|
||||||
title,
|
title,
|
||||||
|
comment,
|
||||||
} = form.value;
|
} = form.value;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -764,6 +748,7 @@ const transformFormData = (form) => {
|
|||||||
contact,
|
contact,
|
||||||
appointmentRequiredFlag,
|
appointmentRequiredFlag,
|
||||||
extraDetails,
|
extraDetails,
|
||||||
|
comment,
|
||||||
},
|
},
|
||||||
chargeItemDefinitionFormData: {
|
chargeItemDefinitionFormData: {
|
||||||
id,
|
id,
|
||||||
@@ -799,6 +784,7 @@ const transformFormEditData = (form) => {
|
|||||||
description,
|
description,
|
||||||
ybType,
|
ybType,
|
||||||
title,
|
title,
|
||||||
|
comment,
|
||||||
} = form.value;
|
} = form.value;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -814,11 +800,13 @@ const transformFormEditData = (form) => {
|
|||||||
contact,
|
contact,
|
||||||
appointmentRequiredFlag,
|
appointmentRequiredFlag,
|
||||||
extraDetails,
|
extraDetails,
|
||||||
|
comment,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
getregistrationfeeTypeList();
|
getregistrationfeeTypeList();
|
||||||
getDeptTree();
|
getDeptTree();
|
||||||
|
getLocationTree();
|
||||||
getList();
|
getList();
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user