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

additionalCharges.vue 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. props:{
  31. paitent_id:Number,
  32. },
  33. data(){
  34. return{
  35. visible:false,
  36. form:{
  37. name:''
  38. },
  39. tableData:[
  40. {id:1,name:"工本费",money:""},
  41. {id:2,name:"挂号费",money:""},
  42. {id:3,name:"诊疗费",money:""}
  43. ],
  44. chargeTable:[]
  45. }
  46. },
  47. methods:{
  48. _close: function(done) {
  49. // this.clear()
  50. done()
  51. },
  52. clear: function() {
  53. this.form.id = 0;
  54. this.form.name = "";
  55. this.form.intro = "";
  56. },
  57. show() {
  58. // this.clear()
  59. this.visible = true
  60. },
  61. hide() {
  62. // this.clear()
  63. this.visible = false
  64. },
  65. handleSelectionChange(val){
  66. console.log("val",val)
  67. this.chargeTable = val
  68. },
  69. submitAction(){
  70. var params = {
  71. patient_id:this.patient_id,
  72. medicineData:this.chargeTable
  73. }
  74. console.log("params",params)
  75. saveCharges(params).then(response=>{
  76. if(response.data.state == 1){
  77. var additionalCharge = response.data.data.additionalCharge
  78. console.log("additionalchar",additionalCharge)
  79. this.visible = false
  80. this.$message.success("保存成功")
  81. }
  82. })
  83. }
  84. },
  85. watch:{
  86. paitent_id:function(val){
  87. console.log("患者ID=====",val)
  88. }
  89. }
  90. }
  91. </script>