Bläddra i källkod

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

csx 4 år sedan
förälder
incheckning
ce13a388cc

+ 44 - 0
src/api/data.js Visa fil

@@ -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
 

+ 2 - 0
src/xt_pages/data/components/addtion.vue Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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="患者名字">

+ 78 - 54
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -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,

+ 279 - 126
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

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