From 884d1457cebbda20ad2539550062c408a58709be Mon Sep 17 00:00:00 2001
From: jinlin <721705285@qq.com>
Date: 星期五, 27 二月 2026 16:19:35 +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