|
|
@@ -329,7 +329,16 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { listPrescribe, getPrescribe, delPrescribe, addPrescribe, updatePrescribe, exportPrescribe, exportMessageFeedback } from "@/api/his/prescribe";
|
|
|
+import {
|
|
|
+ listPrescribe,
|
|
|
+ getPrescribe,
|
|
|
+ delPrescribe,
|
|
|
+ addPrescribe,
|
|
|
+ updatePrescribe,
|
|
|
+ exportPrescribe,
|
|
|
+ exportMessageFeedback,
|
|
|
+ confirmPrescribe
|
|
|
+} from '@/api/his/prescribe'
|
|
|
import { listPrescribeDrug, addPrescribeDrug, updatePrescribeDrug, deletePrescribeDrug } from "@/api/his/prescribeDrug";
|
|
|
export default {
|
|
|
name: "Prescribe",
|
|
|
@@ -429,7 +438,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
let userId = this.$store.state.user.userId;
|
|
|
let query = this.addDateRange(this.queryParams, this.dateRange, 'Create');
|
|
|
- // query.doctorId = userId.toString().replaceAll("D-","").toString();
|
|
|
+ query.doctorId = userId.toString().replaceAll("D-","").toString();
|
|
|
listPrescribe(query).then(response => {
|
|
|
this.prescribeList = response.rows;
|
|
|
this.total = response.total;
|
|
|
@@ -513,6 +522,16 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
confirmPrescribe(){
|
|
|
+ confirmPrescribe(this.form).then(response => {
|
|
|
+ if(response.code === 200) {
|
|
|
+ this.$message.success("确认成功!");
|
|
|
+ this.open = false;
|
|
|
+ } else {
|
|
|
+ this.$message.error(response.message);
|
|
|
+ }
|
|
|
+ }).finally(()=>{
|
|
|
+ this.getList();
|
|
|
+ })
|
|
|
|
|
|
},
|
|
|
/** 提交按钮操作 */
|