jinlin
2026-02-27 c7752a2c89e2a05ea1fe2f3183928ff69f60ef32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<template>
  <el-card shadow="never" class="aui-card--fill">
    <div class="mod-statement-statement}">
      <zt-table-wraper query-url="/statement/Statement/page" delete-url="/statement/Statement/" v-slot="{ table }">
        <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
          <el-form-item>
            <el-input v-model="dataForm.year" placeholder="请输入年份" clearable></el-input>
 
          </el-form-item>
          <el-form-item>
            <el-input v-model="dataForm.project" placeholder="请输入课题编码" clearable></el-input>
 
          </el-form-item>
          <el-form-item>
            <zt-dict v-model="dataForm.isFinished" dict="is_or_not" clearable></zt-dict>
 
          </el-form-item>
          <el-form-item>
            <el-input v-model="dataForm.department" placeholder="请输入部门编码" clearable></el-input>
 
          </el-form-item>
          <el-form-item>
            <zt-button type="query" @click="table.query()"/>
            <zt-button type="add"  @click="table.editHandle()"/>
            <zt-button type="delete"  @click="table.deleteHandle()"/>
          </el-form-item>
        </el-form>
        <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}"
                  border @selection-change="table.selectionChangeHandle">
          <el-table-column type="selection" width="40"/>
          <el-table-column prop="year" label="年份"/>
          <el-table-column prop="project" label="课题编码"/>
          <zt-table-column-dict prop="isFinished" label="是否完工" dict="is_or_not"/>
          <el-table-column prop="department" label="部门编码"/>
          <el-table-column prop="price" label="价款"/>
          <el-table-column prop="directCost" label="直接成本"/>
          <el-table-column prop="ftCost" label="分摊成本"/>
          <el-table-column prop="ftLimit" label="分摊限制"/>
          <el-table-column prop="hours" label="工时"/>
          <el-table-column prop="priceAccount" label="价款科目编码"/>
          <el-table-column prop="costAccount" label="成本科目编码"/>
          <el-table-column prop="remark" label="备注"/>
          <zt-table-column-handle :table="table"/>
        </el-table>
        <!-- 弹窗, 新增 / 修改 -->
        <add-or-update @refreshDataList="table.query"/>
      </zt-table-wraper>
    </div>
  </el-card>
</template>
 
<script>
import StatementAddOrUpdate from './statement-AddOrUpdate.vue'
 
export default {
  data() {
    return {
      dataForm: {
        year: '',
        project: '',
        isFinished: '',
        department: '',
      }
    }
  },
  components: {
    AddOrUpdate: StatementAddOrUpdate
  }
}
</script>