From c7752a2c89e2a05ea1fe2f3183928ff69f60ef32 Mon Sep 17 00:00:00 2001
From: jinlin <721705285@qq.com>
Date: 星期五, 27 二月 2026 14:12:57 +0800
Subject: [PATCH] 删除不必要的前端组件

---
 web/src/views/modules/statement/statement-AddOrUpdate.vue |   76 +++++++++++++++++++-------------------
 1 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/web/src/views/modules/statement/statement-AddOrUpdate.vue b/web/src/views/modules/statement/statement-AddOrUpdate.vue
index 317382e..0179729 100644
--- a/web/src/views/modules/statement/statement-AddOrUpdate.vue
+++ b/web/src/views/modules/statement/statement-AddOrUpdate.vue
@@ -23,13 +23,13 @@
         <el-input v-model="dataForm.directCost"></el-input>
       </zt-form-item>
       <zt-form-item label="鍒嗘憡鎴愭湰" prop="ftCost" rules="required">
-        <el-input v-model="dataForm.ftCost"></el-input>
+        <el-input v-model="dataForm.ftCost" readonly></el-input>
       </zt-form-item>
       <zt-form-item label="鍒嗘憡闄愬埗" prop="ftLimit" rules="required">
         <el-input v-model="dataForm.ftLimit"></el-input>
       </zt-form-item>
       <zt-form-item label="宸ユ椂" prop="hours" rules="required">
-        <el-input v-model="dataForm.hours"></el-input>
+        <el-input v-model="dataForm.hours" readonly></el-input>
       </zt-form-item>
       <zt-form-item label="浠锋绉戠洰缂栫爜" prop="priceAccount" rules="required">
         <el-input v-model="dataForm.priceAccount"></el-input>
@@ -45,45 +45,45 @@
 </template>
 
 <script>
-export default {
-  data() {
-    return {
-      dataForm: {
-        id: '',
-        year: '',
-        project: '',
-        projectTypeId: '',
-        isFinished: '',
-        department: '',
-        price: '',
-        directCost: '',
-        ftCost: '',
-        ftLimit: '',
-        hours: '',
-        priceAccount: '',
-        costAccount: '',
-        remark: ''
-      }
-    }
-  },
-  methods: {
-    // 鑾峰彇淇℃伅
-    async getInfo() {
-      let res = await this.$http.get(`/statement/Statement/${this.dataForm.id}`)
-      this.dataForm = {
-        ...this.dataForm,
-        ...res.data
+  export default {
+    data() {
+      return {
+        dataForm: {
+          id: '',
+          year: '',
+          project: '',
+          projectTypeId: '',
+          isFinished: '',
+          department: '',
+          price: '',
+          directCost: '',
+          ftCost: '',
+          ftLimit: '',
+          hours: '',
+          priceAccount: '',
+          costAccount: '',
+          remark: ''
+        }
       }
     },
-    // 琛ㄥ崟鎻愪氦
-    async formSubmit() {
-      let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/statement/Statement/', this.dataForm)
-      if (res.success) {
-        await this.$tip.success()
-        this.$refs.dialog.close()
-        this.$emit('refreshDataList')
+    methods: {
+      // 鑾峰彇淇℃伅
+      async getInfo() {
+        let res = await this.$http.get(`/statement/Statement/${this.dataForm.id}`)
+        this.dataForm = {
+          ...this.dataForm,
+          ...res.data
+        }
+      },
+      // 琛ㄥ崟鎻愪氦
+      async formSubmit() {
+        let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/statement/Statement/', this.dataForm)
+        if (res.success) {
+          await this.$tip.success()
+          this.$refs.dialog.close()
+          this.$emit('refreshDataList')
+        }
       }
     }
   }
-}
 </script>

--
Gitblit v1.9.1