瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 10 月之前
父節點
當前提交
151692804f
共有 25 個文件被更改,包括 1218 次插入369 次删除
  1. 55 0
      src/utils/tools.js
  2. 105 0
      src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicators.vue
  3. 697 0
      src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue
  4. 31 34
      src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsone.vue
  5. 0 265
      src/xt_pages/Dialysisanalysis/otherIndicators/otherall.vue
  6. 2 2
      src/xt_pages/device/objectRegistration.vue
  7. 2 3
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  8. 1 1
      src/xt_pages/dialysis/bloodPresssWatch.vue
  9. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  10. 2 0
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  11. 11 5
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  12. 8 8
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  13. 4 4
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  14. 151 11
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  15. 12 3
      src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue
  16. 34 13
      src/xt_pages/medicalScheduling/index.vue
  17. 5 5
      src/xt_pages/outpatientCharges/components/callUnAssociationPrescription.vue
  18. 64 4
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  19. 2 2
      src/xt_pages/role/admin.vue
  20. 1 0
      src/xt_pages/stock/drugs/cancelDrugStockOrderDetail.vue
  21. 12 5
      src/xt_pages/stock/drugs/components/drugCancelDetail.vue
  22. 5 0
      src/xt_pages/stock/drugs/drugCancelDetailPrint.vue
  23. 5 0
      src/xt_pages/stock/drugs/drugStockFlow.vue
  24. 5 0
      src/xt_pages/stock/stockFlow.vue
  25. 2 2
      src/xt_pages/user/Sitemap.vue

+ 55 - 0
src/utils/tools.js 查看文件

@@ -21,13 +21,68 @@ export function jsGetAge(strBirthday, splitstr) {
21 21
   // debugger
22 22
   var returnAge
23 23
   var strBirthdayArr = strBirthday.split(splitstr)
24
+ 
24 25
   var birthYear = strBirthdayArr[0]
25 26
   var birthMonth = strBirthdayArr[1]
26 27
   var birthDay = strBirthdayArr[2]
28
+
29
+  
27 30
   var d = new Date()
28 31
   var nowYear = d.getFullYear()
29 32
   var nowMonth = d.getMonth() + 1
30 33
   var nowDay = d.getDate()
34
+  
35
+  if (nowYear == birthYear) {
36
+    returnAge = 0 // 同年 则为0岁
37
+  } else {
38
+    var ageDiff = nowYear - birthYear // 年之差
39
+    if (ageDiff > 0) {
40
+      if (nowMonth == birthMonth) {
41
+        var dayDiff = nowDay - birthDay // 日之差
42
+        if (dayDiff < 0) {
43
+          returnAge = ageDiff - 1
44
+        } else {
45
+          returnAge = ageDiff
46
+        }
47
+      } else {
48
+        var monthDiff = nowMonth - birthMonth // 月之差
49
+        if (monthDiff < 0) {
50
+          returnAge = ageDiff - 1
51
+        } else {
52
+          returnAge = ageDiff
53
+        }
54
+      }
55
+    } else {
56
+      returnAge = -1 // 返回-1 表示出生日期输入错误 晚于今天
57
+    }
58
+  }
59
+
60
+  return returnAge // 返回周岁年龄
61
+}
62
+
63
+
64
+export function jsGetAgeOne(strBirthday,splitstr, nowYear,nowMonth,nowDay) {
65
+ 
66
+  // debugger
67
+  var returnAge
68
+  var strBirthdayArr = strBirthday.split(splitstr)
69
+  console.log("strBirthdayArr",strBirthdayArr)
70
+  var birthYear = strBirthdayArr[0]
71
+  var birthMonth = strBirthdayArr[1]
72
+  var birthDay = strBirthdayArr[2]
73
+  // var d = new Date()
74
+  // var anowYear = d.getFullYear()
75
+  // var anowMonth = d.getMonth() + 1
76
+  // var anowDay = d.getDate()
77
+  
78
+  // console.log("anowYear",anowYear)
79
+  // console.log("anowMonth",anowMonth)
80
+  // console.log("anowDay",anowDay)
81
+  
82
+  console.log("brityYear666",strBirthdayArr[0])
83
+  console.log("birthMonth5656",strBirthdayArr[1])
84
+  console.log("birthDay5656",strBirthdayArr[2])
85
+  
31 86
   if (nowYear == birthYear) {
32 87
     returnAge = 0 // 同年 则为0岁
33 88
   } else {

+ 105 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicators.vue 查看文件

@@ -0,0 +1,105 @@
1
+<!-- 甲状旁腺激素分析 -->
2
+<template>
3
+  <div class="main-contain">
4
+    <div class="position">
5
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
6
+    </div>
7
+    <div class="app-container">
8
+      <div class="page_patientControlAnalysis">
9
+        <el-tabs v-model="activeName" @tab-click="handleClick" >
10
+          <el-tab-pane label="统计全部" name="first">
11
+            <keep-alive>
12
+              <otherIndicatorsall :project_id="project_id" :item_id="item_id" v-if="activeName == 'first'"></otherIndicatorsall>
13
+            </keep-alive>
14
+          </el-tab-pane>
15
+
16
+          <el-tab-pane label="统计个人" name="second">
17
+            <keep-alive>
18
+              <otherIndicatorsone  :project_id="project_id" :item_id="item_id"  v-if="activeName == 'second'"></otherIndicatorsone>
19
+            </keep-alive>
20
+          </el-tab-pane>
21
+
22
+        </el-tabs>
23
+      </div>
24
+    </div>
25
+  </div>
26
+</template>
27
+
28
+<script>
29
+// import echarts from 'echarts'
30
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
31
+import otherIndicatorsall from './otherIndicatorsall.vue'
32
+import otherIndicatorsone from './otherIndicatorsone.vue'
33
+export default {
34
+  name:'otherIndicators',
35
+  components: {
36
+    BreadCrumb,
37
+    otherIndicatorsall,
38
+    otherIndicatorsone
39
+  },
40
+  data() {
41
+    return {
42
+      activeName: 'first',
43
+      project_id:this.$route.query.project_id,
44
+      item_id:this.$route.query.item_id,
45
+
46
+    }
47
+  },
48
+  methods:{
49
+    handleClick(tab, event) {
50
+      console.log(tab, event);
51
+    }
52
+  }
53
+}
54
+</script>
55
+
56
+<style lang="scss" scoped>
57
+// .page_patientControlAnalysis {
58
+
59
+// .pointTitle {
60
+   //   font-size: 13px;
61
+   // }
62
+
63
+// .chartTitle {
64
+   //   font-size: 16px;
65
+   //   font-weight: bold;
66
+   //   color: #000000;
67
+   // }
68
+
69
+// .point {
70
+   //   width: 13px;
71
+   //   height: 13px;
72
+   //   background: linear-gradient(
73
+   //       0deg,
74
+   //       rgba(169, 224, 243, 1),
75
+   //       rgba(159, 189, 252, 1)
76
+   //   );
77
+   //   border-radius: 7px;
78
+   //   margin-right: 8px;
79
+   // }
80
+
81
+// .pointTitle {
82
+   //   font-size: 13px;
83
+   // }
84
+
85
+// }
86
+
87
+</style>
88
+
89
+<style lang="scss">
90
+// .page_patientControlAnalysis {
91
+
92
+// .el-form-item {
93
+   //   margin-bottom: 0;
94
+   // }
95
+
96
+// .cell {
97
+   //   text-align: center;
98
+   // }
99
+
100
+// ::-webkit-scrollbar {
101
+   //   height: 15px !important;
102
+   // }
103
+
104
+// }
105
+</style>

+ 697 - 0
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue 查看文件

@@ -0,0 +1,697 @@
1
+<template>
2
+  <div>
3
+    <el-row :gutter="25">
4
+      <el-col :span="5">
5
+        <div class="block">
6
+          <span>查询时间:</span>
7
+          <el-select size="small" v-model="time_type" placeholder="请选择"
8
+                     style="width:150px;margin-left:10px;" @change="changeItem">
9
+            <el-option
10
+              v-for="item,index in times"
11
+              :key="index"
12
+              :label="item.label"
13
+              :value="item.value">
14
+            </el-option>
15
+          </el-select>
16
+        </div>
17
+      </el-col>
18
+      <el-col :span="8">
19
+        <div>
20
+          <el-date-picker
21
+            style="width: 200px"
22
+
23
+            v-model="start_time"
24
+            format="yyyy-MM-dd"
25
+            value-format="yyyy-MM-dd"
26
+            type="date"
27
+
28
+            placeholder="选择日期">
29
+          </el-date-picker>
30
+          <span>-</span>
31
+          <el-date-picker
32
+            style="width: 200px"
33
+            v-model="end_time"
34
+            format="yyyy-MM-dd"
35
+            value-format="yyyy-MM-dd"
36
+            type="date"
37
+            placeholder="选择日期">
38
+          </el-date-picker>
39
+        </div>
40
+      </el-col>
41
+      <el-col :span="5">
42
+        <div >
43
+          <el-input disabled v-model="input" placeholder="请输入内容"></el-input>
44
+        </div>
45
+      </el-col>
46
+      <el-col :span="3">
47
+        <el-button type="primary" @click="getData()">查询</el-button>
48
+      </el-col>
49
+    </el-row>
50
+    <div class="cell clearfix" style="margin: 20px; font-weight: bold;">
51
+      <p class="chartTitle">统计图</p>
52
+    </div>
53
+    <div class="echart" id="mychart" :style={width:width,height:height}></div>
54
+    <div style="width: 80%;margin: auto;">
55
+      <el-table
56
+        :data="tableData"
57
+        border
58
+        :header-cell-style="{
59
+          backgroundColor: 'rgb(245, 247, 250)',
60
+          color: '#606266'
61
+        }"
62
+        style="width: 100%;">
63
+        <el-table-column
64
+          prop="name"
65
+          align="center"
66
+          label="血红蛋白"
67
+
68
+
69
+        >
70
+        </el-table-column>
71
+        <el-table-column
72
+          prop="count"
73
+          label="人数"
74
+        >
75
+        </el-table-column>
76
+        <el-table-column
77
+          prop="address"
78
+          align="center"
79
+          label="操作">
80
+          <template slot-scope="scope">
81
+            <el-button @click="handleClick(scope.row)" style="font-size:16px;"
82
+                       type="text">查看详情
83
+            </el-button>
84
+          </template>
85
+        </el-table-column>
86
+      </el-table>
87
+    </div>
88
+    <el-dialog
89
+      width="1000px" class="registerDialog" :visible.sync="detailVisibility"
90
+      :close-on-click-modal="isClose"
91
+      :close-on-press-escape="isClose"
92
+    >
93
+      <el-row :gutter="25">
94
+        <el-col :span="5">
95
+          <div class="block">
96
+            <span>查询时间:</span>
97
+            <el-select size="small" v-model="time_type_two" placeholder="请选择"
98
+                       style="width:100px;margin-left:5px;" @change="changeItemTwo">
99
+              <el-option
100
+                v-for="item,index in times"
101
+                :key="index"
102
+                :label="item.label"
103
+                :value="item.value">
104
+              </el-option>
105
+            </el-select>
106
+          </div>
107
+        </el-col>
108
+        <el-col :span="10">
109
+          <div>
110
+            <el-date-picker
111
+              style="width: 120px"
112
+              v-model="start_time_one"
113
+              format="yyyy-MM-dd"
114
+              value-format="yyyy-MM-dd"
115
+              type="date"
116
+
117
+              placeholder="选择日期">
118
+            </el-date-picker>
119
+            <span>-</span>
120
+            <el-date-picker
121
+              style="width: 120px"
122
+              v-model="end_time_one"
123
+              format="yyyy-MM-dd"
124
+              value-format="yyyy-MM-dd"
125
+              type="date"
126
+              placeholder="选择日期">
127
+            </el-date-picker>
128
+          </div>
129
+        </el-col>
130
+
131
+        <el-col :span="4">
132
+          <div>
133
+
134
+            <el-select size="small" v-model="statistics_type" placeholder="请选择"
135
+                       style="width:100px;margin-left:5px;">
136
+              <el-option
137
+                v-for="item,index in statistics_types"
138
+                :key="index"
139
+                :label="item.label"
140
+                :value="item.value">
141
+              </el-option>
142
+            </el-select>
143
+
144
+          </div>
145
+        </el-col>
146
+
147
+        <!--        <el-col :span="4">-->
148
+        <!--          <div>-->
149
+        <!--            <el-select size="small" v-model="sort_type" placeholder="请选择"-->
150
+        <!--                       style="width:100px;margin-left:5px;">-->
151
+        <!--              <el-option-->
152
+        <!--                v-for="item,index in sort_types"-->
153
+        <!--                :key="index"-->
154
+        <!--                :label="item.label"-->
155
+        <!--                :value="item.value">-->
156
+        <!--              </el-option>-->
157
+        <!--            </el-select>-->
158
+        <!--          </div>-->
159
+        <!--        </el-col>-->
160
+
161
+        <el-col :span="4">
162
+          <div >
163
+            <el-input v-model="keyword" placeholder="请输入患者姓名或透析号"></el-input>
164
+          </div>
165
+        </el-col>
166
+
167
+        <el-col :span="2">
168
+          <div>
169
+            <el-button @click="getDataTwo()">查询</el-button>
170
+          </div>
171
+        </el-col>
172
+
173
+        <el-col :span="2">
174
+          <div>
175
+            <el-button @click="exportAction()">导出</el-button>
176
+          </div>
177
+        </el-col>
178
+
179
+        <!--        <el-col :span="2">-->
180
+        <!--          <div>-->
181
+        <!--            <el-button @click="getDataTwo()">打印</el-button>-->
182
+        <!--          </div>-->
183
+        <!--        </el-col>-->
184
+
185
+
186
+
187
+
188
+
189
+      </el-row>
190
+
191
+      <el-table
192
+        :data="patientTableData"
193
+        border
194
+        ref="table"
195
+        max-height="500px"
196
+        style="width: 100%">
197
+        <el-table-column
198
+          prop="dialysis_no"
199
+          align="center"
200
+          label="透析号"
201
+        >
202
+        </el-table-column>
203
+        <el-table-column
204
+          prop="name"
205
+          label="患者姓名"
206
+        >
207
+        </el-table-column>
208
+        <el-table-column
209
+          prop="date"
210
+          label="检查日期"
211
+        >
212
+        </el-table-column>
213
+
214
+        <el-table-column
215
+          prop="inspect_value"
216
+          label="结果"
217
+        >
218
+        </el-table-column>
219
+
220
+      </el-table>
221
+
222
+      <div slot="footer" class="dialog-footer">
223
+        <el-button @click="detailVisibility = false">取消</el-button>
224
+        <el-button type="primary" @click="detailVisibility = false">确定</el-button>
225
+      </div>
226
+    </el-dialog>
227
+
228
+  </div>
229
+</template>
230
+<script>
231
+import * as echarts from 'echarts'
232
+import { GetAllQCStatistisData, GetQCStatistisData } from '../../../api/qcd'
233
+import { number } from 'echarts/lib/export'
234
+
235
+const moment = require('moment')
236
+
237
+export default {
238
+  props: {
239
+    project_id:{
240
+      type: number,
241
+    }, item_id:{
242
+      type: number,
243
+    },
244
+    width: {
245
+      type: String,
246
+      default: '100%'
247
+    },
248
+    height: {
249
+      type: String,
250
+      default: '400px'
251
+    }
252
+
253
+  },
254
+  data() {
255
+    return {
256
+      statistics_types:[
257
+        { value: 1, label: '不达标患者' },
258
+        { value: 2, label: '未检查患者' },
259
+        { value: 3, label: '达标患者' },
260
+      ],
261
+      sort_types:[
262
+        { value: 1, label: '时间' },
263
+        { value: 2, label: '患者' },
264
+      ],
265
+      detailVisibility:false,
266
+      isClose:true,
267
+      time_type: 1,
268
+      time_type_two:1,
269
+      times: [
270
+        { value: 1, label: '本月' },
271
+        { value: 2, label: '上月' },
272
+        { value: 3, label: '今年' },
273
+        { value: 4, label: '上一年' },
274
+        { value: 5, label: '第一季度' },
275
+        { value: 6, label: '第二季度' },
276
+        { value: 7, label: '第三季度' },
277
+        { value: 8, label: '第四季度' },
278
+        { value: 9, label: '自定义' }
279
+
280
+      ],
281
+      reference:{},
282
+      time_month: '',
283
+      start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
284
+      end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
285
+      start_time_one: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
286
+      end_time_one: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
287
+      input: '',
288
+      myChart: {},
289
+      pieData: [],
290
+      pieName: [],
291
+      // myChartStyle:{float: "right", width: "100%", height: "400px"},
292
+      tableData: [],
293
+      statistics_type:1,
294
+      sort_type:"",
295
+      keyword:"",
296
+      patientTableData:[],
297
+    }
298
+  },
299
+  mounted() {
300
+    this.getData()
301
+  },
302
+  methods: {
303
+    exportAction(){
304
+      let list = []
305
+      for (let i = 0; i < this.patientTableData.length; i++) {
306
+        let order = this.patientTableData[i]
307
+        let name = order.name
308
+        let value = order.inspect_value
309
+        let inspect_date = order.date
310
+
311
+        let obj = {
312
+          '姓名': name,
313
+          '数值': value,
314
+          '日期': inspect_date,
315
+        }
316
+        list.push(obj)
317
+      }
318
+      import('@/vendor/Export2Excel').then(excel => {
319
+        const tHeader = ['姓名', '数值', '日期']
320
+        const filterVal = ['姓名', '数值', '日期']
321
+        const data = this.formatJson(filterVal, list)
322
+        excel.export_json_to_excel1({
323
+          header: tHeader,
324
+          data,
325
+          filename: '明细',
326
+          ref: this.$refs['table'].$el
327
+        })
328
+      })
329
+    },
330
+
331
+    formatJson(filterVal, jsonData) {
332
+      return jsonData.map(v => filterVal.map(j => v[j]))
333
+    },
334
+    changeItemTwo(val) {
335
+      const currentDate = new Date()
336
+      switch (val) {
337
+        case 1:
338
+          const startOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).toLocaleDateString('en-CA')
339
+          const endOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0).toLocaleDateString('en-CA')
340
+          this.start_time_one = startOfMonth
341
+          this.end_time_one = endOfMonth
342
+          // this.getDataTwo()
343
+          break
344
+        case 2:
345
+          // 上月的起始日期和结束日期
346
+          const startOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1).toLocaleDateString('en-CA')
347
+          const endOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 0).toLocaleDateString('en-CA')
348
+          this.start_time_one = startOfLastMonth
349
+          this.end_time_one = endOfLastMonth
350
+          // this.getDataTwo()
351
+          break
352
+        case 3:
353
+          // 今年的起始日期和结束日期
354
+          const startOfYear = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
355
+          const endOfYear = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
356
+
357
+          this.start_time_one = startOfYear
358
+          this.end_time_one = endOfYear
359
+          // this.getDataTwo()
360
+
361
+          break
362
+        case 4:
363
+          // 上一年的起始日期和结束日期
364
+          const startOfLastYear = new Date(currentDate.getFullYear() - 1, 0, 1).toLocaleDateString('en-CA')
365
+          const endOfLastYear = new Date(currentDate.getFullYear() - 1, 11, 31).toLocaleDateString('en-CA')
366
+
367
+          this.start_time_one = startOfLastYear
368
+          this.end_time_one = endOfLastYear
369
+          // this.getDataTwo()
370
+
371
+          break
372
+        case 5:
373
+          // 第一季度的起始日期和结束日期
374
+          const startOfFirstQuarter = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
375
+          const endOfFirstQuarter = new Date(currentDate.getFullYear(), 2, 31).toLocaleDateString('en-CA')
376
+          this.start_time_one = startOfFirstQuarter
377
+          this.end_time_one = endOfFirstQuarter
378
+          // this.getDataTwo()
379
+          break
380
+        case 6:
381
+          // 第二季度的起始日期和结束日期
382
+          const startOfSecondQuarter = new Date(currentDate.getFullYear(), 3, 1).toLocaleDateString('en-CA')
383
+          const endOfSecondQuarter = new Date(currentDate.getFullYear(), 5, 30).toLocaleDateString('en-CA')
384
+          this.start_time_one = startOfSecondQuarter
385
+          this.end_time_one = endOfSecondQuarter
386
+          // this.getDataTwo()
387
+          break
388
+        case 7:
389
+          // 第三季度的起始日期和结束日期
390
+          const startOfThirdQuarter = new Date(currentDate.getFullYear(), 6, 1).toLocaleDateString('en-CA')
391
+          const endOfThirdQuarter = new Date(currentDate.getFullYear(), 8, 30).toLocaleDateString('en-CA')
392
+
393
+          this.start_time_one = startOfThirdQuarter
394
+          this.end_time_one = endOfThirdQuarter
395
+          // this.getDataTwo()
396
+
397
+          break
398
+        case 8:
399
+          // 第四季度的起始日期和结束日期
400
+          const startOfFourthQuarter = new Date(currentDate.getFullYear(), 9, 1).toLocaleDateString('en-CA')
401
+          const endOfFourthQuarter = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
402
+
403
+          this.start_time_one = startOfFourthQuarter
404
+          this.end_time_one = endOfFourthQuarter
405
+          // this.getDataTwo()
406
+          break
407
+        case 9:
408
+          this.start_time_one = ''
409
+          this.end_time_one = ''
410
+          break
411
+      }
412
+    },
413
+
414
+    getDataTwo() {
415
+      if(this.start_time_one.length == 0){
416
+        this.$message.error("请选择开始时间")
417
+      }
418
+      if(this.end_time_one.length == 0){
419
+        this.$message.error("请选择结束时间")
420
+      }
421
+      let params = {
422
+        start_date: this.start_time_one,
423
+        end_date: this.end_time_one,
424
+        project_id: this.project_id,
425
+        item_id: this.item_id,
426
+        item_type:this.statistics_type,
427
+        order_type:this.sort_type,
428
+        keyword: this.keyword,
429
+      }
430
+      this.patientTableData = []
431
+      GetAllQCStatistisData(params).then(response => {
432
+        if (response.data.state == 1) {
433
+          this.detailVisibility = true
434
+          this.patientTableData  =  this.patientTableData.concat(response.data.data.list)
435
+        } else {
436
+          this.$message.error(response.data.msg)
437
+        }
438
+      })
439
+
440
+    },
441
+    getData() {
442
+      if(this.start_time.length == 0){
443
+        this.$message.error("请选择开始时间")
444
+      }
445
+      if(this.end_time.length == 0){
446
+        this.$message.error("请选择结束时间")
447
+      }
448
+      let params = {
449
+        start_date: this.start_time,
450
+        end_date: this.end_time,
451
+        project_id: this.project_id,
452
+        item_id: this.item_id
453
+      }
454
+      this.pieData = []
455
+      this.tableData = []
456
+      console.log("~~~~~~~~~~")
457
+      GetQCStatistisData(params).then(response => {
458
+        if (response.data.state == 1) {
459
+          this.reference = response.data.data.reference
460
+          this.input = response.data.data.reference.range_min + "<=" + response.data.data.reference.item_name + "<=" + response.data.data.reference.range_max
461
+          let objone = {
462
+            value:  response.data.data.unusual_total ,
463
+            name: '不达标值患者',
464
+            count:response.data.data.unusual_total,
465
+          }
466
+          this.pieData.push(objone)
467
+          this.tableData.push(objone)
468
+
469
+          let objtwo = {
470
+            value:   response.data.data.normal_total ,
471
+            name: '达标值患者',
472
+            count:response.data.data.normal_total,
473
+
474
+          }
475
+          this.pieData.push(objtwo)
476
+          this.tableData.push(objtwo)
477
+
478
+          let objthree = {
479
+            value: response.data.data.no_check_total ,
480
+            name: '未检查患者',
481
+            count:response.data.data.no_check_total,
482
+
483
+          }
484
+          this.pieData.push(objthree)
485
+          this.tableData.push(objthree)
486
+
487
+          let objfour = {
488
+            value: response.data.data.patient_count,
489
+            name: '合计',
490
+            count:response.data.data.patient_count,
491
+          }
492
+          this.tableData.push(objfour)
493
+          for (let i = 0; i < this.pieData.length; i++) {
494
+            this.pieName[i] = this.pieData[i].name
495
+          }
496
+          this.myChart = echarts.init(document.getElementById('mychart'))
497
+          window.addEventListener('resize', () => {
498
+            this.myChart.resize()
499
+          })
500
+          const option = {
501
+            legend: {
502
+              // 图例
503
+              data: this.pieName,
504
+              left: '10%',
505
+              top: '30%',
506
+              orient: 'vertical'
507
+            },
508
+            color: ['#F74587', '#32D79B', '#6590FF'],
509
+
510
+
511
+            title: {
512
+              // 设置饼图标题,位置设为顶部居中
513
+              //   text: "国内院士前五省份图示",
514
+              top: '0%',
515
+              left: 'center'
516
+            },
517
+            series: [
518
+              {
519
+                type: 'pie',
520
+                label: {
521
+                  normal : {
522
+                    formatter: '{b}:{c}: ({d}%)',
523
+                    textStyle : {
524
+                        fontWeight : 'normal',
525
+                        fontSize : 15,
526
+                        color : "black"
527
+                    }
528
+                  }
529
+                  // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
530
+                },
531
+                radius: '65%', //饼图半径
532
+                data: this.pieData,
533
+                itemStyle : {
534
+                  emphasis: {
535
+                      shadowBlur: 10,
536
+                      shadowOffsetX: 0,
537
+                      shadowColor: 'rgba(0, 0, 0, 0.5)'
538
+                  }
539
+                }
540
+              }
541
+            ]
542
+          }
543
+          //   console.log(this.seriesData);
544
+          const optionFree = {
545
+            series: [
546
+              {
547
+                data: this.seriesData,
548
+                type: 'line',
549
+                smooth: true
550
+              }
551
+            ]
552
+          }
553
+          this.myChart = echarts.init(document.getElementById('mychart'))
554
+          this.myChart.setOption(option)
555
+        } else {
556
+          this.$message.error(response.data.msg)
557
+        }
558
+      })
559
+
560
+    },
561
+    changeItem(val) {
562
+      const currentDate = new Date()
563
+      switch (val) {
564
+        case 1:
565
+
566
+          const startOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).toLocaleDateString('en-CA')
567
+          const endOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0).toLocaleDateString('en-CA')
568
+
569
+          this.start_time = startOfMonth
570
+          this.end_time = endOfMonth
571
+          this.getData()
572
+
573
+          break
574
+        case 2:
575
+          // 上月的起始日期和结束日期
576
+          const startOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, 1).toLocaleDateString('en-CA')
577
+          const endOfLastMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 0).toLocaleDateString('en-CA')
578
+
579
+          this.start_time = startOfLastMonth
580
+          this.end_time = endOfLastMonth
581
+          this.getData()
582
+
583
+          break
584
+        case 3:
585
+          // 今年的起始日期和结束日期
586
+          const startOfYear = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
587
+          const endOfYear = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
588
+
589
+          this.start_time = startOfYear
590
+          this.end_time = endOfYear
591
+          this.getData()
592
+
593
+          break
594
+        case 4:
595
+          // 上一年的起始日期和结束日期
596
+          const startOfLastYear = new Date(currentDate.getFullYear() - 1, 0, 1).toLocaleDateString('en-CA')
597
+          const endOfLastYear = new Date(currentDate.getFullYear() - 1, 11, 31).toLocaleDateString('en-CA')
598
+
599
+          this.start_time = startOfLastYear
600
+          this.end_time = endOfLastYear
601
+          this.getData()
602
+
603
+          break
604
+        case 5:
605
+          // 第一季度的起始日期和结束日期
606
+          const startOfFirstQuarter = new Date(currentDate.getFullYear(), 0, 1).toLocaleDateString('en-CA')
607
+          const endOfFirstQuarter = new Date(currentDate.getFullYear(), 2, 31).toLocaleDateString('en-CA')
608
+
609
+          this.start_time = startOfFirstQuarter
610
+          this.end_time = endOfFirstQuarter
611
+          this.getData()
612
+
613
+          break
614
+        case 6:
615
+          // 第二季度的起始日期和结束日期
616
+          const startOfSecondQuarter = new Date(currentDate.getFullYear(), 3, 1).toLocaleDateString('en-CA')
617
+          const endOfSecondQuarter = new Date(currentDate.getFullYear(), 5, 30).toLocaleDateString('en-CA')
618
+
619
+          this.start_time = startOfSecondQuarter
620
+          this.end_time = endOfSecondQuarter
621
+          this.getData()
622
+
623
+          break
624
+        case 7:
625
+          // 第三季度的起始日期和结束日期
626
+          const startOfThirdQuarter = new Date(currentDate.getFullYear(), 6, 1).toLocaleDateString('en-CA')
627
+          const endOfThirdQuarter = new Date(currentDate.getFullYear(), 8, 30).toLocaleDateString('en-CA')
628
+
629
+          this.start_time = startOfThirdQuarter
630
+          this.end_time = endOfThirdQuarter
631
+          this.getData()
632
+
633
+          break
634
+        case 8:
635
+          // 第四季度的起始日期和结束日期
636
+          const startOfFourthQuarter = new Date(currentDate.getFullYear(), 9, 1).toLocaleDateString('en-CA')
637
+          const endOfFourthQuarter = new Date(currentDate.getFullYear(), 11, 31).toLocaleDateString('en-CA')
638
+
639
+          this.start_time = startOfFourthQuarter
640
+          this.end_time = endOfFourthQuarter
641
+          this.getData()
642
+          break
643
+        case 9:
644
+          this.start_time = ''
645
+          this.end_time = ''
646
+          break
647
+      }
648
+    },
649
+
650
+
651
+    getSummaries(param) {
652
+      const { columns, data } = param
653
+      const sums = []
654
+      columns.forEach((column, index) => {
655
+        if (index === 0) {
656
+          sums[index] = '总价'
657
+          return
658
+        }
659
+        const values = data.map(item => Number(item[column.property]))
660
+        if (!values.every(value => isNaN(value))) {
661
+          sums[index] = values.reduce((prev, curr) => {
662
+            const value = Number(curr)
663
+            if (!isNaN(value)) {
664
+              return prev + curr
665
+            } else {
666
+              return prev
667
+            }
668
+          }, 0)
669
+          sums[index] += ' 元'
670
+        } else {
671
+          sums[index] = 'N/A'
672
+        }
673
+      })
674
+
675
+      return sums
676
+    },
677
+    handleClick(row) {
678
+      if(row.name == "不达标值患者"){
679
+        this.statistics_type = 1
680
+      }else if(row.name == "达标值患者"){
681
+        this.statistics_type = 3
682
+      }else {
683
+        this.statistics_type = 2
684
+      }
685
+      this.getDataTwo()
686
+    }
687
+  }
688
+
689
+}
690
+</script>
691
+<style lang="scss" scoped>
692
+.content_top {
693
+  display: flex;
694
+  justify-content: space-around;
695
+  color: #1e5feb;
696
+}
697
+</style>

src/xt_pages/Dialysisanalysis/otherIndicators/otheralone.vue → src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsone.vue 查看文件

@@ -83,9 +83,9 @@
83 83
           <div style="padding-left:10px;flex:1;width:0;">
84 84
             <div class="tableTitle">指标趋势<span style="font-weight:normal">&nbsp;&nbsp;(当前患者: {{patient_name}})</span></div>
85 85
             <div>
86
-              <line-chart :options="chart"
87
-                          v-if="query.statistics_type != 9 && query.statistics_type != 10"></line-chart>
88
-              <line-chart :options="bar" v-if="query.statistics_type == 9 || query.statistics_type == 10"></line-chart>
86
+              <line-chart :options="chart"></line-chart>
87
+              <!--              <line-chart :options="bar" v-if="query.statistics_type == 9 || query.statistics_type == 10"></line-chart>-->
88
+              <!--              <line-chart></line-chart>-->
89 89
 
90 90
             </div>
91 91
             <div class="tableTitle">统计表</div>
@@ -93,32 +93,25 @@
93 93
               <el-table ref="table" :data="tableData" v-loading="loading" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
94 94
                 <el-table-column label="姓名" align="center">
95 95
                   <template slot-scope="scope">
96
+                    {{scope.row.name}}
96 97
                   </template>
97 98
                 </el-table-column>
98 99
 
99 100
                 <el-table-column width="100" label="检查日期" align="center">
100 101
                   <template slot-scope="scope">
102
+                    {{getTime(scope.row.inspect_date)}}
103
+
101 104
                   </template>
102 105
                 </el-table-column>
103 106
 
104
-                <el-table-column width="100" label="甲状旁腺激素分析" align="center">
107
+                <el-table-column width="100" label="血红蛋白" align="center">
105 108
                   <template slot-scope="scope">
109
+                    {{scope.row.value}}
106 110
                   </template>
107 111
                 </el-table-column>
108 112
               </el-table>
109 113
 
110
-              <el-pagination
111
-                align="right"
112
-                @size-change="handleSizeChange"
113
-                @current-change="handleCurrentChange"
114
-                :current-page="query.page"
115
-                :page-sizes="[10, 20, 50, 100]"
116
-                :page-size="10"
117
-                background
118
-                style="margin-top:20px;"
119
-                layout="total, sizes, prev, pager, next, jumper"
120
-                :total="total"
121
-              ></el-pagination>
114
+
122 115
             </div>
123 116
           </div>
124 117
         </el-container>
@@ -130,7 +123,6 @@
130 123
 
131 124
 <script>
132 125
 import echarts from 'echarts'
133
-// import LineChart from '../../qcd/components/LineChart'
134 126
 import {  uParseTime } from '@/utils/tools'
135 127
 import { getCurrentOrgPatients } from '@/api/common/common'
136 128
 import {
@@ -139,9 +131,11 @@ import {
139 131
 import { PostSearch } from '@/api/patient'
140 132
 import { getDataConfig } from '@/utils/data'
141 133
 import { GetPersonQCStatistisData } from '../../../api/qcd'
134
+import LineChart from '../../qcd/components/LineChart.vue'
142 135
 
143 136
 export default {
144 137
   components: {
138
+    LineChart
145 139
   },
146 140
   data() {
147 141
     return {
@@ -365,25 +359,19 @@ export default {
365 359
       for (let i = 0; i < this.tableData.length; i++) {
366 360
         let order = this.tableData[i]
367 361
         let name = order.name
368
-        let item_name = order.item_name
369
-        let count = order.count
370
-        let price = order.price.toFixed(2)
371
-        let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
372
-        let total = order.total.toFixed(2)
362
+        let value = order.value
363
+        let inspect_date = order.inspect_date
373 364
 
374 365
         let obj = {
375
-          '患者姓名': name,
376
-          '项目名称': item_name,
377
-          '数量': count,
378
-          '单价': price,
379
-          '费用': pay_sumamt,
380
-          '费用总额': total
366
+          '姓名': name,
367
+          '数值': value,
368
+          '日期': inspect_date,
381 369
         }
382 370
         list.push(obj)
383 371
       }
384 372
       import('@/vendor/Export2Excel').then(excel => {
385
-        const tHeader = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
386
-        const filterVal = ['患者姓名', '项目名称', '数量', '单价', '费用', '费用总额']
373
+        const tHeader = ['姓名', '数值', '日期']
374
+        const filterVal = ['姓名', '数值', '日期']
387 375
         const data = this.formatJson(filterVal, list)
388 376
         excel.export_json_to_excel1({
389 377
           header: tHeader,
@@ -480,7 +468,7 @@ export default {
480 468
       if(val == "" || val == undefined){
481 469
         return ""
482 470
       }else {
483
-        return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
471
+        return uParseTime(val, '{y}-{m}-{d}')
484 472
       }
485 473
     },
486 474
     GetInspectionCheckIndexTableData(params) {
@@ -493,7 +481,12 @@ export default {
493 481
             this.loading = false
494 482
             this.tableData = []
495 483
             for (let i = 0; i < resp.data.inspections.length; i++) {
496
-              this.tableData.push(resp.data.inspections[i])
484
+              let obj = {
485
+                name:resp.data.patient.name,
486
+                value:resp.data.inspections[i].inspect_value,
487
+                inspect_date:resp.data.inspections[i].inspect_date
488
+              }
489
+              this.tableData.push(obj)
497 490
             }
498 491
             this.total = resp.data.total
499 492
 
@@ -515,10 +508,14 @@ export default {
515 508
         .then(rs => {
516 509
           var resp = rs.data
517 510
           if (resp.state == 1) {
511
+            console.log(resp.data.inspections)
518 512
             for (let i = 0; i < resp.data.inspections.length; i++) {
519 513
               this.chart.xAxis.data.push(this.getTime(resp.data.inspections[i].inspect_date))
520 514
               this.chart.series[0].data.push(resp.data.inspections[i].inspect_value)
521 515
             }
516
+            console.log(this.chart.xAxis.data)
517
+            console.log( this.chart.series[0].data)
518
+
522 519
             this.getArrLength(this.chart.xAxis.data,1)
523 520
           } else {
524 521
 
@@ -610,8 +607,8 @@ export default {
610 607
     this.query.patient_id = 0
611 608
     this.query.end_time = year + '-' + month + '-' + day
612 609
     this.query.start_time = year + '-' + last_month + '-' + day
613
-    this.query.project_id = 20
614
-    this.query.item_id = 171
610
+    this.query.project_id = 1
611
+    this.query.item_id = 17
615 612
     this.getCurrentOrgPatients()
616 613
 
617 614
     // this.GetPersonQCStatistisData()

+ 0 - 265
src/xt_pages/Dialysisanalysis/otherIndicators/otherall.vue 查看文件

@@ -1,265 +0,0 @@
1
-<template>
2
-    <div>
3
-        <!-- <div class="content_top">
4
-            <div class="block">
5
-                <span>查询时间:</span>
6
-                <el-date-picker
7
-                v-model="time_month"
8
-                type="month"
9
-                placeholder="选择月">
10
-                </el-date-picker>
11
-            </div>
12
-            <div>
13
-                <el-date-picker
14
-                v-model="stat_time"
15
-                type="date"
16
-                placeholder="选择日期">
17
-                </el-date-picker>
18
-                <span>-</span>
19
-                <el-date-picker
20
-                v-model="end_time"
21
-                type="date"
22
-                placeholder="选择日期">
23
-                </el-date-picker>
24
-            </div>
25
-            <div style="width: 200px;">
26
-                <el-input v-model="input" placeholder="请输入内容"></el-input>
27
-            </div>
28
-            <el-button type="primary">查询</el-button>
29
-        </div> -->
30
-
31
-        <el-row :gutter="20">
32
-        <el-col :span="5">
33
-          <div class="block">
34
-            <span>查询时间:</span>
35
-            <el-date-picker
36
-            v-model="time_month"
37
-            type="month"
38
-            placeholder="选择月">
39
-            </el-date-picker>
40
-          </div>
41
-        </el-col>
42
-        <el-col :span="8">
43
-          <div>
44
-            <el-date-picker
45
-            v-model="stat_time"
46
-            type="date"
47
-            placeholder="选择日期">
48
-            </el-date-picker>
49
-            <span>-</span>
50
-            <el-date-picker
51
-            v-model="end_time"
52
-            type="date"
53
-            placeholder="选择日期">
54
-            </el-date-picker>
55
-          </div>
56
-        </el-col>
57
-        <el-col :span="3">
58
-          <div style="width: 200px;">
59
-            <el-input v-model="input" placeholder="请输入内容"></el-input>
60
-          </div>
61
-        </el-col>
62
-        <el-col :span="2">
63
-            <el-button type="primary">查询</el-button>
64
-        </el-col>
65
-        </el-row>
66
-
67
-        <div class="cell clearfix" style="margin: 20px; font-weight: bold;">
68
-          <p class="chartTitle">统计图</p>
69
-        </div>
70
-        <div class="echart" id="mychart" :style={width:width,height:height}></div>
71
-        <div style="width: 80%;margin: auto;">
72
-            <el-table
73
-            :data="tableData"
74
-            :show-summary = true
75
-            border
76
-            :header-cell-style="{
77
-              backgroundColor: 'rgb(245, 247, 250)',
78
-              color: '#606266'
79
-            }"
80
-            style="width: 100%;">
81
-                <el-table-column
82
-                    prop="date"
83
-                    align="center"
84
-                    label="白蛋白"
85
-                    >
86
-                </el-table-column>
87
-                <el-table-column
88
-                    prop="name"
89
-                    label="人数"
90
-                    >
91
-                </el-table-column>
92
-<!--                <el-table-column-->
93
-<!--                    prop="address"-->
94
-<!--                    align="center"-->
95
-<!--                    label="操作">-->
96
-<!--                    <template slot-scope="scope">-->
97
-<!--                        <el-button @click="handleClick(scope.row)" style="font-size:16px;"-->
98
-<!--                                type="text" >查看详情-->
99
-<!--                        </el-button>-->
100
-<!--                    </template>-->
101
-<!--                </el-table-column>-->
102
-            </el-table>
103
-        </div>
104
-    </div>
105
-</template>
106
-<script>
107
-import * as echarts from "echarts";
108
-export default{
109
-    props: {
110
-
111
-    width: {
112
-      type: String,
113
-      default: "100%"
114
-    },
115
-    height: {
116
-      type: String,
117
-      default: "400px"
118
-    },
119
-
120
-  },
121
-    data() {
122
-        return {
123
-            time_month:'',
124
-            stat_time:'',
125
-            end_time:'',
126
-            input:'',
127
-            myChart: {},
128
-            pieData : [
129
-            {
130
-          value: 463,
131
-          name: "不达标值患者"
132
-        },
133
-        {
134
-          value: 395,
135
-          name: "未检查患者"
136
-        },
137
-        {
138
-          value: 157,
139
-          name: "达标值患者"
140
-        },
141
-        // {
142
-        //   value: 149,
143
-        //   name: "广东"
144
-        // },
145
-        // {
146
-        //   value: 147,
147
-        //   name: "湖南"
148
-        // }
149
-
150
-            ],
151
-            pieName: [],
152
-            // myChartStyle:{float: "right", width: "100%", height: "400px"},
153
-            tableData:[],
154
-        }
155
-    },
156
-    mounted() {
157
-    this.initDate(); //数据初始化
158
-    this.initEcharts();
159
-  },
160
-  methods: {
161
-    initDate() {
162
-      for (let i = 0; i < this.pieData.length; i++) {
163
-        this.pieName[i] = this.pieData[i].name;
164
-      }
165
-    },
166
-    initEcharts() {
167
-      // 饼图
168
-      const option = {
169
-        legend: {
170
-          // 图例
171
-          data: this.pieName,
172
-          left: "10%",
173
-          top: "30%",
174
-          orient: "vertical"
175
-        },
176
-        color:['#ff7f9f','#fff67f','#1e5feb'],
177
-        title: {
178
-          // 设置饼图标题,位置设为顶部居中
179
-        //   text: "国内院士前五省份图示",
180
-          top: "0%",
181
-          left: "center"
182
-        },
183
-        series: [
184
-          {
185
-            type: "pie",
186
-            label: {
187
-              normal : {
188
-                formatter: '{b}:{c}: ({d}%)',
189
-                textStyle : {
190
-                    fontWeight : 'normal',
191
-                    fontSize : 15,
192
-                    color : "black"
193
-                }
194
-              }
195
-              // b代表名称,c代表对应值,d代表百分比"{b} : {d}% ({c})"
196
-            },
197
-            radius: "65%", //饼图半径
198
-            data: this.pieData,
199
-            itemStyle : {
200
-              emphasis: {
201
-                  shadowBlur: 10,
202
-                  shadowOffsetX: 0,
203
-                  shadowColor: 'rgba(0, 0, 0, 0.5)'
204
-              }
205
-            }
206
-          }
207
-        ]
208
-      };
209
-    //   console.log(this.seriesData);
210
-      const optionFree = {
211
-        series: [
212
-          {
213
-            data: this.seriesData,
214
-            type: "line",
215
-            smooth: true
216
-          }
217
-        ]
218
-      };
219
-      this.myChart = echarts.init(document.getElementById("mychart"));
220
-      this.myChart.setOption(option);
221
-      //随着屏幕大小调节图表
222
-      window.addEventListener("resize", () => {
223
-        this.myChart.resize();
224
-      });
225
-    },
226
-    getSummaries(param) {
227
-        const { columns, data } = param;
228
-        const sums = [];
229
-        columns.forEach((column, index) => {
230
-          if (index === 0) {
231
-            sums[index] = '总价';
232
-            return;
233
-          }
234
-          const values = data.map(item => Number(item[column.property]));
235
-          if (!values.every(value => isNaN(value))) {
236
-            sums[index] = values.reduce((prev, curr) => {
237
-              const value = Number(curr);
238
-              if (!isNaN(value)) {
239
-                return prev + curr;
240
-              } else {
241
-                return prev;
242
-              }
243
-            }, 0);
244
-            sums[index] += ' 元';
245
-          } else {
246
-            sums[index] = 'N/A';
247
-          }
248
-        });
249
-
250
-        return sums;
251
-    },
252
-    handleClick(id){
253
-        console.log(id);
254
-    }
255
-  }
256
-
257
-}
258
-</script>
259
-<style lang="scss" scoped>
260
-.content_top{
261
-    display: flex;
262
-    justify-content: space-around;
263
-    color: #1e5feb;
264
-}
265
-</style>

+ 2 - 2
src/xt_pages/device/objectRegistration.vue 查看文件

@@ -106,8 +106,8 @@
106 106
                 </el-table-column>
107 107
             </el-table>
108 108
             <el-pagination
109
-              :page-sizes="[10, 20, 50, 100]"
110
-              :page-size="10"
109
+              :page-sizes="[500, 1000, 1500, 2000,2500]"
110
+              :page-size="500"
111 111
               background
112 112
               style="margin-top:20px;float: right"
113 113
               layout="total, sizes, prev, pager, next, jumper"

+ 2 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue 查看文件

@@ -56,9 +56,8 @@
56 56
                <!-- <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date<=1672416000">{{record.patient.total_dialysis + record.patient.user_sys_before_count}}</span>  
57 57
                <span v-if="record.dialysis_order && record.dialysis_order.dialysis_date>=1672502400">{{record.patient.total_dialysis}}</span>   -->
58 58
               <span>
59
-                            <!-- {{ record.Count ? record.Count:''}} -->
60
-                            {{ record.patient.total_dialysis }}
61
-                        </span>
59
+                 {{ record.Count ? record.Count:''}}  
60
+                </span>
62 61
               </span>
63 62
             </td>
64 63
                   <td style="text-align:center;">

+ 1 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -1318,7 +1318,7 @@
1318 1318
         align="right"
1319 1319
         @size-change="handleSizeChange"
1320 1320
         @current-change="handleCurrentChange"
1321
-        :page-sizes="[20, 40, 60, 80,100]"
1321
+        :page-sizes="[20, 40, 60, 80,100,300,500]"
1322 1322
         :page-size="10"
1323 1323
         background
1324 1324
         style="margin-top:20px;"

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -357,7 +357,7 @@
357 357
 
358 358
         <li v-if="isShow('维持时长')">
359 359
           <label>维持时长: </label>
360
-          <span class="content">{{this.prescription.anticoagulant_weichi_hour}}</span>
360
+          <span class="content">{{this.prescription.anticoagulant_weichi_hour?this.prescription.anticoagulant_weichi_hour:"0"}}</span>
361 361
         </li>
362 362
 
363 363
         <li
@@ -449,7 +449,7 @@
449 449
 
450 450
          <li v-if="isShow('葡萄糖')">
451 451
           <label>葡萄糖: </label>
452
-          <span class="content">{{this.prescription.amylaceum}}</span>
452
+          <span class="content">{{this.prescription.amylaceum?this.prescription.amylaceum:0}}</span>
453 453
         </li>
454 454
 
455 455
         <li v-if="isShow('单超时长')">

+ 2 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue 查看文件

@@ -475,6 +475,8 @@ export default {
475 475
         accepts.way =1
476 476
         accepts.posture=1
477 477
         accepts.condition =2
478
+        accepts.consciousness = 1
479
+        accepts.appetite =1
478 480
 
479 481
       }
480 482
       this.accepts = accepts;

+ 11 - 5
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -2803,7 +2803,7 @@ mu
2803 2803
         }
2804 2804
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2805 2805
         // console.log('this.schedual', schedual.mode_id)
2806
-        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
2806
+        if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0) {
2807 2807
           this.zhiShow = true
2808 2808
           this.huShow = true
2809 2809
           this.totalShow = true
@@ -2815,7 +2815,6 @@ mu
2815 2815
           pre.mode_id == 7 ||
2816 2816
           pre.mode_id == 8 ||
2817 2817
           pre.mode_id == 9 ||
2818
-          pre.mode_id == 10 ||
2819 2818
           pre.mode_id == 11 ||
2820 2819
           pre.mode_id == 13 ||
2821 2820
           pre.mode_id == 14 ||
@@ -2852,11 +2851,19 @@ mu
2852 2851
               this.dialysisPrescription.dialysate_flow = 500
2853 2852
             }
2854 2853
 
2855
-            if(this.$store.getters.xt_user.org.id == 10598){
2854
+            if(this.$store.getters.xt_user.org.id == 10598 || this.$store.getters.xt_user.org.id == 10612){
2856 2855
                if(this.dialysisPrescription.dialysis_duration_minute == ""){
2857 2856
                  this.dialysisPrescription.dialysis_duration_minute =0
2858 2857
 
2859 2858
                }
2859
+
2860
+               if(this.dialysisPrescription.anticoagulant_weichi == ""){
2861
+                  this.dialysisPrescription.anticoagulant_weichi = 0
2862
+               }
2863
+
2864
+               if(this.dialysisPrescription.amylaceum == ""){
2865
+                this.dialysisPrescription.amylaceum = 0
2866
+               }
2860 2867
             }
2861 2868
         }
2862 2869
         if (this.predialysis == null || this.predialysis.id == 0) {
@@ -3036,7 +3043,7 @@ mu
3036 3043
             //   }
3037 3044
 
3038 3045
             // }
3039
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
3046
+            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10){
3040 3047
               this.dialysisPrescription.displace_liqui_part = 0
3041 3048
               this.dialysisPrescription.displace_liqui_value = 0
3042 3049
               this.dialysisPrescription.replacement_total = 0
@@ -4446,7 +4453,6 @@ mu
4446 4453
         id === 7 ||
4447 4454
         id === 8 ||
4448 4455
         id === 9 ||
4449
-        id === 10 ||
4450 4456
         id === 11 ||
4451 4457
         id === 13 ||
4452 4458
         id === 14 ||

+ 8 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -266,7 +266,7 @@
266 266
                 org_id == 10599 ||
267 267
                 org_id == 10597 ||
268 268
                 org_id == 10599 || 
269
-                org_id == 10610) &&
269
+                org_id == 10612) &&
270 270
                 org_id!=10387
271 271
             "
272 272
           >
@@ -337,7 +337,7 @@
337 337
               && org_id!=10432 && org_id!=10445
338 338
               && org_id!=10410 && org_id!=10495 &&
339 339
                org_id!=10485 && org_id!=10395 && org_id!=10375
340
-               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10610)
340
+               && org_id!=10480  && org_id!=10551 && org_id!=10597 && org_id!=10599 && org_id!=10612)
341 341
               || org_id == 10387
342 342
             "
343 343
           >
@@ -393,7 +393,7 @@
393 393
                 org_id == 10410 ||
394 394
                 org_id == 10495  ||
395 395
                 org_id == 10395
396
-                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10610)
396
+                || org_id == 10485 || org_id == 10375 || org_id ==10480 || org_id ==10551 || org_id ==10597 || org_id ==10599 || org_id ==10612)
397 397
                 && org_id!=10387
398 398
             "
399 399
           >
@@ -446,7 +446,7 @@
446 446
               org_id!=10432 &&
447 447
               org_id!=10445 &&
448 448
               org_id!=10410 && org_id!=10495
449
-              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10610 ) ||
449
+              && org_id!=10485 && org_id!=10395 && org_id!=10375 && org_id!=10480 && org_id!=10551 && org_id!=10597 && org_id!=10599&& org_id!=10612 ) ||
450 450
               org_id == 10387
451 451
             "
452 452
           >
@@ -1177,7 +1177,7 @@
1177 1177
                 org_id== 10432 ||
1178 1178
                 org_id== 10445 ||
1179 1179
                 org_id== 10410 ||
1180
-                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10610) &&
1180
+                org_id == 10485 || org_id == 10375 || org_id == 10480 || org_id == 10551 || org_id ==10612) &&
1181 1181
                 org_id!=10387
1182 1182
             "
1183 1183
           >
@@ -1225,7 +1225,7 @@
1225 1225
               org_id!=10445 &&
1226 1226
               org_id!=10410 &&
1227 1227
               org_id!=10485 &&
1228
-              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10610)
1228
+              org_id!=10375 &&  org_id!=10480 &&  org_id!=10551 && org_id!=10612)
1229 1229
               || org_id == 10387
1230 1230
             "
1231 1231
           >
@@ -1289,7 +1289,7 @@
1289 1289
                 org_id == 10551 ||
1290 1290
                 org_id == 10597||
1291 1291
                 org_id == 10599 ||
1292
-                org_id ==10610)
1292
+                org_id ==10612)
1293 1293
                 && org_id!=10387
1294 1294
             "
1295 1295
           >
@@ -1353,7 +1353,7 @@
1353 1353
               org_id!=10551 &&
1354 1354
               org_id!=10597 &&
1355 1355
               org_id!=10599 &&
1356
-              org_id!=10610
1356
+              org_id!=10612
1357 1357
               )
1358 1358
               || org_id == 10387
1359 1359
             "

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -15,10 +15,10 @@
15 15
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16 16
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
17 17
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
18
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10610) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
19
-          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10610) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
20
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10610) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
21
-          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10610 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
18
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56 || template_id == 60 || template_id == 65 || this.$store.getters.xt_user.template_info.org_id == 10340  || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10599 || this.$store.getters.xt_user.template_info.org_id == 10597  || this.$store.getters.xt_user.template_info.org_id == 10612) &&this.$store.getters.xt_user.template_info.org_id!=10387 " width="76px" > 超滤量(ml)</th>
19
+          <th v-if=" isShow('超滤量') && (template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56  && template_id != 60 && template_id != 65 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 && this.$store.getters.xt_user.template_info.org_id!=10485  && this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10599  && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10612) || this.$store.getters.xt_user.template_info.org_id == 10387"  width="76px"> 超滤量(L) </th>
20
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 65 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56  || template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10485 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10480 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599  || this.$store.getters.xt_user.template_info.org_id == 10612) && this.$store.getters.xt_user.template_info.org_id!=10387" width="50px"> 超滤率 <br />(ml/h) </th>
21
+          <th v-if="isShow('超滤率') && (template_id !=6 && template_id !=65 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56 &&  template_id !=60 && this.$store.getters.xt_user.template_info.org_id!=10432  && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=10410 &&this.$store.getters.xt_user.template_info.org_id!=10485 &&this.$store.getters.xt_user.template_info.org_id!=10375 && this.$store.getters.xt_user.template_info.org_id!=10480 && this.$store.getters.xt_user.template_info.org_id!=10597 && this.$store.getters.xt_user.template_info.org_id!=10599 && this.$store.getters.xt_user.template_info.org_id!=10612 ) || this.$store.getters.xt_user.template_info.org_id==10387" width="50px"> 超滤率 <br />(L/h) </th>
22 22
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
23 23
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
24 24
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46  || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56 || org_id == 10432 || org_id == 10445 || org_id == 10410) && org_id!=10558" width="92px" > 置换率(ml/min) </th>

+ 151 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -316,34 +316,69 @@
316 316
                     <div
317 317
                       class="inline_block"
318 318
                       style="margin-left: 10px; flex: 1"
319
-                      v-if="org_id!=10580 && org_id !=0"
319
+                      v-if="(org_id == 10598 || org_id == 0) &&  predialysis.internal_fistula!=''"
320 320
                     >
321 321
                       穿刺方式:
322 322
                       <div
323 323
                         class="under_line"
324 324
                         style="width: 100px; text-align: center"
325
-                        v-if="predialysis.puncture_way == ''"
325
+                        v-if="predialysis&&predialysis.puncture_way == ''"
326 326
                       >
327 327
                          /
328 328
                       </div>
329 329
                       <div
330 330
                         class="under_line"
331 331
                         style="width: 100px; text-align: center"
332
-                        v-if="predialysis.puncture_way.indexOf('绳梯') > -1"
332
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('绳梯') > -1"
333 333
                       >
334 334
                         绳梯
335 335
                       </div>
336 336
                       <div
337 337
                         class="under_line"
338 338
                         style="width: 100px; text-align: center"
339
-                        v-if="predialysis.puncture_way.indexOf('扣眼') > -1"
339
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('扣眼') > -1"
340 340
                       >
341 341
                         扣眼
342 342
                       </div>
343 343
                       <div
344 344
                         class="under_line"
345 345
                         style="width: 100px; text-align: center"
346
-                        v-if="predialysis.puncture_way.indexOf('区域') > -1"
346
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('区域') > -1"
347
+                      >
348
+                        区域
349
+                      </div>
350
+                    </div>
351
+                    <div
352
+                      class="inline_block"
353
+                      style="margin-left: 10px; flex: 1"
354
+                      v-if="org_id!=10580 && org_id !=0 && org_id!=10598"
355
+                    >
356
+                      穿刺方式:
357
+                      <div
358
+                        class="under_line"
359
+                        style="width: 100px; text-align: center"
360
+                        v-if="predialysis&&predialysis.puncture_way == ''"
361
+                      >
362
+                         /
363
+                      </div>
364
+                      <div
365
+                        class="under_line"
366
+                        style="width: 100px; text-align: center"
367
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('绳梯') > -1"
368
+                      >
369
+                        绳梯
370
+                      </div>
371
+                      <div
372
+                        class="under_line"
373
+                        style="width: 100px; text-align: center"
374
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('扣眼') > -1"
375
+                      >
376
+                        扣眼
377
+                      </div>
378
+                      <div
379
+                        class="under_line"
380
+                        style="width: 100px; text-align: center"
381
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('区域') > -1"
347 382
                       >
348 383
                         区域
349 384
                       </div>
@@ -358,13 +393,37 @@
358 393
                         class="under_line"
359 394
                         style="width: 100px; text-align: center"
360 395
                       >
361
-                         {{ dialysisOrder.puncture_way }}
396
+                         {{ dialysisOrder&&dialysisOrder.puncture_way }}
362 397
                       </div>
363 398
 
364 399
                     </div>
365 400
                     <div
366 401
                       class="inline_block"
367 402
                       style="margin-left: 10px; flex: 1"
403
+                      v-if="(org_id == 10598 || org_id == 0) &&  predialysis.internal_fistula!=''"
404
+                    >
405
+                      穿刺针:
406
+                      <div
407
+                        class="under_line"
408
+                        style="width: 100px; text-align: center"
409
+                      >
410
+                      <span v-if="org_id==10580 || org_id==0">
411
+                        {{ dialysisOrder.puncture_needle}}
412
+                      </span>
413
+                      <span v-if="org_id != 10580 && org_id!=0">
414
+                        {{
415
+                          predialysis.puncture_needle
416
+                            ? predialysis.puncture_needle
417
+                            : "/"
418
+                        }}
419
+                      </span>
420
+
421
+                      </div>
422
+                    </div>
423
+                    <div
424
+                      class="inline_block"
425
+                      style="margin-left: 10px; flex: 1"
426
+                      v-if="org_id != 10598"
368 427
                     >
369 428
                       穿刺针:
370 429
                       <div
@@ -750,6 +809,7 @@
750 809
                     <div
751 810
                       class="inline_block"
752 811
                       style="margin-left: 10px; flex: 1"
812
+                      v-if="org_id==10598 && prescription.mode_id == 2"
753 813
                     >
754 814
                       置换方式:
755 815
                       <div
@@ -761,8 +821,25 @@
761 821
                         }}
762 822
                       </div>
763 823
                     </div>
824
+
764 825
                     <div
826
+                      class="inline_block"
827
+                      style="margin-left: 10px; flex: 1"
828
+                      v-if="org_id!=10598"
829
+                    >
830
+                      置换方式:
831
+                      <div
832
+                        class="under_line"
833
+                        style="width: 100px; text-align: center"
834
+                      >
835
+                        {{
836
+                          getDisplaceLiquiPart(prescription.displace_liqui_part)
837
+                        }}
838
+                      </div>
839
+                    </div>
765 840
 
841
+                    <div
842
+                      v-if="org_id==10598 && prescription.mode_id == 2"
766 843
                       class="inline_block"
767 844
                       style="margin-left: 10px; flex: 1"
768 845
                     >
@@ -786,6 +863,32 @@
786 863
                       </div>
787 864
                       L
788 865
                     </div>
866
+
867
+                    <div
868
+                      v-if="org_id!=10598"
869
+                      class="inline_block"
870
+                      style="margin-left: 10px; flex: 1"
871
+                    >
872
+                      置换量:
873
+                      <div
874
+                        class="under_line"
875
+                        style="width: 70px; text-align: center"
876
+                      >
877
+                      <span v-if="org_id ==10206"> {{
878
+                          prescription.replacement_total
879
+                            ? prescription.replacement_total
880
+                            : "/"
881
+                        }}
882
+                        </span>
883
+                        <span v-if="org_id!=10206"> {{
884
+                          prescription.displace_liqui_value
885
+                            ? prescription.displace_liqui_value
886
+                            : "/"
887
+                        }}
888
+                        </span>
889
+                      </div>
890
+                      L
891
+                      </div>
789 892
                     <div
790 893
                       class="inline_block"
791 894
                       style="margin-left: 10px; flex: 1"
@@ -863,6 +966,7 @@
863 966
                             : ""
864 967
                         }}
865 968
                       </div>
969
+
866 970
                     </div>
867 971
 
868 972
                     <div class="inline_block" style="flex: 1" v-if="org_id!=10290">
@@ -985,7 +1089,7 @@
985 1089
                         class="under_line"
986 1090
                         style="width: 70px; text-align: center"
987 1091
                       >
988
-                      <span v-if="org_id !=10447 && org_id != 9675">{{
1092
+                      <span v-if="org_id !=10447 && org_id != 9675 && org_id!=10580">{{
989 1093
                           predialysis.weight_before
990 1094
                             ? parseFloat(
991 1095
                                 predialysis.weight_before -
@@ -1004,6 +1108,11 @@
1004 1108
                             : "未称重"
1005 1109
                         }}
1006 1110
                        </span>
1111
+                       <span v-if="org_id ==10580">
1112
+                        {{
1113
+                          predialysis.weight_before? parseFloat(predialysis.weight_before).toFixed(1): "未称重"
1114
+                        }}
1115
+                       </span>
1007 1116
                       </div>
1008 1117
                       kg
1009 1118
                     </div>
@@ -1083,7 +1192,7 @@
1083 1192
                       </div>
1084 1193
                       mmol/L
1085 1194
                     </div>
1086
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id !=10598">
1195
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=10598">
1087 1196
                       碳酸氢根:
1088 1197
                       <div
1089 1198
                         class="under_line"
@@ -1097,7 +1206,7 @@
1097 1206
                       </div>
1098 1207
                       mmol/L
1099 1208
                     </div>
1100
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id !=10598">
1209
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478&&org_id!=10598">
1101 1210
                       流量:
1102 1211
                       <div
1103 1212
                         class="under_line"
@@ -1501,6 +1610,7 @@
1501 1610
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>
1502 1611
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1503 1612
                         <td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
1613
+                        <td width="50" v-if="org_id == 10598 || org_id == 0">护士签名</td>
1504 1614
                         <td width="200">病情变化及处理</td>
1505 1615
                       </tr>
1506 1616
 
@@ -1633,6 +1743,35 @@
1633 1743
                         <td width="50" v-if="org_id ==10490 || org_id == 0">
1634 1744
                           {{ monitor.dicarbonate?monitor.dicarbonate:"" }}
1635 1745
                         </td>
1746
+                        <td width="50" v-if="org_id == 10598 || org_id == 0">
1747
+                          <span v-if="monitor.creator == 0">
1748
+                            <span
1749
+                            v-if="setAdminUserES(monitor.modify) == ''"
1750
+                            >{{ getAdminUser(monitor.modify) }}</span
1751
+                          >
1752
+                          <img
1753
+                            style="height: 30px"
1754
+                            :src="setAdminUserES(monitor.modify)"
1755
+                            alt=""
1756
+                            srcset=""
1757
+                            v-else
1758
+                          />
1759
+                          </span>
1760
+
1761
+                          <span v-if="monitor.creator > 0">
1762
+                            <span
1763
+                            v-if="setAdminUserES(monitor.creator) == ''"
1764
+                            >{{ getAdminUser(monitor.creator) }}</span
1765
+                          >
1766
+                          <img
1767
+                            style="height: 30px"
1768
+                            :src="setAdminUserES(monitor.creator)"
1769
+                            alt=""
1770
+                            srcset=""
1771
+                            v-else
1772
+                          />
1773
+                          </span>
1774
+                        </td>
1636 1775
                         <td style="line-height: 16px; padding: 0px">
1637 1776
                           <div
1638 1777
                             style="
@@ -1697,6 +1836,7 @@
1697 1836
                         ></td>
1698 1837
                         <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1699 1838
                         <td v-if="org_id == 9538"></td>
1839
+                        <td v-if="org_id == 10598 || org_id == 0"></td>
1700 1840
                         <td v-if="org_id == 10490 || org_id == 0"></td>
1701 1841
                         <td style="line-height: 16px; padding: 0px">
1702 1842
                           <div
@@ -1761,7 +1901,7 @@
1761 1901
                         <td
1762 1902
                           style="font-size: 16px"
1763 1903
                           width="10%"
1764
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1904
+                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375 || org_id ==10571 || org_id ==10600"
1765 1905
                         >
1766 1906
                           核对护士
1767 1907
                         </td>
@@ -1857,7 +1997,7 @@
1857 1997
                             getTime(advice.execution_time, "{h}:{i}")
1858 1998
                           }}</span>
1859 1999
                         </td>
1860
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
2000
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375 || org_id ==10571 || org_id ==10600">
1861 2001
                           <span v-if="advice!=null && advice.checker>0">
1862 2002
                             <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
1863 2003
                             <img

+ 12 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue 查看文件

@@ -444,8 +444,9 @@
444 444
                 <p style="height:15px;line-height:15px">上次透后体重</p>
445 445
               </td>
446 446
               <td style="width:8%;">
447
+              
447 448
                  <span v-if="assessmentafter.weight_after == 0">
448
-                  {{ afterdialysis.last_after_weight ? assessmentafter.last_after_weight : "0" }}kg
449
+                  {{ afterdialysis.last_after_weight ? afterdialysis.last_after_weight : "0" }}kg
449 450
                  </span>
450 451
                  <span v-if="assessmentafter.weight_after>0">
451 452
                   {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
@@ -460,7 +461,7 @@
460 461
                 <span v-if="advice.parent_id > 0">---></span>
461 462
                 <span>{{ advice.advice_name }}</span>
462 463
                 <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
463
-                <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
464
+                <!-- <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span> -->
464 465
                 <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
465 466
                 <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
466 467
                 <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
@@ -476,7 +477,15 @@
476 477
               <td v-if="advice_index === 0">透前体重</td>
477 478
               <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
478 479
               <td v-if="advice_index === 1">体重增加量</td>
479
-              <td v-if="advice_index === 1">{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg</td>
480
+              <td v-if="advice_index === 1">
481
+                <span v-if="assessmentafter.weight_after == 0">
482
+                  {{ (predialysis.weight_before - afterdialysis.last_after_weight ).toFixed(1) }}kg
483
+                 </span>
484
+                 <span v-if="assessmentafter.weight_after>0">
485
+                   {{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}kg
486
+                 </span>
487
+                 
488
+              </td>
480 489
               <td v-if="advice_index === 2">干体重(DW)</td>
481 490
               <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
482 491
               <td v-if="advice_index === 3">较干体重增加量</td>

+ 34 - 13
src/xt_pages/medicalScheduling/index.vue 查看文件

@@ -57,7 +57,7 @@
57 57
                                 <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
58 58
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
59 59
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
60
-                                      circle @click.stop="toClick(scope.row,scope.$index)"   
60
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,1))"   
61 61
                                     ></el-button>
62 62
                                   </div>
63 63
                                 </div>
@@ -81,7 +81,7 @@
81 81
                               <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
82 82
                                 <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
83 83
                                   <el-button type="danger" size="mini" icon="el-icon-close" 
84
-                                    circle @click.stop=""   
84
+                                    circle @click.stop="toClick(getClassId(scope.row.user_name,2))"   
85 85
                                   ></el-button>
86 86
                                 </div>
87 87
                               </div>
@@ -106,7 +106,7 @@
106 106
                                 <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
107 107
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
108 108
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
109
-                                      circle @click.stop=""   
109
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,3))"   
110 110
                                     ></el-button>
111 111
                                   </div>
112 112
                                 </div>
@@ -130,7 +130,7 @@
130 130
                                 <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
131 131
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
132 132
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
133
-                                      circle @click.stop=""   
133
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,4))"   
134 134
                                     ></el-button>
135 135
                                   </div>
136 136
                                 </div>
@@ -154,7 +154,7 @@
154 154
                                 <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
155 155
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
156 156
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
157
-                                      circle @click.stop=""   
157
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,5))"   
158 158
                                     ></el-button>
159 159
                                   </div>
160 160
                                 </div>
@@ -178,7 +178,7 @@
178 178
                                 <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
179 179
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
180 180
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
181
-                                      circle @click.stop=""   
181
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,6))"   
182 182
                                     ></el-button>
183 183
                                   </div>
184 184
                                 </div>
@@ -202,7 +202,7 @@
202 202
                                 <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
203 203
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
204 204
                                     <el-button type="danger" size="mini" icon="el-icon-close" 
205
-                                      circle @click.stop=""   
205
+                                      circle @click.stop="toClick(getClassId(scope.row.user_name,0))"   
206 206
                                     ></el-button>
207 207
                                   </div>
208 208
                                 </div>
@@ -916,7 +916,7 @@ export default {
916 916
                         sixStr = strSix
917 917
                      }
918 918
                     }
919
-
919
+                   console.log("staffList",staffList)
920 920
                     let tempArr = [], newArr = []
921 921
                     for (let i = 0; i < staffList.length; i++) {
922 922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
@@ -927,14 +927,14 @@ export default {
927 927
                                 user_type:staffList[i].doctor_type,
928 928
                                 is_sort:staffList[i].is_sort,
929 929
                                 sort:staffList[i].sort,
930
-                                list: [{class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes}]
930
+                                list: [{class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributesk,id:staffList[i].id}]
931 931
                             })
932 932
                             tempArr.push(staffList[i].user_name);
933 933
                         } else {
934 934
                             console.log("staffList",staffList[i].user_name)
935 935
                             for (let j = 0; j < newArr.length; j++) {
936 936
                                 if (newArr[j].admin_user_id == staffList[i].admin_user_id) {
937
-                                    newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes})
937
+                                    newArr[j].list.push({class_name:staffList[i].class_name,admin_user_id:staffList[i].admin_user_id,schedule_week:staffList[i].schedule_week,user_type:staffList[i].doctor_type,class_attributes:staffList[i].class_attributes,id:staffList[i].id})
938 938
                                 }
939 939
                             }
940 940
                         }
@@ -1051,6 +1051,26 @@ export default {
1051 1051
                 return newClass
1052 1052
             }
1053 1053
 
1054
+        },
1055
+        getClassId(name,index){
1056
+           
1057
+            if(name != undefined){
1058
+                let id = '';
1059
+                this.tableData.map(item => {
1060
+                if(item.user_name == name){
1061
+                    if(item.list){
1062
+                        item.list.map(it => {
1063
+                            if(it.schedule_week == index){
1064
+                                id = it.id
1065
+                            }
1066
+                        })
1067
+                    }
1068
+
1069
+                }
1070
+                })
1071
+                return id
1072
+            }
1073
+
1054 1074
         },
1055 1075
         getClassAttributes(name,index){
1056 1076
             if(name != undefined){
@@ -2051,7 +2071,7 @@ export default {
2051 2071
         return jsonData.map(v => filterVal.map(j => v[j]))
2052 2072
        },
2053 2073
 
2054
-       toClick(row,index){
2074
+       toClick(id,index){
2055 2075
           this.$confirm(
2056 2076
             '是否要清除当前排班? <br>清除后,信息将无法恢复',
2057 2077
             '删除提示',
@@ -2062,8 +2082,9 @@ export default {
2062 2082
                 type: 'warning'
2063 2083
             }
2064 2084
             ).then(()=>{
2065
-
2066
-            DeleteStaffScheduleById(row.id).then(response=>{
2085
+             console.log("rowwoowowow",id)
2086
+           
2087
+            DeleteStaffScheduleById(id).then(response=>{
2067 2088
                 if(response.data.state == 1){
2068 2089
                     var msg =  response.data.data.msg
2069 2090
                     this.$message.success("清除成功")

+ 5 - 5
src/xt_pages/outpatientCharges/components/callUnAssociationPrescription.vue 查看文件

@@ -151,6 +151,7 @@
151 151
         name:"",
152 152
         request_record_date:'',
153 153
         patient_id:0,
154
+        his_patient_id:0,
154 155
         allPrescription: [],
155 156
         isLastOrNextVisible: false,
156 157
 
@@ -329,18 +330,17 @@
329 330
             };
330 331
             prescriptions.push(obj)
331 332
           }
332
-        }
333
+          this.$emit('call',prescriptions,this.his_patient_id,this.patient_id)
333 334
 
334
-          this.$emit('call',prescriptions)
335 335
         }
336 336
       },
337
-      show(name,id,end_time, start_time,prescriptions){
337
+      show(name,id,end_time, start_time,prescriptions,his_patient_id){
338 338
         this.isLastOrNextVisible = true
339 339
         this.start_time  = start_time
340 340
         this.end_time = end_time;
341
-
341
+        this.his_patient_id = his_patient_id
342 342
         this.patient_id = id;
343
-        this.name = '处方调用' + '('+name +')';
343
+        this.name = '新就诊号与未结算处方关联' + '('+name +')';
344 344
 
345 345
         this.allPrescription = prescriptions;
346 346
         for (let i = 0; i < this.allPrescription.length; i++){

+ 64 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -89,7 +89,7 @@
89 89
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
90 90
 
91 91
 
92
-          <div v-if="org_id == 10206  || org_id == 0">
92
+          <div v-if="org_id == 10206  ">
93 93
             <el-button  size="small"
94 94
                         @click="openZb(1)"
95 95
                         v-if=" this.order.id == 0"
@@ -101,7 +101,7 @@
101 101
             </el-button>
102 102
           </div>
103 103
 
104
-          <div  v-if="org_id != 10206 && org_id != 10340 && org_id != 0">
104
+          <div  v-if="org_id != 10206 && org_id != 10340 ">
105 105
             <!--            <el-button size="small"-->
106 106
             <!--                       @click="openZb(1)"-->
107 107
             <!--                       type="primary">登记-->
@@ -114,7 +114,7 @@
114 114
 
115 115
             <el-button v-loading="loadingone" size="small"
116 116
                        @click="open(40)"
117
-                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375"
117
+                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480"
118 118
                        type="primary">登陆
119 119
             </el-button>
120 120
 
@@ -913,6 +913,8 @@
913 913
     <register-dialog ref='register' :doctors="doctors" :departments="department" :sick="sick" :diagnoses="diagnoses"
914 914
                      v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
915 915
 
916
+    <call-un-association-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-un-association-prescription>
917
+
916 918
     <register-dialog9504 ref='register9504' :doctors="doctors" :departments="department" :sick="sick"
917 919
                          :diagnoses="diagnoses"
918 920
                          v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
@@ -1012,10 +1014,13 @@ import NewStatementPrintTwo from './newStatementPrintTwo'
1012 1014
 import RegisterDialog9504 from './components/registerDialog9504'
1013 1015
 import cryptoJs from 'crypto-js'
1014 1016
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1017
+import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
1018
+import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
1015 1019
 
1016 1020
 const moment = require('moment')
1017 1021
 export default {
1018 1022
   components: {
1023
+    CallUnAssociationPrescription,
1019 1024
     NewStatementPrintThree,
1020 1025
     RegisterDialog9504,
1021 1026
     NewStatementPrintTwo,
@@ -1162,6 +1167,8 @@ export default {
1162 1167
       info: {},
1163 1168
       curPrescriptions: {},
1164 1169
       prescriptions: [],
1170
+      association_prescriptions: [],
1171
+
1165 1172
       big_prescriptions: [],
1166 1173
       big_prescriptions_two: [],
1167 1174
       check: 11,
@@ -1260,6 +1267,35 @@ export default {
1260 1267
     this.getPatientList()
1261 1268
   },
1262 1269
   methods: {
1270
+    call(val,his_patient_id,patient_id) {
1271
+      this.association_prescriptions = []
1272
+      this.association_prescriptions = val
1273
+      var ids  = []
1274
+      for (let i = 0; i < this.prescriptions.length; i++) {
1275
+        ids.push(this.prescriptions[i].id)
1276
+      }
1277
+      //上传关联数据
1278
+      let params = {
1279
+        'record_date': this.record_date,
1280
+        'his_patient_id':his_patient_id,
1281
+        'patient_id':patient_id,
1282
+        'p_ids': ids.join(","),
1283
+      }
1284
+      associationprescription(params).then(response => {
1285
+        if (response.data.state == 0) {
1286
+          this.$message.error(response.data.msg)
1287
+          this.loadingone = false
1288
+          return false
1289
+        } else {
1290
+          this.$message.success("关联成功")
1291
+        }
1292
+      })
1293
+      this.getPatientList()
1294
+      this.$refs.call_prescription.close()
1295
+    },
1296
+    callCancel() {
1297
+      this.$refs.call_prescription.close()
1298
+    },
1263 1299
     comfirmFaPiaoCode(){
1264 1300
       var  that = this
1265 1301
       let params = {
@@ -1723,6 +1759,22 @@ export default {
1723 1759
     registerCancel() {
1724 1760
       this.$refs.register9504.hide()
1725 1761
 
1762
+    },CheckHISPatient(){
1763
+      let params ={
1764
+        record_date:this.record_date,
1765
+        patient_id:this.patientInfo.id
1766
+      }
1767
+      checkHISPatient(params).then(response => {
1768
+        if (response.data.state == 0) {
1769
+          this.$message.error(response.data.msg)
1770
+          this.loadingone = false
1771
+          return false
1772
+        } else {
1773
+          if(response.data.data.status = 1){
1774
+            this.$refs.call_prescription.show(this.patientInfo.name, this.patientInfo.id,  this.record_date, this.record_date,response.data.data.ps,response.data.data.his_patient_id,response.data.data.patient_id)
1775
+          }
1776
+        }
1777
+      })
1726 1778
     },
1727 1779
     registerConfirm(forms) {
1728 1780
       forms['record_time'] = this.record_date
@@ -1745,6 +1797,9 @@ export default {
1745 1797
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1746 1798
             this.$refs.register9504.hide()
1747 1799
             this.loadingone = false
1800
+
1801
+            // this.CheckHISPatient()
1802
+
1748 1803
           }
1749 1804
         })
1750 1805
       } else {
@@ -1776,6 +1831,8 @@ export default {
1776 1831
                   that.changeRadio(1)
1777 1832
                   that.$refs.register9504.hide()
1778 1833
                   that.$message({ message: '挂号成功', type: 'success' })
1834
+                  // that.CheckHISPatient()
1835
+
1779 1836
                 }
1780 1837
               }
1781 1838
             })
@@ -1804,6 +1861,9 @@ export default {
1804 1861
             this.$message({ message: '挂号成功', type: 'success', duration: 5000 })
1805 1862
             this.$refs.register.hide()
1806 1863
             this.loadingone = false
1864
+
1865
+            // this.CheckHISPatient(this.record_date,this.patientInfo.id)
1866
+
1807 1867
           }
1808 1868
         })
1809 1869
       } else {
@@ -3215,7 +3275,7 @@ export default {
3215 3275
         }
3216 3276
 
3217 3277
         if (this.hisPatientInfo.id_card_type == 1) {
3218
-          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210) {
3278
+          if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10510 && this.$store.getters.xt_user.org_id != 10088 && this.$store.getters.xt_user.org_id != 10106 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id !=  10318 && this.$store.getters.xt_user.org_id !=  10210 && this.$store.getters.xt_user.org_id !=  10375 &&  this.$store.getters.xt_user.org_id !=  10480) {
3219 3279
             this.pwdFormVisible = true
3220 3280
             this.pwd = ''
3221 3281
           } else {

+ 2 - 2
src/xt_pages/role/admin.vue 查看文件

@@ -25,12 +25,12 @@
25 25
         >医药师登记</el-button>
26 26
 
27 27
 
28
-       <el-button
28
+       <!-- <el-button
29 29
           type="primary"
30 30
           size="small"
31 31
           icon="el-icon-circle-plus-outline"
32 32
           style="float:left"
33
-          @click="toJiaBan">首拼</el-button>
33
+          @click="toJiaBan">首拼</el-button> -->
34 34
 
35 35
 
36 36
           <!-- <el-button

+ 1 - 0
src/xt_pages/stock/drugs/cancelDrugStockOrderDetail.vue 查看文件

@@ -64,6 +64,7 @@
64 64
           </template>
65 65
         </el-table-column>
66 66
 
67
+       
67 68
 
68 69
       </el-table>
69 70
     </el-row>

+ 12 - 5
src/xt_pages/stock/drugs/components/drugCancelDetail.vue 查看文件

@@ -143,6 +143,11 @@
143 143
             {{scope.row.count}}
144 144
           </template>
145 145
         </el-table-column>
146
+        <el-table-column label="单位" align="center">
147
+          <template slot-scope="scope">
148
+            {{scope.row.unit}}
149
+          </template>
150
+        </el-table-column>
146 151
         <el-table-column label="总价" align="center">
147 152
           <template slot-scope="scope">
148 153
             {{scope.row.total_price}}
@@ -472,10 +477,10 @@ export default {
472 477
     exportListOne(){
473 478
       // let obj = {'index':'合计','total_price':0}
474 479
     
475
- 
480
+      console.log("@332322323232332",this.tableList)
476 481
        for(let i=0;i<this.tableList.length;i++){
477 482
           this.tableList[i].index = i+1
478
-          this.tableList[i].unit = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
483
+          this.tableList[i].unit_one = this.tableList[i].dose + this.tableList[i].dose_unit + "*"+this.tableList[i].min_number + this.tableList[i].min_unit+"/"+this.tableList[i].max_unit
479 484
           if(this.tableList[i].drug_type == 1){
480 485
              this.tableList[i].drugtype = "西药"
481 486
           }
@@ -490,11 +495,13 @@ export default {
490 495
 
491 496
         }
492 497
     
493
-      console.log("@332322323232332",this.tableList)
498
+    
499
+
500
+  
494 501
       
495 502
        import('@/vendor/Export2Excel').then(excel => {
496
-       const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','生产厂商','进销商','操作时间','制单人','退货价','数量','总价']
497
-       const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name', 'time','user_name','price','count','total_price']
503
+       const tHeader = ['序号','单据编号', '药品类型','药品名称', '规格型号','生产厂商','进销商','操作时间','制单人','退货价','数量','单位','总价']
504
+       const filterVal = ['index','order_number','drugtype','drug_name', 'specification_name','manufacturer_name','dealer_name', 'time','user_name','price','count','unit','total_price']
498 505
 
499 506
        const data = this.formatJson(filterVal, this.tableList)
500 507
 

+ 5 - 0
src/xt_pages/stock/drugs/drugCancelDetailPrint.vue 查看文件

@@ -21,6 +21,7 @@
21 21
               <td style="line-height: 50px" width="250">规格型号</td>
22 22
               <td style="line-height: 50px" width="50">单位</td>
23 23
               <td style="line-height: 50px" width="80">数量</td>
24
+              <td style="line-height: 50px" width="80">单位</td>
24 25
               <td style="line-height:50px" width="80">单价</td>
25 26
               <td style="line-height:50px" width="80">总价</td>
26 27
               <td style="line-height: 50px" width="80">备 注</td>
@@ -43,6 +44,10 @@
43 44
               <td style="line-height: 50px">
44 45
                   {{item.count}}
45 46
                
47
+              </td>
48
+              <td style="line-height: 50px">
49
+                  {{item.unit}}
50
+               
46 51
               </td>
47 52
               <td style="line-height:50px">
48 53
                   {{item.price}}

+ 5 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue 查看文件

@@ -152,6 +152,11 @@
152 152
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
153 153
            </template>
154 154
         </el-table-column>
155
+        <el-table-column prop="remark" label="备注" align="center">
156
+           <template slot-scope="scope">
157
+             <span > {{scope.row.remark}}</span>
158
+           </template>
159
+        </el-table-column>
155 160
         <!-- <el-table-column prop="drug_name" label="批号" align="center">
156 161
            <template slot-scope="scope">
157 162
              <span>{{scope.row.batch_number}}</span>

+ 5 - 0
src/xt_pages/stock/stockFlow.vue 查看文件

@@ -154,6 +154,11 @@
154 154
              <span > {{scope.row.over_count}}</span>
155 155
            </template>
156 156
         </el-table-column>
157
+        <el-table-column prop="remark" label="备注" align="center">
158
+           <template slot-scope="scope">
159
+             <span > {{scope.row.remark}}</span>
160
+           </template>
161
+        </el-table-column>
157 162
        </el-table>
158 163
        
159 164
       <el-pagination

+ 2 - 2
src/xt_pages/user/Sitemap.vue 查看文件

@@ -830,14 +830,14 @@ export default{
830 830
 
831 831
       var fileType = file.type
832 832
       const isJPG = fileType.indexOf('image') > -1
833
-      const isLt2M = file.size / 1024 / 1024 < 5
833
+      const isLt2M = file.size / 1024 / 1024 < 20
834 834
 
835 835
       if (!isJPG) {
836 836
         this.$message.error('只能上传图片')
837 837
         return false
838 838
       }
839 839
       if (!isLt2M) {
840
-        this.$message.error('上传头像图片大小不能超过 5MB!')
840
+        this.$message.error('上传头像图片大小不能超过 20MB!')
841 841
         return false
842 842
       }
843 843