Procházet zdrojové kódy

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

XMLWAN před 4 roky
rodič
revize
4c33c732a9

+ 194 - 0
src/xt_pages/outpatientCharges/components/chargeDialog.vue Zobrazit soubor

@@ -0,0 +1,194 @@
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>

+ 3 - 8
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Zobrazit soubor

@@ -61,15 +61,10 @@
61 61
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
62 62
       </el-table-column>
63 63
       <el-table-column align="center" prop="statistical_classification" width="100" label="组">
64
-        <template slot-scope="scope">
65
-          {{getGroup(scope.row.statistical_classification)}}
66
-        </template>
64
+        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
67 65
       </el-table-column>
68 66
       <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
69
-        <template slot-scope="scope">
70
-          <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
71
-          {{scope.row.single_dose}}
72
-        </template>
67
+        <template slot-scope="scope">{{scope.row.single_dose}}</template>
73 68
       </el-table-column>
74 69
       <el-table-column align="center" prop="delivery_way" width="80" label="用法">
75 70
         <template slot-scope="scope">
@@ -121,7 +116,7 @@
121 116
 
122 117
     <div class="additionalBox">
123 118
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
124
-        <span>{{item.item_name}}</span>
119
+        <span :title="item.item_name">{{item.item_name}}</span>
125 120
         <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
126 121
127 122
         <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>

+ 170 - 110
src/xt_pages/outpatientCharges/components/registerDialog.vue Zobrazit soubor

@@ -2,13 +2,13 @@
2 2
   <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
3 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 6
       <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
7 7
          <el-input  v-model="form.name"></el-input>
8 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 12
           <el-option
13 13
             v-for="item in sex"
14 14
             :key="item.value"
@@ -33,13 +33,7 @@
33 33
 
34 34
 
35 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 37
           <el-option
44 38
             v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
45 39
             :key="index"
@@ -61,13 +55,13 @@
61 55
         </el-select>
62 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 60
       </el-form-item>
67 61
 
68 62
 
69 63
       <el-form-item label="结算类型:">
70
-        <el-select v-model="form.settlementValue" placeholder="请选择">
64
+        <el-select v-model="form.settlement_value" placeholder="请选择">
71 65
           <el-option
72 66
             v-for="item in settlement"
73 67
             :key="item.value"
@@ -80,12 +74,6 @@
80 74
 
81 75
       <el-form-item label="社保类型:">
82 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 77
           <el-option
90 78
             v-for="item in medicalCare"
91 79
             :key="item.value"
@@ -96,110 +84,172 @@
96 84
       </el-form-item>
97 85
       <el-form-item class="specialFormItem" label="医保卡号:">
98 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 88
         </div>
102 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 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 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 112
   </span>
161 113
   </el-dialog>
162 114
 
163 115
 </template>
164 116
 
165 117
 <script>
118
+  import { getDictionaryDataConfig } from '@/utils/data'
166 119
   export default {
167
-    name: 'diagnoseOtherDialog',
120
+    name: 'registerDialog',
168 121
 
169 122
     data() {
170 123
 
171 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 229
         visibility: false,
173 230
         labelPosition: 'right',
174 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 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 255
     props: {
@@ -223,33 +273,43 @@
223 273
       }
224 274
     },
225 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 292
         this.visibility = true
228 293
 
229 294
       }, hide: function() {
230 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 298
         this.$refs['formValue'].resetFields()
235 299
       },
236
-      comfirm: function(formName) {
300
+      confirm: function(formName) {
237 301
         this.$refs['formValue'].validate((valid) => {
238 302
           if (valid) {
239 303
             let value = {}
240 304
             value = this.getValue()
241
-            this.$emit('dialog-comfirm', value)
305
+            this.$emit('confirm', value)
242 306
             this.form = Object.assign({}, this.resetForm)
243
-
244 307
           }
245 308
         })
246 309
       },
247 310
       getValue: function() {
248 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 313
         return form
254 314
       }
255 315
     }

+ 130 - 114
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -5,21 +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;">
8
+         <!-- <div class="mainCell" style="justify-content: space-between;font-size:14px;">
9 9
           <p >未收费:<span style="color: red">{{cal_one}}</span>人</p>
10 10
           <p>已收费:<span  style="color: red">{{cal_two}}</span>人</p>
11 11
           <p>已退费:<span  style="color: red">{{cal_three}}</span>人</p>
12
-        </div>
12
+        </div> -->
13 13
         <div class="mainCell">
14 14
           <el-radio-group v-model="radio" @change="changeRadio">
15
-            <el-radio :label=1>未收费</el-radio>
15
+            <!-- <el-radio :label=1>未收费</el-radio>
16 16
             <el-radio :label=2>已收费</el-radio>
17 17
             <el-radio :label=3>已退费</el-radio>
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>
18 22
             <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>-->
23 23
 
24 24
           </el-radio-group>
25 25
         </div>
@@ -210,10 +210,11 @@
210 210
         </div>
211 211
       </div>
212 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 218
     <el-dialog
218 219
       class="centerDialog"
219 220
       width="900px"
@@ -232,14 +233,16 @@
232 233
   import medicalInsuranceRefund from './components/medicalInsuranceRefund'
233 234
   import prescriptionTable from './components/prescriptionTable'
234 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 238
   import RegisterDialog from "./components/registerDialog";
238 239
   import treatPrint from './treatPrint'
240
+  import ChargeDialog from "./components/chargeDialog";
239 241
 
240 242
   const moment = require('moment')
241 243
   export default {
242 244
     components: {
245
+      ChargeDialog,
243 246
       RegisterDialog,
244 247
       BreadCrumb,
245 248
       noCharge,
@@ -253,13 +256,13 @@
253 256
     data() {
254 257
       return {
255 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 266
         tableHeight: '',
264 267
         fullHeight: document.documentElement.clientHeight,
265 268
         activeName: 'first',
@@ -281,7 +284,7 @@
281 284
           name: '杨美英',
282 285
           mdtrt_id: '1709946'
283 286
         }],
284
-        patientInfo: { id: 0 },
287
+        patientInfo: {id: 0},
285 288
         doctor: {},
286 289
         total: 0,
287 290
         state: '未收费',
@@ -291,11 +294,11 @@
291 294
         start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
292 295
         patient_id: 0,
293 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 304
     created() {
@@ -316,6 +319,53 @@
316 319
       this.getPatientList()
317 320
     },
318 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 369
       addCharges() {
320 370
         this.$refs.additionalCharges.show()
321 371
       },
@@ -379,7 +429,7 @@
379 429
                   price: prescription.project[b].price,
380 430
                   remark: prescription.project[b].remark,
381 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 435
                 tempProject.push(obj)
@@ -440,14 +490,14 @@
440 490
         if (this.curPrescriptions.type == 1) {
441 491
           if (this.curPrescriptions.advices != null) {
442 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 497
         } else {
448 498
           if (this.curPrescriptions.project != null) {
449 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,7 +505,7 @@
455 505
 
456 506
         if (this.curPrescriptions.addition != null) {
457 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 511
         return Math.floor(total * 100) / 100
@@ -493,45 +543,30 @@
493 543
 
494 544
         if (index == 1) {
495 545
 
546
+
496 547
         } else if (index == 2) {
497 548
 
498 549
           this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
499 550
 
500 551
         } else if (index == 3) {
501 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 557
           this.paramsObj = obj
507 558
           this.treatVisible = true
508 559
           // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
509 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 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 571
         } else if (index == 5) {
537 572
 
@@ -550,7 +585,7 @@
550 585
                 this.loadingtwo = false
551 586
                 return false
552 587
               } else {
553
-                this.$message({ message: '退费成功', type: 'success' })
588
+                this.$message({message: '退费成功', type: 'success'})
554 589
                 this.loadingtwo = false
555 590
 
556 591
               }
@@ -568,29 +603,9 @@
568 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,21 +636,21 @@
621 636
             for (let i = 0; i < response.data.data.list.length; i++) {
622 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 640
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
626 641
                   one_count = one_count + 1
627 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 647
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
633 648
 
634 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 654
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
640 655
                   three_count = three_count + 1
641 656
                 }
@@ -655,8 +670,8 @@
655 670
               case 1:
656 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 675
                     this.patientTableData.push(this.all_table_data[i])
661 676
                   }
662 677
 
@@ -664,8 +679,8 @@
664 679
                 break
665 680
               case 2:
666 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 684
                     this.patientTableData.push(this.all_table_data[i])
670 685
                   }
671 686
 
@@ -675,9 +690,9 @@
675 690
               case 3:
676 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 696
                     this.patientTableData.push(this.all_table_data[i])
682 697
                   }
683 698
 
@@ -692,17 +707,13 @@
692 707
 
693 708
             this.current_index = 0
694 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,21 +734,21 @@
723 734
             for (let i = 0; i < response.data.data.list.length; i++) {
724 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 738
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
728 739
                   one_count = one_count + 1
729 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 745
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
735 746
 
736 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 752
                 if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
742 753
                   three_count = three_count + 1
743 754
                 }
@@ -754,7 +765,7 @@
754 765
 
755 766
             this.current_index = 0
756 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,8 +780,8 @@
769 780
         this.getPatientInformation(val.patients.id, val.info.batch_number)
770 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 785
             this.current_index = i
775 786
           }
776 787
 
@@ -779,11 +790,11 @@
779 790
       },
780 791
 
781 792
       //获取患者的基本信息
782
-      getPatientInformation(id,batch_number) {
793
+      getPatientInformation(id, batch_number) {
783 794
         let params = {
784 795
           'record_date': this.record_date,
785 796
           'patient_id': id,
786
-          'number':batch_number,
797
+          'number': batch_number,
787 798
         }
788 799
         getPatientInfo(params).then(response => {
789 800
           if (response.data.state == 0) {
@@ -797,9 +808,9 @@
797 808
             this.addtions_charge = response.data.data.addtions_charge
798 809
 
799 810
             this.prescriptions = []
800
-            console.log("9991323242r5253535",response.data.data.prescription)
811
+            console.log("9991323242r5253535", response.data.data.prescription)
801 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 814
             for (let i = 0; i < response.data.data.prescription.length; i++) {
804 815
               var prescription = response.data.data.prescription[i]
805 816
 
@@ -857,14 +868,13 @@
857 868
               }
858 869
 
859 870
 
860
-
861 871
               let index = i + 1
862 872
               let obj = {
863 873
                 id: prescription.id,
864 874
                 name: '处方' + index,
865 875
                 advices: tempAdvice,
866 876
                 project: tempProject,
867
-                addition:tempAddition,
877
+                addition: tempAddition,
868 878
                 order_status: response.data.data.prescription[i].order_status,
869 879
                 type: response.data.data.prescription[i].type
870 880
               }
@@ -896,7 +906,7 @@
896 906
           this.tableHeight = tableHeight
897 907
           this.timer = true
898 908
           let that = this
899
-          setTimeout(function() {
909
+          setTimeout(function () {
900 910
             that.timer = false
901 911
           }, 400)
902 912
         }
@@ -920,7 +930,7 @@
920 930
     height: 100%;
921 931
     display: flex;
922 932
     flex-direction: column;
923
-    margin-top: 20px;
933
+    padding-top: 20px;
924 934
 
925 935
   .el-radio {
926 936
     margin-right: 5px;
@@ -932,7 +942,8 @@
932 942
     display: flex;
933 943
     align-items: center;
934 944
   }
935
-  .fixedCell{
945
+
946
+  .fixedCell {
936 947
     position: fixed;
937 948
     z-index: 99;
938 949
     right: 42px;
@@ -997,13 +1008,16 @@
997 1008
     flex-direction: column;
998 1009
     position: relative;
999 1010
   }
1000
-  .preTabs{
1001
-    height:100%;
1011
+
1012
+  .preTabs {
1013
+    height: 100%;
1002 1014
     display: flex;
1003 1015
     flex-direction: column;
1004
-    .el-tab-pane{
1005
-      height:auto !important;
1006
-    }
1016
+
1017
+  .el-tab-pane {
1018
+    height: auto !important;
1019
+  }
1020
+
1007 1021
   }
1008 1022
 
1009 1023
   .settlementTabs {
@@ -1071,12 +1085,14 @@
1071 1085
   }
1072 1086
 
1073 1087
   }
1074
-  .preTabs{
1075
-    .el-tabs__content{
1076
-      flex: 1;
1077
-      overflow-y: auto;
1078
-      padding: 5px 0 5px 5px;
1079
-    }
1088
+  .preTabs {
1089
+
1090
+  .el-tabs__content {
1091
+    flex: 1;
1092
+    overflow-y: auto;
1093
+    padding: 5px 0 5px 5px;
1094
+  }
1095
+
1080 1096
   }
1081 1097
 </style>
1082 1098
 

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

@@ -64,7 +64,7 @@
64 64
           <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
65 65
         </el-table-column>
66 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 68
         </el-table-column>
69 69
         <el-table-column align="center" prop="name" label="科室">
70 70
           <template slot-scope="scope">{{scope.row.p_info.department.name}}</template>

+ 29 - 6
src/xt_pages/outpatientCharges/summaryDetail.vue Zobrazit soubor

@@ -66,7 +66,7 @@
66 66
 
67 67
                       <div class="additionalBox">
68 68
                         <div class="additionalOne" v-for="(item,index) in additions" :key="index">
69
-                          <span>{{item.item_name}}</span>
69
+                          <span :title="item.item_name">{{item.item_name}}</span>
70 70
                           <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
71 71
72 72
                           <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
@@ -95,12 +95,12 @@
95 95
                         <li style="width:50%;">体重:{{patientInfo.weight?patientInfo.weight:''}}</li>
96 96
                         <li style="width:50%;">电话:{{patientInfo.phone}}</li>
97 97
                     </ul>
98
-                    <p class="centerRightTitle">收费信息</p>
98
+                    <p class="centerRightTitle" style="margin-top:10px;">收费信息</p>
99 99
                     <ul class="basicUl">
100 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 104
                         <li style="width:50%;">总金额</li>
105 105
                         <li style="width:50%;">{{order.medfee_sumamt}}元</li>
106 106
                     </ul>
@@ -360,7 +360,7 @@ export default {
360 360
     }
361 361
     .centerRightTitle{
362 362
         color:#409EFF;
363
-        padding: 10px 0;
363
+        padding:0 0 10px 0;
364 364
     }
365 365
     .basicUl{
366 366
         border-top: 1px solid #e5e5e5;
@@ -377,6 +377,29 @@ export default {
377 377
             font-size: 14px;
378 378
         }
379 379
     }
380
+    .additionalBox{
381
+      margin-top: 20px;
382
+      display: flex;
383
+      flex-wrap: wrap;
384
+      .additionalOne{
385
+        margin-right:20px;
386
+        margin-bottom:10px;
387
+        display: flex;
388
+        align-items: center;
389
+        >span{
390
+          white-space: nowrap;
391
+          overflow: hidden;
392
+          text-overflow: ellipsis;
393
+          width:80px;
394
+          display: inline-block;
395
+          font-size: 14px;
396
+        }
397
+      }
398
+      .deleteIcon{
399
+        color:red;
400
+        margin-left:5px;
401
+      }
402
+    }
380 403
 }
381 404
 </style>
382 405
 

+ 33 - 14
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -68,9 +68,6 @@
68 68
               placeholder="请输入内容"
69 69
             ></el-autocomplete>
70 70
           </el-form-item>
71
-          <el-form-item label="过敏病史: " prop="name" style="visibility: hidden;">
72
-            <el-input placeholder="" readonly></el-input>
73
-          </el-form-item>
74 71
         </el-form>
75 72
         <div class="tabsBox">
76 73
 
@@ -197,10 +194,14 @@
197 194
                         <el-table ref="multipleTableTwo" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="advices_template" border
198 195
                                   :row-style="{ color: '#303133' }"
199 196
                                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
200
-                                  highlight-current-row>
197
+                                  highlight-current-row
198
+                                  @select='selectTemplate'
199
+                                  @select-all="changeTemplateData"
200
+
201
+                        >
201 202
                           <el-table-column type="selection" width="40" align="center"></el-table-column>
202 203
                           <el-table-column prop="name" label="名称">
203
-                            <template slot-scope="scope">{{}}</template>
204
+                            <template slot-scope="scope">{{scope.row.name}}</template>
204 205
                           </el-table-column>
205 206
                           <!--<el-table-column label="规格" width="60">-->
206 207
                             <!--<template slot-scope="scope">33</template>-->
@@ -330,13 +331,13 @@
330 331
     data() {
331 332
       return {
332 333
         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: "其他"},
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
+          {value: 7,label: "其他"},
340 341
 
341 342
         ],
342 343
         multipleTableHeight:'',
@@ -392,10 +393,18 @@
392 393
         diagnoses: [],
393 394
         diagnose:'',
394 395
         curTotal: 0,
395
-        prescription_id: 0
396
+        prescription_id: 0,
397
+        tempDrugs:[]
398
+
396 399
       }
397 400
     },
398 401
     methods: {
402
+      selectTemplate(selection, row){
403
+        this.tempDrugs = selection
404
+
405
+      },changeTemplateData(selection){
406
+        this.tempDrugs = selection
407
+      },
399 408
       stockInCount: function(row) {
400 409
         let total = 0;
401 410
         if(row.stock_in != null) {
@@ -654,6 +663,11 @@
654 663
         this.curStatus = 0
655 664
         this.prescriptions = data
656 665
         this.curPrescriptions = this.prescriptions[0]
666
+        this.diagnose = info.diagnosis
667
+
668
+        if(this.diagnose == 0){
669
+          this.diagnose = ""
670
+        }
657 671
 
658 672
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
659 673
           this.curStatus = 1
@@ -1037,7 +1051,9 @@
1037 1051
           this.$message.error('该处方已经结算或者退费,无法继续添加药品或者项目')
1038 1052
           this.teamList = []
1039 1053
           this.curDrugs = []
1054
+          this.tempDrugs = []
1040 1055
           this.$refs.tables.clearSelection()
1056
+          this.$refs.multipleTableTwo.clearSelection()
1041 1057
           this.$refs.multipleTable.clearSelection()
1042 1058
           return
1043 1059
         }
@@ -1046,13 +1062,17 @@
1046 1062
           this.$message.error('改处方是药品,无法添加项目')
1047 1063
           this.teamList = []
1048 1064
           this.$refs.tables.clearSelection()
1065
+
1049 1066
           return
1050 1067
         }
1051 1068
 
1052 1069
         if (this.curStatus == 2 && this.rightTab == 1) {
1053 1070
           this.$message.error('改处方是项目,无法添加药品')
1054 1071
           this.curDrugs = []
1072
+          this.tempDrugs = []
1055 1073
           this.$refs.multipleTable.clearSelection()
1074
+          this.$refs.multipleTableTwo.clearSelection()
1075
+
1056 1076
           return
1057 1077
         }
1058 1078
 
@@ -1061,7 +1081,6 @@
1061 1081
             if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
1062 1082
               this.$message.error('改处方存在相同的项目,无法添加相同的项目')
1063 1083
               return
1064
-
1065 1084
             }
1066 1085
           }
1067 1086
         }

+ 2 - 5
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Zobrazit soubor

@@ -99,7 +99,7 @@
99 99
     <el-form class="recordForm" :model="case_history" ref="form" label-width="80px">
100 100
      
101 101
 
102
-      <el-form-item label="发病日期: " prop="name">
102
+      <el-form-item label="发病日期: " prop="name" style="width:49%;">
103 103
         <el-date-picker
104 104
           style="width:100%;"
105 105
           v-model="start_time"
@@ -107,12 +107,9 @@
107 107
           placeholder="选择日期">
108 108
         </el-date-picker>
109 109
       </el-form-item>
110
-      <el-form-item label="" prop="name">
110
+      <el-form-item label="" prop="name" style="width:49%;">
111 111
         <el-checkbox v-model="case_history.is_infect">是否传染</el-checkbox>
112 112
       </el-form-item>
113
-      <el-form-item label="" prop="name" style="visibility: hidden;">
114
-        <div></div>
115
-      </el-form-item>
116 113
       <el-form-item label="主诉:" style="width:49%;">
117 114
         <el-select @change="changeMainTemplate" v-model="value" style="width:100%;margin-bottom:10px;">
118 115
             <el-option

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -54,8 +54,8 @@
54 54
               <el-button size="small" ref="button_six"   @click="open(6)">治疗单</el-button>
55 55
               <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
56 56
             </el-popover>
57
-            <el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>
58
-            <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button>
57
+            <!--<el-button size="small" ref="button_three" @click="open(4)" type="primary">选择模板</el-button>-->
58
+            <!--<el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button>-->
59 59
           </div>
60 60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61 61
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>

+ 2 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue Zobrazit soubor

@@ -561,8 +561,8 @@ export default {
561 561
         let arr = this.medicalCare
562 562
         let str = ''
563 563
         arr.map(item => {
564
-          if(item.value == type)
565
-          str = item.label
564
+          if(item.id == type)
565
+          str = item.name
566 566
         })
567 567
         return str
568 568
       },

+ 3 - 3
src/xt_pages/workforce/components/tableData.vue Zobrazit soubor

@@ -1950,9 +1950,9 @@ export default {
1950 1950
     ScheduleItem
1951 1951
   },
1952 1952
   mounted() {
1953
-    console.log(this.tableContainHeight);
1953
+    console.log('this.tableContainHeight,',this.$refs.table.$el.offsetTop);
1954 1954
     this.tableContainHeight =
1955
-      window.innerHeight - this.$refs.table.$el.offsetTop - 160;
1955
+      window.innerHeight - this.$refs.table.$el.offsetTop - 120;
1956 1956
     console.log(this.tableContainHeight);
1957 1957
     // var theType = this.weekType(this.weekTime);
1958 1958
     // this.getSchedules(theType);
@@ -1963,7 +1963,7 @@ export default {
1963 1963
         if (window.fullHeight < 200) {
1964 1964
           that.tableHeight = 200;
1965 1965
         } else {
1966
-          that.tableHeight = window.fullHeight - 200;
1966
+          that.tableHeight = window.fullHeight - 160;
1967 1967
         }
1968 1968
       })();
1969 1969
     };