Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

additionalCharges.vue 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <el-dialog
  3. title="附加收费"
  4. width="300px"
  5. :visible.sync="visible"
  6. :before-close="_close"
  7. >
  8. <el-table :data="tableData" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }"
  9. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
  10. @selection-change="handleSelectionChange">
  11. <el-table-column align="center" type="selection" width="40"></el-table-column>
  12. <el-table-column align="center" prop="name" label="名称" width="100">
  13. <template slot-scope="scope">{{ scope.row.name }}</template>
  14. </el-table-column>
  15. <el-table-column align="center" prop="name" label="金额(元)">
  16. <template slot-scope="scope">
  17. <el-input v-model="scope.row.money" placeholder=""></el-input>
  18. </template>
  19. </el-table-column>
  20. </el-table>
  21. <div slot="footer" class="dialog-footer">
  22. <el-button @click="hide">取 消</el-button>
  23. <el-button type="primary" @click="submitAction()">保 存</el-button>
  24. </div>
  25. </el-dialog>
  26. </template>
  27. <script>
  28. import { saveCharges } from "@/api/project/project"
  29. export default {
  30. data(){
  31. return{
  32. visible:false,
  33. form:{
  34. name:''
  35. },
  36. tableData:[
  37. {id:1,name:"工本费",money:""},
  38. {id:2,name:"挂号费",money:""},
  39. {id:3,name:"诊疗费",money:""}
  40. ],
  41. chargeTable:[]
  42. }
  43. },
  44. methods:{
  45. _close: function(done) {
  46. // this.clear()
  47. done()
  48. },
  49. clear: function() {
  50. this.form.id = 0;
  51. this.form.name = "";
  52. this.form.intro = "";
  53. },
  54. show() {
  55. // this.clear()
  56. this.visible = true
  57. },
  58. hide() {
  59. // this.clear()
  60. this.visible = false
  61. },
  62. handleSelectionChange(val){
  63. console.log("val",val)
  64. this.chargeTable = val
  65. },
  66. submitAction(){
  67. var params = {
  68. patient_id:this.patient_id,
  69. medicineData:this.chargeTable
  70. }
  71. console.log("params",params)
  72. saveCharges(params).then(response=>{
  73. if(response.data.state == 1){
  74. var additionalCharge = response.data.data.additionalCharge
  75. console.log("additionalchar",additionalCharge)
  76. this.visible = false
  77. this.$message.success("保存成功")
  78. }
  79. })
  80. }
  81. }
  82. }
  83. </script>