zhangxc 5 år sedan
förälder
incheckning
56aff61e19
1 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8 3
      src/components/qualityControl/ItemDataType.vue

+ 8 - 3
src/components/qualityControl/ItemDataType.vue

@@ -185,6 +185,7 @@
           if(res.data.code == 0){
             // let list = res.data.data.records
               this.qcTypeNameList = res.data.data
+              this.qcTypeNameList.unshift({id: null, name:"无质控类型"})
           }
           
         })
@@ -195,8 +196,9 @@
         this.getDataList();
       },
       getValue(val) {
-        console.log('changeVal', )
-        THIS.filter.typeName = ""
+        this.filter.typeName = ""
+        this.qcTypeNameList=[]
+        this.getTypeNameList(val)
       },
       getDataList(isTurnPage) {
         const param = this.getFilterItems(isTurnPage);
@@ -291,7 +293,7 @@
           this.clearFilter();
         };
         const {hospitalId,typeName,entryName,casesId,code} = this.filter
-        const param = {
+        let param = {
           current: this.inCurrentPage||this.currentPage,
           size: this.pageSize,
           hospitalId: hospitalId,
@@ -300,6 +302,9 @@
           casesId:casesId,
           code:code
         };
+        if(typeName == "无质控类型"){
+          param = Object.assign({}, param,{typeName:"",typeIsNull:1})
+        }
         return param;
       },
       indexMethod(index) {