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

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

Loading…
Cancel
Save