Преглед изворни кода

医生端新增个微处方菜单

cgp пре 1 недеља
родитељ
комит
f3d7e49c36
2 измењених фајлова са 20 додато и 6 уклоњено
  1. 19 5
      src/views/doctor/prescribeAudit/index.vue
  2. 1 1
      src/views/his/personalPrescribe/index.vue

+ 19 - 5
src/views/doctor/prescribeAudit/index.vue

@@ -159,7 +159,11 @@ export default {
       auditForm: {
         prescribeId: undefined,
         auditStatus: 1,
-        auditReason: ''
+        auditReason: '',
+        collectionId: null,
+        qwTag: null,
+        personalCollectStatus: null
+
       },
       drugsDialog: { open: false },
       drugsList: [],
@@ -247,9 +251,12 @@ export default {
         this.$message.warning('仅待审核记录可操作')
         return
       }
-      this.auditForm.prescribeId = row.prescribeId
-      this.auditForm.auditStatus = (current === 1 || current === '1') ? 1 : (current === 2 || current === '2') ? 2 : 1
-      this.auditForm.auditReason = row.auditReason || ''
+      this.auditForm.prescribeId = row.prescribeId;
+      this.auditForm.auditStatus = (current === 1 || current === '1') ? 1 : (current === 2 || current === '2') ? 2 : 1;
+      this.auditForm.auditReason = row.auditReason || '';
+      this.auditForm.collectionId = row.collectionId;
+      this.auditForm.qwTag = row.qwTag;
+      this.auditForm.personalCollectStatus = row.personalCollectStatus;
       this.auditDialog.open = true
     },
     submitAudit() {
@@ -257,7 +264,14 @@ export default {
         this.$message.error('请填写拒绝原因')
         return
       }
-      const payload = { prescribeId: this.auditForm.prescribeId, status: this.auditForm.auditStatus, auditReason: this.auditForm.auditReason }
+      const payload = {
+        prescribeId: this.auditForm.prescribeId,
+        status: this.auditForm.auditStatus,
+        auditReason: this.auditForm.auditReason,
+        collectionId: this.auditForm.collectionId,
+        qwTag: this.auditForm.qwTag,
+        personalCollectStatus: this.auditForm.personalCollectStatus
+      }
       auditPrescribe(payload).then(() => {
         this.$message.success('审核成功')
         this.auditDialog.open = false

+ 1 - 1
src/views/his/personalPrescribe/index.vue

@@ -307,7 +307,7 @@
 import { getCommonDrugList } from '@/api/commonlyDrug';
 import { getCommonDiagnoseList } from '@/api/commonlyDiagnose';
 import collectionDetail from '@/views/components/collection/collectionDetail.vue';
-import { waitPrescribeAfterPaymentList, confirmPrescribeAfterPayment, recordList } from '@/api/his/prescribe';
+import { waitPrescribeAfterPaymentList, confirmPrescribeAfterPayment, recordList,getPrescribe } from '@/api/his/prescribe';
 import { listPrescribeDrug, addPrescribeDrug, updatePrescribeDrug, deletePrescribeDrug } from "@/api/his/prescribeDrug";
 import { getCollectionByUserId } from "@/api/collection";