|
@@ -153,8 +153,8 @@
|
153
|
153
|
</div>
|
154
|
154
|
<div>
|
155
|
155
|
<el-button type="primary" size="small" @click="toExcution">执行医嘱</el-button>
|
156
|
|
- <el-button type="primary" size="small">医嘱核对</el-button>
|
157
|
|
- <el-button type="primary" size="small">收费</el-button>
|
|
156
|
+ <el-button type="primary" size="small" @click="toCheck">医嘱核对</el-button>
|
|
157
|
+ <el-button type="primary" size="small" @click="toSettle">收费</el-button>
|
158
|
158
|
</div>
|
159
|
159
|
|
160
|
160
|
|
|
@@ -445,7 +445,7 @@ import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
|
445
|
445
|
import { parseTime } from "@/utils";
|
446
|
446
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
447
|
447
|
import { getPrintTemplate } from "@/api/data";
|
448
|
|
-import { getNewSchedualDoctors,excutionDoctorAdvice } from '@/api/advice'
|
|
448
|
+import { getNewSchedualDoctors,excutionDoctorAdvice,checkNewDoctorAdvice,settleNewDoctorAdvice } from '@/api/advice'
|
449
|
449
|
import { PostSearch } from '@/api/patient'
|
450
|
450
|
export default {
|
451
|
451
|
name: "Patient",
|
|
@@ -1154,12 +1154,41 @@ export default {
|
1154
|
1154
|
var min_unit = response.data.data.drug.min_unit
|
1155
|
1155
|
var str = drug_name + " "+dose+dose_unit +"*"+min_number +max_unit +"/"+min_unit
|
1156
|
1156
|
this.$message.error(str +"库存不足,执行失败!")
|
|
1157
|
+ this.exceLoading = false
|
1157
|
1158
|
}
|
1158
|
1159
|
var msg = response.data.data.msg
|
1159
|
1160
|
this.$message.success("保存成功!")
|
1160
|
1161
|
this.exceLoading = false
|
1161
|
1162
|
}
|
1162
|
1163
|
})
|
|
1164
|
+ },
|
|
1165
|
+ toCheck(){
|
|
1166
|
+ var params = {
|
|
1167
|
+ str:str,
|
|
1168
|
+ advice_date: moment(time).format('YYYY-MM-DD'),
|
|
1169
|
+ is_open:this.config.is_open,
|
|
1170
|
+ }
|
|
1171
|
+ checkNewDoctorAdvice(params).then(response=>{
|
|
1172
|
+ if(response.data.state == 1){
|
|
1173
|
+ if(response.data.data.msg == 2){
|
|
1174
|
+ var advice = response.data.data.advice
|
|
1175
|
+ this.$message.error(advice.advice_name +"执行人和核对人不能是同一个人,核对失败!")
|
|
1176
|
+ }
|
|
1177
|
+ this.$message.error("核对成功!")
|
|
1178
|
+ }
|
|
1179
|
+ })
|
|
1180
|
+ },
|
|
1181
|
+ toSettle(){
|
|
1182
|
+ var params = {
|
|
1183
|
+ str:str,
|
|
1184
|
+ advice_date: moment(time).format('YYYY-MM-DD'),
|
|
1185
|
+ is_open:this.config.is_open,
|
|
1186
|
+ }
|
|
1187
|
+ settleNewDoctorAdvice(params).then(response=>{
|
|
1188
|
+ if(response.data.state == 1){
|
|
1189
|
+ this.$message.success("收费成功!")
|
|
1190
|
+ }
|
|
1191
|
+ })
|
1163
|
1192
|
}
|
1164
|
1193
|
},
|
1165
|
1194
|
components: {
|