|
|
@@ -92,6 +92,12 @@
|
|
|
<el-option label="否" value="0"/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="收费性质" prop="chargeNature">
|
|
|
+ <el-checkbox-group v-model="formData.chargeNature">
|
|
|
+ <el-checkbox label="法定收费" value="1"/>
|
|
|
+ <el-checkbox label="服务收费" value="2"/>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="费用计算类型" prop="feeCalcType" v-if="formData.isFee === '1'">
|
|
|
<el-radio-group v-model="formData.feeCalcType">
|
|
|
<el-radio value="1">固定费用</el-radio>
|
|
|
@@ -184,6 +190,7 @@ const formData = ref({
|
|
|
operationInstruction: undefined,
|
|
|
approvalCode: undefined,
|
|
|
isSign: undefined, // 是否需要签名
|
|
|
+ chargeNature: [], // 收费性质(1=法定收费, 2=服务收费,多个用逗号分隔)
|
|
|
})
|
|
|
const formRules = reactive({
|
|
|
projectName: [
|
|
|
@@ -239,6 +246,14 @@ const formRules = reactive({
|
|
|
trigger: 'change'
|
|
|
},
|
|
|
],
|
|
|
+ chargeNature: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ type: 'array',
|
|
|
+ message: '收费性质不能为空',
|
|
|
+ trigger: 'change'
|
|
|
+ },
|
|
|
+ ],
|
|
|
})
|
|
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
@@ -276,6 +291,7 @@ const open = async (type: string, id?: string) => {
|
|
|
...formData.value,
|
|
|
...data,
|
|
|
feeTypes: data.feeTypes ? data.feeTypes.split(',') : [],
|
|
|
+ chargeNature: data.chargeNature ? data.chargeNature.split(',') : [],
|
|
|
}
|
|
|
await nextTick()
|
|
|
isLoadingData = false
|
|
|
@@ -296,6 +312,7 @@ const submitForm = async () => {
|
|
|
const data = {
|
|
|
...formData.value,
|
|
|
feeTypes: Array.isArray(formData.value.feeTypes) ? formData.value.feeTypes.join(',') : formData.value.feeTypes,
|
|
|
+ chargeNature: Array.isArray(formData.value.chargeNature) ? formData.value.chargeNature.join(',') : formData.value.chargeNature,
|
|
|
} as unknown as BoilerConnectRecordReportVO
|
|
|
if (formType.value === 'create') {
|
|
|
await BoilerConnectRecordReportApi.createBoilerConnectRecordReport(data)
|
|
|
@@ -341,6 +358,7 @@ const resetForm = () => {
|
|
|
operationInstruction: undefined,
|
|
|
approvalCode: undefined,
|
|
|
isSign: undefined,
|
|
|
+ chargeNature: [],
|
|
|
}
|
|
|
formRef.value?.resetFields()
|
|
|
}
|
|
|
@@ -432,6 +450,7 @@ const handleEditFeeFile = async () => {
|
|
|
const data = {
|
|
|
...formData.value,
|
|
|
feeTypes: Array.isArray(formData.value.feeTypes) ? formData.value.feeTypes.join(',') : formData.value.feeTypes,
|
|
|
+ chargeNature: Array.isArray(formData.value.chargeNature) ? formData.value.chargeNature.join(',') : formData.value.chargeNature,
|
|
|
} as unknown as BoilerConnectRecordReportVO
|
|
|
if (formType.value === 'create') {
|
|
|
await BoilerConnectRecordReportApi.createBoilerConnectRecordReport(data)
|