소스 검색

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

csx 3 년 전
부모
커밋
45cb60bcf7
5개의 변경된 파일223개의 추가작업 그리고 2개의 파일을 삭제
  1. 19 0
      src/api/his/his.js
  2. 2 1
      src/lang/zh.js
  3. 6 0
      src/router/modules/hisTool.js
  4. 0 1
      src/xt_pages/hospitalStation/summary.vue
  5. 196 0
      src/xt_pages/outpatientTool/labelPrint.vue

+ 19 - 0
src/api/his/his.js 파일 보기

@@ -515,3 +515,22 @@ export function GetSummarySettle(params) {
515 515
     params: params
516 516
   })
517 517
 }
518
+
519
+
520
+export function GetLabelList(params) {
521
+  return request({
522
+    url: '/api/his/inspectionlist/get',
523
+    method: 'get',
524
+    params: params
525
+  })
526
+}
527
+
528
+
529
+
530
+export function GetLabelInfo(params) {
531
+  return request({
532
+    url: '/api/his/inspectioninfo/get',
533
+    method: 'get',
534
+    params: params
535
+  })
536
+}

+ 2 - 1
src/lang/zh.js 파일 보기

@@ -259,7 +259,8 @@ export default {
259 259
     hisTool:"HIS工具",
260 260
     hospitalCharges:'住院收费',
261 261
 
262
-    summary_tool:'项目消费明细汇总'
262
+    summary_tool:'项目消费明细汇总',
263
+    labelPrint:'标签打印',
263 264
   },
264 265
   navbar: {
265 266
     logOut: '退出登录',

+ 6 - 0
src/router/modules/hisTool.js 파일 보기

@@ -40,6 +40,12 @@ export default {
40 40
       name: 'outpatientSickRecord',
41 41
       meta: { title: 'summary_tool', noCache: true }
42 42
     },
43
+    {
44
+      path: '/hisTool/print',
45
+      component: () => import('@/xt_pages/outpatientTool/labelPrint'),
46
+      name: 'labelPrint',
47
+      meta: { title: 'labelPrint', noCache: true }
48
+    },
43 49
 
44 50
   ]
45 51
 }

+ 0 - 1
src/xt_pages/hospitalStation/summary.vue 파일 보기

@@ -31,7 +31,6 @@
31 31
                                     format="yyyy-MM-dd"
32 32
                                     value-format="yyyy-MM-dd"
33 33
                                     align="right"></el-date-picker>
34
-
35 34
                     <el-date-picker size="small" v-model="end_time" prefix-icon="el-icon-date"
36 35
                                     @change="handleEndTimeChange" :editable="false" :clearable="false"
37 36
                                     style="width: 196px;margin-right:10px;" type="date" placeholder="选择结束日期"

+ 196 - 0
src/xt_pages/outpatientTool/labelPrint.vue 파일 보기

@@ -0,0 +1,196 @@
1
+<template>
2
+    <div class="main-contain outpatientChargesManagement">
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+        </div>
6
+        <div>
7
+            <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
+                <div>
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                              @keyup.enter.native='searchAction'
11
+                              placeholder="请输入患者姓名"
12
+                              class="filter-item"/>
13
+                    <el-select size="small" v-model="item_type" placeholder="请选择"
14
+                               style="width:150px;margin-left:10px;" @change="changeItem">
15
+                        <el-option
16
+                                label="全部"
17
+                                value="0">
18
+                        </el-option>
19
+                        <el-option
20
+                                v-for="item,index in items"
21
+                                :key="index"
22
+                                :label="item.name"
23
+                                :value="item.id">
24
+                        </el-option>
25
+                    </el-select>
26
+                    <el-date-picker
27
+                            v-model="chargeDate"
28
+                            type="date"
29
+                            format="yyyy-MM-dd"
30
+                            value-format="yyyy-MM-dd"
31
+                            @change="changeDate"
32
+                    >
33
+                    </el-date-picker>
34
+                </div>
35
+            </div>
36
+            <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
37
+                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
38
+                      highlight-current-row>
39
+
40
+                <el-table-column align="center" prop="name" label="患者名字">
41
+                    <template slot-scope="scope">{{ scope.row.patient_name }}</template>
42
+                </el-table-column>
43
+
44
+                <el-table-column align="center" prop="name" label="处方号">
45
+                    <template slot-scope="scope">{{scope.row.number}}</template>
46
+                </el-table-column>
47
+                <el-table-column align="center" prop="name" label="创建时间">
48
+                    <template slot-scope="scope">{{getTime(scope.row.record_date, '{y}-{m}-{d}')}}</template>
49
+                </el-table-column>
50
+                <el-table-column align="center" prop="name" label="创建医生">
51
+                    <template slot-scope="scope">{{scope.row.doctor_name}}</template>
52
+                </el-table-column>
53
+                <el-table-column align="center" prop="name" label="项目名称">
54
+                    <template slot-scope="scope">
55
+                        <div>{{scope.row.project_name}}</div>
56
+                    </template>
57
+                </el-table-column>
58
+
59
+                <el-table-column
60
+                        align="center"
61
+                        label="操作"
62
+                        width="180"
63
+                        class-name="small-padding fixed-width"
64
+                >
65
+                    <template slot-scope="scope">
66
+                        <el-tooltip class="item" effect="dark" content="打印" placement="top">
67
+                            <el-button
68
+                                    type="primary"
69
+                                    size="small"
70
+                                    icon="el-icon-edit-outline"
71
+                                    @click="Print(scope.row, scope.$index)"
72
+                            >
73
+                            </el-button>
74
+                        </el-tooltip>
75
+                    </template>
76
+                </el-table-column>
77
+
78
+
79
+            </el-table>
80
+            <el-pagination
81
+                    @size-change="handleSizeChange"
82
+                    @current-change="handleCurrentChange"
83
+                    :page-sizes="[10, 50, 100]"
84
+                    :page-size="10"
85
+                    background
86
+                    style="margin-top:20px;float: right"
87
+                    layout="total, sizes, prev, pager, next, jumper"
88
+                    :total="total"
89
+            >
90
+            </el-pagination>
91
+        </div>
92
+    </div>
93
+</template>
94
+
95
+
96
+<script>
97
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
98
+  import { GetLabelList } from '@/api/his/his'
99
+  import { uParseTime } from '@/utils/tools'
100
+  // import NewStatementPrint from './newStatementPrint'
101
+  const moment = require('moment')
102
+  export default {
103
+    components: {
104
+      BreadCrumb
105
+
106
+    },
107
+    data() {
108
+      return {
109
+        crumbs: [
110
+          { path: false, name: 'HIS工具' },
111
+          { path: false, name: '标签打印' }
112
+        ],
113
+        detail_loading: false,
114
+        tempArr: [],
115
+        pos: 0,
116
+        page: 1,
117
+        limit: 10,
118
+        total: 0,
119
+        sameRowArr: [],
120
+        keywords: '',
121
+        tableData: [],
122
+        chargeDate: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
123
+        item_type: '0',
124
+        items: [
125
+          { id: 1, name: '已打印' },
126
+          { id: 2, name: '未打印' }
127
+        ]
128
+
129
+      }
130
+    },
131
+    methods: {
132
+      getTime(value, temp) {
133
+        if (value != undefined) {
134
+          return uParseTime(value, temp)
135
+        }
136
+        return ''
137
+      },
138
+      Print(row, index) {
139
+
140
+      },
141
+      handleCurrentChange(page) {
142
+        this.page = page
143
+        this.getList()
144
+
145
+      },
146
+
147
+      handleSizeChange(limit) {
148
+        this.limit = limit
149
+        this.getList()
150
+
151
+      },
152
+
153
+      changeDate() {
154
+        this.page = 1
155
+        this.limit = 10
156
+        this.getList()
157
+      },
158
+      changeItem() {
159
+        this.page = 1
160
+        this.limit = 10
161
+        this.getList()
162
+      },
163
+      searchAction() {
164
+        this.page = 1
165
+        this.limit = 10
166
+        this.getList()
167
+      },
168
+      getList() {
169
+        let params = {
170
+          record_date: this.chargeDate,
171
+          is_print: this.item_type,
172
+          keyword: this.keywords,
173
+          page: this.page,
174
+          limit: this.limit
175
+        }
176
+        GetLabelList(params).then(response => {
177
+          if (response.data.state == 0) {
178
+
179
+            this.$message.error(response.data.msg)
180
+            return false
181
+          } else {
182
+
183
+            this.tableData = response.data.data.labels
184
+            this.total = response.data.data.total
185
+
186
+          }
187
+
188
+        })
189
+      }
190
+    },
191
+    created() {
192
+      this.getList()
193
+
194
+    }
195
+  }
196
+</script>