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