Browse Source

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

XMLWAN 2 years ago
parent
commit
515731a6bc

+ 6 - 1
src/main.js View File

@@ -28,7 +28,7 @@ import VueClipboard from 'vue-clipboard2'
28 28
 
29 29
 import * as filters from './filters' // global filters
30 30
 
31
-import * as voicePromptFun from './utils/voicePrompt' 
31
+import * as voicePromptFun from './utils/voicePrompt'
32 32
 
33 33
 import 'default-passive-events'
34 34
 Vue.prototype.voicePrompt = voicePromptFun.voicePrompt  //语音提醒
@@ -36,7 +36,12 @@ Vue.prototype.voicePrompt = voicePromptFun.voicePrompt  //语音提醒
36 36
 // import Popup from "./components/Popup/index"  //全局删除弹框控件
37 37
 // Vue.prototype.$popup = Popup.install
38 38
 // Vue.component(Popup)
39
+import FileSaver from 'file-saver'
39 40
 
41
+import XLSX from 'xlsx'
42
+Vue.prototype.$FileSaver = FileSaver; //设置全局
43
+
44
+Vue.prototype.$XLSX = XLSX; //设置全局
40 45
 import Computed from "../src/xt_pages/components/Computed/index"  //自动计算金额控件
41 46
 Vue.component("Computed",Computed)
42 47
 

+ 1 - 10
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -319,16 +319,7 @@
319 319
           >批量打印</el-button
320 320
         >
321 321
       </template>
322
-      <!-- <template v-if="this.template_id == 48">
323
-        <el-button
324
-          size="small"
325
-          icon="el-icon-printer"
326
-          :disabled="selecting_schs.length == 0"
327
-          @click="batchPrintAction"
328
-          type="primary"
329
-          >批量打印</el-button
330
-        >
331
-      </template> -->
322
+
332 323
     </div>
333 324
     <div class="app-container">
334 325
       <!-- <div class="filter-container">

+ 61 - 0
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -2293,6 +2293,44 @@ export default {
2293 2293
 
2294 2294
                 }
2295 2295
 
2296
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2297
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2298
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2299
+                    this.$emit('editKeepLoad', false)
2300
+                    return
2301
+                  }
2302
+                  if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2303
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2304
+                    this.$emit('editKeepLoad', false)
2305
+                    return
2306
+                  }
2307
+                  if(this.prescriptions[i].advices[b].day == NaN){
2308
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2309
+                    this.$emit('editKeepLoad', false)
2310
+                    return
2311
+                  }
2312
+                  if(this.prescriptions[i].advices[b].day == 0){
2313
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2314
+                    this.$emit('editKeepLoad', false)
2315
+                    return
2316
+                  }
2317
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2318
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2319
+                    this.$emit('editKeepLoad', false)
2320
+                    return
2321
+                  }
2322
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2323
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2324
+                    this.$emit('editKeepLoad', false)
2325
+                    return
2326
+                  }
2327
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2328
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2329
+                    this.$emit('editKeepLoad', false)
2330
+                    return
2331
+                  }
2332
+                }
2333
+
2296 2334
                 for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2297 2335
                   this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
2298 2336
                   this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
@@ -2301,6 +2339,29 @@ export default {
2301 2339
 
2302 2340
                 }
2303 2341
 
2342
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2343
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2344
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2345
+                //     this.$emit('editKeepLoad', false)
2346
+                //     return
2347
+                //   }
2348
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2349
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2350
+                //     this.$emit('editKeepLoad', false)
2351
+                //     return
2352
+                //   }
2353
+                //   if(this.prescriptions[i].project[b].day == " "){
2354
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2355
+                //     this.$emit('editKeepLoad', false)
2356
+                //     return
2357
+                //   }
2358
+                //   if(this.prescriptions[i].project[b].day == "0"){
2359
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2360
+                //     this.$emit('editKeepLoad', false)
2361
+                //     return
2362
+                //   }
2363
+                // }
2364
+
2304 2365
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2305 2366
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2306 2367
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)

+ 2 - 2
src/xt_pages/hospitalStation/index.vue View File

@@ -363,8 +363,8 @@ export default {
363 363
                 that.form.age = patient.age
364 364
                 that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
365 365
                 that.form.phone = patient.phone
366
-                that.form.id_card = patient.id_card_no
367
-                that.form.medical_insurance_card = response.data.data.number
366
+                that.form.id_card_no = patient.id_card_no
367
+                that.form.medicalInsuranceCard = response.data.data.number
368 368
 
369 369
                 that.InsuplcAdmdvs = []
370 370
                 // console.log(parseNumber(response.data.data.info.output.insuinfo.psn_type))

+ 1 - 1
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -191,7 +191,7 @@ export default {
191 191
                 console.log('res',this.list)
192 192
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
193 193
                                     this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
194
-                this.smalltoBIG(this.totalPrice)
194
+                this.smalltoBIG(this.list.order.medfee_sumamt)
195 195
                 var data = new Date(res.data.data.date * 1000);
196 196
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
197 197
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();

+ 27 - 3
src/xt_pages/hospitalStation/recordPrint.vue View File

@@ -11,8 +11,25 @@
11 11
       >
12 12
     </template>
13 13
 
14
-    <div class='dialysisPage' style="padding-top:40px;">
15
-      <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient="hispatient" :history="history" :patientid="patientid"></printOne>
14
+     <div class="dialysisPage" style="padding-top: 40px">
15
+      <printOne
16
+        v-if="org_id != 10217 && org_id != 0"
17
+        ref="printOne"
18
+        v-bind:childResponse="childResponse"
19
+        :patient="patient"
20
+        :hispatient="hispatient"
21
+        :history="history"
22
+        :patientid="patientid"
23
+      ></printOne>
24
+      <printTwo
25
+        v-if="org_id == 10217 || org_id == 0"
26
+        ref="printTwo"
27
+        v-bind:childResponse="childResponse"
28
+        :patient="patient"
29
+        :hispatient="hispatient"
30
+        :history="history"
31
+        :patientid="patientid"
32
+      ></printTwo>
16 33
     </div>
17 34
   </div>
18 35
 </template>
@@ -27,11 +44,13 @@ import print from "print-js";
27 44
 import { getSchedulePatientList } from '@/api/his/his'
28 45
 import { getPatientCaseHistory } from "@/api/project/project"
29 46
 import printOne from "./recordTemplate/printOne"
47
+import printTwo from "./recordTemplate/printTwo"
30 48
 export default {
31 49
   name: "dialysisPrintOrder",
32 50
   components: {
33 51
     BreadCrumb,
34
-    printOne
52
+    printOne,
53
+    printTwo
35 54
   },
36 55
   props:{
37 56
     patientid:Number,
@@ -51,6 +70,7 @@ export default {
51 70
       educationOptions:[],
52 71
       history:{},
53 72
       keyword:"",
73
+      org_id,
54 74
     };
55 75
   },
56 76
   methods: {
@@ -141,6 +161,10 @@ export default {
141 161
   },
142 162
   created() {
143 163
     // this.getPatientList()
164
+     this.org_id = this.$store.getters.xt_user.org.id;
165
+    console.log("=====", this.org_id);
166
+    this.$refs.printOne.show(this.patientid);
167
+    this.$refs.printTwo.show(this.patientid);
144 168
 
145 169
   },
146 170
   // computed:{

+ 337 - 0
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue View File

@@ -0,0 +1,337 @@
1
+<template>
2
+  <div id="prescription-print">
3
+    <div class="prescription-print">
4
+      <div class="printTitle">{{ orgname }}血透中心病历</div>
5
+       <div class="record_Title">
6
+            <div>姓名:{{patient.name?patient.name:''}}</div>
7
+            <div>性别:
8
+                <span v-if="patient.gender == 1">男</span>
9
+                <span v-if="patient.gender == 2">女</span>
10
+            </div>
11
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
+            <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
+        </div>
14
+      <div class="infoTitle" style="margin-top:20px;">
15
+        <div>姓名:{{ patient.name ? patient.name : "" }}</div>
16
+        <div>
17
+          家庭住址:{{ patient.home_address ? patient.home_address : "" }}
18
+        </div>
19
+      </div>
20
+      <div class="infoTitle">
21
+        <div>
22
+          性别:
23
+          <span v-if="patient.gender == 1">男</span>
24
+          <span v-if="patient.gender == 2">女</span>
25
+        </div>
26
+        <div>工作单位:</div>
27
+       
28
+      </div>
29
+      <div class="infoTitle">
30
+        <div>出生日期:</div>
31
+        <div>身份证号:</div>
32
+      </div>
33
+      <div class="infoTitle">
34
+        <div>联系人:</div>
35
+        <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36
+      </div>
37
+      <div class="otherInfo" style="border-bottom: 1px solid">
38
+        <div>进入透析时间:</div>
39
+        <div style="flex: 1"></div>
40
+      </div>
41
+      <div class="infoTitle">
42
+        <div style="width: 300px">原发病:</div>
43
+        <div>确诊肾衰日期:</div>
44
+      </div>
45
+      <div class="otherInfo">
46
+        <div>
47
+          药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
48
+        </div>
49
+      </div>
50
+      <div class="otherInfo">
51
+        <div>初始透析日期:</div>
52
+        <div style="flex: 1"></div>
53
+      </div>
54
+      <div class="otherInfo" style="border-bottom: 1px solid">
55
+        <div>血管通路:</div>
56
+        <div style="flex: 1"></div>
57
+      </div>
58
+
59
+      <div class="otherInfo" style="min-height: 60px;">
60
+        <div class="otherName">主诉:</div>
61
+        <div style="flex: 1">
62
+          {{ history.chief_conplaint ? history.chief_conplaint : "" }}
63
+        </div>
64
+      </div>
65
+
66
+      <div class="otherInfo" style="min-height: 200px;">
67
+        <div class="otherName">现病史:</div>
68
+        <div style="flex: 1">
69
+          {{
70
+            history.history_of_present_illness
71
+              ? history.history_of_present_illness
72
+              : ""
73
+          }}
74
+        </div>
75
+      </div>
76
+
77
+      <div class="otherInfo" style="min-height: 100px;">
78
+        <div class="otherName">既往史:</div>
79
+        <div style="flex: 1">
80
+          {{ history.past_history ? history.past_history : "" }}
81
+        </div>
82
+      </div>
83
+
84
+      <div class="otherInfo" style="min-height: 80px;">
85
+        <div class="otherName">个人史:</div>
86
+        <div style="flex: 1">
87
+          {{ history.personal_history ? history.personal_history : "" }}
88
+        </div>
89
+      </div>
90
+
91
+      <div class="otherInfo" style="min-height: 80px;">
92
+        <div class="otherName">家族史:</div>
93
+        <div style="flex: 1">
94
+          {{ history.family_history ? history.family_history : "" }}
95
+        </div>
96
+      </div>
97
+
98
+      <div style="page-break-after: always; margin-top: 50px"></div>
99
+    </div>
100
+
101
+    <div class="prescription-print">
102
+      <!-- <div class="printTitle">病历内容</div> -->
103
+      <div class="recordTitle">
104
+        <div>体格检查</div>
105
+        <div class="recordContent" style="height:250px;">
106
+            <div>
107
+          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
108
+          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
109
+          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
110
+          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
111
+            </div>
112
+          
113
+        </div>
114
+        <div></div>
115
+      </div>
116
+      <div class="recordTitle">
117
+        <div>专科检查</div>
118
+        <div class="recordContent"></div>
119
+      </div>
120
+      <div class="recordTitle" style="border-bottom: 1px solid">
121
+        <div>实验室及器械检查</div>
122
+        <div class="recordContent" style="height:250px;"></div>
123
+      </div>
124
+      <div style="display: flex; justify-content: end">
125
+        <div class="endInfo">
126
+          <div style="height: 100px">
127
+            诊断:{{ history.diagnostic ? history.diagnostic : "" }}
128
+          </div>
129
+          <div style="display: flex">
130
+            <div>医师:</div>
131
+            <div>
132
+              手签:{{
133
+                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
134
+              }}
135
+            </div>
136
+          </div>
137
+          <div style="text-align: center; letter-spacing: 3px">2000 年 2 月 4 日</div>
138
+        </div>
139
+      </div>
140
+    </div>
141
+  </div>
142
+</template>
143
+<script>
144
+import { jsGetAge, uParseTime } from "@/utils/tools";
145
+
146
+import { getDataConfig } from "@/utils/data";
147
+import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
148
+export default {
149
+  props: {
150
+    patient: Object,
151
+    hispatient: Object,
152
+    patientid: Number,
153
+    //   history:Object,
154
+  },
155
+  data() {
156
+    return {
157
+      educationOptions: [],
158
+      departmentList: [],
159
+      orgname: "",
160
+      history: {},
161
+      printDate: "",
162
+    };
163
+  },
164
+  methods: {
165
+    getAge(patient) {
166
+      var thisLen = patient.id_card_no.length;
167
+      var birth = "";
168
+      if (thisLen == 15) {
169
+        birth = "19" + patient.id_card_no.substr(6, 6);
170
+      } else {
171
+        birth = patient.id_card_no.substr(6, 8);
172
+      }
173
+      var births =
174
+        birth.substr(0, 4) +
175
+        "-" +
176
+        birth.substr(4, 2) +
177
+        "-" +
178
+        birth.substr(6, 2);
179
+      return jsGetAge(births, "-");
180
+    },
181
+    // show(val) {
182
+    //   this.patientid = val;
183
+    //   this.getAllDoctorList();
184
+    //   this.getPatientCaseHistory();
185
+    // },
186
+    getProfession(id) {
187
+      var name = "";
188
+      for (let i = 0; i < this.educationOptions.length; i++) {
189
+        if (id == this.educationOptions[i].id) {
190
+          name = this.educationOptions[i].name;
191
+        }
192
+      }
193
+      return name;
194
+    },
195
+    getAllDoctorList() {
196
+      getAllDoctorList().then((response) => {
197
+        if (response.data.state == 1) {
198
+          var doctor = response.data.data.doctor;
199
+
200
+          this.doctorList = doctor;
201
+          var department = response.data.data.department;
202
+          console.log("department", department);
203
+          this.departmentList = department;
204
+        }
205
+      });
206
+    },
207
+    getDoctor(id) {
208
+      var name = "";
209
+      for (let i = 0; i < this.doctorList.length; i++) {
210
+        if (id == this.doctorList[i].admin_user_id) {
211
+          name = this.doctorList[i].user_name;
212
+        }
213
+      }
214
+      return name;
215
+    },
216
+    getPatientCaseHistory() {
217
+      const params = {
218
+        patient_id: this.patientid,
219
+      };
220
+      console.log("病历22222", params);
221
+      getPatientCaseHistory(params).then((response) => {
222
+        if (response.data.state == 1) {
223
+          var patient = response.data.data.patient;
224
+          //    console.log("patinet",patient)
225
+          this.patient = patient;
226
+          var history = response.data.data.history;
227
+          console.log("中国history222222", history);
228
+          this.history = history;
229
+          var hispatient = response.data.data.hispatient;
230
+          //    console.log("hispatient",hispatient)
231
+          this.hispatient = hispatient;
232
+        }
233
+      });
234
+    },
235
+    getDeparment(id) {
236
+      var name = "";
237
+      for (let i = 0; i < this.departmentList.length; i++) {
238
+        if (id == this.departmentList[i].id) {
239
+          name = this.departmentList[i].name;
240
+        }
241
+      }
242
+      return name;
243
+    },
244
+  },
245
+  created() {
246
+    this.educationOptions = getDataConfig("patient", "education_types");
247
+    this.getAllDoctorList();
248
+    this.getPatientCaseHistory();
249
+
250
+    var xtuser = this.$store.getters.xt_user;
251
+    this.orgname = xtuser.org.org_name;
252
+    var data = new Date();
253
+    var month =
254
+      data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
255
+    var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
256
+    this.printDate = data.getFullYear() + "-" + month + "-" + date;
257
+  },
258
+  watch: {
259
+    patientid: function (val) {
260
+      console.log("val22332323", val);
261
+    },
262
+  },
263
+};
264
+</script>
265
+
266
+
267
+<style lang="scss" scoped>
268
+.prescription-print {
269
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
270
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
271
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
272
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
273
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
274
+  margin-bottom: 20px;
275
+  padding: 20px 10px;
276
+}
277
+.printTitle {
278
+  font-size: 22px;
279
+  text-align: center;
280
+  font-weight: bold;
281
+}
282
+.infoTitle {
283
+  display: flex;
284
+  margin-top: 10px;
285
+  line-height: 24px;
286
+  padding: 0 10px;
287
+}
288
+.infoTitle div {
289
+  width: 200px;
290
+}
291
+.otherInfo {
292
+  display: flex;
293
+  margin-top: 10px;
294
+  line-height: 24px;
295
+  padding: 0 10px;
296
+}
297
+.endInfo {
298
+  display: flex;
299
+  flex-direction: column;
300
+  justify-content: end;
301
+  margin-top: 10px;
302
+  line-height: 24px;
303
+}
304
+.endInfo div {
305
+  width: 300px;
306
+}
307
+.recordTitle {
308
+  display: flex;
309
+  justify-content: center;
310
+  flex-direction: column;
311
+  margin-top: 10px;
312
+  line-height: 24px;
313
+  padding: 0 10px;
314
+  border-top: 1px solid;
315
+}
316
+.recordTitle div {
317
+  width: 100%;
318
+  text-align: center;
319
+}
320
+.recordTitle .recordContent {
321
+  width: 100%;
322
+  height: 150px;
323
+  text-align: left;
324
+}
325
+
326
+.record_Title{
327
+    display: flex;
328
+    margin-top:10px;
329
+    line-height: 24px;
330
+    padding:0 10px;
331
+    border-bottom: 2px solid #000;
332
+}
333
+
334
+.record_Title div{
335
+  width: 200px;
336
+}
337
+</style>

+ 159 - 0
src/xt_pages/hospitalStation/shouJuPrint.vue View File

@@ -0,0 +1,159 @@
1
+<template>
2
+  <div>
3
+    <template>
4
+      <el-button
5
+          style="position:fixed;right:25px;z-index:999"
6
+          :loading="loading"
7
+          size="small"
8
+          icon="el-icon-printer"
9
+          @click="printThisPage"
10
+          type="primary"
11
+      >打印</el-button
12
+      >
13
+    </template>
14
+    <div class="app-container" style="padding-top:40px;">
15
+      <div class='dialysisPage'>
16
+        <shou-ju-print-one :paramsObj="invoiceParams"></shou-ju-print-one>
17
+      </div>
18
+    </div>
19
+  </div>
20
+</template>
21
+
22
+<script>
23
+import printOne from './invoiceTemplate/printOne'
24
+import printTwo from './invoiceTemplate/printTwo'
25
+import printThree from './invoiceTemplate/printThree'
26
+import ShouJuPrintOne from './shouJuTemplate/shouJuPrintOne'
27
+export default {
28
+  name: "shouJuPrint",
29
+  components: {
30
+    ShouJuPrintOne,
31
+    printOne,
32
+    printTwo,
33
+    printThree
34
+  },
35
+  props:{
36
+    invoiceParams:Object
37
+  },
38
+  data() {
39
+    return {
40
+      childResponse: {},
41
+      //   invoiceParams:{}
42
+      org_id:''
43
+
44
+    };
45
+  },
46
+  methods: {
47
+    getAdminUser(id) {
48
+      if (id == 0) {
49
+        return "";
50
+      }
51
+      if (id == undefined) {
52
+        return "";
53
+      }
54
+      for (let i = 0; i < this.adminUser.length; i++) {
55
+        if (this.adminUser[i].id == id) {
56
+          return this.adminUser[i].name;
57
+        }
58
+      }
59
+    },
60
+    getTime(value, temp) {
61
+      if (value == 0) {
62
+        return "";
63
+      }
64
+      if (value != undefined) {
65
+        return uParseTime(value, temp);
66
+      }
67
+      return "";
68
+    },
69
+    printThisPage() {
70
+
71
+      const style =
72
+          '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
73
+      printJS({
74
+        printable: "invoice-print",
75
+        type: "html",
76
+        style: style,
77
+        scanStyles: false
78
+      });
79
+      // if (this.org_template_info.template_id == 1) {
80
+      //   printJS({
81
+      //     printable: "dialysis-print-box",
82
+      //     type: "html",
83
+      //     style: style,
84
+      //     scanStyles: false
85
+      //   });
86
+      // }
87
+    },
88
+  },
89
+  created() {
90
+    console.log('this.invoiceParams',this.invoiceParams)
91
+    this.org_id = this.$store.getters.xt_user.org_id
92
+    console.log(this.org_id,'this.org_id')
93
+  },
94
+  watch:{
95
+    paramsObj:{//深度监听,可监听到对象、数组的变化
96
+      handler(val, oldVal){
97
+        this.invoiceParams = val
98
+
99
+      },
100
+      deep:true
101
+    }
102
+  }
103
+};
104
+</script>
105
+
106
+<style lang="scss" scoped>
107
+.printTitle{
108
+  font-size: 22px;
109
+  text-align: center;
110
+  font-weight: bold;
111
+}
112
+.infoMain{
113
+  display: flex;
114
+  flex-wrap: wrap;
115
+  border-bottom: 2px solid #000;
116
+  padding:0 10px;
117
+}
118
+.infoMain .infoP{
119
+  width: 33%;
120
+  line-height: 24px;
121
+}
122
+.prescriptionBox{
123
+  padding:0 10px;
124
+  height:600px;
125
+}
126
+.Rp{
127
+  font-size: 22px;
128
+  font-weight: bold;
129
+}
130
+.drugsBox{
131
+  padding-left: 40px;
132
+  margin-bottom: 10px;
133
+}
134
+.drugsBox p{
135
+  line-height: 30px;
136
+}
137
+.drugsOne{
138
+  line-height: 24px;
139
+}
140
+.drugsOne span{
141
+  margin-right: 20px;
142
+}
143
+.doctorBox{
144
+  display: flex;
145
+  justify-content: space-between;
146
+  padding:0 10px;
147
+  line-height: 24px;
148
+  border-bottom: 2px solid #000;
149
+}
150
+.actionBar{
151
+  display: flex;
152
+  justify-content: space-between;
153
+  line-height: 24px;
154
+  padding:0 10px;
155
+}
156
+.actionBar p{
157
+  width:150px;
158
+}
159
+</style>

+ 318 - 0
src/xt_pages/hospitalStation/shouJuTemplate/shouJuPrintOne.vue View File

@@ -0,0 +1,318 @@
1
+<template>
2
+  <div id='invoice-print'>
3
+
4
+    <div style="display:flex;justify-content: space-between;">
5
+      <!-- 机构名称 -->
6
+      <div>{{ list.org_name }}</div>
7
+      <!-- 单据号 -->
8
+      <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
9
+      <div></div>
10
+      <div  style="position: absolute;left:560px;top:70px;">
11
+        <!-- 发票序号 -->
12
+      </div>
13
+    </div>
14
+
15
+    <div style="display:flex;justify-content: space-between;">
16
+      <!-- 姓名 -->
17
+      <div style="position: absolute;top:90px;left:120px;"> {{ paramsObj.name }}</div>
18
+      <!-- 个人电脑编号 -->
19
+      <div style="position: absolute;top:90px;left:240px;"></div>
20
+      <!-- 科室 -->
21
+      <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
22
+      <!-- 床号 -->
23
+      <div style="position: absolute;top:90px;left:240px;"></div>
24
+    </div>
25
+
26
+    <div style="display:flex;justify-content: space-between;">
27
+      <!-- 住院号 -->
28
+      <div style="position: absolute;top:90px;left:120px;"> {{ list.his_hospital_record.number?list.order.mdtrt_id:'' }}</div>
29
+      <!-- 入院日期 -->
30
+      <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.in_hosptial_time?list.his_hospital_record.in_hosptial_time.spilt(' ')[0]:''}}</div>
31
+      <!-- 出院日期 -->
32
+      <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.out_hosptial_time?list.his_hospital_record.out_hosptial_time.spilt(' ')[0]:''}}</div>
33
+      <!-- 住院天数 -->
34
+      <div style="position: absolute;top:90px;left:240px;">{{getDay(list.his_hospital_record.in_hosptial_time.split(' ')[0] ,list.his_hospital_record.out_hosptial_time.split(' ')[0])}}</div>
35
+    </div>
36
+
37
+    <!-- <div style="display:flex;justify-content: space-between;">
38
+        <div style="position: absolute;top:110px;left:260px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
39
+        <div style="position: absolute;top:110px;left:440px;">{{ list.psn_cash_money  }}</div>
40
+        <div style="position: absolute;top:110px;left:580px;">门特</div>
41
+    </div> -->
42
+
43
+
44
+    <div style="display:flex;justify-content: space-between;">
45
+      <div style="position: absolute;top:160px;left:40px">西药</div>
46
+      <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
47
+      <div style="position: absolute;top:160px;left:180px">检查费</div>
48
+      <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
49
+      <div style="position: absolute;top:160px;left:340px">护理费</div>
50
+      <div style="position: absolute;top:160px;left:420px"></div>
51
+      <div style="position: absolute;top:160px;left:500px">麻醉费</div>
52
+      <div style="position: absolute;top:160px;left:580px"></div>
53
+    </div>
54
+    <div style="display:flex;justify-content: space-between;">
55
+      <div style="position: absolute;top:190px;left:40px">中成药费</div>
56
+      <div style="position: absolute;top:190px;left:110px"></div>
57
+      <div style="position: absolute;top:190px;left:180px">治疗费</div>
58
+      <div style="position: absolute;top:190px;left:260px">{{list.treatCostTotal}}</div>
59
+      <div style="position: absolute;top:190px;left:340px">CT核磁</div>
60
+      <div style="position: absolute;top:190px;left:420px"></div>
61
+      <div style="position: absolute;top:190px;left:500px">床位费</div>
62
+      <div style="position: absolute;top:190px;left:580px"></div>
63
+    </div>
64
+    <div style="display:flex;justify-content: space-between;">
65
+      <div style="position: absolute;top:220px;left:40px">中草药费</div>
66
+      <div style="position: absolute;top:220px;left:110px"></div>
67
+      <div style="position: absolute;top:220px;left:180px">手术费</div>
68
+      <div style="position: absolute;top:220px;left:260px">{{ list.operationCostTotal }}</div>
69
+      <div style="position: absolute;top:220px;left:340px">输血费</div>
70
+      <div style="position: absolute;top:220px;left:420px"></div>
71
+      <div style="position: absolute;top:220px;left:500px">取暖费</div>
72
+      <div style="position: absolute;top:220px;left:580px"></div>
73
+    </div>
74
+    <div style="display:flex;justify-content: space-between;">
75
+      <div style="position: absolute;top:250px;left:40px">高压氧费</div>
76
+      <div style="position: absolute;top:250px;left:110px"></div>
77
+      <div style="position: absolute;top:250px;left:180px">化验费</div>
78
+      <div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal }}</div>
79
+      <div style="position: absolute;top:250px;left:340px">氧气费</div>
80
+      <div style="position: absolute;top:250px;left:420px"></div>
81
+      <div style="position: absolute;top:250px;left:500px">其他</div>
82
+      <div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal }}</div>
83
+    </div>
84
+
85
+    <div>
86
+            <span>
87
+            <span  style="position: absolute;top:280px;left:180px">
88
+                <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
89
+                    {{ zhongwen.substring(0,1) }}
90
+                </span>
91
+                <span v-else>零</span>
92
+            </span>
93
+            <span  style="position: absolute;top:280px;left:220px">
94
+                <span v-if="zhongwen.indexOf('万') > -1">
95
+                    {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
96
+                </span>
97
+                <span v-else>零</span>
98
+            </span>
99
+            <span  style="position: absolute;top:280px;left:260px">
100
+                <span v-if="zhongwen.indexOf('仟') > -1">
101
+                    {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
102
+                </span>
103
+                <span v-else>零</span>
104
+            </span>
105
+            <span  style="position: absolute;top:280px;left:300px">
106
+                <span v-if="zhongwen.indexOf('佰') > -1">
107
+                    {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
108
+                </span>
109
+                <span v-else>零</span>
110
+            </span>
111
+            <span style="position: absolute;top:280px;left:340px">
112
+                <span v-if="zhongwen.indexOf('拾') > -1">
113
+                    {{ zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
114
+                </span>
115
+                <span v-else>零</span>
116
+            </span>
117
+            <span  style="position: absolute;top:280px;left:380px">
118
+                <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) != '拾'">
119
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
120
+                </span>
121
+                <span v-else>零</span>
122
+            </span>
123
+            <span  style="position: absolute;top:280px;left:420px">
124
+                <span v-if="zhongwen.indexOf('角') > -1">
125
+                    {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
126
+                </span>
127
+                <span v-else>零</span>
128
+            </span>
129
+            <span  style="position: absolute;top:280px;left:460px">
130
+                <span v-if="zhongwen.indexOf('分') > -1">
131
+                    {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
132
+                </span>
133
+                <span v-else>零</span>
134
+            </span>
135
+            </span>
136
+      <span style="position: absolute;top:280px;left:540px">{{ totalPrice }}</span>
137
+    </div>
138
+
139
+
140
+    <div style="position: absolute;top:310px;left:320px">
141
+      <!-- 个人账户支付 -->
142
+      {{list.order.acct_pay?list.order.acct_pay:''}}
143
+    </div>
144
+    <div style="position: absolute;top:310px;left:380px">
145
+      <!-- 统筹支付 -->
146
+      {{list.order.hifp_pay?list.order.hifp_pay:''}}
147
+    </div>
148
+    <div style="position: absolute;top:310px;left:500px">
149
+      {{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
150
+      <!-- 现金支付 -->
151
+    </div>
152
+    <div style="position: absolute;top:340px;left:320px">
153
+      {{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
154
+      <!-- 公务员补助 -->
155
+    </div>
156
+    <div style="position: absolute;top:340px;left:380px">
157
+      {{list.order.maf_pay?list.order.maf_pay:''}}
158
+      <!-- 医疗救助 -->
159
+    </div>
160
+    <div style="position: absolute;top:340px;left:500px">
161
+      <!-- 大病 -->
162
+      {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
163
+
164
+
165
+    </div>
166
+    <div style="position: absolute;top:340px;left:560px">
167
+      <!-- 其他基金支付 -->
168
+      {{list.order.oth_pay?list.order.oth_pay:''}}
169
+
170
+    </div>
171
+    <div style="position: absolute;top:370px;left:320px">
172
+      <!-- 预交款合计 -->
173
+
174
+    </div>
175
+    <div style="position: absolute;top:370px;left:380px">
176
+      <!-- 补交款 -->
177
+    </div>
178
+    <div style="position: absolute;top:370px;left:500px">
179
+      <!-- 应退款 -->
180
+    </div>
181
+    <div>
182
+      <div style="position: absolute;top:400px;left:40px">
183
+        <!-- 开票日期 -->
184
+        {{printDate}}
185
+
186
+      </div>
187
+      <div style="position: absolute;top:400px;left:280px">
188
+        <!-- 结算日期: -->
189
+        {{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
190
+      </div>
191
+      <div style="position: absolute;top:400px;left:580px">
192
+        <!-- 经手人: -->
193
+        {{list.admin_user_name}}
194
+      </div>
195
+    </div>
196
+  </div>
197
+</template>
198
+
199
+<script>
200
+import { getInvoice } from '@/api/project/project'
201
+export default {
202
+  props:{
203
+    paramsObj:Object
204
+  },
205
+  data(){
206
+    return{
207
+      list:{},
208
+      printDate:'',
209
+      zhongwen:'',
210
+      totalPrice:0.0,
211
+      org_id:'',
212
+      org_name:''
213
+    }
214
+  },
215
+  created(){
216
+    console.log('paramsObj',this.paramsObj)
217
+    let params = {
218
+      order_id: this.paramsObj.order_id,
219
+      patient_id: this.paramsObj.patient_id,
220
+    }
221
+    this.getInvoice(params)
222
+    // var data = new Date();
223
+    // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
224
+    // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
225
+    // this.printDate = data.getFullYear() + "-" + month + "-" + date;
226
+    // this.smalltoBIG(982732.21)
227
+    this.org_id = this.$store.getters.xt_user.org_id
228
+    this.org_name = this.$store.getters.xt_user.org.org_name
229
+  },
230
+  methods:{
231
+    getDay(dateString1,dateString2){
232
+      var  startDate = Date.parse(dateString1);
233
+      var  endDate = Date.parse(dateString2);
234
+      if (startDate>endDate){
235
+        return 0;
236
+      }
237
+      if (startDate==endDate){
238
+        return 1;
239
+      }
240
+      var days=(endDate - startDate)/(1*24*60*60*1000);
241
+      return  days;
242
+
243
+    },
244
+    getInvoice(params){
245
+      getInvoice(params).then((res) => {
246
+        console.log('res',res)
247
+        this.list = res.data.data
248
+        this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
249
+            this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
250
+        this.smalltoBIG(this.totalPrice)
251
+        // var data = new Date(res.data.data.date * 1000);
252
+        var data = new Date(this.paramsObj.setl_time);
253
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
254
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
255
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
256
+      })
257
+    },
258
+    smalltoBIG(n) {
259
+      // let fraction = ['角', '分'];
260
+      // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
261
+      // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
262
+      // let head = price < 0 ? '欠' : '';
263
+      // price = Math.abs(price);
264
+      // let upper = '';
265
+      // for (let i = 0; i < fraction.length; i++) {
266
+      // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
267
+      // }
268
+      // upper = upper || '整';
269
+      // price = Math.floor(price);
270
+      // for (let i = 0; i < unit[0].length && price > 0; i++) {
271
+      // let p = '';
272
+      // for (let j = 0; j < unit[1].length && price > 0; j++) {
273
+      //     p = digit[price % 10] + unit[1][j] + p;
274
+      //     price = Math.floor(price / 10);
275
+      // }
276
+      // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
277
+      // }
278
+      // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
279
+      // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
280
+      if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
281
+        return "数据非法";  //判断数据是否大于0
282
+      }
283
+
284
+      var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
285
+      n += "00";
286
+
287
+      var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
288
+
289
+      if (indexpoint >= 0){
290
+
291
+        n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
292
+      }
293
+
294
+      unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
295
+      for (var i=0; i < n.length; i++){
296
+        str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
297
+      }
298
+
299
+      this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
300
+      console.log(this.zhongwen)
301
+    },
302
+
303
+  },
304
+  watch:{
305
+    paramsObj:{//深度监听,可监听到对象、数组的变化
306
+      handler(val, oldVal){
307
+        let params = {
308
+          order_id: val.order_id,
309
+          patient_id: val.patient_id,
310
+        }
311
+        this.getInvoice(params)
312
+
313
+      },
314
+      deep:true
315
+    }
316
+  }
317
+}
318
+</script>

+ 27 - 0
src/xt_pages/hospitalStation/summary.vue View File

@@ -121,6 +121,7 @@
121 121
                           上传结算清单
122 122
                         </el-button>
123 123
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
124
+<!--                      <el-button size="mini" type="primary" @click="shouJuPrint(scope.row)">打印收据</el-button>-->
124 125
 
125 126
 <!--                        <el-button size="mini" type="primary" @click="refundOne(scope.row)">-->
126 127
 <!--                            撤销出院-->
@@ -196,6 +197,17 @@
196 197
                 :visible.sync="invoiceVisible">
197 198
             <invoicePrint ref="print" :invoiceParams='invoiceParams'></invoicePrint>
198 199
         </el-dialog>
200
+
201
+
202
+      <el-dialog
203
+          class="centerDialog"
204
+          width="1200px"
205
+          title="打印"
206
+          :visible.sync="shouJuVisible">
207
+<!--        <invoicePrint ref="print" :invoiceParams='invoiceParams'></invoicePrint>-->
208
+<!--        <shou-ju-print></shou-ju-print>-->
209
+        <shou-ju-print ref="shouJuPrint" :invoiceParams='invoiceParams'></shou-ju-print>
210
+      </el-dialog>
199 211
         <!-- <el-dialog
200 212
                 class="centerDialog"
201 213
                 width="1200px"
@@ -221,11 +233,13 @@
221 233
   import axios from 'axios'
222 234
   import invoicePrint from './invoicePrint'
223 235
   import statementPrint from './statementPrint'
236
+  import ShouJuPrint from './shouJuPrint'
224 237
 
225 238
   // import settlementPrint from './settlementPrint'
226 239
 
227 240
   export default {
228 241
     components: {
242
+      ShouJuPrint,
229 243
       NewStatementPrintTwo,
230 244
       NewStatementPrint,
231 245
       BreadCrumb,
@@ -272,6 +286,7 @@
272 286
           { value: 1, label: '住院' },
273 287
           { value: 2, label: '门诊' }
274 288
         ],
289
+        shouJuVisible:false,
275 290
 
276 291
       }
277 292
     },
@@ -866,6 +881,18 @@
866 881
         this.invoiceParams = paramsObj
867 882
         console.log(this.invoiceParams,'999')
868 883
         this.invoiceVisible = true
884
+      },shouJuPrint(obj){
885
+        let paramsObj = {
886
+          order_id: obj.id,
887
+          patient_id: obj.patient_id,
888
+          name: obj.patient.name,
889
+          age: obj.age,
890
+          gend: obj.gend,
891
+          setl_time: obj.setl_time
892
+        }
893
+        this.invoiceParams = paramsObj
894
+        this.shouJuVisible = true
895
+
869 896
       }
870 897
     }, created() {
871 898
 

+ 6 - 10
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -3,7 +3,6 @@
3 3
     <template>
4 4
       <el-button
5 5
         style="position:fixed;right:25px;z-index:999"
6
-        :loading="loading"
7 6
         size="small"
8 7
         icon="el-icon-printer"
9 8
         @click="printThisPage"
@@ -78,12 +77,11 @@
78 77
             this.order['laboratoryCostTotal'] = response.data.data.laboratoryCostTotal
79 78
             this.order['treatCostTotal'] = response.data.data.treatCostTotal
80 79
 
81
-
80
+            console.log("~~~~~")
82 81
             this.patient = response.data.data.patient
83 82
             this.admin = response.data.data.admin_info
84 83
             this.his_hospital = response.data.data.his_hospital
85 84
             var order_info = response.data.data.order_info
86
-
87 85
             if(this.$store.getters.xt_user.org_id == 10215 || this.$store.getters.xt_user.org_id == 0){
88 86
               //获取所有项目类型进行去重
89 87
               let med_chrgitm_types = []
@@ -110,18 +108,20 @@
110 108
                     tempDetails.push(order_info[b])
111 109
                   }
112 110
                 }
111
+                console.log("~~~~~~~~")
112
+                console.log(tempDetails)
113 113
 
114
+                console.log("1111="+tempDetails)
114 115
                 obj.details = this.setNewData(tempDetails)
116
+                console.log("22222="+obj.details)
115 117
                 this.list =  this.list.concat(obj.details)
118
+                console.log("222233332="+ this.list)
116 119
               }
117
-
118 120
               let newobj = {}
119 121
               newobj['total'] = this.order.medfee_sumamt
120 122
               newobj['is_total'] = 1
121 123
               this.list.push(newobj)
122
-
123 124
             }else{
124
-
125 125
               //获取所有项目类型进行去重
126 126
               let med_chrgitm_types = []
127 127
               for (let i = 0; i < order_info.length; i++) {
@@ -132,9 +132,7 @@
132 132
                 obj[next] ? '' : obj[next] = true && cur.push(next)
133 133
                 return cur
134 134
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
135
-
136 135
               let tempOrderInfo = []
137
-
138 136
               for (let i = 0; i < med_chrgitm_types.length; i++) {
139 137
                 let obj = {
140 138
                   total: 0,
@@ -146,10 +144,8 @@
146 144
                     tempDetails.push(order_info[b])
147 145
                   }
148 146
                 }
149
-
150 147
                 obj.details = this.setNewData(tempDetails)
151 148
                 obj.total = this.getTotal(obj.details)
152
-
153 149
                 obj.details.push({
154 150
                   total: obj.total,
155 151
                   is_total: 1,

+ 12 - 12
src/xt_pages/outpatientCharges/allListTemplate/summaryPrint.vue View File

@@ -13,54 +13,54 @@
13 13
     <div class="allListInfo" style="border-bottom: 1px solid;">
14 14
       <div>预交款:</div>
15 15
       <div>总费用:{{ order.medfee_sumamt }}</div>
16
-      <div>门诊日期:</div>
16
+      <div>门诊日期:{{ hospital.in_hosptial_time? hospital.in_hosptial_time.split(' ')[0]:''}}</div>
17 17
     </div>
18 18
 
19 19
     <div class="allListInfo">
20 20
       <div>
21 21
         西药:&nbsp;&nbsp;&nbsp;{{
22
-          order.westernMedicineCostTotal ? order.westernMedicineCostTotal : ""
22
+          order.westernMedicineCostTotal? order.westernMedicineCostTotal.toFixed(2)  : ""
23 23
         }}
24 24
       </div>
25 25
       <div>
26 26
         中成药:{{
27 27
           order.chineseTraditionalMedicineCostTotal
28
-            ? order.chineseTraditionalMedicineCostTotal
29
-            : ""
28
+            ? order.chineseTraditionalMedicineCostTotal.toFixed(2)
29
+              : ""
30 30
         }}
31 31
       </div>
32 32
       <div>中草药:</div>
33 33
     </div>
34 34
 
35 35
     <div class="allListInfo">
36
-      <div>检查费:{{ order.checkCostTotal ? order.checkCostTotal : "" }}</div>
36
+      <div>检查费:{{ order.checkCostTotal ? order.checkCostTotal.toFixed(2)  : "" }}</div>
37 37
       <div>输氧费:</div>
38 38
       <div>
39
-        手术费:{{ order.operationCostTotal ? order.operationCostTotal : "" }}
39
+        手术费:{{ order.operationCostTotal ? order.operationCostTotal.toFixed(2)  : "" }}
40 40
       </div>
41 41
     </div>
42 42
 
43 43
     <div class="allListInfo">
44 44
       <div>
45
-        化验费:{{ order.laboratoryCostTotal ? order.laboratoryCostTotal : "" }}
45
+        化验费:{{ order.laboratoryCostTotal ? order.laboratoryCostTotal.toFixed(2)  : "" }}
46 46
       </div>
47 47
       <div>输血费:</div>
48 48
       <div>
49
-        诊察费:{{ order.zhenChaCostTotal ? order.zhenChaCostTotal : "" }}
49
+        诊察费:{{ order.zhenChaCostTotal ? order.zhenChaCostTotal.toFixed(2)  : "" }}
50 50
       </div>
51 51
     </div>
52 52
 
53 53
     <div class="allListInfo">
54
-      <div>治疗费:{{ order.treatCostTotal ? order.treatCostTotal : "" }}</div>
54
+      <div>治疗费:{{ order.treatCostTotal ? order.treatCostTotal.toFixed(2)  : "" }}</div>
55 55
       <div>护理费:</div>
56
-      <div>床位费:{{ order.bedCostTotal ? order.bedCostTotal : "" }}</div>
56
+      <div>床位费:{{ order.bedCostTotal ? order.bedCostTotal.toFixed(2)  : "" }}</div>
57 57
     </div>
58 58
     <div class="allListInfo">
59 59
       <div>麻醉费:</div>
60 60
       <div>
61
-        材料费:{{ order.materialCostTotal ? order.materialCostTotal : "" }}
61
+        材料费:{{ order.materialCostTotal ? order.materialCostTotal.toFixed(2)  : "" }}
62 62
       </div>
63
-      <div>其他:{{ order.otherCostTotal ? order.otherCostTotal : "" }}</div>
63
+      <div>其他:{{ order.otherCostTotal ? order.otherCostTotal.toFixed(2)  : "" }}</div>
64 64
     </div>
65 65
     <!--    <div style="display:flex;justify-content: space-between;">-->
66 66
     <!--          <div style="position: absolute;top:160px;left:40px">西药</div>-->

+ 22 - 4
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -83,8 +83,26 @@
83 83
 
84 84
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
85 85
 
86
+          <div v-if="this.$store.getters.xt_user.org_id == 10340">
87
+                        <el-button size="small"
88
+                                   @click="openZb(1)"
89
+                                   type="primary">登记
90
+                        </el-button>
91
+
92
+                        <el-button  size="small"
93
+                                   @click="openZb(2)"
94
+                                   type="primary">记账
95
+                        </el-button>
96
+
97
+                        <el-button   size="small"
98
+                                   @click="openZb(3)"
99
+                                   type="primary">撤销记账
100
+                        </el-button>
86 101
 
87
-          <div>
102
+          </div>
103
+
104
+
105
+          <div  v-if="this.$store.getters.xt_user.org_id != 10340">
88 106
 <!--            <el-button size="small"-->
89 107
 <!--                       @click="openZb(1)"-->
90 108
 <!--                       type="primary">登记-->
@@ -167,14 +185,14 @@
167 185
                             <div style="margin-bottom:10px;float: right">
168 186
                               <div>
169 187
                                 <el-button
170
-                                    v-if="(hisPatientInfo.id_card_type != 3 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0)"
188
+                                    v-if="(hisPatientInfo.id_card_type != 3 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0 &&  items.prescriptions[0].order.id == 0 && this.$store.getters.xt_user.org_id != 10340)"
171 189
                                     size="small"
172 190
                                     @click="open(8,items.med_type,items.prescriptions[0].order,items.prescriptions)"
173 191
                                     type="primary"
174 192
                                 >预结算
175 193
                                 </el-button>
176 194
                                 <el-button
177
-                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"
195
+                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10340"
178 196
                                     size="small"
179 197
                                     @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)"
180 198
                                     type="primary"
@@ -185,7 +203,7 @@
185 203
 
186 204
 
187 205
                                 <el-button v-loading="loadingtwo"
188
-                                           v-if="(hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3"
206
+                                           v-if="((hisPatientInfo.id > 0 && items.curPrescriptions.order.id == 0) || items.curPrescriptions.order.order_status == 1 ||  items.curPrescriptions.order.order_status == 3)&&this.$store.getters.xt_user.org_id != 10340"
189 207
                                            size="small"
190 208
                                            @click="open(4,items.med_type,items.curPrescriptions.order,items.prescriptions)"
191 209
                                            type="primary">收费

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

@@ -82,7 +82,6 @@
82 82
                                 @change="changeTime"
83 83
                                 :editable="false"
84 84
                                 style="width: 150px;"
85
-
86 85
                                 type="date"
87 86
                                 placeholder="选择开始时间"
88 87
                                 align="right"
@@ -2036,7 +2035,13 @@
2036 2035
 
2037 2036
       },
2038 2037
       setMonthData(info, admin_info, doctors, department, hisPatientInfo, month_data, last_info) {
2039
-        this.curMonthPrescriptions = {}
2038
+        // this.start_time = moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD')
2039
+        // this.end_time = moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD')
2040
+        this.start_time = moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD')
2041
+            this.end_time = moment(new Date()).add('year', 0).format('YYYY-MM-DD')
2042
+            this.editableTabsValueTwo =  '处方1'
2043
+
2044
+            this.curMonthPrescriptions = {}
2040 2045
         this.curPrescriptions = {}
2041 2046
         // this.$refs.tabProjectTeam.clearSelection()
2042 2047
 
@@ -2257,6 +2262,8 @@
2257 2262
                   return
2258 2263
                 }
2259 2264
               }
2265
+
2266
+
2260 2267
               this.$emit('editKeepLoad', true)
2261 2268
               let params = {
2262 2269
                 p_type: 2,
@@ -2289,18 +2296,38 @@
2289 2296
                 }
2290 2297
 
2291 2298
                 for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2299
+                  if(this.prescriptions[i].advices[b].delivery_way == "" ){
2300
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
2301
+                    this.$emit('editKeepLoad', false)
2302
+                    return
2303
+                  }
2292 2304
                   if(this.prescriptions[i].advices[b].execution_frequency == "" ){
2293
-                    this.$message.error("请输入处方"+ (b+1) +"频率")
2305
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
2306
+                    this.$emit('editKeepLoad', false)
2307
+                    return
2308
+                  }
2309
+                  if(this.prescriptions[i].advices[b].day == NaN){
2310
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
2311
+                    this.$emit('editKeepLoad', false)
2312
+                    return
2313
+                  }
2314
+                  if(this.prescriptions[i].advices[b].day == 0){
2315
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
2294 2316
                     this.$emit('editKeepLoad', false)
2295 2317
                     return
2296 2318
                   }
2297
-                  if(this.prescriptions[i].advices[b].day == NaN ){
2298
-                    this.$message.error("请输入处方"+(b+1)+"天数")
2319
+                  if(this.prescriptions[i].advices[b].prescribing_number == ""){
2320
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
2299 2321
                     this.$emit('editKeepLoad', false)
2300 2322
                     return
2301 2323
                   }
2302
-                     if(this.prescriptions[i].advices[b].prescribing_number == "" ){
2303
-                    this.$message.error("请输入处方"+(b+1)+"总量")
2324
+                  if(this.prescriptions[i].advices[b].prescribing_number == "0"){
2325
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
2326
+                    this.$emit('editKeepLoad', false)
2327
+                    return
2328
+                  }
2329
+                  if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
2330
+                    this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
2304 2331
                     this.$emit('editKeepLoad', false)
2305 2332
                     return
2306 2333
                   }
@@ -2314,6 +2341,29 @@
2314 2341
 
2315 2342
                 }
2316 2343
 
2344
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2345
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2346
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2347
+                //     this.$emit('editKeepLoad', false)
2348
+                //     return
2349
+                //   }
2350
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2351
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2352
+                //     this.$emit('editKeepLoad', false)
2353
+                //     return
2354
+                //   }
2355
+                //   if(this.prescriptions[i].project[b].day == " "){
2356
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2357
+                //     this.$emit('editKeepLoad', false)
2358
+                //     return
2359
+                //   }
2360
+                //   if(this.prescriptions[i].project[b].day == "0"){
2361
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2362
+                //     this.$emit('editKeepLoad', false)
2363
+                //     return
2364
+                //   }
2365
+                // }
2366
+
2317 2367
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2318 2368
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
2319 2369
                   this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -105,7 +105,7 @@ export default {
105 105
       const style =
106 106
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
107 107
        const style1 =
108
-        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;}}";
108
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
109 109
       
110 110
       
111 111
       if (this.org_id != 10217 && this.org_id != 0) {

+ 46 - 20
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue View File

@@ -1,8 +1,17 @@
1 1
 <template>
2 2
   <div id="prescription-print">
3 3
     <div class="prescription-print">
4
-      <div class="printTitle">{{ orgname }} &nbsp;&nbsp; 血透中心病历</div>
5
-      <div class="infoTitle">
4
+      <div class="printTitle">{{ orgname }}血透中心病历</div>
5
+       <div class="record_Title">
6
+            <div>姓名:{{patient.name?patient.name:''}}</div>
7
+            <div>性别:
8
+                <span v-if="patient.gender == 1">男</span>
9
+                <span v-if="patient.gender == 2">女</span>
10
+            </div>
11
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
+            <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
+        </div>
14
+      <div class="infoTitle" style="margin-top:20px;">
6 15
         <div>姓名:{{ patient.name ? patient.name : "" }}</div>
7 16
         <div>
8 17
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
@@ -14,30 +23,33 @@
14 23
           <span v-if="patient.gender == 1">男</span>
15 24
           <span v-if="patient.gender == 2">女</span>
16 25
         </div>
17
-        <div>工作单位:{{patient.work_unit}}</div>
26
+        <div>工作单位:</div>
18 27
        
19 28
       </div>
20 29
       <div class="infoTitle">
21
-        <div>出生日期:{{getTime(patient.birth)}}</div>
22
-        <div>身份证号:{{patient.id_card_no}}</div>
30
+        <div>出生日期:</div>
31
+        <div>身份证号:</div>
23 32
       </div>
24 33
       <div class="infoTitle">
25
-        <div>联系人:{{patient.contact_name}}</div>
34
+        <div>联系人:</div>
26 35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
27 36
       </div>
28 37
       <div class="otherInfo" style="border-bottom: 1px solid">
29
-        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
38
+        <div>进入透析时间:</div>
30 39
         <div style="flex: 1"></div>
31 40
       </div>
32 41
       <div class="infoTitle">
33
-        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
34
-        <div>确诊肾衰日期:{{getTime(history.confirm_failure_date)}}</div>
42
+        <div style="width: 300px">原发病:</div>
43
+        <div>确诊肾衰日期:</div>
35 44
       </div>
36
-      <div class="infoTitle">
37
-        <div style="width: 300px">
45
+      <div class="otherInfo">
46
+        <div>
38 47
           药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
39 48
         </div>
40
-        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
49
+      </div>
50
+      <div class="otherInfo">
51
+        <div>初始透析日期:</div>
52
+        <div style="flex: 1"></div>
41 53
       </div>
42 54
       <div class="otherInfo" style="border-bottom: 1px solid">
43 55
         <div>血管通路:</div>
@@ -90,7 +102,16 @@
90 102
       <!-- <div class="printTitle">病历内容</div> -->
91 103
       <div class="recordTitle">
92 104
         <div>体格检查</div>
93
-        <div class="recordContent" style="height:250px;"></div>
105
+        <div class="recordContent" style="height:250px;">
106
+          <div>
107
+          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
108
+          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
109
+          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
110
+          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
111
+          </div>
112
+
113
+        </div>
114
+        <div></div>
94 115
       </div>
95 116
       <div class="recordTitle">
96 117
         <div>专科检查</div>
@@ -220,13 +241,6 @@ export default {
220 241
       }
221 242
       return name;
222 243
     },
223
-     getTime(val) {
224
-         if(val == ""){
225
-          return ""
226
-         }else {
227
-          return uParseTime(val, '{y}-{m}-{d}')
228
-         }
229
-      },
230 244
   },
231 245
   created() {
232 246
     this.educationOptions = getDataConfig("patient", "education_types");
@@ -308,4 +322,16 @@ export default {
308 322
   height: 150px;
309 323
   text-align: left;
310 324
 }
325
+
326
+.record_Title{
327
+    display: flex;
328
+    margin-top:10px;
329
+    line-height: 24px;
330
+    padding:0 10px;
331
+    border-bottom: 2px solid #000;
332
+}
333
+
334
+.record_Title div{
335
+  width: 200px;
336
+}
311 337
 </style>

+ 11 - 3
src/xt_pages/user/components/PatientDetail.vue View File

@@ -269,9 +269,15 @@
269 269
 
270 270
                 <el-radio-group v-model="form.troble_shoot" disabled>
271 271
                   <el-radio :label="1">是</el-radio>
272
-                  <el-radio :label="2">否</el-radio>
272
+                  <el-radio :label="2">否</el-radio>m
273 273
                 </el-radio-group>
274 274
               </el-form-item>
275
+
276
+              <el-form-item label="人员编码: ">
277
+                <el-input
278
+                    v-model="form.zb_patient_id"
279
+                ></el-input>
280
+              </el-form-item>
275 281
             </el-col>
276 282
 
277 283
             <!--<el-col :span="16" >-->
@@ -964,7 +970,7 @@
964 970
                 <span class="proj_title">日期:</span>
965 971
                 <!-- {{ getTime(patientPrint.created_time) }} -->
966 972
                 <span v-if="org_id ==3907 || org_id == 9671">{{ getTime(patientPrint.created_time) }}</span>
967
-                <span v-else>{{printDate}}</span> 
973
+                <span v-else>{{printDate}}</span>
968 974
               </div>
969 975
               <div class="proj"><span class="proj_title">医生签名:</span></div>
970 976
             </div>
@@ -1090,6 +1096,7 @@ const defaultForm = {
1090 1096
   sch_remark:"",
1091 1097
   org_id:0,
1092 1098
   troble_shoot:"",
1099
+  zb_patient_id:""
1093 1100
 };
1094 1101
 
1095 1102
 export default {
@@ -1277,11 +1284,12 @@ export default {
1277 1284
             this.form.gender = patietInfo.gender;
1278 1285
             this.form.is_infectious = patietInfo.is_infectious;
1279 1286
             this.form.troble_shoot = patietInfo.troble_shoot
1287
+            this.form.zb_patient_id = patietInfo.zb_patient_id
1280 1288
             // this.form.record_date = patietInfo.is_infectious
1281 1289
             this.form.response_result = patietInfo.response_result;
1282 1290
             this.form.remind_cycle = patietInfo.remind_cycle;
1283 1291
             if(patietInfo.is_infectious == 1){
1284
-               this.form.remind_cycle = 0 
1292
+               this.form.remind_cycle = 0
1285 1293
 
1286 1294
             }
1287 1295
             console.log("222222",this.form.remind_cycle)

+ 20 - 3
src/xt_pages/user/components/PatientForm.vue View File

@@ -337,7 +337,7 @@
337 337
                 </el-form-item>
338 338
 
339 339
               </el-col>
340
-              
340
+
341 341
               <el-col :span="8">
342 342
                 <el-form-item label="疑难内瘘 : " prop="contagions">
343 343
                  <el-radio-group v-model="form.troble_shoot">
@@ -345,8 +345,20 @@
345 345
                       <el-radio :label="2">否</el-radio>
346 346
                     </el-radio-group>
347 347
                 </el-form-item>
348
+
349
+              </el-col>
350
+
351
+              <el-col :span="8">
352
+                <el-form-item label="人员编码: ">
353
+                  <el-input
354
+                      v-model="form.zb_patient_id"
355
+                  ></el-input>
356
+                </el-form-item>
357
+
348 358
               </el-col>
349 359
 
360
+
361
+
350 362
               <el-col :span="16" v-if="!isEdit">
351 363
                 <el-form-item label="检查结果日期 : ">
352 364
                   <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
@@ -993,6 +1005,7 @@ const defaultForm = {
993 1005
   contact_name: "",
994 1006
   user_sys_before_count: "",
995 1007
   troble_shoot:2,
1008
+  zb_patient_id:"",
996 1009
   formItem: [
997 1010
     {
998 1011
       id: 0,
@@ -1426,13 +1439,14 @@ export default {
1426 1439
             this.form.age = parseInt(this.form.age);
1427 1440
             this.form.user_sys_before_count = this.form.user_sys_before_count.toString();
1428 1441
             this.form.troble_shoot = parseInt(this.form.troble_shoot)
1442
+
1429 1443
             if(this.form.avatar.indexOf('?imageView2/2/w/500/h/500/q/90')!=-1){
1430 1444
                this.form.avatar = this.form.avatar
1431 1445
             }else{
1432 1446
               this.form.avatar = this.form.avatar + "?imageView2/2/w/500/h/500/q/90"
1433 1447
             }
1434 1448
             console.log("form---",this.form)
1435
-        
1449
+
1436 1450
             editPatient(this.patientID, this.form)
1437 1451
 
1438 1452
               .then(response => {
@@ -1464,6 +1478,7 @@ export default {
1464 1478
           } else {
1465 1479
             this.form.age = parseInt(this.form.age);
1466 1480
             this.form.troble_shoot = parseInt(this.form.troble_shoot)
1481
+
1467 1482
             createPatient(this.form)
1468 1483
               .then(response => {
1469 1484
                 if (response.data.state == 0) {
@@ -1725,6 +1740,8 @@ export default {
1725 1740
             }
1726 1741
 
1727 1742
             this.form.troble_shoot = patietInfo.troble_shoot
1743
+            this.form.zb_patient_id = patietInfo.zb_patient_id
1744
+
1728 1745
 
1729 1746
             this.form.first_treatment_date = uParseTime(
1730 1747
               patietInfo.first_treatment_date,
@@ -1818,7 +1835,7 @@ export default {
1818 1835
       }
1819 1836
     },
1820 1837
     changeInfectious(val){
1821
-      
1838
+
1822 1839
       if(val == 1){
1823 1840
          this.showOne = false
1824 1841
       }