Browse Source

切换医院刷新质控类型列表

zhouna 4 years ago
parent
commit
982ef4ea91

+ 5 - 4
src/components/qualityControl/AddQcType.vue

@@ -74,10 +74,11 @@
                     <img v-if="!spread" src="../../images/spread.png" class="spread-icon" @click="toggleSpread" title="展开" alt="展开"/>
                     <el-form-item label="其他质控类型:" prop="typeIdList" class="formItem widthLarge">
                     </el-form-item>
-                    <OtherQcTypePour :hospital="3"
-                                            :noModuleName="true"
-                                            :moduleName="form.entryId"
-                                            @changeActionData="moduleTypeChange" :selectedTag="form.qcTypeSimpDTOList"></OtherQcTypePour>
+                    <OtherQcTypePour :hospital="form.hospitalId"
+                                     :moduleName="form.entryId"
+                                     :typeId="form.id"
+                                     @changeActionData="moduleTypeChange"
+                                     :selectedTag="form.qcTypeSimpDTOList"></OtherQcTypePour>
                     <el-button class="disclButn" size="small" type="primary" :disabled = 'saveDisable' @click="comfirn('form')">确定</el-button>
                 </el-form>
             </div>

+ 2 - 2
src/components/qualityControl/OtherQcTypePour.vue

@@ -54,7 +54,7 @@ import $ from 'jquery'
 
 export default {
     name: "OtherQcTypePour",
-    props: ['hospital','moduleName','selectedTag'],
+    props: ['hospital','moduleName','selectedTag','typeId'],
     data() {
         return {
             checkedExc:false,
@@ -275,7 +275,7 @@ export default {
           if(this.hospital === ""){
             return
           }
-          return api.qcTypeList({hospitalId: ""+this.hospital, notIdList:this.getModuleTypeIds()||[]}).then((res) =>{
+          return api.qcTypeList({hospitalId: ""+this.hospital,id:this.typeId||null, notIdList:this.getModuleTypeIds()||[]}).then((res) =>{
             if(res.data.code==="0"){
               const data = res.data.data;
               this.leftTagsList = data;