瀏覽代碼

病历生成发送内容请求接口

liyanyan 1 月之前
父節點
當前提交
dee53a0a87
共有 2 個文件被更改,包括 16 次插入3 次删除
  1. 1 1
      src/views/allcase/caseViews.vue
  2. 15 2
      src/views/allcase/components/CaseQualityBox2.vue

+ 1 - 1
src/views/allcase/caseViews.vue

@@ -120,7 +120,7 @@
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <!-- status 不存在 意味着不脱敏、医院自助查询 -->
       <template v-if="!$route.query.status && isControl">
       <template v-if="!$route.query.status && isControl">
         <!-- 病案首页质控 -->
         <!-- 病案首页质控 -->
-        <CaseQualityBox v-if="results" :data="results" :type="type_v" :width="340" :height="820" @hightRight="hightRight" />
+        <CaseQualityBox :MED_REC_ID="valData" v-if="results" :data="results" :type="type_v" :width="340" :height="820" @hightRight="hightRight" />
       </template>
       </template>
     </div>
     </div>
 
 

+ 15 - 2
src/views/allcase/components/CaseQualityBox2.vue

@@ -189,6 +189,12 @@
         default() {
         default() {
           return 0
           return 0
         }
         }
+      },
+      MED_REC_ID: {
+        type: String,
+        default() {
+          return ''
+        }
       }
       }
     },
     },
     data(){
     data(){
@@ -249,9 +255,16 @@
         })
         })
       },
       },
       handleTaskNameSelect(menuItem, indexId) {
       handleTaskNameSelect(menuItem, indexId) {
-        console.log(menuItem);
         this.currentTaskName = indexId
         this.currentTaskName = indexId
-        this.sendMessage(menuItem.name)
+        this.$axios.post('/get_big_model_task', {
+          rule_id: indexId.split('-').map(Number),
+          MED_REC_ID: this.$props.MED_REC_ID
+        }).then(res => {
+          if(res.code == 200){  
+            this.sendMessage(res.data)          
+          }
+        })
+        
       },
       },
       //发送消息
       //发送消息
       async sendMessage(params){
       async sendMessage(params){