Browse Source

添加点击类型弹框显示对应数据

maotao 9 months ago
parent
commit
172d95a90b
1 changed files with 21 additions and 5 deletions
  1. 21 5
      src/views/AppIndex.vue

+ 21 - 5
src/views/AppIndex.vue

@@ -111,10 +111,14 @@
111 111
             >
112 112
               <div class="main-box-item-header">
113 113
                 <h2>{{ item.deptName }}</h2>
114
-                <span
115
-                  >产生<strong>{{ item.num }}</strong
116
-                  >&nbsp;&nbsp;已收<strong>{{ item.receivedNum }}</strong></span
117
-                >
114
+                <span>
115
+									<span @click="openModal($event,item,1)">
116
+										产生<strong>{{ item.num }}</strong>&nbsp;&nbsp;
117
+									</span>
118
+									<span @click="openModal($event,item,4)">
119
+										已收<strong>{{ item.receivedNum }}</strong>
120
+									</span>
121
+								</span>
118 122
                 <strong v-if="item.userName"
119 123
                   >{{ item.userName
120 124
                   }}<span v-if="item.phone" class="ksbb_phone"
@@ -126,11 +130,13 @@
126 130
                 <div
127 131
                   class="main-box-item-contentBox"
128 132
                   :class="[item.urgent > 0 ? 'red' : 'green']"
133
+									@click="openModal($event,item,2)"
129 134
                 >
130 135
                   <h3>{{ item.urgent }}</h3>
131 136
                   <p>待收急标</p>
132 137
                 </div>
133
-                <div class="main-box-item-contentBox green">
138
+                <div class="main-box-item-contentBox green"
139
+									@click="openModal($event,item,3)">
134 140
                   <h3>{{ item.noUrgent }}</h3>
135 141
                   <p>待收普标</p>
136 142
                 </div>
@@ -1018,6 +1024,16 @@ export default {
1018 1024
       this.detailModel = true;
1019 1025
       this.getDetailBySpecimen(this.currentSpecimenDept);
1020 1026
     },
1027
+		openModal(e,item,type){
1028
+			e.stopPropagation();
1029
+			clearTimeout(this.timer);
1030
+			clearTimeout(this.timer1);
1031
+			this.speState = 0;
1032
+			this.currentSpecimenDept = item;
1033
+			this.detailModel = true;
1034
+			this.searchRadio = type;
1035
+			this.getDetailBySpecimen(this.currentSpecimenDept,type)
1036
+		},
1021 1037
     // 获取标本详情(标本科室视图)
1022 1038
     getDetailBySpecimen(item,type) {
1023 1039
       let postData = {