project.vue 4.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div class="page_project">
  3. <div style="display:flex;justify-content: space-between;width:100%;margin-bottom:20px;">
  4. <div class="cell clearfix" style="margin-bottom:0;">
  5. <el-input style="width: 180px;margin-right:10px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  6. <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
  7. <label class="title"><span class="name">是否启用</span> : </label>
  8. <el-select v-model="value" style="width:140px;margin-right:10px;" placeholder="请选择">
  9. <el-option
  10. v-for="item in options"
  11. :key="item.value"
  12. :label="item.label"
  13. :value="item.value">
  14. </el-option>
  15. </el-select>
  16. <label class="title"><span class="name">是否收费</span> : </label>
  17. <el-select v-model="value" style="width:140px;margin-right:10px;" placeholder="请选择">
  18. <el-option
  19. v-for="item in options"
  20. :key="item.value"
  21. :label="item.label"
  22. :value="item.value">
  23. </el-option>
  24. </el-select>
  25. </div>
  26. <el-button type="primary" @click="openForm(0)">新增</el-button>
  27. </div>
  28. <el-table :data="tableData" border style="width: 100%" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}">
  29. <el-table-column prop="date" label="自编码" width="80" align="center"></el-table-column>
  30. <el-table-column prop="date" label="名称" align="center"></el-table-column>
  31. <el-table-column prop="date" label="费用类型" align="center"></el-table-column>
  32. <el-table-column prop="date" label="医计科室" width="140" align="center"></el-table-column>
  33. <el-table-column label="医保编码" width="140" align="center"></el-table-column>
  34. <el-table-column label="状态" width="60" align="center"></el-table-column>
  35. <el-table-column prop="date" label="操作" width="300" align="center">
  36. <template slot-scope="scope">
  37. <el-button @click="openForm(scope.row)" type="primary" size="small">编辑</el-button>
  38. <el-button type="primary" size="small" @click="clickSelfPayment">自付比例</el-button>
  39. <el-button type="danger" size="small">删除</el-button>
  40. </template>
  41. </el-table-column>
  42. </el-table>
  43. <add-project ref="addProject"></add-project>
  44. </div>
  45. </template>
  46. <script>
  47. import addProject from './addProject'
  48. export default {
  49. components:{
  50. addProject
  51. },
  52. data(){
  53. return{
  54. search_input:'',
  55. options: [{
  56. value: '1',
  57. label: '是'
  58. }, {
  59. value: '2',
  60. label: '否'
  61. },],
  62. value: '',
  63. tableData: [{
  64. date: '2016-05-02',
  65. name: '王小虎',
  66. address: '上海市普陀区金沙江路 1518 弄'
  67. }, {
  68. date: '2016-05-04',
  69. name: '王小虎',
  70. address: '上海市普陀区金沙江路 1517 弄'
  71. }, {
  72. date: '2016-05-01',
  73. name: '王小虎',
  74. address: '上海市普陀区金沙江路 1519 弄'
  75. }, {
  76. date: '2016-05-03',
  77. name: '王小虎',
  78. address: '上海市普陀区金沙江路 1516 弄'
  79. }]
  80. }
  81. },
  82. methods:{
  83. searchAction(){},
  84. clickSelfPayment(){
  85. this.$refs.selfPayment.show();
  86. },
  87. clickMainTain(){
  88. // this.$refs.maintain.show();
  89. },
  90. openForm(id){
  91. this.$refs.addProject.show(id);
  92. }
  93. }
  94. }
  95. </script>