Преглед на файлове

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN преди 4 години
родител
ревизия
1fbc7f0cc3

+ 1 - 0
src/lang/zh.js Целия файл

@@ -204,6 +204,7 @@ export default {
204 204
     scrm: 'SCRM',
205 205
     shop: '分销商城',
206 206
 
207
+    incomeStatistics:'收入统计',
207 208
     outpatientRegistration:'门诊挂号',
208 209
     outpatientRegistrationIndex:'门诊挂号',
209 210
     outpatientRegistrationRegistrationHistory:'挂号历史',

+ 6 - 0
src/router/modules/outpatientCharges.js Целия файл

@@ -42,6 +42,12 @@ export default {
42 42
         name: 'summary',
43 43
         meta: { title: 'summary', noCache: true }
44 44
     },
45
+    {
46
+        path: '/outpatientCharges/incomeStatistics',
47
+        component: () => import('@/xt_pages/outpatientCharges/incomeStatistics'),
48
+        name: 'incomeStatistics',
49
+        meta: { title: 'incomeStatistics', noCache: true }
50
+    },
45 51
     {
46 52
         path: '/outpatientCharges/summaryDetail',
47 53
         component: () => import('@/xt_pages/outpatientCharges/summaryDetail'),

+ 5 - 9
src/xt_pages/dialysis/details/index.vue Целия файл

@@ -758,13 +758,11 @@ export default {
758 758
       clearInterval(timer)
759 759
     })
760 760
 
761
-    this.timers = setInterval(() => {
762
-      let obj = {
763
-        cmd: "queue/join",
764
-        data: {type:3,page:0,size:0},
765
-      };
766
-      this.websocketSend(obj)
767
-    }, 1000*50);
761
+    let obj = {
762
+      cmd: "queue/join",
763
+      data: {type:3,page:0,size:0},
764
+    };
765
+    this.websocketSend(obj)
768 766
   },
769 767
   computed: {
770 768
     websocket() {
@@ -882,8 +880,6 @@ export default {
882 880
     }
883 881
   },
884 882
   beforeDestroy(){
885
-    clearInterval(this.timers);  // 清除定时器
886
-    this.timers = null
887 883
 
888 884
     let unObj = {
889 885
       cmd: "queue/unjoin",

+ 320 - 0
src/xt_pages/outpatientCharges/incomeStatistics.vue Целия файл

@@ -0,0 +1,320 @@
1
+<template>
2
+  <div class="main-contain incomeStatistics">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+        <div>
9
+          <el-input size="small" style="width:150px;"  v-model="keywords"
10
+                    class="filter-item"/>
11
+          <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
12
+            搜索
13
+          </el-button>
14
+          <el-select size="small" v-model="admin_user_id" placeholder="请选择" style="width:150px;margin-left:10px;" @change="changeDoctor">
15
+            <el-option
16
+              label="全部"
17
+              value="0">
18
+            </el-option>
19
+            <el-option
20
+              v-for="(item,index) in type"
21
+              :key="index"
22
+              :label="item.user_name"
23
+              :value="item.admin_user_id">
24
+            </el-option>
25
+          </el-select>
26
+          <el-date-picker size="small" v-model="start_time" prefix-icon="el-icon-date"
27
+                          @change="handleStartTimeChange" :editable="false" :clearable="false"
28
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择开始日期"
29
+                          format="yyyy-MM-dd"
30
+                          value-format="yyyy-MM-dd"
31
+                          align="right"></el-date-picker>
32
+
33
+          <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
34
+                          @change="handleEndTimeChange" :editable="false" :clearable="false"
35
+                          style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"
36
+                          format="yyyy-MM-dd"
37
+                          value-format="yyyy-MM-dd"
38
+                          align="right"></el-date-picker>
39
+          <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
40
+          <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
41
+        </div>
42
+        <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
43
+      </div>
44
+      <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
45
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46
+        <el-table-column
47
+          prop="date"
48
+          label="序号"
49
+          width="60"
50
+          align="center"
51
+          type="index"
52
+        >
53
+        </el-table-column>
54
+        <el-table-column align="center" prop="name" label="就诊号">
55
+          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
56
+        </el-table-column>
57
+        <el-table-column align="center" prop="name" label="患者名字">
58
+          <template slot-scope="scope">{{ scope.row.patient.name }}</template>
59
+        </el-table-column>
60
+        <!--<el-table-column align="center" prop="name" label="患者类型">-->
61
+          <!--<template slot-scope="scope"></template>-->
62
+        <!--</el-table-column>-->
63
+        <el-table-column align="center" prop="name" label="应收金额">
64
+          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
65
+        </el-table-column>
66
+        <el-table-column align="center" prop="name" label="实收金额">
67
+          <template slot-scope="scope">{{scope.row.reality_price}}</template>
68
+        </el-table-column>
69
+        <el-table-column align="center" prop="name" label="科室">
70
+          <template slot-scope="scope">{{scope.row.p_info.department.name}}</template>
71
+        </el-table-column>
72
+        <el-table-column align="center" prop="name" label="收费日期">
73
+          <template slot-scope="scope">  {{getTimes(scope.row.settle_accounts_date)}}</template>
74
+        </el-table-column>
75
+        <el-table-column align="center" prop="name" label="收费员">
76
+          <template slot-scope="scope">{{ scope.row.p_info.doctor }}</template>
77
+        </el-table-column>
78
+        <el-table-column align="center" prop="name" label="状态">
79
+          <template slot-scope="scope">
80
+            <div v-if="scope.row.order_status == 1">待结算</div>
81
+            <div v-if="scope.row.order_status == 2">已结算</div>
82
+            <div v-if="scope.row.order_status == 3">已退费</div>
83
+          </template>
84
+        </el-table-column>
85
+        <el-table-column align="center" prop="name" label="操作">
86
+          <template slot-scope="scope">
87
+            <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
88
+          </template>
89
+        </el-table-column>
90
+      </el-table>
91
+      <el-pagination
92
+        @size-change="handleSizeChange"
93
+        @current-change="handleCurrentChange"
94
+        :page-sizes="[10, 50, 100]"
95
+        :page-size="10"
96
+        background
97
+        style="margin-top:20px;float: right"
98
+        layout="total, sizes, prev, pager, next, jumper"
99
+        :total="total"
100
+
101
+      >
102
+      </el-pagination>
103
+    </div>
104
+
105
+
106
+  </div>
107
+</template>
108
+
109
+
110
+<script>
111
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
112
+  import { getHisOrderList,getDoctorList,getExportConsumeDetailList } from '@/api/his/his'
113
+  import { uParseTime } from '@/utils/tools'
114
+
115
+  export default {
116
+    components: {
117
+      BreadCrumb
118
+    },
119
+    data() {
120
+      return {
121
+        crumbs: [
122
+          { path: false, name: '门诊收费' },
123
+          { path: false, name: '项目消费明细汇总' }
124
+        ],
125
+        tableData: [],
126
+        limit:10,
127
+        page:1,
128
+        keywords:"",
129
+        start_time:"",
130
+        end_time:"",
131
+        total:"",
132
+        doctors:[],
133
+        admin_user_id:"",
134
+
135
+      }
136
+    },
137
+    methods: {
138
+      export_detail(){
139
+        let params= {
140
+          start_time:this.start_time,
141
+          end_time: this.end_time,
142
+        }
143
+        getExportConsumeDetailList(params).then(response => {
144
+          if (response.data.state == 0) {
145
+            this.$message.error(response.data.msg)
146
+            return false
147
+          } else {
148
+
149
+            let list = []
150
+            for (let i =0; i < response.data.data.order.length; i++){
151
+            let order =   response.data.data.order[i]
152
+              let number = ""
153
+              let name = ""
154
+              let department = ""
155
+              let doctor_name = ""
156
+              let balance_accounts = ""
157
+
158
+              let order_status = ""
159
+
160
+
161
+
162
+              if(order.his_patient != null && order.his_patient.number.length > 0){
163
+                number = order.his_patient.number
164
+
165
+              }
166
+
167
+              if(order.his_patient != null ){
168
+                if(order.his_patient.balance_accounts_type == 1){
169
+                  balance_accounts = "自费"
170
+                }
171
+
172
+                if(order.his_patient.balance_accounts_type == 2){
173
+                  balance_accounts = "医保"
174
+                }
175
+              }
176
+
177
+              if(order.patient != null && order.patient.name.length > 0){
178
+                name = order.patient.name
179
+
180
+              }
181
+
182
+              if(order.p_info != null && order.p_info.department != null && order.p_info.department.name.length > 0){
183
+                department = order.p_info.department.name
184
+
185
+              }
186
+
187
+              if(order.p_info != null && order.p_info.doctor.length > 0){
188
+                doctor_name = order.p_info.doctor
189
+              }
190
+
191
+              if(order.order_status == 1){
192
+                order_status = "待结算"
193
+              }
194
+
195
+              if(order.order_status == 2){
196
+                order_status = "已结算"
197
+              }
198
+
199
+              if(order.order_status == 3){
200
+                order_status = "已退费"
201
+              }
202
+
203
+
204
+              let obj = {
205
+                "就诊号":number,
206
+                "患者姓名":name,
207
+                "应收金额":order.medfee_sumamt,
208
+                "实收金额":order.medfee_sumamt,
209
+                "科室":department,
210
+                "医生姓名":doctor_name,
211
+                "收费类别":balance_accounts,
212
+                "收费者姓名":doctor_name,
213
+                "总金额":order.medfee_sumamt,
214
+                "现金支付":"",
215
+                "账户支付":"",
216
+                "支付宝支付":"",
217
+                "微信支付":"",
218
+                "其他支付":"",
219
+                "收费日期":"",
220
+                "收费状态":order_status,
221
+                "退费日期":"",
222
+              }
223
+              list.push(obj)
224
+            }
225
+            import('@/vendor/Export2Excel').then(excel => {
226
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
227
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室',"医生姓名","收费类别","收费者姓名","总金额","现金支付","账户支付","支付宝支付","微信支付","其他支付","收费日期","收费状态","退费日期"]
228
+              const data = this.formatJson(filterVal, list)
229
+              excel.export_json_to_excel({
230
+                header: tHeader,
231
+                data,
232
+                filename: "消费明细"
233
+              })
234
+            })
235
+
236
+          }
237
+        })
238
+
239
+      },  formatJson(filterVal, jsonData) {
240
+        return jsonData.map(v => filterVal.map(j => v[j]))
241
+      },
242
+      changeDoctor(){
243
+        this.page = 1
244
+        this.keywords=""
245
+        this.getHisOrderList()
246
+      },
247
+      handleSizeChange(limit){
248
+        this.limit = limit;
249
+        this.getHisOrderList()
250
+
251
+      },handleCurrentChange(page){
252
+        this.page = page;
253
+        this.getHisOrderList()
254
+
255
+
256
+      },
257
+      handleStartTimeChange(){
258
+        this.page = 1
259
+        this.keywords=""
260
+        this.getHisOrderList()
261
+      },handleEndTimeChange(){
262
+        this.page = 1
263
+        this.keywords=""
264
+        this.getHisOrderList()
265
+      },
266
+      searchAction(){
267
+        this.page = 1
268
+        this.getHisOrderList()
269
+
270
+
271
+      },
272
+      getTimes(time) {
273
+        return uParseTime(time, "{y}-{m}-{d}");
274
+      },
275
+      toDetail(row) {
276
+        this.$router.push('/outpatientCharges/summaryDetail?patient_id='+row.patient.id+"&number="+row.number)
277
+      }, getTime(value, temp) {
278
+        if (value != undefined) {
279
+          return uParseTime(value, temp)
280
+        }
281
+        return ''
282
+      },getHisOrderList(){
283
+        let params= {
284
+          page : this.page,
285
+          limit: this.limit,
286
+          keywords:this.keywords,
287
+          start_time:this.start_time,
288
+          end_time: this.end_time,
289
+          type: this.admin_user_id
290
+        }
291
+        getHisOrderList(params).then(response => {
292
+          if (response.data.state == 0) {
293
+            this.$message.error(response.data.msg)
294
+            return false
295
+          } else {
296
+            this.tableData = response.data.data.order
297
+            this.total = response.data.data.total
298
+          }
299
+        })
300
+
301
+      },getDoctorList(){
302
+        getDoctorList().then(response => {
303
+          if (response.data.state == 0) {
304
+            this.$message.error(response.data.msg)
305
+            return false
306
+          } else {
307
+            this.doctors = response.data.data.doctors
308
+          }
309
+        })
310
+
311
+
312
+      }
313
+    }, created() {
314
+     this.getDoctorList()
315
+     this.getHisOrderList()
316
+
317
+
318
+    }
319
+  }
320
+</script>

+ 25 - 23
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Целия файл

@@ -4,6 +4,7 @@
4 4
     :visible.sync="isLastOrNextVisible"
5 5
     @close="hide"
6 6
     width="1010px"
7
+    class="callPrescription"
7 8
     :modal-append-to-body="false"
8 9
   >
9 10
     <el-date-picker
@@ -36,15 +37,15 @@
36 37
 
37 38
 
38 39
     <div v-for="(item,index) in allPrescription" :key="index">
39
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40
+      <div class="quote" v-if="item.prescriptions.length > 0">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
40 41
       <el-checkbox-group v-model="item.check_group">
41 42
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
42
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
43 44
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
44 45
                     :row-style="{ color: '#303133' }"
45 46
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
46
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
47
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
47
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
48
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
48 49
               <template slot-scope="scope">
49 50
                 <span>{{ scope.row.advice_name }}</span>
50 51
               </template>
@@ -52,9 +53,7 @@
52 53
 
53 54
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
54 55
               <template slot-scope="scope">
55
-                <div style="display:flex;align-items:center;">
56
-                  <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
57
-                </div>
56
+                <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
58 57
               </template>
59 58
             </el-table-column>
60 59
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -68,7 +67,7 @@
68 67
               </template>
69 68
             </el-table-column>
70 69
 
71
-            <el-table-column align="center" prop="day" width="50" label="天数">
70
+            <el-table-column align="center" prop="day" width="60" label="天数">
72 71
               <template slot-scope="scope">
73 72
                 {{scope.row.day}}
74 73
               </template>
@@ -76,9 +75,7 @@
76 75
 
77 76
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
78 77
               <template slot-scope="scope">
79
-                <div style="display:flex;align-items:center;">
80
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
81
-                </div>
78
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
82 79
               </template>
83 80
             </el-table-column>
84 81
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -86,7 +83,7 @@
86 83
                 <div>{{scope.row.retail_price}}</div>
87 84
               </template>
88 85
             </el-table-column>
89
-            <el-table-column align="center" prop="remark" width="200" label="备注">
86
+            <el-table-column align="center" prop="remark" label="备注">
90 87
               <template slot-scope="scope">
91 88
                 <div>{{scope.row.remark}}</div>
92 89
               </template>
@@ -95,8 +92,8 @@
95 92
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
96 93
                     :row-style="{ color: '#303133' }"
97 94
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
98
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
99
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
95
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
96
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
100 97
               <template slot-scope="scope">
101 98
                 <span>{{ scope.row.project.project_name }}</span>
102 99
               </template>
@@ -104,7 +101,7 @@
104 101
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
105 102
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
106 103
             </el-table-column>
107
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
104
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
108 105
               <template slot-scope="scope">
109 106
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
110 107
                 <span>{{ scope.row.single_dose }}</span>
@@ -134,20 +131,17 @@
134 131
             </el-table-column>
135 132
             <el-table-column align="center" prop="total" width="70" label="总量">
136 133
               <template slot-scope="scope">
137
-                <div style="display:flex;align-items:center;">
138
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
139
-                  <div>{{ scope.row.total }}{{scope.row.unit}}</div>
140
-                </div>
134
+                <div>{{ scope.row.total }}{{scope.row.unit}}</div>
141 135
               </template>
142 136
             </el-table-column>
143
-            <el-table-column align="center" prop="name" width="50" label="单价">
137
+            <el-table-column align="center" prop="name" width="60" label="单价">
144 138
               <template slot-scope="scope">
145 139
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
146 140
                 <span>{{ scope.row.price }}</span>
147 141
 
148 142
               </template>
149 143
             </el-table-column>
150
-            <el-table-column align="center" prop="name" width="100" label="备注">
144
+            <el-table-column align="center" prop="name" label="备注">
151 145
               <template slot-scope="scope">
152 146
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
153 147
                 <span>{{ scope.row.remark }}</span>
@@ -349,6 +343,14 @@
349 343
   }
350 344
 </script>
351 345
 
352
-<style scoped>
353
-
346
+<style lang="scss">
347
+.callPrescription{
348
+  .el-dialog__body{
349
+    padding:0px 20px 30px;
350
+  }
351
+  .quote{
352
+    margin-top: 10px;
353
+    font-size: 14px;
354
+  }
355
+}
354 356
 </style>

+ 18 - 14
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Целия файл

@@ -84,22 +84,26 @@
84 84
             </el-tab-pane>
85 85
             <el-tab-pane name="more" closable><span slot="label"><i class="el-icon-plus" @click="addTab"></i></span>
86 86
             </el-tab-pane>
87
-            <div class="RP">Rp</div>
88
-
89
-            <div style="float: right">
90
-              <el-button
91
-                round
92
-                @click="openLast(3)"
93
-              >上一方
94
-              </el-button>
95
-
96
-              <el-button
97
-                round
98
-                @click="openNext(4)"
99
-              >下一方
100
-              </el-button>
87
+            <div class="RP">Rp
88
+              <div style="float: right;margin-bottom:5px;margin-right:1%;">
89
+                <el-button
90
+                  round
91
+                  size="small"
92
+                  @click="openLast(3)"
93
+                >上一方
94
+                </el-button>
95
+
96
+                <el-button
97
+                  round
98
+                  size="small"
99
+                  @click="openNext(4)"
100
+                >下一方
101
+                </el-button>
102
+              </div>
101 103
             </div>
102 104
 
105
+            
106
+
103 107
             <prescription-table ref="prescription_tables" :prescription="curPrescriptions" :preDrugs="preDrugs"
104 108
                                 :activeType="customTabIndex"></prescription-table>
105 109
           </el-tabs>

+ 24 - 22
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue Целия файл

@@ -5,8 +5,9 @@
5 5
     @close="hide"
6 6
     width="1010px"
7 7
     :modal-append-to-body="false"
8
+    class="isLastOrNext"
8 9
   >
9
-    <div class="txsj">
10
+    <div class="txsj" style="text-align:center;">
10 11
       <el-button
11 12
         round
12 13
 
@@ -22,15 +23,15 @@
22 23
     </div>
23 24
 
24 25
     <div v-for="(item,index) in allPrescription" :key="index">
25
-      <div>引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26
+      <div class="quote">引用 {{getTime(item.record_date, '{y}年{m}月{d}日')}} 的处方</div>
26 27
       <el-checkbox-group v-model="item.check_group">
27 28
         <div v-for="(subItem,index2) in item.prescriptions" :key="index2">
28
-          <el-checkbox :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29
+          <el-checkbox style="margin:10px 0;" :label="subItem.id">{{'处方' + (index2+ 1)}}</el-checkbox>
29 30
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
30 31
                     :row-style="{ color: '#303133' }"
31 32
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
32
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
33
-            <el-table-column align="center" prop="drug_name"  width="100" label="名称">
33
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
34
+            <el-table-column align="center" prop="drug_name"  width="160" label="名称">
34 35
               <template slot-scope="scope">
35 36
                 <span>{{ scope.row.advice_name }}</span>
36 37
               </template>
@@ -38,9 +39,7 @@
38 39
 
39 40
             <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
40 41
               <template slot-scope="scope">
41
-                <div style="display:flex;align-items:center;">
42 42
                   <div>{{scope.row.single_dose}}{{scope.row.single_dose_unit}}</div>
43
-                </div>
44 43
               </template>
45 44
             </el-table-column>
46 45
             <el-table-column align="center" prop="delivery_way" width="100" label="用法">
@@ -54,7 +53,7 @@
54 53
               </template>
55 54
             </el-table-column>
56 55
 
57
-            <el-table-column align="center" prop="day" width="50" label="天数">
56
+            <el-table-column align="center" prop="day" width="60" label="天数">
58 57
               <template slot-scope="scope">
59 58
                 {{scope.row.day}}
60 59
               </template>
@@ -62,9 +61,7 @@
62 61
 
63 62
             <el-table-column align="center" prop="prescribing_number" width="100" label="总量">
64 63
               <template slot-scope="scope">
65
-                <div style="display:flex;align-items:center;">
66
-                  <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
67
-                </div>
64
+                <div>{{scope.row.prescribing_number}} {{scope.row.prescribing_number_unit}}</div>
68 65
               </template>
69 66
             </el-table-column>
70 67
             <el-table-column align="center" prop="retail_price" width="80" label="单价">
@@ -72,7 +69,7 @@
72 69
                 <div>{{scope.row.retail_price}}</div>
73 70
               </template>
74 71
             </el-table-column>
75
-            <el-table-column align="center" prop="remark" width="200" label="备注">
72
+            <el-table-column align="center" prop="remark" label="备注">
76 73
               <template slot-scope="scope">
77 74
                 <div>{{scope.row.remark}}</div>
78 75
               </template>
@@ -81,8 +78,8 @@
81 78
           <el-table v-if="subItem.type == 2" :data="subItem.project" border style="width: 99%;"
82 79
                     :row-style="{ color: '#303133' }"
83 80
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
84
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
85
-            <el-table-column align="center" prop="project_name" width="100" label="名称">
81
+            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
82
+            <el-table-column align="center" prop="project_name" width="160" label="名称">
86 83
               <template slot-scope="scope">
87 84
                 <span>{{ scope.row.project.project_name }}</span>
88 85
               </template>
@@ -90,7 +87,7 @@
90 87
             <el-table-column align="center" prop="statistical_classification" width="100" label="组">
91 88
               <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
92 89
             </el-table-column>
93
-            <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
90
+            <el-table-column align="center" prop="single_dose" width="90" label="单次用量">
94 91
               <template slot-scope="scope">
95 92
                 <!--<el-input v-model="scope.row.single_dose" placeholder=""></el-input>-->
96 93
                 <span>{{ scope.row.single_dose }}</span>
@@ -120,20 +117,17 @@
120 117
             </el-table-column>
121 118
             <el-table-column align="center" prop="total" width="70" label="总量">
122 119
               <template slot-scope="scope">
123
-                <div style="display:flex;align-items:center;">
124
-                  <!--<el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>-->
125 120
                   <div>{{ scope.row.total }}{{scope.row.unit}}</div>
126
-                </div>
127 121
               </template>
128 122
             </el-table-column>
129
-            <el-table-column align="center" prop="name" width="50" label="单价">
123
+            <el-table-column align="center" prop="name" width="60" label="单价">
130 124
               <template slot-scope="scope">
131 125
                 <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
132 126
                 <span>{{ scope.row.price }}</span>
133 127
 
134 128
               </template>
135 129
             </el-table-column>
136
-            <el-table-column align="center" prop="name" width="100" label="备注">
130
+            <el-table-column align="center" prop="name" label="备注">
137 131
               <template slot-scope="scope">
138 132
                 <!--<el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>-->
139 133
                 <span>{{ scope.row.remark }}</span>
@@ -410,6 +404,14 @@
410 404
   }
411 405
 </script>
412 406
 
413
-<style scoped>
414
-
407
+<style lang="scss">
408
+.isLastOrNext{
409
+  .el-dialog__body{
410
+    padding:0px 20px 30px;
411
+  }
412
+  .quote{
413
+    margin-top: 10px;
414
+    font-size: 14px;
415
+  }
416
+}
415 417
 </style>

+ 5 - 9
src/xt_pages/sign/components/beforeDialysisCalling.vue Целия файл

@@ -85,17 +85,13 @@ export default {
85 85
         }
86 86
     },
87 87
     mounted(){
88
-        this.timer = setInterval(() => {
89
-            let obj = {
90
-                cmd: "queue/join",
91
-                data: {type:3,page:0,size:0},
92
-            };
93
-            this.websocketSend(obj)
94
-        }, 1000*50);
88
+        let obj = {
89
+            cmd: "queue/join",
90
+            data: {type:3,page:0,size:0},
91
+        };
92
+        this.websocketSend(obj)
95 93
     },
96 94
     beforeDestroy(){
97
-        clearInterval(this.timer);  // 清除定时器
98
-        this.timer = null
99 95
 
100 96
         let unObj = {
101 97
             cmd: "queue/unjoin",

+ 5 - 9
src/xt_pages/sign/components/computerCalling.vue Целия файл

@@ -63,17 +63,13 @@ export default {
63 63
         this.websocketMess();
64 64
     },
65 65
     mounted(){
66
-        this.timer = setInterval(() => {
67
-            let obj = {
68
-                cmd: "queue/join",
69
-                data: {type:4,page:0,size:0},
70
-            };
71
-            this.websocketSend(obj)
72
-        }, 1000*50);
66
+        let obj = {
67
+            cmd: "queue/join",
68
+            data: {type:4,page:0,size:0},
69
+        };
70
+        this.websocketSend(obj)
73 71
     },
74 72
     beforeDestroy(){
75
-        clearInterval(this.timer);  // 清除定时器
76
-        this.timer = null
77 73
         let unObj = {
78 74
             cmd: "queue/unjoin",
79 75
             data: {type:4},

+ 17 - 21
src/xt_pages/sign/signIn.vue Целия файл

@@ -155,25 +155,23 @@ export default {
155 155
         this.websocketMess();
156 156
     },
157 157
     mounted(){
158
-        this.timer = setInterval(() => {
159
-            if(this.page < Math.ceil(this.count / 10)){
160
-                console.log('执行')
161
-                this.page++
162
-                let obj = {
163
-                    cmd: "queue/queuelist",
164
-                    data: {page:this.page,size:10}
165
-                };
166
-                this.websocketSend(obj)
167
-            }else{
168
-                console.log('执行2222')
169
-                this.page = 1
170
-                let newobj = {
171
-                    cmd: "queue/queuelist",
172
-                    data: {page:this.page,size:10}
173
-                };
174
-                this.websocketSend(newobj)
175
-            }
176
-        }, 5000);
158
+        if(this.page < Math.ceil(this.count / 10)){
159
+            console.log('执行')
160
+            this.page++
161
+            let obj = {
162
+                cmd: "queue/queuelist",
163
+                data: {page:this.page,size:10}
164
+            };
165
+            this.websocketSend(obj)
166
+        }else{
167
+            console.log('执行2222')
168
+            this.page = 1
169
+            let newobj = {
170
+                cmd: "queue/queuelist",
171
+                data: {page:this.page,size:10}
172
+            };
173
+            this.websocketSend(newobj)
174
+        }
177 175
         
178 176
         this.timerID = setInterval(() => {
179 177
             this.updateTime()
@@ -181,9 +179,7 @@ export default {
181 179
         // this.updateTime();
182 180
     },
183 181
     beforeDestroy(){
184
-        clearInterval(this.timer);  // 清除定时器
185 182
         clearInterval(this.timerID);  // 清除定时器
186
-        this.timer = null;
187 183
         let obj = {
188 184
             cmd: "queue/unjoin",
189 185
             data: {type:1},