新增数据,开始安全巡检模块
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="AddBuildingBox">
|
||||
<PageHeader :title="userid ? '编辑月卡' : '添加月卡'"></PageHeader>
|
||||
<PageHeader :title="userid ? '编辑停车缴费' : '添加停车缴费'"></PageHeader>
|
||||
<div class="AddBuildingBody">
|
||||
<div class="title">基本信息</div>
|
||||
<div class="addBuildingFormBody">
|
||||
@@ -108,11 +108,9 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import PageHeader from '@/components/Pageheader/index.vue';
|
||||
import { addMonthCard, getMonthCard, updateMonthCard } from '@/api/system/MonthCard';
|
||||
import { listArea } from '@/api/system/carArea';
|
||||
import { addParkingCost, getParkingCost, updateParkingCost } from '@/api/system/ParkingCost';
|
||||
import { listParking } from '@/api/system/parking';
|
||||
import { getCommunitylistAPI } from '@/api/system/community';
|
||||
import { validator } from '@/utils/Reg';
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
const { com_pay_method } = toRefs<any>(proxy?.useDict('com_pay_method'));
|
||||
@@ -125,7 +123,6 @@ const route = useRoute();
|
||||
const formRef = ref();
|
||||
const form = ref({
|
||||
id: null,
|
||||
villageId: Number(localStorage.getItem('villageid')), // 所属小区id
|
||||
areaId: null, // 区域id
|
||||
parkingId: '', // 车位id
|
||||
chargeItem: '0', // 临时停车
|
||||
@@ -215,7 +212,6 @@ function handleArea(val: string) {
|
||||
const submitForm = () => {
|
||||
formRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
form.value.villageId = Number(localStorage.getItem('villageid'));
|
||||
if (userid.value) {
|
||||
updateParkingCost(form.value).then((res) => {
|
||||
ElMessage.success('编辑成功');
|
||||
|
||||
Reference in New Issue
Block a user