pull/2/head
qsh 3 months ago
commit 03d7c87934
  1. 17
      src/views/SchoolManagement/Class/Comp/DialogClass.vue

@ -1,5 +1,5 @@
<template> <template>
<Dialog :title="dialogTitle" v-model="dialogVisible" width="1000px"> <Dialog v-if="dialogVisible" :title="dialogTitle" v-model="dialogVisible" width="1000px">
<el-tabs v-model="currentTab"> <el-tabs v-model="currentTab">
<el-tab-pane label="基础信息" name="base"> <el-tab-pane label="基础信息" name="base">
<el-form <el-form
@ -494,6 +494,7 @@ const open = async (type, id, sp) => {
formLoading.value = true formLoading.value = true
try { try {
formData.value = await ClassApi.getClassType(id) formData.value = await ClassApi.getClassType(id)
formData.value.remark = formData.value.remark || ''
formData.value.schPlace = [formData.value.schoolId, formData.value.placeId] formData.value.schPlace = [formData.value.schoolId, formData.value.placeId]
if (!formData.value.companyProfitVO) { if (!formData.value.companyProfitVO) {
profitCompanyForm.value = { profitCompanyForm.value = {
@ -543,11 +544,23 @@ const resetForm = () => {
typeName: '', typeName: '',
licenseType: '', licenseType: '',
status: 0, status: 0,
remark: '', remark: undefined,
quotations: [], quotations: [],
percentages: [] percentages: []
} }
formRef.value?.resetFields() formRef.value?.resetFields()
profitCompanyForm.value = {
profitMode: 1,
dangwei: [],
profitRule: {}
}
profitEmployeeForm.value = {
profitMode: 1,
dangwei: [],
profitRule: {}
}
} }
function handleAddPrice() { function handleAddPrice() {

Loading…
Cancel
Save