Browse Source

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

csx 4 years ago
parent
commit
a5cc22992b

+ 194 - 0
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

1
+<template>
2
+  <el-dialog width="854px" title="收费单" :visible.sync="visibility" :close-on-click-modal="isClose"
3
+             :close-on-press-escape="isClose">
4
+
5
+    <el-form :model="form"  ref="formValue" label-width="100px">
6
+
7
+      <el-form-item label="日期:">
8
+        <div>{{record_date}}</div>
9
+      </el-form-item>
10
+
11
+
12
+      <el-form-item label="医保:" prop="name" :validate-event="is_Name">
13
+        <el-input type="number" v-model="form.medical_insurance_price"></el-input>
14
+      </el-form-item>
15
+
16
+
17
+      <el-form-item label="自费:" prop="age" :validate-event="is_Name">
18
+        <el-input type="number" v-model="form.private_price"></el-input>
19
+      </el-form-item>
20
+
21
+
22
+      <el-form-item label="支付方式:">
23
+        <el-select v-model="form.pay_way" placeholder="请选择">
24
+          <el-option
25
+            v-for="(item,index) in payWays"
26
+            :key="index"
27
+            :label="item.label"
28
+            :value="item.value">
29
+          </el-option>
30
+        </el-select>
31
+      </el-form-item>
32
+
33
+
34
+      <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
35
+        <el-input type="number" v-model="form.pay_price"></el-input>
36
+      </el-form-item>
37
+
38
+
39
+      <el-form-item label="付款卡号:" prop="id_card" :validate-event="is_Name">
40
+        <el-input v-model="form.pay_card_no"></el-input>
41
+      </el-form-item>
42
+
43
+      <el-form-item class="specialFormItem" label="折扣金额:">
44
+        <div style="display:flex;">
45
+          <el-input v-model="form.discount_price"></el-input>
46
+        </div>
47
+      </el-form-item>
48
+      <el-form-item class="specialFormItem" label="优惠金额:">
49
+        <div style="display:flex;">
50
+          <el-input v-model="form.preferential_price"></el-input>
51
+        </div>
52
+      </el-form-item>
53
+      <el-form-item label="实收金额:">
54
+        <div style="display:flex;">
55
+          <el-input v-model="form.reality_price"></el-input>
56
+        </div>
57
+      </el-form-item>
58
+      <el-form-item label="找回金额:">
59
+        <div style="display:flex;">
60
+          <el-input v-model.number="form.found_price"></el-input>
61
+        </div>
62
+      </el-form-item>
63
+
64
+    </el-form>
65
+
66
+    <span slot="footer" class="dialog-footer">
67
+    <el-button @click="cancel('formValue')">取 消</el-button>
68
+    <el-button type="primary" @click="confirm('formValue')">确 定</el-button>
69
+  </span>
70
+  </el-dialog>
71
+
72
+</template>
73
+
74
+<script>
75
+  import { uParseTime } from '@/utils/tools'
76
+
77
+  export default {
78
+    name: 'chargeDialog',
79
+
80
+    data() {
81
+
82
+      return {
83
+        record_date:'',
84
+        form: {
85
+          medical_insurance_price:'',
86
+          private_price:'',
87
+          pay_way:'',
88
+          pay_price:'',
89
+          pay_card_no:'',
90
+          discount_price:'',
91
+          preferential_price:'',
92
+          reality_price:'',
93
+          found_price:'',
94
+
95
+        },
96
+        payWays: [
97
+          {value: 1, label: '现金'},
98
+          {value: 2, label: '银行卡'},
99
+          {value: 3, label: '微信'},
100
+          {value: 4, label: '支付宝'},
101
+        ],
102
+        total:"",
103
+
104
+        visibility: false,
105
+        labelPosition: 'right',
106
+        isClose: false,
107
+
108
+        resetForm: {
109
+          medical_insurance_price:'',
110
+          private_price:'',
111
+          pay_way:'',
112
+          pay_price:'',
113
+          pay_card_no:'',
114
+          discount_price:'',
115
+          preferential_price:'',
116
+          reality_price:'',
117
+          found_price:'',
118
+        },
119
+
120
+      }
121
+    },
122
+    props: {
123
+
124
+      titles: {
125
+        type: String,
126
+        default: ''
127
+      },
128
+      formValue: {
129
+        type: Object
130
+      },
131
+      type: {
132
+        type: Number,
133
+        default: 1
134
+
135
+      },
136
+      isCreated: {
137
+        type: Number,
138
+        default: 1
139
+
140
+      }
141
+    },
142
+    methods: {
143
+      show: function (total) {
144
+        this.total = total
145
+        this.form.private_price = total
146
+        this.form.pay_price = total
147
+
148
+        this.visibility = true
149
+
150
+      }, hide: function () {
151
+        this.visibility = false
152
+      }, cancel: function (formName) {
153
+        this.$emit('cancel', this.getValue())
154
+        this.$refs['formValue'].resetFields()
155
+      },
156
+      confirm: function (formName) {
157
+        this.$refs['formValue'].validate((valid) => {
158
+          if (valid) {
159
+            let value = {}
160
+            value = this.getValue()
161
+            this.$emit('confirm', value)
162
+            this.form = Object.assign({}, this.resetForm)
163
+          }
164
+        })
165
+      },
166
+      getValue: function () {
167
+        let form = {}
168
+        form = this.form
169
+        return form
170
+      }
171
+    },mounted() {
172
+      var nowDate = new Date()
173
+      var nowYear = nowDate.getFullYear()
174
+      var nowMonth = nowDate.getMonth() + 1
175
+      var nowDay = nowDate.getDate()
176
+
177
+      var nowHours = nowDate.getHours()
178
+      var nowMin = nowDate.getMinutes()
179
+      var nowSecond = nowDate.getSeconds()
180
+
181
+      this.record_date =
182
+        nowYear +
183
+        '-' +
184
+        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
185
+        '-' +
186
+        (nowDay < 10 ? '0' + nowDay : nowDay)+" "+(nowHours < 10 ? '0' + nowHours : nowHours)+":"+(nowMin < 10 ? '0' + nowMin : nowMin)
187
+    }
188
+
189
+  }
190
+</script>
191
+
192
+<style scoped>
193
+
194
+</style>

+ 170 - 110
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

2
   <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
2
   <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
3
              :close-on-press-escape="isClose">
3
              :close-on-press-escape="isClose">
4
 
4
 
5
-    <el-form class="basicForm" :model="form"  :rules="rules"  ref="form"  label-width="100px">
5
+    <el-form :model="form"  :rules="rules"  ref="formValue"  label-width="100px">
6
       <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
6
       <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
7
          <el-input  v-model="form.name"></el-input>
7
          <el-input  v-model="form.name"></el-input>
8
       </el-form-item>
8
       </el-form-item>
9
 
9
 
10
-      <el-form-item label="性别:" prop="sex" :validate-event="is_Name">
11
-        <el-select v-model="form.sex" placeholder="请选择">
10
+      <el-form-item label="性别:" prop="gender" :validate-event="is_Name">
11
+        <el-select v-model="form.gender" placeholder="请选择">
12
           <el-option
12
           <el-option
13
             v-for="item in sex"
13
             v-for="item in sex"
14
             :key="item.value"
14
             :key="item.value"
33
 
33
 
34
 
34
 
35
       <el-form-item label="医疗类别:">
35
       <el-form-item label="医疗类别:">
36
-        <el-select v-model="form.medicalCare" placeholder="请选择">
37
-          <!-- <el-option
38
-          v-for="item in medicalCare"
39
-          :key="item.value"
40
-          :label="item.label"
41
-          :value="item.value">
42
-          </el-option> -->
36
+        <el-select v-model="form.medical_care" placeholder="请选择">
43
           <el-option
37
           <el-option
44
             v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
38
             v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
45
             :key="index"
39
             :key="index"
61
         </el-select>
55
         </el-select>
62
       </el-form-item>
56
       </el-form-item>
63
 
57
 
64
-      <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
65
-        <el-input v-model="form.idCard"></el-input>
58
+      <el-form-item label="证件号码:" prop="id_card"  :validate-event="is_Name">
59
+        <el-input v-model="form.id_card"></el-input>
66
       </el-form-item>
60
       </el-form-item>
67
 
61
 
68
 
62
 
69
       <el-form-item label="结算类型:">
63
       <el-form-item label="结算类型:">
70
-        <el-select v-model="form.settlementValue" placeholder="请选择">
64
+        <el-select v-model="form.settlement_value" placeholder="请选择">
71
           <el-option
65
           <el-option
72
             v-for="item in settlement"
66
             v-for="item in settlement"
73
             :key="item.value"
67
             :key="item.value"
80
 
74
 
81
       <el-form-item label="社保类型:">
75
       <el-form-item label="社保类型:">
82
         <el-select v-model="form.social_type" placeholder="请选择">
76
         <el-select v-model="form.social_type" placeholder="请选择">
83
-          <!-- <el-option
84
-          v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
85
-          :key="index"
86
-          :label="item.name"
87
-          :value="item.id">
88
-          </el-option> -->
89
           <el-option
77
           <el-option
90
             v-for="item in medicalCare"
78
             v-for="item in medicalCare"
91
             :key="item.value"
79
             :key="item.value"
96
       </el-form-item>
84
       </el-form-item>
97
       <el-form-item class="specialFormItem" label="医保卡号:">
85
       <el-form-item class="specialFormItem" label="医保卡号:">
98
         <div style="display:flex;">
86
         <div style="display:flex;">
99
-          <el-input v-model="form.medicalInsuranceCard"></el-input>
100
-          <!-- <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button> -->
87
+          <el-input v-model="form.medical_insurance_card"></el-input>
101
         </div>
88
         </div>
102
       </el-form-item>
89
       </el-form-item>
103
 
90
 
91
+      <el-form-item label="挂号类型:"  prop="register_type"  :validate-event="is_Name">
92
+        <el-select v-model="form.register_type"  placeholder="请选择">
93
+          <el-option
94
+            v-for="item in register"
95
+            :key="item.value"
96
+            :label="item.label"
97
+            :value="item.value">
98
+          </el-option>
99
+        </el-select>
100
+      </el-form-item>
101
+      <el-form-item label="挂号费:">
102
+        <el-input v-model.number="form.registration_fee"></el-input>
103
+      </el-form-item>
104
+      <el-form-item label="诊疗费:">
105
+        <el-input v-model.number="form.medical_expenses"></el-input>
106
+      </el-form-item>
104
     </el-form>
107
     </el-form>
105
 
108
 
106
-    <!--<el-form :model="formValue" :rules="rules" ref="formValue" class="demo-form-inline"-->
107
-             <!--:label-position="labelPosition"-->
108
-             <!--label-width="100px">-->
109
-
110
-      <!--<el-row>-->
111
-        <!--<el-col :span="8">-->
112
-          <!--<el-form-item label="诊断名称" prop="class_name">-->
113
-            <!--<el-input v-model="formValue.class_name"></el-input>-->
114
-          <!--</el-form-item>-->
115
-        <!--</el-col>-->
116
-
117
-        <!--<el-col :span="8">-->
118
-          <!--<el-form-item label="拼音" prop="pinyin">-->
119
-            <!--<el-input v-model="formValue.pinyin"></el-input>-->
120
-          <!--</el-form-item>-->
121
-        <!--</el-col>-->
122
-        <!--<el-col :span="8">-->
123
-          <!--<el-form-item label="五笔" prop="wubi">-->
124
-            <!--<el-input v-model="formValue.wubi"></el-input>-->
125
-          <!--</el-form-item>-->
126
-        <!--</el-col>-->
127
-
128
-        <!--<el-col :span="8">-->
129
-          <!--<el-form-item label="目录代码" prop="content_code">-->
130
-            <!--<el-input v-model="formValue.content_code"></el-input>-->
131
-          <!--</el-form-item>-->
132
-        <!--</el-col>-->
133
-
134
-        <!--<el-col :span="8">-->
135
-          <!--<el-form-item label="国家编码" prop="country_code">-->
136
-            <!--<el-input v-model="formValue.country_code"></el-input>-->
137
-          <!--</el-form-item>-->
138
-        <!--</el-col>-->
139
-
140
-        <!--<el-col :span="8">-->
141
-          <!--<el-form-item label="国家目录名称" prop="country_content_name">-->
142
-            <!--<el-input v-model="formValue.country_content_name"></el-input>-->
143
-          <!--</el-form-item>-->
144
-        <!--</el-col>-->
145
-      <!--</el-row>-->
146
-
147
-      <!--<el-col>-->
148
-        <!--<el-form-item label="备注">-->
149
-          <!--<el-input type="textarea" :row="5" v-model="formValue.remark"-->
150
-                    <!--placeholder="请输入内容">-->
151
-          <!--</el-input>-->
152
-        <!--</el-form-item>-->
153
-      <!--</el-col>-->
154
-    <!--</el-form>-->
155
-
156
     <span slot="footer" class="dialog-footer">
109
     <span slot="footer" class="dialog-footer">
157
-    <el-button v-if="isCreated == 3" @click="cancle('formValue')">取 消</el-button>
158
-    <el-button v-if="isCreated != 3 " @click="cancle('formValue')">取 消</el-button>
159
-    <el-button v-if="isCreated != 3" type="primary" @click="comfirm('formValue')">保 存</el-button>
110
+    <el-button  @click="cancel('formValue')">取 消</el-button>
111
+    <el-button  type="primary" @click="confirm('formValue')">保 存</el-button>
160
   </span>
112
   </span>
161
   </el-dialog>
113
   </el-dialog>
162
 
114
 
163
 </template>
115
 </template>
164
 
116
 
165
 <script>
117
 <script>
118
+  import { getDictionaryDataConfig } from '@/utils/data'
166
   export default {
119
   export default {
167
-    name: 'diagnoseOtherDialog',
120
+    name: 'registerDialog',
168
 
121
 
169
     data() {
122
     data() {
170
 
123
 
171
       return {
124
       return {
125
+        form:{
126
+          settlement_value: '',
127
+          medical_insurance_card:'',
128
+          name:'',
129
+          gender:'',
130
+          certificates:'',
131
+          medical_care:'',
132
+          birthday:'',
133
+          age:'',
134
+          id_card:'',
135
+          register:'',
136
+          doctor:'',
137
+          department:'',
138
+          registration_fee:'',
139
+          medical_expenses:'',
140
+          cost:'',
141
+          phone:'',
142
+          social_type:'',
143
+        },
144
+        settlement: [
145
+            {value: 1,label: '医保'},
146
+            {value: 2,label: '自费'},
147
+            {value: 3,label:'公费'},
148
+            {value: 4,label:'农保'},
149
+            {value: 5,label:'会员'},
150
+            {value: 6,label:'职工'},
151
+            {value: 7,label:'合同'}
152
+          ],
153
+        sex: [{
154
+          value: 1,
155
+          label: '男'
156
+        }, {
157
+          value: 2,
158
+          label: '女'
159
+        }],
160
+        certificates: [{
161
+          value: 1,
162
+          label: '内地身份证'
163
+        }, {
164
+          value: 2,
165
+          label: "社保卡"
166
+        },{
167
+          value: 3,
168
+          label: "护照"
169
+        },{
170
+          value: 4,
171
+          label: "军官证"
172
+        },{
173
+          value: 5,
174
+          label: "台胞证"
175
+        },{
176
+          value: 6,
177
+          label: "港澳地区身份证"
178
+        }],
179
+        medicalCare: [{
180
+          value: 1,
181
+          label: '职工基本医疗保险'
182
+        }, {
183
+          value: 2,
184
+          label: "公务员医疗补助"
185
+        },{
186
+          value: 3,
187
+          label: "大额医疗费用补助"
188
+        },{
189
+          value: 4,
190
+          label: "离休人员医疗"
191
+        },{
192
+          value: 5,
193
+          label: "城乡居民基本医疗保险"
194
+        },{
195
+          value: 6,
196
+          label: "城乡居民大病医疗保险"
197
+        },
198
+          {
199
+            value: 7,
200
+            label: "生育保险"
201
+          }],
202
+        register: [{
203
+          value: 1,
204
+          label: '普通'
205
+        }, {
206
+          value: 2,
207
+          label: "主治"
208
+        },{
209
+          value: 3,
210
+          label: "主任"
211
+        },{
212
+          value: 4,
213
+          label: "免收诊金"
214
+        },{
215
+          value: 5,
216
+          label: "专家"
217
+        }],
218
+        rules: {
219
+          name:[{ required:true,message:"患者姓名不能为空",trigger: 'blur'}],
220
+          gender:[{ required:true,message:"患者性别不能为空",trigger: 'blur'}],
221
+          id_card: [{ required: true, message: '证件号码不能为空', trigger: 'blur'  }],
222
+          register_type: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
223
+          doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
224
+          department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
225
+          age:[{ required:true,message:"患者年龄不能为空",trigger: 'blur'}],
226
+          birthday:[{required:true,message:"患者出生日期不能为空",trigger:'blur'}]
227
+        },
228
+
172
         visibility: false,
229
         visibility: false,
173
         labelPosition: 'right',
230
         labelPosition: 'right',
174
         isClose: false,
231
         isClose: false,
175
-        form: {
176
-          class_name: '',
177
-          content_code: '',
178
-          country_code: '',
179
-          country_content_name: '',
180
-          remark: '',
181
-          pinyin: '',
182
-          wubi: ''
183
 
232
 
184
-        },
185
         resetForm: {
233
         resetForm: {
186
-          class_name: '',
187
-          content_code: '',
188
-          country_code: '',
189
-          country_content_name: '',
190
-          remark: '',
191
-          pinyin: '',
192
-          wubi: ''
234
+          settlement_value: '',
235
+          medical_insurance_card:'',
236
+          name:'',
237
+          gender:'',
238
+          certificates:'',
239
+          medical_care:'',
240
+          birthday:'',
241
+          age:'',
242
+          id_card:'',
243
+          register:'',
244
+          doctor:'',
245
+          department:'',
246
+          registration_fee:'',
247
+          medical_expenses:'',
248
+          cost:'',
249
+          phone:'',
250
+          social_type:'',
193
         },
251
         },
194
-        rules: {
195
-          class_name: [
196
-            { required: true, message: '请输入大类名称', trigger: 'blur' }
197
-          ],
198
-          content_code: [
199
-            { required: true, message: '请输入目录代码', trigger: 'blur' }
200
-          ]
201
 
252
 
202
-        }
203
       }
253
       }
204
     },
254
     },
205
     props: {
255
     props: {
223
       }
273
       }
224
     },
274
     },
225
     methods: {
275
     methods: {
226
-      show: function() {
276
+      getDictionaryDataConfig(module, filed_name) {
277
+        return getDictionaryDataConfig(module, filed_name)
278
+      },
279
+      show: function(patientInfo) {
280
+        this.form.name = patientInfo.name
281
+        this.form.gender = patientInfo.gender
282
+        this.form.age = patientInfo.age
283
+        this.form.birthday = patientInfo.birthday
284
+        this.form.phone = patientInfo.phone
285
+        this.form.birthday = patientInfo.birthday
286
+        this.form.id_card = patientInfo.id_card_no
287
+        this.form.social_type = patientInfo.health_care_type
288
+        if( this.form.social_type == 0){
289
+          this.form.social_type = ""
290
+
291
+        }
227
         this.visibility = true
292
         this.visibility = true
228
 
293
 
229
       }, hide: function() {
294
       }, hide: function() {
230
         this.visibility = false
295
         this.visibility = false
231
-      },
232
-      cancle: function(formName) {
233
-        this.$emit('dialog-cancle', this.getValue())
296
+      }, cancel: function(formName) {
297
+        this.$emit('cancel', this.getValue())
234
         this.$refs['formValue'].resetFields()
298
         this.$refs['formValue'].resetFields()
235
       },
299
       },
236
-      comfirm: function(formName) {
300
+      confirm: function(formName) {
237
         this.$refs['formValue'].validate((valid) => {
301
         this.$refs['formValue'].validate((valid) => {
238
           if (valid) {
302
           if (valid) {
239
             let value = {}
303
             let value = {}
240
             value = this.getValue()
304
             value = this.getValue()
241
-            this.$emit('dialog-comfirm', value)
305
+            this.$emit('confirm', value)
242
             this.form = Object.assign({}, this.resetForm)
306
             this.form = Object.assign({}, this.resetForm)
243
-
244
           }
307
           }
245
         })
308
         })
246
       },
309
       },
247
       getValue: function() {
310
       getValue: function() {
248
         let form = {}
311
         let form = {}
249
-        form = this.formValue
250
-        form['title'] = this.titles
251
-        form['type'] = this.type
252
-        form['isCreated'] = this.isCreated
312
+        form = this.form
253
         return form
313
         return form
254
       }
314
       }
255
     }
315
     }

+ 126 - 110
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

5
     </div>
5
     </div>
6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7
       <div class="mainLeft">
7
       <div class="mainLeft">
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>
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>
12
         </div>
13
         <div class="mainCell">
13
         <div class="mainCell">
14
           <el-radio-group v-model="radio" @change="changeRadio">
14
           <el-radio-group v-model="radio" @change="changeRadio">
210
         </div>
210
         </div>
211
       </div>
211
       </div>
212
     </div>
212
     </div>
213
-    <additionalCharges ref='additionalCharges' @click="addCharges" :addtions_charge="addtions_charge"></additionalCharges>
214
-
215
-   <register-dialog></register-dialog>
213
+    <additionalCharges ref='additionalCharges' @click="addCharges"
214
+                       :addtions_charge="addtions_charge"></additionalCharges>
216
 
215
 
216
+    <register-dialog ref='register' v-on:confirm="confirm" v-on:cancel="cancel"></register-dialog>
217
+  <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
217
     <el-dialog
218
     <el-dialog
218
       class="centerDialog"
219
       class="centerDialog"
219
       width="900px"
220
       width="900px"
232
   import medicalInsuranceRefund from './components/medicalInsuranceRefund'
233
   import medicalInsuranceRefund from './components/medicalInsuranceRefund'
233
   import prescriptionTable from './components/prescriptionTable'
234
   import prescriptionTable from './components/prescriptionTable'
234
   import additionalCharges from './components/additionalCharges'
235
   import additionalCharges from './components/additionalCharges'
235
-  import { getPatientInformation, getPatientList } from '@/api/project/project'
236
-  import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
236
+  import {getPatientInformation, getPatientList} from '@/api/project/project'
237
+  import {getPatientInfo, getSchedulePatientList, Refund, register, upload} from '@/api/his/his'
237
   import RegisterDialog from "./components/registerDialog";
238
   import RegisterDialog from "./components/registerDialog";
238
   import treatPrint from './treatPrint'
239
   import treatPrint from './treatPrint'
240
+  import ChargeDialog from "./components/chargeDialog";
239
 
241
 
240
   const moment = require('moment')
242
   const moment = require('moment')
241
   export default {
243
   export default {
242
     components: {
244
     components: {
245
+      ChargeDialog,
243
       RegisterDialog,
246
       RegisterDialog,
244
       BreadCrumb,
247
       BreadCrumb,
245
       noCharge,
248
       noCharge,
253
     data() {
256
     data() {
254
       return {
257
       return {
255
         crumbs: [
258
         crumbs: [
256
-          { path: false, name: '门诊收费' },
257
-          { path: false, name: '门诊收费管理' }
259
+          {path: false, name: '门诊收费'},
260
+          {path: false, name: '门诊收费管理'}
258
         ],
261
         ],
259
-        current_index:0,
260
-        cal_one:'',
261
-        cal_two:'',
262
-        cal_three:'',
262
+        current_index: 0,
263
+        cal_one: '',
264
+        cal_two: '',
265
+        cal_three: '',
263
         tableHeight: '',
266
         tableHeight: '',
264
         fullHeight: document.documentElement.clientHeight,
267
         fullHeight: document.documentElement.clientHeight,
265
         activeName: 'first',
268
         activeName: 'first',
281
           name: '杨美英',
284
           name: '杨美英',
282
           mdtrt_id: '1709946'
285
           mdtrt_id: '1709946'
283
         }],
286
         }],
284
-        patientInfo: { id: 0 },
287
+        patientInfo: {id: 0},
285
         doctor: {},
288
         doctor: {},
286
         total: 0,
289
         total: 0,
287
         state: '未收费',
290
         state: '未收费',
291
         start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
294
         start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
292
         patient_id: 0,
295
         patient_id: 0,
293
         prescription_id: 0,
296
         prescription_id: 0,
294
-        all_table_data:[],
295
-        order:{},
296
-        addtions_charge:[],
297
-        treatVisible:false,
298
-        paramsObj:{}
297
+        all_table_data: [],
298
+        order: {},
299
+        addtions_charge: [],
300
+        treatVisible: false,
301
+        paramsObj: {}
299
       }
302
       }
300
     },
303
     },
301
     created() {
304
     created() {
316
       this.getPatientList()
319
       this.getPatientList()
317
     },
320
     },
318
     methods: {
321
     methods: {
322
+      chargeConfirm(form){
323
+        form['id'] = this.patientInfo.id
324
+        form['record_time'] =  this.record_date
325
+        this.loadingtwo = true
326
+        upload(form).then(response => {
327
+          if (response.data.state == 0) {
328
+            this.$message.error(response.data.msg)
329
+            this.loadingtwo = false
330
+            return false
331
+          } else {
332
+            this.state = '已收费'
333
+            this.$message({message: '收费成功', type: 'success'})
334
+            this.loadingtwo = false
335
+            this.cal_one = this.cal_one - 1
336
+            this.cal_two = this.cal_two + 1
337
+            this.patientTableData.splice(this.current_index, 1)
338
+          }
339
+        })
340
+
341
+      },chargeCancel(){
342
+        this.$refs.charge.hide()
343
+      },
344
+      confirm(forms) {
345
+        forms['id'] = this.patientInfo.id,
346
+          forms['record_time'] = this.record_date,
347
+          this.loadingone = true
348
+        register(forms).then(response => {
349
+          if (response.data.state == 0) {
350
+            this.$message.error(response.data.msg)
351
+            this.loadingone = false
352
+            this.$refs.register.hide()
353
+            return false
354
+          } else {
355
+            this.$message({message: '挂号成功', type: 'success'})
356
+            this.$refs.register.hide()
357
+            this.loadingone = false
358
+            var his_info = response.data.data.his_info
359
+            this.hisPatientInfo = his_info
360
+          }
361
+        })
362
+
363
+
364
+      }, cancel() {
365
+        this.$refs.register.hide()
366
+
367
+
368
+      },
319
       addCharges() {
369
       addCharges() {
320
         this.$refs.additionalCharges.show()
370
         this.$refs.additionalCharges.show()
321
       },
371
       },
379
                   price: prescription.project[b].price,
429
                   price: prescription.project[b].price,
380
                   remark: prescription.project[b].remark,
430
                   remark: prescription.project[b].remark,
381
                   medical_code: prescription.project[b].project.medical_code,
431
                   medical_code: prescription.project[b].project.medical_code,
382
-                  unit:prescription.project[b].unit,
432
+                  unit: prescription.project[b].unit,
383
                 }
433
                 }
384
 
434
 
385
                 tempProject.push(obj)
435
                 tempProject.push(obj)
440
         if (this.curPrescriptions.type == 1) {
490
         if (this.curPrescriptions.type == 1) {
441
           if (this.curPrescriptions.advices != null) {
491
           if (this.curPrescriptions.advices != null) {
442
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
492
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
443
-              total = total +  Math.floor((this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)* 100) / 100
493
+              total = total + Math.floor((this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number) * 100) / 100
444
 
494
 
445
             }
495
             }
446
           }
496
           }
447
         } else {
497
         } else {
448
           if (this.curPrescriptions.project != null) {
498
           if (this.curPrescriptions.project != null) {
449
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
499
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
450
-              total = total +  Math.floor((this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total) * 100) / 100
500
+              total = total + Math.floor((this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total) * 100) / 100
451
 
501
 
452
             }
502
             }
453
           }
503
           }
455
 
505
 
456
         if (this.curPrescriptions.addition != null) {
506
         if (this.curPrescriptions.addition != null) {
457
           for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
507
           for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
458
-            total = total +  Math.floor((this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count) * 100) / 100
508
+            total = total + Math.floor((this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count) * 100) / 100
459
           }
509
           }
460
         }
510
         }
461
         return Math.floor(total * 100) / 100
511
         return Math.floor(total * 100) / 100
493
 
543
 
494
         if (index == 1) {
544
         if (index == 1) {
495
 
545
 
546
+
496
         } else if (index == 2) {
547
         } else if (index == 2) {
497
 
548
 
498
           this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
549
           this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
499
 
550
 
500
         } else if (index == 3) {
551
         } else if (index == 3) {
501
           let obj = {
552
           let obj = {
502
-            record_date:this.record_date,
503
-            patient_id:this.patient_id,
504
-            prescription_id:this.prescription_id
553
+            record_date: this.record_date,
554
+            patient_id: this.patient_id,
555
+            prescription_id: this.prescription_id
505
           }
556
           }
506
           this.paramsObj = obj
557
           this.paramsObj = obj
507
           this.treatVisible = true
558
           this.treatVisible = true
508
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
559
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
509
         } else if (index == 4) {
560
         } else if (index == 4) {
510
 
561
 
511
-          if(this.hisPatientInfo.id == 0){
512
-            this.$message({ message: '该患者尚未挂号,请先挂号', type: 'error' })
562
+          if (this.hisPatientInfo.id == 0) {
563
+            this.$message({message: '该患者尚未挂号,请先挂号', type: 'error'})
513
             return
564
             return
514
           }
565
           }
515
 
566
 
516
-          let params = {
517
-            'id': this.patientInfo.id,
518
-            'record_time': this.record_date
519
-          }
520
-          this.loadingtwo = true
521
-          upload(params).then(response => {
522
-            if (response.data.state == 0) {
523
-              this.$message.error(response.data.msg)
524
-              this.loadingtwo = false
525
-              return false
526
-            } else {
527
-              this.state = '已收费'
528
-              this.$message({ message: '收费成功', type: 'success' })
529
-              this.loadingtwo = false
530
-              this.cal_one  =  this.cal_one-1
531
-              this.cal_two = this.cal_two + 1
532
-              this.patientTableData.splice(this.current_index,1)
533
-            }
534
-          })
567
+          this.$refs.charge.show(this.getTotal())
568
+
569
+
535
 
570
 
536
         } else if (index == 5) {
571
         } else if (index == 5) {
537
 
572
 
550
                 this.loadingtwo = false
585
                 this.loadingtwo = false
551
                 return false
586
                 return false
552
               } else {
587
               } else {
553
-                this.$message({ message: '退费成功', type: 'success' })
588
+                this.$message({message: '退费成功', type: 'success'})
554
                 this.loadingtwo = false
589
                 this.loadingtwo = false
555
 
590
 
556
               }
591
               }
568
             return
603
             return
569
           }
604
           }
570
 
605
 
606
+          this.$refs.register.show(this.patientInfo)
571
 
607
 
572
 
608
 
573
-
574
-          let params = {
575
-            'id': this.patientInfo.id,
576
-            'record_time': this.record_date
577
-          }
578
-          this.loadingone = true
579
-          register(params).then(response => {
580
-            if (response.data.state == 0) {
581
-              this.$message.error(response.data.msg)
582
-              this.loadingone = false
583
-
584
-              return false
585
-
586
-            } else {
587
-              this.$message({ message: '挂号成功', type: 'success' })
588
-
589
-              this.loadingone = false
590
-              var his_info = response.data.data.his_info
591
-              this.hisPatientInfo = his_info
592
-            }
593
-          })
594
         }
609
         }
595
       },
610
       },
596
 
611
 
621
             for (let i = 0; i < response.data.data.list.length; i++) {
636
             for (let i = 0; i < response.data.data.list.length; i++) {
622
               // console.log('99999999', response.data.data.list)
637
               // console.log('99999999', response.data.data.list)
623
 
638
 
624
-              if(response.data.data.list[i].info.prescription_status == 0 || response.data.data.list[i].info.prescription_status == 1 ||response.data.data.list[i].info.prescription_status == 2 ){
639
+              if (response.data.data.list[i].info.prescription_status == 0 || response.data.data.list[i].info.prescription_status == 1 || response.data.data.list[i].info.prescription_status == 2) {
625
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
640
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
626
                   one_count = one_count + 1
641
                   one_count = one_count + 1
627
                   this.patientTableData.push(response.data.data.list[i])
642
                   this.patientTableData.push(response.data.data.list[i])
628
                 }
643
                 }
629
               }
644
               }
630
 
645
 
631
-              if(response.data.data.list[i].info.prescription_status == 3){
646
+              if (response.data.data.list[i].info.prescription_status == 3) {
632
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
647
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
633
 
648
 
634
                   two_count = two_count + 1
649
                   two_count = two_count + 1
635
                 }
650
                 }
636
               }
651
               }
637
 
652
 
638
-              if(response.data.data.list[i].info.prescription_status == 4){
653
+              if (response.data.data.list[i].info.prescription_status == 4) {
639
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
654
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
640
                   three_count = three_count + 1
655
                   three_count = three_count + 1
641
                 }
656
                 }
655
               case 1:
670
               case 1:
656
                 this.patientTableData = []
671
                 this.patientTableData = []
657
 
672
 
658
-                for (let i = 0; i < this.all_table_data.length; i++){
659
-                  if(this.all_table_data[i].info.prescription_status == 0 || this.all_table_data[i].info.prescription_status == 1 || this.all_table_data[i].info.prescription_status == 2 ){
673
+                for (let i = 0; i < this.all_table_data.length; i++) {
674
+                  if (this.all_table_data[i].info.prescription_status == 0 || this.all_table_data[i].info.prescription_status == 1 || this.all_table_data[i].info.prescription_status == 2) {
660
                     this.patientTableData.push(this.all_table_data[i])
675
                     this.patientTableData.push(this.all_table_data[i])
661
                   }
676
                   }
662
 
677
 
664
                 break
679
                 break
665
               case 2:
680
               case 2:
666
                 this.patientTableData = []
681
                 this.patientTableData = []
667
-                for (let i = 0; i < this.all_table_data.length; i++){
668
-                  if(this.all_table_data[i].info.prescription_status == 3){
682
+                for (let i = 0; i < this.all_table_data.length; i++) {
683
+                  if (this.all_table_data[i].info.prescription_status == 3) {
669
                     this.patientTableData.push(this.all_table_data[i])
684
                     this.patientTableData.push(this.all_table_data[i])
670
                   }
685
                   }
671
 
686
 
675
               case 3:
690
               case 3:
676
                 this.patientTableData = []
691
                 this.patientTableData = []
677
 
692
 
678
-                for (let i = 0; i < this.all_table_data.length; i++){
693
+                for (let i = 0; i < this.all_table_data.length; i++) {
679
 
694
 
680
-                  if(this.all_table_data[i].info.prescription_status == 4){
695
+                  if (this.all_table_data[i].info.prescription_status == 4) {
681
                     this.patientTableData.push(this.all_table_data[i])
696
                     this.patientTableData.push(this.all_table_data[i])
682
                   }
697
                   }
683
 
698
 
692
 
707
 
693
             this.current_index = 0
708
             this.current_index = 0
694
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
709
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
695
-            this.getPatientInformation(this.patientTableData[0].patients.id,"")
710
+            this.getPatientInformation(this.patientTableData[0].patients.id, "")
696
 
711
 
697
 
712
 
698
           }
713
           }
699
         })
714
         })
700
 
715
 
701
 
716
 
702
-
703
-
704
-
705
-
706
       },
717
       },
707
 
718
 
708
       //患者列表
719
       //患者列表
723
             for (let i = 0; i < response.data.data.list.length; i++) {
734
             for (let i = 0; i < response.data.data.list.length; i++) {
724
               // console.log('99999999', response.data.data.list)
735
               // console.log('99999999', response.data.data.list)
725
 
736
 
726
-              if(response.data.data.list[i].info.prescription_status == 0 || response.data.data.list[i].info.prescription_status == 1 ||response.data.data.list[i].info.prescription_status == 2 ){
737
+              if (response.data.data.list[i].info.prescription_status == 0 || response.data.data.list[i].info.prescription_status == 1 || response.data.data.list[i].info.prescription_status == 2) {
727
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
738
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
728
                   one_count = one_count + 1
739
                   one_count = one_count + 1
729
                   this.patientTableData.push(response.data.data.list[i])
740
                   this.patientTableData.push(response.data.data.list[i])
730
                 }
741
                 }
731
               }
742
               }
732
 
743
 
733
-              if(response.data.data.list[i].info.prescription_status == 3){
744
+              if (response.data.data.list[i].info.prescription_status == 3) {
734
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
745
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
735
 
746
 
736
                   two_count = two_count + 1
747
                   two_count = two_count + 1
737
                 }
748
                 }
738
               }
749
               }
739
 
750
 
740
-              if(response.data.data.list[i].info.prescription_status == 4){
751
+              if (response.data.data.list[i].info.prescription_status == 4) {
741
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
752
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
742
                   three_count = three_count + 1
753
                   three_count = three_count + 1
743
                 }
754
                 }
754
 
765
 
755
             this.current_index = 0
766
             this.current_index = 0
756
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
767
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
757
-            this.getPatientInformation(this.patientTableData[0].patients.id,"")
768
+            this.getPatientInformation(this.patientTableData[0].patients.id, "")
758
 
769
 
759
           }
770
           }
760
         })
771
         })
769
         this.getPatientInformation(val.patients.id, val.info.batch_number)
780
         this.getPatientInformation(val.patients.id, val.info.batch_number)
770
         this.patient_id = val.patients.id
781
         this.patient_id = val.patients.id
771
 
782
 
772
-        for (let i =0; i < this.patientTableData.length; i++){
773
-          if(this.patientTableData[i].patients.id == val.patients.id){
783
+        for (let i = 0; i < this.patientTableData.length; i++) {
784
+          if (this.patientTableData[i].patients.id == val.patients.id) {
774
             this.current_index = i
785
             this.current_index = i
775
           }
786
           }
776
 
787
 
779
       },
790
       },
780
 
791
 
781
       //获取患者的基本信息
792
       //获取患者的基本信息
782
-      getPatientInformation(id,batch_number) {
793
+      getPatientInformation(id, batch_number) {
783
         let params = {
794
         let params = {
784
           'record_date': this.record_date,
795
           'record_date': this.record_date,
785
           'patient_id': id,
796
           'patient_id': id,
786
-          'number':batch_number,
797
+          'number': batch_number,
787
         }
798
         }
788
         getPatientInfo(params).then(response => {
799
         getPatientInfo(params).then(response => {
789
           if (response.data.state == 0) {
800
           if (response.data.state == 0) {
797
             this.addtions_charge = response.data.data.addtions_charge
808
             this.addtions_charge = response.data.data.addtions_charge
798
 
809
 
799
             this.prescriptions = []
810
             this.prescriptions = []
800
-            console.log("9991323242r5253535",response.data.data.prescription)
811
+            console.log("9991323242r5253535", response.data.data.prescription)
801
             this.prescription_id = response.data.data.prescription[0].advices[0].prescription_id
812
             this.prescription_id = response.data.data.prescription[0].advices[0].prescription_id
802
-            console.log("222222",this.prescription_id)
813
+            console.log("222222", this.prescription_id)
803
             for (let i = 0; i < response.data.data.prescription.length; i++) {
814
             for (let i = 0; i < response.data.data.prescription.length; i++) {
804
               var prescription = response.data.data.prescription[i]
815
               var prescription = response.data.data.prescription[i]
805
 
816
 
857
               }
868
               }
858
 
869
 
859
 
870
 
860
-
861
               let index = i + 1
871
               let index = i + 1
862
               let obj = {
872
               let obj = {
863
                 id: prescription.id,
873
                 id: prescription.id,
864
                 name: '处方' + index,
874
                 name: '处方' + index,
865
                 advices: tempAdvice,
875
                 advices: tempAdvice,
866
                 project: tempProject,
876
                 project: tempProject,
867
-                addition:tempAddition,
877
+                addition: tempAddition,
868
                 order_status: response.data.data.prescription[i].order_status,
878
                 order_status: response.data.data.prescription[i].order_status,
869
                 type: response.data.data.prescription[i].type
879
                 type: response.data.data.prescription[i].type
870
               }
880
               }
896
           this.tableHeight = tableHeight
906
           this.tableHeight = tableHeight
897
           this.timer = true
907
           this.timer = true
898
           let that = this
908
           let that = this
899
-          setTimeout(function() {
909
+          setTimeout(function () {
900
             that.timer = false
910
             that.timer = false
901
           }, 400)
911
           }, 400)
902
         }
912
         }
932
     display: flex;
942
     display: flex;
933
     align-items: center;
943
     align-items: center;
934
   }
944
   }
935
-  .fixedCell{
945
+
946
+  .fixedCell {
936
     position: fixed;
947
     position: fixed;
937
     z-index: 99;
948
     z-index: 99;
938
     right: 42px;
949
     right: 42px;
996
     flex-direction: column;
1007
     flex-direction: column;
997
     position: relative;
1008
     position: relative;
998
   }
1009
   }
999
-  .preTabs{
1000
-    height:100%;
1010
+
1011
+  .preTabs {
1012
+    height: 100%;
1001
     display: flex;
1013
     display: flex;
1002
     flex-direction: column;
1014
     flex-direction: column;
1003
-    .el-tab-pane{
1004
-      height:auto !important;
1005
-    }
1015
+
1016
+  .el-tab-pane {
1017
+    height: auto !important;
1018
+  }
1019
+
1006
   }
1020
   }
1007
 
1021
 
1008
   .settlementTabs {
1022
   .settlementTabs {
1070
   }
1084
   }
1071
 
1085
 
1072
   }
1086
   }
1073
-  .preTabs{
1074
-    .el-tabs__content{
1075
-      flex: 1;
1076
-      overflow-y: auto;
1077
-      padding: 5px 0 5px 5px;
1078
-    }
1087
+  .preTabs {
1088
+
1089
+  .el-tabs__content {
1090
+    flex: 1;
1091
+    overflow-y: auto;
1092
+    padding: 5px 0 5px 5px;
1093
+  }
1094
+
1079
   }
1095
   }
1080
 </style>
1096
 </style>
1081
 
1097
 

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue View File

64
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
64
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
65
         </el-table-column>
65
         </el-table-column>
66
         <el-table-column align="center" prop="name" label="实收金额">
66
         <el-table-column align="center" prop="name" label="实收金额">
67
-          <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
67
+          <template slot-scope="scope">{{scope.row.reality_price}}</template>
68
         </el-table-column>
68
         </el-table-column>
69
         <el-table-column align="center" prop="name" label="科室">
69
         <el-table-column align="center" prop="name" label="科室">
70
           <template slot-scope="scope">{{scope.row.p_info.department.name}}</template>
70
           <template slot-scope="scope">{{scope.row.p_info.department.name}}</template>

+ 3 - 3
src/xt_pages/outpatientCharges/summaryDetail.vue View File

98
                     <p class="centerRightTitle">收费信息</p>
98
                     <p class="centerRightTitle">收费信息</p>
99
                     <ul class="basicUl">
99
                     <ul class="basicUl">
100
                         <li style="width:50%;">应收金额:{{order.medfee_sumamt }}元</li>
100
                         <li style="width:50%;">应收金额:{{order.medfee_sumamt }}元</li>
101
-                        <li style="width:50%;">实收金额:{{order.medfee_sumamt}}元</li>
102
-                        <li style="width:50%;">舍入金额:{{order.medfee_sumamt - order.medfee_sumamt}}元</li>
103
-                        <li style="width:50%;">优惠金额:0.00元</li>
101
+                        <li style="width:50%;">实收金额:{{order.reality_price}}元</li>
102
+                        <li style="width:50%;">舍入金额:{{order.medfee_sumamt - order.reality_price}}元</li>
103
+                        <li style="width:50%;">优惠金额:{{order.preferential_price}}元</li>
104
                         <li style="width:50%;">总金额</li>
104
                         <li style="width:50%;">总金额</li>
105
                         <li style="width:50%;">{{order.medfee_sumamt}}元</li>
105
                         <li style="width:50%;">{{order.medfee_sumamt}}元</li>
106
                     </ul>
106
                     </ul>

+ 12 - 7
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

330
     data() {
330
     data() {
331
       return {
331
       return {
332
         register: [
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: "其他"},
333
+          {value: 1,label:"普通"},
334
+          {value: 2,label: '急诊'},
335
+          {value: 3,label: "儿科"},
336
+          {value: 4,label: "麻醉"},
337
+          {value: 5,label: "精一"},
338
+          {value: 6,label: "精二"},
339
+          {value: 7,label: "其他"},
340
 
340
 
341
         ],
341
         ],
342
         multipleTableHeight:'',
342
         multipleTableHeight:'',
654
         this.curStatus = 0
654
         this.curStatus = 0
655
         this.prescriptions = data
655
         this.prescriptions = data
656
         this.curPrescriptions = this.prescriptions[0]
656
         this.curPrescriptions = this.prescriptions[0]
657
+        this.diagnose = info.diagnosis
658
+
659
+        if(this.diagnose == 0){
660
+          this.diagnose = ""
661
+        }
657
 
662
 
658
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
663
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
659
           this.curStatus = 1
664
           this.curStatus = 1