See999 před 4 roky
rodič
revize
94b516dd66

+ 44 - 0
src/api/data.js Zobrazit soubor

@@ -263,6 +263,50 @@ export function GetAddition(params) {
263 263
 
264 264
 
265 265
 
266
+export function createDiagnose(params) {
267
+  return request({
268
+    url: '/api/diagnose/create',
269
+    method: 'post',
270
+    params: params
271
+  })
272
+}
273
+
274
+export function modifyDiagnose(params) {
275
+  return request({
276
+    url: '/api/diagnose/modify',
277
+    method: 'post',
278
+    params: params
279
+  })
280
+}
281
+
282
+export function getDiagnoseList(params) {
283
+  return request({
284
+    url: '/api/diagnose/list',
285
+    method: 'get',
286
+    params: params
287
+  })
288
+}
289
+
290
+export function deleteDiagnose(params) {
291
+  return request({
292
+    url: '/api/diagnose/delete',
293
+    method: 'post',
294
+    params: params
295
+  })
296
+}
297
+
298
+export function GetDiagnose(params) {
299
+  return request({
300
+    url: '/api/diagnose/get',
301
+    method: 'get',
302
+    params: params
303
+  })
304
+}
305
+
306
+
307
+
308
+
309
+
266 310
 
267 311
 
268 312
 

+ 1 - 1
src/lang/zh.js Zobrazit soubor

@@ -199,7 +199,7 @@ export default {
199 199
     system_prescription: '透析方案模版',
200 200
     integration_config: '集成配置',
201 201
     his_config: 'HIS集成配置',
202
-
202
+    medical_template:'门诊模版',
203 203
     slow: '慢病管理',
204 204
     scrm: 'SCRM',
205 205
     shop: '分销商城',

+ 8 - 0
src/router/modules/templateManagement.js Zobrazit soubor

@@ -46,6 +46,14 @@ export default {
46 46
         title: 'histemplate'
47 47
       }
48 48
     },
49
+    {
50
+      path:'/data/medicaltemplate',
51
+      component:() => import('@/xt_pages/data/medicalTemplate'),
52
+      name:'medical_template',
53
+      meta:{
54
+        title:'medical_template'
55
+      }
49 56
 
57
+    },
50 58
   ]
51 59
 }

+ 2 - 0
src/xt_pages/data/components/addtion.vue Zobrazit soubor

@@ -190,6 +190,7 @@
190 190
               response.data.data.addition.code
191 191
             this.Dialog.formValue.price =
192 192
               response.data.data.addition.price
193
+            this.Dialog.titles="编辑"
193 194
 
194 195
             this.Dialog.isCreated = 2
195 196
             this.$refs.dialog.show()
@@ -286,6 +287,7 @@
286 287
         this.$refs.dialog.hide()
287 288
       },
288 289
       showDialog: function() {
290
+        this.Dialog.titles="新增"
289 291
         this.Dialog.formValue = Object.assign(
290 292
           {},
291 293
           this.Dialog.resetForm

+ 382 - 0
src/xt_pages/data/components/diagnoseOther.vue Zobrazit soubor

@@ -0,0 +1,382 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class=" sign-and-weigh-box" style="background: white">
4
+
5
+
6
+      <diagnose-other-dialog
7
+        ref="dialog"
8
+        :titles="Dialog.titles"
9
+        :formValue="Dialog.formValue"
10
+        :visibility="Dialog.isVisibility"
11
+        :type="Dialog.type"
12
+        :isCreated="Dialog.isCreated"
13
+        v-on:dialog-comfirm="dialogComfirm"
14
+        v-on:dialog-cancle="dialogCancle"
15
+      ></diagnose-other-dialog>
16
+
17
+
18
+      <el-row :gutter="15">
19
+        <el-col>
20
+          <div>
21
+            <el-button
22
+              size="small"
23
+              icon="el-icon-circle-plus-outline"
24
+              style="float: right;margin-bottom: 15px"
25
+              type="primary"
26
+              @click="showDialog"
27
+            >新增
28
+            </el-button>
29
+          </div>
30
+
31
+          <el-table
32
+            :row-style="{ color: '#303133' }"
33
+            :header-cell-style="{
34
+              backgroundColor: 'rgb(245, 247, 250)',
35
+              color: '#606266'
36
+            }"
37
+            :data="manufacturerData"
38
+            style="width: 100%"
39
+            border
40
+            v-loading="loading"
41
+          >
42
+            <el-table-column label="国家编码" align="center">
43
+              <template slot-scope="scope">
44
+                {{ scope.row.country_code }}
45
+              </template>
46
+            </el-table-column>
47
+
48
+            <el-table-column label="目录代码" align="center">
49
+              <template slot-scope="scope">
50
+                {{ scope.row.content_code }}
51
+              </template>
52
+            </el-table-column>
53
+
54
+
55
+            <el-table-column label="诊断名称" align="center">
56
+              <template slot-scope="scope">
57
+                {{ scope.row.class_name }}
58
+              </template>
59
+            </el-table-column>
60
+
61
+            <el-table-column label="国家目录名称" align="center">
62
+              <template slot-scope="scope">
63
+                {{ scope.row.country_content_name }}
64
+              </template>
65
+            </el-table-column>
66
+
67
+            <el-table-column label="备注" align="center">
68
+              <template slot-scope="scope">
69
+                {{ scope.row.remark }}
70
+              </template>
71
+            </el-table-column>
72
+
73
+            <el-table-column label="操作" align="center">
74
+              <template slot-scope="scope">
75
+                <el-tooltip
76
+                  class="item"
77
+                  effect="dark"
78
+                  content="编辑"
79
+                  placement="top"
80
+                >
81
+                  <el-button
82
+                    size="small"
83
+                    type="primary"
84
+                    icon="el-icon-edit-outline"
85
+                    @click="handleEdit(scope.$index, scope.row)"
86
+                  >
87
+                  </el-button>
88
+                </el-tooltip>
89
+                <el-tooltip
90
+                  class="item"
91
+                  effect="dark"
92
+                  content="删除"
93
+                  placement="top"
94
+                >
95
+                  <el-button
96
+                    size="small"
97
+                    type="danger"
98
+                    icon="el-icon-delete"
99
+                    @click="handleDelete(scope.$index, scope.row)"
100
+                  >
101
+                  </el-button>
102
+                </el-tooltip>
103
+
104
+              </template>
105
+            </el-table-column>
106
+          </el-table>
107
+
108
+          <el-pagination
109
+            @size-change="handleSizeChange"
110
+            @current-change="handleCurrentChange"
111
+            :page-sizes="[10, 50, 100]"
112
+            :page-size="10"
113
+            background
114
+            align="right"
115
+            style="margin-top:20px;"
116
+            layout="total, sizes, prev, pager, next, jumper"
117
+            :total="total"
118
+          >
119
+          </el-pagination>
120
+        </el-col>
121
+      </el-row>
122
+    </div>
123
+  </div>
124
+</template>
125
+
126
+<script>
127
+  import {
128
+    createDiagnose,
129
+    modifyDiagnose,
130
+    getDiagnoseList,
131
+    deleteDiagnose,
132
+    GetDiagnose
133
+  } from '@/api/data'
134
+  import DiagnoseOtherDialog from "./diagnoseOtherDialog";
135
+
136
+  export default {
137
+    components: {
138
+      DiagnoseOtherDialog,
139
+    },
140
+    name: 'diagnoseOther',
141
+    data() {
142
+      return {
143
+        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
144
+        manufacturerData: [],
145
+        total: 0,
146
+        pageTotal: 0,
147
+        pageSelect: 0,
148
+
149
+        page: 1,
150
+        limit: 10,
151
+        loading: false,
152
+
153
+        manufacturer_code: '',
154
+        editId: '',
155
+        editIndex: '',
156
+        Dialog: {
157
+          titles: '新增',
158
+          isVisibility: false,
159
+          isCreated: 1, //1.创建 2.编辑 3.查看详情
160
+          formValue: {
161
+            class_name: '',
162
+            content_code: '',
163
+            country_code: '',
164
+            country_content_name: '',
165
+            remark: '',
166
+            pinyin: '',
167
+            wubi: ''
168
+
169
+          },
170
+          resetForm: {
171
+            class_name: '',
172
+            content_code: '',
173
+            country_code: '',
174
+            country_content_name: '',
175
+            remark: '',
176
+            pinyin: '',
177
+            wubi: ''
178
+          }
179
+        }
180
+      }
181
+    },
182
+    methods: {
183
+      handleEdit: function(index, row) {
184
+        this.editId = row.id
185
+        this.editIndex = index
186
+        let params = {
187
+          id: row.id
188
+        }
189
+        GetDiagnose(params).then(response => {
190
+          if (response.data.state == 0) {
191
+            this.$message.error(response.data.msg)
192
+            return false
193
+          } else {
194
+            this.Dialog.formValue.class_name =
195
+              response.data.data.sick.class_name
196
+            this.Dialog.formValue.content_code =
197
+              response.data.data.sick.content_code
198
+            this.Dialog.formValue.country_code =
199
+              response.data.data.sick.country_code
200
+            this.Dialog.formValue.country_content_name =
201
+              response.data.data.sick.country_content_name
202
+            this.Dialog.formValue.remark =
203
+              response.data.data.sick.remark
204
+            this.Dialog.formValue.pinyin =
205
+              response.data.data.sick.pinyin
206
+            this.Dialog.formValue.wubi =
207
+              response.data.data.sick.wubi
208
+
209
+            this.Dialog.isCreated = 2
210
+            this.$refs.dialog.show()
211
+
212
+          }
213
+        })
214
+      },
215
+      handleDelete: function(index, row) {
216
+        this.$confirm('确认删除这条记录?', '删除记录', {
217
+          confirmButtonText: '确定',
218
+          cancelButtonText: '取消',
219
+          type: 'warning'
220
+        })
221
+          .then(() => {
222
+            let params = {
223
+              id: row.id
224
+            }
225
+            deleteDiagnose(params).then(response => {
226
+              if (response.data.state == 0) {
227
+                this.$message.error(response.data.msg)
228
+                return false
229
+              } else {
230
+                this.manufacturerData.splice(index, 1)
231
+                this.$message.success('厂家已经删除')
232
+              }
233
+            })
234
+          })
235
+          .catch(() => {
236
+          })
237
+      },
238
+      showDetails: function(index, row) {
239
+        let params = {
240
+          id: row.id
241
+        }
242
+        GetDiagnose(params).then(response => {
243
+          if (response.data.state == 0) {
244
+            this.$message.error(response.data.msg)
245
+            return false
246
+          } else {
247
+            this.Dialog.formValue.class_name =
248
+              response.data.data.sick.class_name
249
+            this.Dialog.formValue.content_code =
250
+              response.data.data.sick.content_code
251
+            this.Dialog.formValue.country_code =
252
+              response.data.data.sick.country_code
253
+            this.Dialog.formValue.country_content_name =
254
+              response.data.data.sick.country_content_name
255
+            this.Dialog.formValue.remark =
256
+              response.data.data.sick.remark
257
+            this.Dialog.formValue.pinyin =
258
+              response.data.data.sick.pinyin
259
+            this.Dialog.formValue.wubi =
260
+              response.data.data.sick.wubi
261
+
262
+            this.Dialog.isCreated = 3
263
+            this.Dialog.isVisibility = true
264
+          }
265
+        })
266
+      },
267
+      dialogComfirm: function(val) {
268
+        // this.manufacturerDialog.isVisibility = false
269
+        this.$refs.dialog.hide()
270
+        if (val.isCreated == 2) {
271
+          //修改
272
+          let params = {
273
+            class_name: val.class_name,
274
+            content_code: val.content_code,
275
+            country_code: val.country_code,
276
+            country_content_name: val.country_content_name,
277
+            remark: val.remark,
278
+            id: this.editId,
279
+            pinyin: val.pinyin,
280
+            wubi: val.wubi
281
+
282
+          }
283
+          modifyDiagnose(params).then(response => {
284
+            if (response.data.state == 0) {
285
+              this.$message.error(response.data.msg)
286
+              return false
287
+            } else {
288
+              this.manufacturerData[this.editIndex].class_name =
289
+                response.data.data.sick.class_name
290
+              this.manufacturerData[this.editIndex].content_code =
291
+                response.data.data.sick.content_code
292
+              this.manufacturerData[this.editIndex].country_code =
293
+                response.data.data.sick.country_code
294
+              this.manufacturerData[this.editIndex].country_code =
295
+                response.data.data.sick.country_code
296
+              this.manufacturerData[this.editIndex].country_content_name =
297
+                response.data.data.sick.country_content_name
298
+              this.manufacturerData[this.editIndex].remark =
299
+                response.data.data.sick.remark
300
+              this.manufacturerData[this.editIndex].pinyin =
301
+                response.data.data.sick.pinyin
302
+              this.manufacturerData[this.editIndex].wubi =
303
+                response.data.data.sick.wubi
304
+
305
+              this.$message.success('修改成功')
306
+            }
307
+          })
308
+        } else if (val.isCreated == 1) {
309
+          //新增
310
+          createDiagnose(val).then(response => {
311
+            if (response.data.state == 0) {
312
+              this.$message.error(response.data.msg)
313
+              return false
314
+            } else {
315
+              this.manufacturerData.unshift(response.data.data.sick)
316
+
317
+              this.$message.success('新增成功')
318
+            }
319
+          })
320
+        }
321
+      },
322
+      dialogCancle: function() {
323
+        this.$refs.dialog.hide()
324
+      },
325
+      showDialog: function() {
326
+        this.Dialog.formValue = Object.assign(
327
+          {},
328
+          this.Dialog.resetForm
329
+        )
330
+        this.$refs.dialog.show()
331
+        this.Dialog.isCreated = 1
332
+      },
333
+      handleSizeChange(val) {
334
+        this.limit = val
335
+        this.getList()
336
+      },
337
+      handleCurrentChange(val) {
338
+        this.page = val
339
+        this.getList()
340
+      },
341
+      getList() {
342
+        let params = {
343
+          page: this.page,
344
+          limit: this.limit
345
+        }
346
+        this.loading = true
347
+        getDiagnoseList(params).then(response => {
348
+          if (response.data.state == 0) {
349
+            this.loading = false
350
+            this.$message.error(response.data.msg)
351
+            return false
352
+          } else {
353
+            this.loading = false
354
+            this.total = response.data.data.total
355
+            this.manufacturerData = []
356
+            for (let i = 0; i < response.data.data.sick.length; i++) {
357
+              this.manufacturerData.push(response.data.data.sick[i])
358
+            }
359
+          }
360
+        })
361
+      }
362
+    },
363
+    created() {
364
+      this.getList()
365
+    }
366
+  }
367
+</script>
368
+
369
+<style lang="scss">
370
+  .el-table td,
371
+  .el-table th.is-leaf,
372
+  .el-table--border,
373
+  .el-table--group {
374
+    border-color: #d0d3da;
375
+  }
376
+
377
+  .el-table--border::after,
378
+  .el-table--group::after,
379
+  .el-table::before {
380
+    background-color: #d0d3da;
381
+  }
382
+</style>

+ 161 - 0
src/xt_pages/data/components/diagnoseOtherDialog.vue Zobrazit soubor

@@ -0,0 +1,161 @@
1
+<template>
2
+  <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
3
+             :close-on-press-escape="isClose">
4
+
5
+    <el-form :model="formValue" :rules="rules" ref="formValue" class="demo-form-inline"
6
+             :label-position="labelPosition"
7
+             label-width="100px">
8
+
9
+      <el-row>
10
+        <el-col :span="8">
11
+          <el-form-item label="诊断名称" prop="class_name">
12
+            <el-input v-model="formValue.class_name"></el-input>
13
+          </el-form-item>
14
+        </el-col>
15
+
16
+        <el-col :span="8">
17
+          <el-form-item label="拼音" prop="pinyin">
18
+            <el-input v-model="formValue.pinyin"></el-input>
19
+          </el-form-item>
20
+        </el-col>
21
+        <el-col :span="8">
22
+          <el-form-item label="五笔" prop="wubi">
23
+            <el-input v-model="formValue.wubi"></el-input>
24
+          </el-form-item>
25
+        </el-col>
26
+
27
+        <el-col :span="8">
28
+          <el-form-item label="目录代码" prop="content_code">
29
+            <el-input v-model="formValue.content_code"></el-input>
30
+          </el-form-item>
31
+        </el-col>
32
+
33
+        <el-col :span="8">
34
+          <el-form-item label="国家编码" prop="country_code">
35
+            <el-input v-model="formValue.country_code"></el-input>
36
+          </el-form-item>
37
+        </el-col>
38
+
39
+        <el-col :span="8">
40
+          <el-form-item label="国家目录名称" prop="country_content_name">
41
+            <el-input v-model="formValue.country_content_name"></el-input>
42
+          </el-form-item>
43
+        </el-col>
44
+      </el-row>
45
+
46
+      <el-col>
47
+        <el-form-item label="备注">
48
+          <el-input type="textarea" :row="5" v-model="formValue.remark"
49
+                    placeholder="请输入内容">
50
+          </el-input>
51
+        </el-form-item>
52
+      </el-col>
53
+    </el-form>
54
+
55
+    <span slot="footer" class="dialog-footer">
56
+    <el-button v-if="isCreated == 3" @click="cancle('formValue')">取 消</el-button>
57
+    <el-button v-if="isCreated != 3 " @click="cancle('formValue')">取 消</el-button>
58
+    <el-button v-if="isCreated != 3" type="primary" @click="comfirm('formValue')">保 存</el-button>
59
+  </span>
60
+  </el-dialog>
61
+
62
+</template>
63
+
64
+<script>
65
+  export default {
66
+    name: 'diagnoseOtherDialog',
67
+
68
+    data() {
69
+
70
+      return {
71
+        visibility: false,
72
+        labelPosition: 'right',
73
+        isClose: false,
74
+        form: {
75
+          class_name: '',
76
+          content_code: '',
77
+          country_code: '',
78
+          country_content_name: '',
79
+          remark: '',
80
+          pinyin: '',
81
+          wubi: ''
82
+
83
+        },
84
+        resetForm: {
85
+          class_name: '',
86
+          content_code: '',
87
+          country_code: '',
88
+          country_content_name: '',
89
+          remark: '',
90
+          pinyin: '',
91
+          wubi: ''
92
+        },
93
+        rules: {
94
+          class_name: [
95
+            { required: true, message: '请输入大类名称', trigger: 'blur' }
96
+          ],
97
+          content_code: [
98
+            { required: true, message: '请输入目录代码', trigger: 'blur' }
99
+          ]
100
+
101
+        }
102
+      }
103
+    },
104
+    props: {
105
+
106
+      titles: {
107
+        type: String,
108
+        default: ''
109
+      },
110
+      formValue: {
111
+        type: Object
112
+      },
113
+      type: {
114
+        type: Number,
115
+        default: 1
116
+
117
+      },
118
+      isCreated: {
119
+        type: Number,
120
+        default: 1
121
+
122
+      }
123
+    },
124
+    methods: {
125
+      show: function() {
126
+        this.visibility = true
127
+
128
+      }, hide: function() {
129
+        this.visibility = false
130
+      },
131
+      cancle: function(formName) {
132
+        this.$emit('dialog-cancle', this.getValue())
133
+        this.$refs['formValue'].resetFields()
134
+      },
135
+      comfirm: function(formName) {
136
+        this.$refs['formValue'].validate((valid) => {
137
+          if (valid) {
138
+            let value = {}
139
+            value = this.getValue()
140
+            this.$emit('dialog-comfirm', value)
141
+            this.form = Object.assign({}, this.resetForm)
142
+
143
+          }
144
+        })
145
+      },
146
+      getValue: function() {
147
+        let form = {}
148
+        form = this.formValue
149
+        form['title'] = this.titles
150
+        form['type'] = this.type
151
+        form['isCreated'] = this.isCreated
152
+        return form
153
+      }
154
+    }
155
+
156
+  }
157
+</script>
158
+
159
+<style scoped>
160
+
161
+</style>

+ 6 - 1
src/xt_pages/data/specialDictionary.vue Zobrazit soubor

@@ -42,7 +42,8 @@
42 42
         </el-tab-pane>
43 43
 
44 44
         <el-tab-pane label="诊断信息" name="10">
45
-          <diagnosis></diagnosis>
45
+          <!--<diagnosis></diagnosis>-->
46
+          <diagnose-other></diagnose-other>
46 47
         </el-tab-pane>
47 48
 
48 49
       </el-tabs>
@@ -62,10 +63,14 @@
62 63
   import Dealer from '../stock/config/dealer'
63 64
   import Diagnosis from './components/diagnosis'
64 65
   import Addtion from './components/addtion'
66
+  import DiagnoseOtherDialog from "./components/diagnoseOtherDialog";
67
+  import DiagnoseOther from "./components/diagnoseOther";
65 68
 
66 69
   export default {
67 70
     name: 'specialDictionary',
68 71
     components: {
72
+      DiagnoseOther,
73
+      DiagnoseOtherDialog,
69 74
       Addtion,
70 75
       Diagnosis,
71 76
       Dealer,

+ 12 - 9
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -5,18 +5,21 @@
5 5
     </div>
6 6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8
-        <!-- <div class="mainCell" style="justify-content: space-between;">
9
-          <p style="color: red">未收费:<span>{{cal_one}}</span>人</p>
10
-          <p style="color: red">已收费:<span>{{cal_two}}</span>人</p>
11
-          <p style="color: red">已退费:<span>{{cal_three}}</span>人</p>
12
-
13
-        </div> -->
8
+         <div class="mainCell" style="justify-content: space-between;">
9
+          <p >未收费:<span style="color: red">{{cal_one}}</span>人</p>
10
+          <p>已收费:<span  style="color: red">{{cal_two}}</span>人</p>
11
+          <p>已退费:<span  style="color: red">{{cal_three}}</span>人</p>
12
+        </div>
14 13
         <div class="mainCell">
15 14
           <el-radio-group v-model="radio" @change="changeRadio">
16
-            <el-radio :label=1>未收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_one}}</span>人</el-radio>
17
-            <el-radio :label=2>已收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_two}}</span>人</el-radio>
18
-            <el-radio :label=3>已退费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_three}}</span>人</el-radio>
15
+            <el-radio :label=1>未收费</el-radio>
16
+            <el-radio :label=2>已收费</el-radio>
17
+            <el-radio :label=3>已退费</el-radio>
19 18
             <el-radio :label=4>全部</el-radio>
19
+            <!--<el-radio :label=1>未收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_one}}</span>人</el-radio>-->
20
+            <!--<el-radio :label=2>已收费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_two}}</span>人</el-radio>-->
21
+            <!--<el-radio :label=3>已退费<span style="color: red;margin-bottom:10px;display: inline-block;">{{cal_three}}</span>人</el-radio>-->
22
+            <!--<el-radio :label=4>全部</el-radio>-->
20 23
 
21 24
           </el-radio-group>
22 25
         </div>

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Zobrazit soubor

@@ -51,7 +51,7 @@
51 51
           type="index"
52 52
         >
53 53
         </el-table-column>
54
-        <el-table-column align="center" prop="name" label="诊号">
54
+        <el-table-column align="center" prop="name" label="诊号">
55 55
           <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
56 56
         </el-table-column>
57 57
         <el-table-column align="center" prop="name" label="患者名字">

+ 4 - 1
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue Zobrazit soubor

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
4 4
         <div class="infoMain">
5 5
             <p class="infoP">医院(药店)编号:</p>
6 6
             <p class="infoP">名称:血液透析中心</p>
@@ -91,6 +91,7 @@ export default {
91 91
           list:{},
92 92
           prescription:[],
93 93
           patient:{},
94
+          orgname:""
94 95
       } 
95 96
     },
96 97
     props:{
@@ -126,6 +127,8 @@ export default {
126 127
        console.log("patient_id",patient_id)
127 128
        var prescription_id = this.paramsObj.prescription_id
128 129
        this.getChargePrint(record_date,patient_id,prescription_id)
130
+       var xtuser = this.$store.getters.xt_user
131
+       this.orgname = xtuser.org.org_name
129 132
 
130 133
     },
131 134
     watch:{

+ 78 - 54
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -21,17 +21,17 @@
21 21
           <!--<el-form-item label="挂号类型: " prop="name">-->
22 22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
23 23
           <!--</el-form-item>-->
24
-          <el-form-item label="挂号类型: " prop="name" label-position="right">
24
+          <el-form-item label="处方类型: " prop="name" label-position="right">
25 25
             <el-select style="width:100%;" v-model="register_type" placeholder="">
26 26
               <el-option
27
-                v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
27
+                v-for="(item,index) in register"
28 28
                 :key="index"
29
-                :label="item.name"
30
-                :value="item.name">
29
+                :label="item.label"
30
+                :value="item.value">
31 31
               </el-option>
32 32
             </el-select>
33 33
           </el-form-item>
34
-          <el-form-item label="病类型:" prop="name" label-position="right">
34
+          <el-form-item label="病类型:" prop="name" label-position="right">
35 35
 
36 36
             <el-select style="width:100%;" v-model="state1" placeholder="">
37 37
               <el-option
@@ -43,6 +43,22 @@
43 43
             </el-select>
44 44
 
45 45
           </el-form-item>
46
+
47
+          <el-form-item label="诊断:" prop="name" label-position="right">
48
+
49
+            <el-select style="width:100%;" v-model="diagnose" placeholder="">
50
+              <el-option
51
+                v-for="(item,index) in diagnoses"
52
+                :key="index"
53
+                :label="item.class_name"
54
+                :value="item.id">
55
+              </el-option>
56
+            </el-select>
57
+
58
+          </el-form-item>
59
+
60
+
61
+
46 62
           <el-form-item label="过敏病史: " prop="name" label-position="right">
47 63
             <el-autocomplete
48 64
               style="width:100%;"
@@ -79,7 +95,7 @@
79 95
         </div>
80 96
         <div class="costBox">
81 97
           <div>
82
-            <span>医生:</span>
98
+            <span><span style="color: red">*</span>医生:</span>
83 99
             <el-select style="margin-right:5px;width:140px;" v-model="doctorValue" placeholder="" @change="changeDoctor">
84 100
               <el-option
85 101
                 v-for="(item,index) in doctors"
@@ -88,7 +104,7 @@
88 104
                 :value="item.admin_user_id">
89 105
               </el-option>
90 106
             </el-select>
91
-            <span>科室:</span>
107
+            <span> <span style="color: red">*</span>科室:</span>
92 108
             <el-select style="margin-right:5px;width:140px;" v-model="departmentValue" placeholder="">
93 109
               <el-option
94 110
                 v-for="(item,index) in department"
@@ -304,10 +320,6 @@
304 320
         type: Array,
305 321
         default: []
306 322
       },
307
-      diagnoses: {
308
-        type: Array,
309
-        default: []
310
-      }
311 323
     },
312 324
     components: {
313 325
       selectTemplate,
@@ -317,6 +329,16 @@
317 329
     },
318 330
     data() {
319 331
       return {
332
+        register: [
333
+          {value: 0,label:"普通"},
334
+          {value: 1,label: '急诊'},
335
+          {value: 2,label: "儿科"},
336
+          {value: 3,label: "麻醉"},
337
+          {value: 4,label: "精一"},
338
+          {value: 5,label: "精二"},
339
+          {value: 6,label: "其他"},
340
+
341
+        ],
320 342
         multipleTableHeight:'',
321 343
         register_type: '',
322 344
         value: '0',
@@ -367,6 +389,8 @@
367 389
         ],
368 390
         department: [],
369 391
         sick: [],
392
+        diagnoses: [],
393
+        diagnose:'',
370 394
         curTotal: 0,
371 395
         prescription_id: 0
372 396
       }
@@ -511,16 +535,7 @@
511 535
         }
512 536
       },
513 537
 
514
-      querySearch(queryString, cb) {
515
-        var restaurants = this.diagnoses
516
-        console.log(restaurants)
517
-        restaurants.map(item => {
518
-          item.value = item.name
519
-        })
520
-        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
521
-        // 调用 callback 返回建议列表的数据
522
-        cb(results)
523
-      },
538
+
524 539
 
525 540
       querySearch2(queryString, cb) {
526 541
         var restaurants = this.other_sick
@@ -560,7 +575,10 @@
560 575
             this.doctors = response.data.data.doctors
561 576
             this.department = response.data.data.department
562 577
             this.sick = response.data.data.sick
563
-            this.additions = response.data.data.additions
578
+
579
+            this.sick = response.data.data.sick
580
+
581
+            this.diagnoses = response.data.data.diagnose
564 582
             // var info = response.data.data.info
565 583
             // if (info.user_type == 2 || info.user_type == 1) {
566 584
             //   this.doctorValue = info.admin_user_id
@@ -630,7 +648,7 @@
630 648
         this.teamList = []
631 649
 
632 650
       },
633
-      setData(data, info, admin_info,doctors,department) {
651
+      setData(data, info, admin_info,doctors,department,hisPatientInfo) {
634 652
         this.prescription_id = data[0].id
635 653
         this.editableTabsValue = "处方1"
636 654
         this.$emit('event1', this.prescription_id)
@@ -653,11 +671,17 @@
653 671
           this.showOne = false
654 672
           this.showTwo = true
655 673
         }
656
-        this.state1 = info.diagnosis
657
-        this.state2 = info.sick_history
674
+        this.state1 = info.sick_type
675
+        if(this.state1 == 0){
658 676
 
677
+          this.state1 = ""
678
+        }
679
+        this.state2 = info.sick_history
680
+        if(this.state2 == 0){
681
+          this.state2 = ""
682
+        }
659 683
 
660
-        this.register_type = info.register_type
684
+        // this.register_type = info.register_type
661 685
 
662 686
         if(info.prescription_status == 0){
663 687
           this.order_status = ''
@@ -678,42 +702,41 @@
678 702
 
679 703
 
680 704
         if(info.id > 0){
681
-          console.log("!Q!!!!")
682
-
683 705
           this.doctorValue = info.doctor_id
684 706
           this.departmentValue = info.department
685 707
         }else{
686
-          console.log("------")
687
-          this.doctorValue = ''
688
-          this.departmentValue = ''
689
-
690
-          if (admin_info.user_type == 2 || admin_info.user_type == 1) {
691
-            this.doctorValue = admin_info.admin_user_id
692
-            if (admin_info.department_id == 0) {
693
-              if (this.department.length > 0) {
694
-                this.departmentValue = department[0].id
708
+          if(hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
709
+            this.doctorValue = hisPatientInfo.doctor
710
+            this.departmentValue = hisPatientInfo.department
711
+          }else{
712
+            if (admin_info.user_type == 2 || admin_info.user_type == 1) {
713
+              this.doctorValue = admin_info.admin_user_id
714
+              if (admin_info.department_id == 0) {
715
+                if (this.department.length > 0) {
716
+                  this.departmentValue = department[0].id
717
+                } else {
718
+                  this.departmentValue = ''
719
+                }
695 720
               } else {
696
-                this.departmentValue = ''
721
+                this.departmentValue = admin_info.department_id
697 722
               }
698 723
             } else {
699
-              this.departmentValue = admin_info.department_id
724
+              this.doctorValue = doctors[0].admin_user_id
725
+            }
726
+            if(this.doctorValue == 0){
727
+              this.doctorValue = ''
700 728
             }
701
-          }else{
702
-            this.doctorValue = doctors[0].admin_user_id
703
-          }
704
-
705
-          if(this.doctorValue == 0){
706
-            this.doctorValue = ''
707 729
           }
708
-
709
-
710
-
711 730
         }
712
-
713
-
714
-
715
-
716
-
731
+        if (info.register_type == 0){
732
+          // if(hisPatientInfo.register_type != 0){
733
+          //   this.register_type = hisPatientInfo.register_type
734
+          // }else{
735
+            this.register_type = ''
736
+          // }
737
+        }else{
738
+          this.register_type = info.register_type
739
+        }
717 740
       },
718 741
       moreState(tab, event) {
719 742
         if (tab == 'more') {
@@ -738,7 +761,8 @@
738 761
         if (index == 1) {
739 762
           let params = {
740 763
             patient_id: this.patientInfo.id,
741
-            diagnose: this.state1,
764
+            diagnose: this.diagnose,
765
+            sick_type: this.state1,
742 766
             sick_history: this.state2,
743 767
             doctor: this.doctorValue,
744 768
             department: this.departmentValue,

+ 12 - 4
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue Zobrazit soubor

@@ -38,7 +38,7 @@
38 38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
39 39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
40 40
             <span style="width:260px;">医生:{{order.doctor}}</span>
41
-            <span style="width:180px;">科室:{{order.departments}}</span>
41
+            <span style="width:180px;">科室:{{getDepartMent(order.departments)}}</span>
42 42
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
43 43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
44 44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
@@ -153,8 +153,15 @@ import moment from 'moment';
153 153
     methods: {
154 154
       open(index){
155 155
         if(index == 1){
156
+           var arr= []
157
+           for(let i=0;i<this.prescriptions.length;i++){
158
+              arr.push(this.prescriptions[i].id)
159
+           }
160
+           var prescription_id = arr[0]
161
+           var record_date = this.format(this.order.record_date)
162
+           var ids = arr.toString()
163
+           this.$router.push("/outpatientDoctorStation/print?record="+record_date+"&prescription_id="+prescription_id+"&ids="+ids+"&patient_id="+this.patientInfo.id)
156 164
 
157
-          //  /outpatientDoctorStation/print?record=2020-12-11&prescription_id=157&ids=157,159&patient_id=1064
158 165
         }else if(index == 2){
159 166
            var record_date = this.format(this.case_history.sick_date)
160 167
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
@@ -212,11 +219,12 @@ import moment from 'moment';
212 219
             return false
213 220
           } else {
214 221
             this.patientInfo = response.data.data.order.patient
222
+            console.log("患者信息",this.patientInfo)
215 223
             this.hisPatientInfo = response.data.data.order.his_patient
216 224
             this.case_history = response.data.data.order.case_history
217
-            // console.log("历史详情",this.case_history)
225
+            console.log("历史详情",this.case_history)
218 226
             this.order = response.data.data.order
219
-            // console.log('this.order',this.order)
227
+            console.log('this.order',this.order)
220 228
 
221 229
 
222 230
             this.prescriptions = []

+ 279 - 126
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -447,7 +447,7 @@
447 447
 
448 448
 
449 449
 
450
-            this.$refs.prescriptions.setData(this.prescriptions,this.info,this.admin_info,this.doctors,this.department)
450
+            this.$refs.prescriptions.setData(this.prescriptions,this.info,this.admin_info,this.doctors,this.department,this.hisPatientInfo)
451 451
           }
452 452
         })
453 453
 
@@ -463,149 +463,302 @@
463 463
           }
464 464
         }
465 465
         if(isShowDailog){
466
-
467 466
           this.patientTableData.map((item,index) => {
468 467
             if(item.patient_id == this.oldCurrentRow.patient_id){
469 468
               this.$refs.tab.setCurrentRow(this.patientTableData[index])
469
+              return
470 470
             }
471 471
           })
472
-          this.$message.error('需要保存当前处方才能切换')
473
-          return
474
-        }
475
-
476
-
477
-        this.patientid = val.patients.id
478
-        let params = {
479
-          'record_date': this.record_date,
480
-          'patient_id': val.patients.id
481
-        }
482
-        getPatientInfo(params).then(response => {
483
-          if (response.data.state == 0) {
484
-            this.$message.error(response.data.msg)
485
-            return false
486
-          } else {
487
-            this.prescriptions = []
488
-            this.patientInfo = response.data.data.xt_info
489
-            this.hisPatientInfo = response.data.data.his_info
490
-            this.case_history = response.data.data.case_history
491
-            var case_history = response.data.data.case_history
492
-            console.log("case_history22222222",case_history)
493
-            if (case_history.breathing  == 0) {
494
-                case_history.breathing = ""
495
-            }
496
-            this.case_history = case_history
497
-            this.info = response.data.data.info
498
-            this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
499
-            if (this.case_history.temperature <= 0) {
500
-              this.case_history.temperature = ''
501
-            }
502
-            if (this.case_history.blood_sugar <= 0) {
503
-              this.case_history.blood_sugar = ''
504
-            }
505
-            if (this.case_history.pulse <= 0) {
506
-              this.case_history.pulse = ''
507
-            }
508
-            if (this.case_history.sbp <= 0) {
509
-              this.case_history.sbp = ''
510
-            }
511
-            if (this.case_history.dbp <= 0) {
512
-              this.case_history.dbp = ''
513
-            }
514
-            if (this.case_history.height <= 0) {
515
-              this.case_history.height = ''
516
-            }
517
-            if (this.case_history.blood_fat <= 0) {
518
-              this.case_history.blood_fat = ''
519
-            }
520
-            if (this.case_history.sick_type <= 0) {
521
-              this.case_history.sick_type = ''
522
-            }
523
-            this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
524
-            if (this.case_history.is_infect == 1) {
525
-              this.case_history.is_infect = true
526
-            } else {
527
-              this.case_history.is_infect = false
472
+          this.$confirm('是否保存当前处方', '保存', {
473
+            confirmButtonText: '确 定',
474
+            cancelButtonText: '取 消',
475
+            type: 'warning'
476
+          }).then(() => {
477
+            this.open(1)
478
+          }).catch(() => {
479
+            this.patientTableData.map((item,index) => {
480
+              if(item.patient_id == val.patient_id){
481
+                this.$refs.tab.setCurrentRow(this.patientTableData[index])
482
+              }
483
+            })
484
+            this.patientid = val.patients.id
485
+            let params = {
486
+              'record_date': this.record_date,
487
+              'patient_id': val.patients.id
528 488
             }
529
-            this.prescriptionList =response.data.data.prescription
530
-            if (response.data.data.prescription.length > 0) {
531
-              for (let i = 0; i < response.data.data.prescription.length; i++) {
532
-                var prescription = response.data.data.prescription[i]
533
-                let tempAdvice = []
534
-                let tempProject = []
535
-                let tempAddition = []
536
-                for (let b = 0; b < prescription.advices.length; b++) {
537
-                  let obj = {
538
-                    advice_id: prescription.advices[b].id,
539
-                    drug_name: prescription.advices[b].advice_name,
540
-                    single_dose: prescription.advices[b].single_dose,
541
-                    delivery_way: prescription.advices[b].delivery_way,
542
-                    execution_frequency: prescription.advices[b].execution_frequency,
543
-                    retail_price: prescription.advices[b].price.toString(),
544
-                    remark: prescription.advices[b].remark,
545
-                    day:prescription.advices[b].day,
546
-                    prescribing_number:prescription.advices[b].prescribing_number.toString(),
547
-                    single_dose_unit:prescription.advices[b].single_dose_unit,
548
-                    prescribing_number_unit:prescription.advices[b].prescribing_number_unit,
549
-                    medical_insurance_number:prescription.advices[b].med_list_codg,
550
-                    id:prescription.advices[b].drug_id
551
-                  }
552
-                  tempAdvice.push(obj)
489
+            getPatientInfo(params).then(response => {
490
+              if (response.data.state == 0) {
491
+                this.$message.error(response.data.msg)
492
+                return false
493
+              } else {
494
+                this.prescriptions = []
495
+                this.patientInfo = response.data.data.xt_info
496
+                this.hisPatientInfo = response.data.data.his_info
497
+                this.case_history = response.data.data.case_history
498
+                var case_history = response.data.data.case_history
499
+                console.log("case_history22222222",case_history)
500
+                if (case_history.breathing  == 0) {
501
+                  case_history.breathing = ""
553 502
                 }
554
-                for (let b = 0; b < prescription.project.length; b++) {
555
-                  console.log(prescription.project[b])
556
-                  console.log(prescription.project[b].project)
503
+                this.case_history = case_history
504
+                this.info = response.data.data.info
505
+                this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
506
+                if (this.case_history.temperature <= 0) {
507
+                  this.case_history.temperature = ''
508
+                }
509
+                if (this.case_history.blood_sugar <= 0) {
510
+                  this.case_history.blood_sugar = ''
511
+                }
512
+                if (this.case_history.pulse <= 0) {
513
+                  this.case_history.pulse = ''
514
+                }
515
+                if (this.case_history.sbp <= 0) {
516
+                  this.case_history.sbp = ''
517
+                }
518
+                if (this.case_history.dbp <= 0) {
519
+                  this.case_history.dbp = ''
520
+                }
521
+                if (this.case_history.height <= 0) {
522
+                  this.case_history.height = ''
523
+                }
524
+                if (this.case_history.blood_fat <= 0) {
525
+                  this.case_history.blood_fat = ''
526
+                }
527
+                if (this.case_history.sick_type <= 0) {
528
+                  this.case_history.sick_type = ''
529
+                }
530
+                this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
531
+                if (this.case_history.is_infect == 1) {
532
+                  this.case_history.is_infect = true
533
+                } else {
534
+                  this.case_history.is_infect = false
535
+                }
536
+                this.prescriptionList =response.data.data.prescription
537
+                if (response.data.data.prescription.length > 0) {
538
+                  for (let i = 0; i < response.data.data.prescription.length; i++) {
539
+                    var prescription = response.data.data.prescription[i]
540
+                    let tempAdvice = []
541
+                    let tempProject = []
542
+                    let tempAddition = []
543
+                    for (let b = 0; b < prescription.advices.length; b++) {
544
+                      let obj = {
545
+                        advice_id: prescription.advices[b].id,
546
+                        drug_name: prescription.advices[b].advice_name,
547
+                        single_dose: prescription.advices[b].single_dose,
548
+                        delivery_way: prescription.advices[b].delivery_way,
549
+                        execution_frequency: prescription.advices[b].execution_frequency,
550
+                        retail_price: prescription.advices[b].price.toString(),
551
+                        remark: prescription.advices[b].remark,
552
+                        day:prescription.advices[b].day,
553
+                        prescribing_number:prescription.advices[b].prescribing_number.toString(),
554
+                        single_dose_unit:prescription.advices[b].single_dose_unit,
555
+                        prescribing_number_unit:prescription.advices[b].prescribing_number_unit,
556
+                        medical_insurance_number:prescription.advices[b].med_list_codg,
557
+                        id:prescription.advices[b].drug_id
558
+                      }
559
+                      tempAdvice.push(obj)
560
+                    }
561
+                    for (let b = 0; b < prescription.project.length; b++) {
562
+                      console.log(prescription.project[b])
563
+                      console.log(prescription.project[b].project)
564
+                      let obj = {
565
+                        id: prescription.project[b].id,
566
+                        project_id: prescription.project[b].project_id,
567
+                        project_name: prescription.project[b].project.project_name,
568
+                        statistical_classification: prescription.project[b].project.statistical_classification,
569
+                        single_dose: prescription.project[b].single_dose,
570
+                        delivery_way: prescription.project[b].delivery_way,
571
+                        execution_frequency: prescription.project[b].execution_frequency,
572
+                        number_days: prescription.project[b].day,
573
+                        total:prescription.project[b].count.toString(),
574
+                        price:prescription.project[b].price,
575
+                        remark:prescription.project[b].remark,
576
+                        medical_code:prescription.project[b].project.medical_code,
577
+                        unit:prescription.project[b].unit
578
+                      }
579
+                      tempProject.push(obj)
580
+                    }
581
+                    for (let b = 0; b < prescription.addition.length; b++) {
582
+                      let obj = {
583
+                        id: prescription.addition[b].id,
584
+                        item_name: prescription.addition[b].item_name,
585
+                        price: prescription.addition[b].price,
586
+                        count: prescription.addition[b].count,
587
+                        item_id: prescription.addition[b].item_id,
588
+                      }
589
+                      tempAddition.push(obj)
590
+                    }
591
+                    let index = i + 1
592
+                    let obj = {
593
+                      id: prescription.id,
594
+                      name: '处方' + index,
595
+                      advices: tempAdvice,
596
+                      project: tempProject,
597
+                      addition:tempAddition,
598
+                      order_status:prescription.order_status
599
+                    }
600
+                    this.prescriptions.push(obj)
601
+                  }
602
+                } else {
557 603
                   let obj = {
558
-                    id: prescription.project[b].id,
559
-                    project_id: prescription.project[b].project_id,
560
-                    project_name: prescription.project[b].project.project_name,
561
-                    statistical_classification: prescription.project[b].project.statistical_classification,
562
-                    single_dose: prescription.project[b].single_dose,
563
-                    delivery_way: prescription.project[b].delivery_way,
564
-                    execution_frequency: prescription.project[b].execution_frequency,
565
-                    number_days: prescription.project[b].day,
566
-                    total:prescription.project[b].count.toString(),
567
-                    price:prescription.project[b].price,
568
-                    remark:prescription.project[b].remark,
569
-                    medical_code:prescription.project[b].project.medical_code,
570
-                    unit:prescription.project[b].unit
604
+                    id:0,
605
+                    name: '处方' + 1,
606
+                    advices: [],
607
+                    project: [],
608
+                    addition:[],
609
+                    orderStatus:0,
571 610
                   }
572
-                  tempProject.push(obj)
611
+                  this.prescriptions.push(obj)
573 612
                 }
574
-                for (let b = 0; b < prescription.addition.length; b++) {
613
+                this.$refs.prescriptions.setData(this.prescriptions,this.info)
614
+              }
615
+            })
616
+
617
+
618
+          })
619
+
620
+
621
+
622
+          // this.$message.error('需要保存保存处方才能切换')
623
+        }else{
624
+          this.patientid = val.patients.id
625
+          let params = {
626
+            'record_date': this.record_date,
627
+            'patient_id': val.patients.id
628
+          }
629
+          getPatientInfo(params).then(response => {
630
+            if (response.data.state == 0) {
631
+              this.$message.error(response.data.msg)
632
+              return false
633
+            } else {
634
+              this.prescriptions = []
635
+              this.patientInfo = response.data.data.xt_info
636
+              this.hisPatientInfo = response.data.data.his_info
637
+              this.case_history = response.data.data.case_history
638
+              var case_history = response.data.data.case_history
639
+              console.log("case_history22222222",case_history)
640
+              if (case_history.breathing  == 0) {
641
+                case_history.breathing = ""
642
+              }
643
+              this.case_history = case_history
644
+              this.info = response.data.data.info
645
+              this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
646
+              if (this.case_history.temperature <= 0) {
647
+                this.case_history.temperature = ''
648
+              }
649
+              if (this.case_history.blood_sugar <= 0) {
650
+                this.case_history.blood_sugar = ''
651
+              }
652
+              if (this.case_history.pulse <= 0) {
653
+                this.case_history.pulse = ''
654
+              }
655
+              if (this.case_history.sbp <= 0) {
656
+                this.case_history.sbp = ''
657
+              }
658
+              if (this.case_history.dbp <= 0) {
659
+                this.case_history.dbp = ''
660
+              }
661
+              if (this.case_history.height <= 0) {
662
+                this.case_history.height = ''
663
+              }
664
+              if (this.case_history.blood_fat <= 0) {
665
+                this.case_history.blood_fat = ''
666
+              }
667
+              if (this.case_history.sick_type <= 0) {
668
+                this.case_history.sick_type = ''
669
+              }
670
+              this.case_history.sick_date = uParseTime(this.case_history.sick_date, '{y}-{m}-{d}')
671
+              if (this.case_history.is_infect == 1) {
672
+                this.case_history.is_infect = true
673
+              } else {
674
+                this.case_history.is_infect = false
675
+              }
676
+              this.prescriptionList =response.data.data.prescription
677
+              if (response.data.data.prescription.length > 0) {
678
+                for (let i = 0; i < response.data.data.prescription.length; i++) {
679
+                  var prescription = response.data.data.prescription[i]
680
+                  let tempAdvice = []
681
+                  let tempProject = []
682
+                  let tempAddition = []
683
+                  for (let b = 0; b < prescription.advices.length; b++) {
684
+                    let obj = {
685
+                      advice_id: prescription.advices[b].id,
686
+                      drug_name: prescription.advices[b].advice_name,
687
+                      single_dose: prescription.advices[b].single_dose,
688
+                      delivery_way: prescription.advices[b].delivery_way,
689
+                      execution_frequency: prescription.advices[b].execution_frequency,
690
+                      retail_price: prescription.advices[b].price.toString(),
691
+                      remark: prescription.advices[b].remark,
692
+                      day:prescription.advices[b].day,
693
+                      prescribing_number:prescription.advices[b].prescribing_number.toString(),
694
+                      single_dose_unit:prescription.advices[b].single_dose_unit,
695
+                      prescribing_number_unit:prescription.advices[b].prescribing_number_unit,
696
+                      medical_insurance_number:prescription.advices[b].med_list_codg,
697
+                      id:prescription.advices[b].drug_id
698
+                    }
699
+                    tempAdvice.push(obj)
700
+                  }
701
+                  for (let b = 0; b < prescription.project.length; b++) {
702
+                    console.log(prescription.project[b])
703
+                    console.log(prescription.project[b].project)
704
+                    let obj = {
705
+                      id: prescription.project[b].id,
706
+                      project_id: prescription.project[b].project_id,
707
+                      project_name: prescription.project[b].project.project_name,
708
+                      statistical_classification: prescription.project[b].project.statistical_classification,
709
+                      single_dose: prescription.project[b].single_dose,
710
+                      delivery_way: prescription.project[b].delivery_way,
711
+                      execution_frequency: prescription.project[b].execution_frequency,
712
+                      number_days: prescription.project[b].day,
713
+                      total:prescription.project[b].count.toString(),
714
+                      price:prescription.project[b].price,
715
+                      remark:prescription.project[b].remark,
716
+                      medical_code:prescription.project[b].project.medical_code,
717
+                      unit:prescription.project[b].unit
718
+                    }
719
+                    tempProject.push(obj)
720
+                  }
721
+                  for (let b = 0; b < prescription.addition.length; b++) {
722
+                    let obj = {
723
+                      id: prescription.addition[b].id,
724
+                      item_name: prescription.addition[b].item_name,
725
+                      price: prescription.addition[b].price,
726
+                      count: prescription.addition[b].count,
727
+                      item_id: prescription.addition[b].item_id,
728
+                    }
729
+                    tempAddition.push(obj)
730
+                  }
731
+                  let index = i + 1
575 732
                   let obj = {
576
-                    id: prescription.addition[b].id,
577
-                    item_name: prescription.addition[b].item_name,
578
-                    price: prescription.addition[b].price,
579
-                    count: prescription.addition[b].count,
580
-                    item_id: prescription.addition[b].item_id,
733
+                    id: prescription.id,
734
+                    name: '处方' + index,
735
+                    advices: tempAdvice,
736
+                    project: tempProject,
737
+                    addition:tempAddition,
738
+                    order_status:prescription.order_status
581 739
                   }
582
-                  tempAddition.push(obj)
740
+                  this.prescriptions.push(obj)
583 741
                 }
584
-                let index = i + 1
742
+              } else {
585 743
                 let obj = {
586
-                  id: prescription.id,
587
-                  name: '处方' + index,
588
-                  advices: tempAdvice,
589
-                  project: tempProject,
590
-                  addition:tempAddition,
591
-                  order_status:prescription.order_status
744
+                  id:0,
745
+                  name: '处方' + 1,
746
+                  advices: [],
747
+                  project: [],
748
+                  addition:[],
749
+                  orderStatus:0,
592 750
                 }
593 751
                 this.prescriptions.push(obj)
594 752
               }
595
-            } else {
596
-              let obj = {
597
-                id:0,
598
-                name: '处方' + 1,
599
-                advices: [],
600
-                project: [],
601
-                addition:[],
602
-                orderStatus:0,
603
-              }
604
-              this.prescriptions.push(obj)
753
+              this.$refs.prescriptions.setData(this.prescriptions,this.info)
605 754
             }
606
-            this.$refs.prescriptions.setData(this.prescriptions,this.info)
607
-          }
608
-        })
755
+          })
756
+
757
+
758
+        }
759
+
760
+
761
+
609 762
       },
610 763
       currentChange(currentRow, oldCurrentRow){
611 764
         let isShowDailog = false

+ 10 - 6
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <div id='prescription-print'>
3 3
     <div class="prescription-print">
4
-        <div class="printTitle">门诊病历</div>
4
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 门诊病历</div>
5 5
         <div class="infoTitle">
6 6
             <div>姓名:{{patient.name?patient.name:''}}</div>
7 7
             <div>性别:
@@ -107,7 +107,8 @@ export default {
107 107
     data(){
108 108
         return{
109 109
             educationOptions:[],
110
-            departmentList:[]
110
+            departmentList:[],
111
+            orgname:''
111 112
         }                   
112 113
     },
113 114
     methods:{
@@ -150,19 +151,19 @@ export default {
150 151
       getPatientCaseHistory(params).then(response=>{
151 152
          if(response.data.state == 1){
152 153
            var patient = response.data.data.patient
153
-           console.log("patinet",patient)
154
+        //    console.log("patinet",patient)
154 155
            this.patient = patient
155 156
            var history = response.data.data.history
156
-           console.log("history",history)
157
+           console.log("中国history222222",history)
157 158
            this.history = history
158 159
            var hispatient = response.data.data.hispatient
159
-           console.log("hispatient",hispatient)
160
+        //    console.log("hispatient",hispatient)
160 161
            this.hispatient = hispatient
161 162
          }
162 163
       })
163 164
     },
164 165
     getDeparment(id){
165
-    console.log("id---",id)
166
+  
166 167
      var name = ''
167 168
      for(let i=0;i<this.departmentList.length;i++){
168 169
          if(id == this.departmentList[i].id){
@@ -177,6 +178,9 @@ export default {
177 178
       console.log("22222",this.educationOptions)
178 179
       this.getAllDoctorList()
179 180
       this.getPatientCaseHistory()
181
+
182
+     var xtuser = this.$store.getters.xt_user
183
+     this.orgname = xtuser.org.org_name
180 184
     }
181 185
 }
182 186
 </script>

+ 8 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
   <div id='prescriptionPrint'>
3 3
     <div v-for="(item,index) in advicePrint" :key="index">
4 4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">血液透析中心处方笺</div>
5
+          <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方笺</div>
6 6
           <div class="infoTitle">
7 7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8 8
               <p>性别:
@@ -69,8 +69,8 @@ export default {
69 69
         prescriptionInfo:[],
70 70
         hisPatient:{},
71 71
         department:[],
72
-        prescriptions:[]
73
-
72
+        prescriptions:[],
73
+        orgname:""
74 74
       }
75 75
     },
76 76
    methods:{
@@ -150,7 +150,6 @@ export default {
150 150
        return name
151 151
      },
152 152
      getTotalOne(id) {
153
-        console.log("处方数据",this.prescriptions)
154 153
         var total = 0
155 154
         var addtotal = 0
156 155
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -162,15 +161,14 @@ export default {
162 161
             }
163 162
           
164 163
             if (this.prescriptions[i].additionalcharge != null) {
165
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
166
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
164
+              for (let b = 0; b < this.prescriptions[i].additionalcharge.length; b++) {
165
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[b].price * this.prescriptions[i].additionalcharge[b].count
167 166
               }
168 167
             }
169 168
               addtotal =  Math.floor(addtotal * 100) / 100
170 169
         }
171
-        
172
-        return total + addtotal
173 170
        }
171
+       return total + addtotal
174 172
       }, 
175 173
 
176 174
 
@@ -180,7 +178,8 @@ export default {
180 178
       this.getInitData()
181 179
       this.getPrescriptionPrint()
182 180
       this.getHisPatientDetail()
183
-
181
+      var xtuser = this.$store.getters.xt_user
182
+      this.orgname = xtuser.org.org_name
184 183
      
185 184
    },
186 185
    watch:{

+ 4 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Zobrazit soubor

@@ -13,9 +13,9 @@
13 13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
14 14
         </div>
15 15
 
16
-        <div class="printTitle">血液透析中心</div>
16
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方、治疗单</div>
17 17
 
18
-        <div class="printTitle">处方、治疗单</div>
18
+        <!-- <div class="printTitle">处方、治疗单</div> -->
19 19
 
20 20
         <div class="infoTitle">
21 21
             <p>门诊编号:</p>
@@ -336,6 +336,8 @@ export default {
336 336
    created(){
337 337
       this.getAllDoctorList()
338 338
       this.getPrescriptionPrint()
339
+      var xtuser = this.$store.getters.xt_user
340
+      this.orgname = xtuser.org.org_name
339 341
    },
340 342
    watch:{
341 343
      patient_id:function(val){

+ 1 - 1
src/xt_pages/stock/stockPrint.vue Zobrazit soubor

@@ -12,7 +12,7 @@
12 12
             <div id="print_content">
13 13
                 <div class="print_main_content">
14 14
                     <div class="order_title_panl">
15
-                        <span class="main_title">自备药查询表</span>
15
+                        <span class="main_title">耗材管理查询表</span>
16 16
                     </div>
17 17
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18 18
                       打印时间:{{time_now}}

+ 10 - 3
src/xt_pages/stock/stockQuery.vue Zobrazit soubor

@@ -9,7 +9,7 @@
9 9
           <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
10 10
           @change="changeTypeName">
11 11
             <el-option
12
-              v-for="item in goodType"
12
+              v-for="item in types"
13 13
               :key="item.id"
14 14
               :label="item.type_name"
15 15
               :value="item.id">
@@ -206,7 +206,8 @@ export default {
206 206
       },
207 207
       options:[],
208 208
       value:"",
209
-      type_name:""
209
+      type_name:"",
210
+      types:[],
210 211
     };
211 212
   },
212 213
   methods: {
@@ -265,10 +266,16 @@ export default {
265 266
           this.$message.error(response.data.msg);
266 267
           return false;
267 268
         } else {
269
+           var obj = {
270
+            id:0,
271
+            type_name:'全部'
272
+          }
273
+          this.types.push(obj)
268 274
           for (let i = 0; i < response.data.data.goodType.length; i++) {
269 275
             this.goodType.push(response.data.data.goodType[i]);
276
+            this.types.push(response.data.data.goodType[i])
270 277
           }
271
-          console.log("商品类型",this.goodType)
278
+          console.log("商品类型",this.types)
272 279
         }
273 280
       });
274 281
     },