Преглед изворни кода

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

csx пре 4 година
родитељ
комит
5f6ab1f292

+ 6 - 29
src/api/his/his.js Прегледај датотеку

@@ -123,38 +123,21 @@ export function getHisOrder(params) {
123 123
 }
124 124
 
125 125
 
126
-export function getHisPrescriptionList() {
126
+export function getHisPrescriptionList(params) {
127 127
   return request({
128 128
     url: "/api/hisprescription/list",
129 129
     method: "get",
130
-  });
131
-}
132
-
133
-
134
-export function getHisPrescriptionInfo(params) {
135
-  return request({
136
-    url: "/api/hisprescription/info",
137
-    method: "get",
138 130
     params:params,
139 131
   });
140 132
 }
141 133
 
142 134
 
143
-
144
-export function getConfig() {
135
+export function getHisPrescriptionInfo(params){
145 136
   return request({
146
-    url: "/api/medicalinsurance/config",
147
-    method: "get",
148
-  });
149
-}
150
-
151
-
152
-
153
-export function Refund() {
154
-  return request({
155
-    url: "/api/refund/post",
156
-    method: "post",
157
-  });
137
+    url:"",
138
+    method:"get",
139
+    params:params
140
+  })
158 141
 }
159 142
 
160 143
 
@@ -168,9 +151,3 @@ export function Refund() {
168 151
 
169 152
 
170 153
 
171
-
172
-
173
-
174
-
175
-
176
-

+ 72 - 0
src/api/project/project.js Прегледај датотеку

@@ -326,4 +326,76 @@ export function changePatient(id,params){
326 326
       method:"get",
327 327
       params:params
328 328
     })
329
+  }
330
+
331
+  export function postPrintHisTemplate(params){
332
+    
333
+    return request({
334
+      url:"/api/hispatient/postprinthistemplate",
335
+      method:"get",
336
+      params:params
337
+    })
338
+  }
339
+
340
+  export function getHisPrintTemplate(params){
341
+    
342
+    return request({
343
+      url:"/api/gethisprinttemplate",
344
+      method:"get",
345
+      params:params
346
+    })
347
+  } 
348
+
349
+  export function postPrescriptionPrintTemplate(params){
350
+    
351
+    return request({
352
+      url:"/api/hispatient/postprescriptiontemplate",
353
+      method:"Get",
354
+      params:params
355
+    })
356
+  }
357
+
358
+  export function getPrescriptionTemplate(params){
359
+   
360
+    return request({
361
+      url:"/api/hispatient/getprescriptiontemplate",
362
+      method:"Get",
363
+      params:params
364
+    })
365
+  }
366
+
367
+  export function postTreatPrintTemplate(params){
368
+   
369
+    return request({
370
+      url:"/api/hispatient/posttreatprinttemplate",
371
+      method:"get",
372
+      params:params
373
+    })
374
+  }
375
+
376
+  export function getTreatPrintTemplate(params){
377
+   
378
+    return request({
379
+      url:"/api/hispatient/gettreatprinttemplate",
380
+      method:"Get",
381
+      params:params
382
+    })
383
+  }
384
+
385
+  export function postChargePrintTemplate(params){
386
+    
387
+    return request({
388
+      url:"/api/hispatient/postchargeprinttemplate",
389
+      method:"get",
390
+      params:params
391
+    })
392
+  }
393
+
394
+  export function getChargePrintTemplate(params){
395
+     
396
+    return request({
397
+       url:"/api/hispatient/getchargeprinttemplate",
398
+       method:"get",
399
+       params:params
400
+    })
329 401
   }

+ 8 - 0
src/router/modules/outpatientDoctorStation.js Прегледај датотеку

@@ -46,5 +46,13 @@ export default {
46 46
         name: 'outpatientDoctorStationRecordPrint',
47 47
         meta: { title: 'outpatientDoctorStationRecordPrint', noCache: true }
48 48
     },
49
+    {
50
+      path:'/outpatientDoctorStation/template/printOne',
51
+      component:() => import('@/xt_pages/outpatientDoctorStation/template/printOne'),
52
+      hidden:true,
53
+      is_menu: false,
54
+      name: 'outpatientDoctorStationRecordPrintOne',
55
+      meta: { title: 'outpatientDoctorStationRecordPrintOne', noCache: true }
56
+    }
49 57
   ]
50 58
 }

+ 24 - 175
src/xt_pages/data/printTemplate/chargePrint.vue Прегледај датотеку

@@ -36,167 +36,9 @@
36 36
         <el-radio v-model="radio" label="1" @change="change"
37 37
             >模版一</el-radio
38 38
         >
39
-        </el-col>
40
-        <el-col
41
-        :span="6"
42
-        style="margin-left: 100px;margin-right: 100px;text-align: center"
43
-        >
44
-        <div
45
-            @click="imgClick('https://images.shengws.com/template_two.jpg')"
46
-
47
-        >
48
-            <el-tooltip
49
-            class="item"
50
-            effect="dark"
51
-            content="点击查看大图"
52
-            placement="top-start"
53
-            :hide-after="2000"
54
-            >
55
-            <!--<el-image-->
56
-                <!--style="width: 200px; height: 200px"-->
57
-                <!--:src="require('@/assets/home/2.jpg')"-->
58
-                <!--:preview-src-list="imgs_two"-->
59
-            <!--&gt;</el-image>-->
60
-
61
-            <el-image
62
-                style="width: 200px; height: 200px"
63
-                :src="require('@/assets/home/2.jpg')"
64
-            ></el-image>
65
-            </el-tooltip>
66
-        </div>
67
-        <el-radio v-model="radio" label="2" @change="change"
68
-            >模版二</el-radio
69
-        >
70
-        </el-col>
71
-        <el-col :span="6" style="text-align: center">
72
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
73
-            <el-tooltip
74
-            class="item"
75
-            effect="dark"
76
-            content="点击查看大图"
77
-            placement="top-start"
78
-            :hide-after="2000"
79
-            >
80
-            <!--<el-image-->
81
-                <!--style="width: 200px; height: 200px"-->
82
-                <!--:src="require('@/assets/home/5.jpg')"-->
83
-                <!--:preview-src-list="imgs_five"-->
84
-            <!--&gt;</el-image>-->
85
-
86
-            <el-image
87
-                style="width: 200px; height: 200px"
88
-                :src="require('@/assets/home/5.jpg')"
89
-            ></el-image>
90
-
91
-            </el-tooltip>
92
-        </div>
93
-        <el-radio v-model="radio" label="5" @change="change"
94
-            >模版三</el-radio
95
-        >
96
-        </el-col>
97
-        <el-col :span="6" style="text-align: center">
98
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
99
-            <el-tooltip
100
-            class="item"
101
-            effect="dark"
102
-            content="点击查看大图"
103
-            placement="top-start"
104
-            :hide-after="2000"
105
-            >
106
-            <!--<el-image-->
107
-                <!--style="width: 200px; height: 200px"-->
108
-                <!--:src="require('@/assets/home/serven.png')"-->
109
-                <!--:preview-src-list="imgs_seven"-->
110
-            <!--&gt;</el-image>-->
111
-
112
-            <el-image
113
-                style="width: 200px; height: 200px"
114
-                :src="require('@/assets/home/serven.png')"
115
-            ></el-image>
116
-            </el-tooltip>
117
-        </div>
118
-        <el-radio v-model="radio" label="7" @change="change"
119
-            >模版四</el-radio
120
-        >
121
-        </el-col>
122
-    </el-row>
123
-    <el-row :gutter="20" type="flex">
124
-        <el-col :span="6" style="text-align: center">
125
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
126
-            <el-tooltip
127
-            class="item"
128
-            effect="dark"
129
-            content="点击查看大图"
130
-            placement="top-start"
131
-            :hide-after="2000"
132
-            >
133
-            <!--<el-image-->
134
-                <!--style="width: 200px; height: 200px;margin-left:-60px"-->
135
-                <!--:src="require('@/assets/home/eight.png')"-->
136
-                <!--:preview-src-list="imgs_six"-->
137
-            <!--&gt;</el-image>-->
138
-
139
-            <el-image
140
-                style="width: 200px; height: 200px;margin-left:-60px"
141
-                :src="require('@/assets/home/eight.png')"
142
-            ></el-image>
143
-            </el-tooltip>
144
-        </div>
145
-        <el-radio
146
-            v-model="radio"
147
-            label="8"
148
-            @change="change"
149
-            style="margin-left:-60px"
150
-            >模版五</el-radio
151
-        >
152
-        </el-col>
153
-        <el-col :span="6" style="text-align: center">
154
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
155
-            <el-tooltip
156
-            class="item"
157
-            effect="dark"
158
-            content="点击查看大图"
159
-            placement="top-start"
160
-            :hide-after="2000"
161
-            >
162
-            <!--<el-image-->
163
-                <!--style="width: 200px; height: 200px;margin-left:30px"-->
164
-                <!--:src="require('@/assets/home/template_six.png')"-->
165
-                <!--:preview-src-list="imgs_eight"-->
166
-            <!--&gt;</el-image>-->
167
-
168
-            <el-image
169
-                style="width: 200px; height: 200px;margin-left:30px"
170
-                :src="require('@/assets/home/template_six.png')"
171
-            ></el-image>
172
-            </el-tooltip>
173
-        </div>
174
-        <el-radio v-model="radio" label="6" @change="change"
175
-            >模版六</el-radio
176
-        >
177
-        </el-col>
178
-
179
-        <!--<el-col :span="6" style="text-align: center">-->
180
-        <!--<div class="demo-image__preview">-->
181
-        <!--<el-tooltip-->
182
-        <!--class="item"-->
183
-        <!--effect="dark"-->
184
-        <!--content="点击查看大图"-->
185
-        <!--placement="top-start"-->
186
-        <!--:hide-after="2000"-->
187
-        <!--&gt;-->
188
-        <!--<el-image-->
189
-        <!--style="width: 200px; height: 200px;margin-left:30px"-->
190
-        <!--:src="require('@/assets/home/template_ten.jpg')"-->
191
-        <!--:preview-src-list="imgs_ten"-->
192
-        <!--&gt;</el-image>-->
193
-        <!--</el-tooltip>-->
194
-        <!--</div>-->
195
-        <!--<el-radio v-model="radio" label="10" @change="change"-->
196
-        <!--&gt;模版十</el-radio-->
197
-        <!--&gt;-->
198
-        <!--</el-col>-->
39
+        </el-col>  
199 40
     </el-row>
41
+ 
200 42
 
201 43
 
202 44
       <el-image-viewer
@@ -212,7 +54,8 @@
212 54
 <script>
213 55
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
214 56
 import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
215
-import { getPrintTemplate, postPrintTemplate } from "@/api/data";
57
+// import { getPrintTemplate, postPrintTemplate } from "@/api/data";
58
+import { postChargePrintTemplate,getChargePrintTemplate } from "@/api/project/project"
216 59
 import store from "@/store";
217 60
 
218 61
 export default {
@@ -270,16 +113,18 @@ export default {
270 113
         }
271 114
       )
272 115
         .then(() => {
116
+          var params = {
117
+            template_id:val
118
+          }
273 119
           this.loading = true;
274
-          postPrintTemplate(val).then(response => {
120
+          postChargePrintTemplate(params).then(response => {
275 121
             if (response.data.state == 1) {
276 122
               var template_id = response.data.data.template_id;
277 123
               this.radio = template_id.toString();
278 124
               this.tempRadio = template_id.toString();
279
-              // 同步
280
-              // console.log(response.data.data.fileds)
125
+           
281 126
               this.loading = false;
282
-              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
127
+             
283 128
               this.$message({
284 129
                 type: "success",
285 130
                 message: "切换成功"
@@ -290,19 +135,23 @@ export default {
290 135
         .catch(() => {
291 136
           this.radio = this.tempRadio;
292 137
         });
138
+    },
139
+
140
+    getlist(){  
141
+      getChargePrintTemplate().then(response=>{
142
+         if(response.data.state == 1){
143
+           var template = response.data.data.template;
144
+           this.radio = template.template_id.toString();
145
+           this.tempRadio = template.template_id.toString();
146
+         }
147
+        
148
+      })
293 149
     }
294 150
   },
295 151
   created() {
296
-    getPrintTemplate().then(response => {
297
-      if (response.data.state == 0) {
298
-        this.$message.error(response.data.msg);
299
-        return false;
300
-      } else {
301
-        var template = response.data.data.template;
302
-        this.radio = template.template_id.toString();
303
-        this.tempRadio = template.template_id.toString();
304
-      }
305
-    });
152
+
153
+    this.getlist()
154
+  
306 155
   }
307 156
 };
308 157
 </script>

+ 19 - 183
src/xt_pages/data/printTemplate/prescriptionPrint.vue Прегледај датотеку

@@ -6,7 +6,7 @@
6 6
       element-loading-background="rgba(0, 0, 0, 0.8)"
7 7
     >
8 8
     <p style="margin-top: 10px;margin-bottom: 30px">
9
-        请选择你需要打印的血液透析护理记录单样式
9
+        请选择你需要的处方模板记录单样式
10 10
     </p>
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
@@ -20,12 +20,6 @@
20 20
             content="点击查看大图"
21 21
             placement="top-start"
22 22
             >
23
-            <!--<el-image-->
24
-                <!--style="width: 200px; height: 200px"-->
25
-                <!--:src="require('@/assets/home/1.jpg')"-->
26
-                <!--:preview-src-list="imgs_one"-->
27
-            <!--&gt;</el-image>-->
28
-
29 23
             <el-image
30 24
                 style="width: 200px; height: 200px"
31 25
                 :src="require('@/assets/home/1.jpg')"
@@ -37,168 +31,8 @@
37 31
             >模版一</el-radio
38 32
         >
39 33
         </el-col>
40
-        <el-col
41
-        :span="6"
42
-        style="margin-left: 100px;margin-right: 100px;text-align: center"
43
-        >
44
-        <div
45
-            @click="imgClick('https://images.shengws.com/template_two.jpg')"
46
-
47
-        >
48
-            <el-tooltip
49
-            class="item"
50
-            effect="dark"
51
-            content="点击查看大图"
52
-            placement="top-start"
53
-            :hide-after="2000"
54
-            >
55
-            <!--<el-image-->
56
-                <!--style="width: 200px; height: 200px"-->
57
-                <!--:src="require('@/assets/home/2.jpg')"-->
58
-                <!--:preview-src-list="imgs_two"-->
59
-            <!--&gt;</el-image>-->
60
-
61
-            <el-image
62
-                style="width: 200px; height: 200px"
63
-                :src="require('@/assets/home/2.jpg')"
64
-            ></el-image>
65
-            </el-tooltip>
66
-        </div>
67
-        <el-radio v-model="radio" label="2" @change="change"
68
-            >模版二</el-radio
69
-        >
70
-        </el-col>
71
-        <el-col :span="6" style="text-align: center">
72
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
73
-            <el-tooltip
74
-            class="item"
75
-            effect="dark"
76
-            content="点击查看大图"
77
-            placement="top-start"
78
-            :hide-after="2000"
79
-            >
80
-            <!--<el-image-->
81
-                <!--style="width: 200px; height: 200px"-->
82
-                <!--:src="require('@/assets/home/5.jpg')"-->
83
-                <!--:preview-src-list="imgs_five"-->
84
-            <!--&gt;</el-image>-->
85
-
86
-            <el-image
87
-                style="width: 200px; height: 200px"
88
-                :src="require('@/assets/home/5.jpg')"
89
-            ></el-image>
90
-
91
-            </el-tooltip>
92
-        </div>
93
-        <el-radio v-model="radio" label="5" @change="change"
94
-            >模版三</el-radio
95
-        >
96
-        </el-col>
97
-        <el-col :span="6" style="text-align: center">
98
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
99
-            <el-tooltip
100
-            class="item"
101
-            effect="dark"
102
-            content="点击查看大图"
103
-            placement="top-start"
104
-            :hide-after="2000"
105
-            >
106
-            <!--<el-image-->
107
-                <!--style="width: 200px; height: 200px"-->
108
-                <!--:src="require('@/assets/home/serven.png')"-->
109
-                <!--:preview-src-list="imgs_seven"-->
110
-            <!--&gt;</el-image>-->
111
-
112
-            <el-image
113
-                style="width: 200px; height: 200px"
114
-                :src="require('@/assets/home/serven.png')"
115
-            ></el-image>
116
-            </el-tooltip>
117
-        </div>
118
-        <el-radio v-model="radio" label="7" @change="change"
119
-            >模版四</el-radio
120
-        >
121
-        </el-col>
122
-    </el-row>
123
-    <el-row :gutter="20" type="flex">
124
-        <el-col :span="6" style="text-align: center">
125
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
126
-            <el-tooltip
127
-            class="item"
128
-            effect="dark"
129
-            content="点击查看大图"
130
-            placement="top-start"
131
-            :hide-after="2000"
132
-            >
133
-            <!--<el-image-->
134
-                <!--style="width: 200px; height: 200px;margin-left:-60px"-->
135
-                <!--:src="require('@/assets/home/eight.png')"-->
136
-                <!--:preview-src-list="imgs_six"-->
137
-            <!--&gt;</el-image>-->
138
-
139
-            <el-image
140
-                style="width: 200px; height: 200px;margin-left:-60px"
141
-                :src="require('@/assets/home/eight.png')"
142
-            ></el-image>
143
-            </el-tooltip>
144
-        </div>
145
-        <el-radio
146
-            v-model="radio"
147
-            label="8"
148
-            @change="change"
149
-            style="margin-left:-60px"
150
-            >模版五</el-radio
151
-        >
152
-        </el-col>
153
-        <el-col :span="6" style="text-align: center">
154
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
155
-            <el-tooltip
156
-            class="item"
157
-            effect="dark"
158
-            content="点击查看大图"
159
-            placement="top-start"
160
-            :hide-after="2000"
161
-            >
162
-            <!--<el-image-->
163
-                <!--style="width: 200px; height: 200px;margin-left:30px"-->
164
-                <!--:src="require('@/assets/home/template_six.png')"-->
165
-                <!--:preview-src-list="imgs_eight"-->
166
-            <!--&gt;</el-image>-->
167
-
168
-            <el-image
169
-                style="width: 200px; height: 200px;margin-left:30px"
170
-                :src="require('@/assets/home/template_six.png')"
171
-            ></el-image>
172
-            </el-tooltip>
173
-        </div>
174
-        <el-radio v-model="radio" label="6" @change="change"
175
-            >模版六</el-radio
176
-        >
177
-        </el-col>
178
-
179
-        <!--<el-col :span="6" style="text-align: center">-->
180
-        <!--<div class="demo-image__preview">-->
181
-        <!--<el-tooltip-->
182
-        <!--class="item"-->
183
-        <!--effect="dark"-->
184
-        <!--content="点击查看大图"-->
185
-        <!--placement="top-start"-->
186
-        <!--:hide-after="2000"-->
187
-        <!--&gt;-->
188
-        <!--<el-image-->
189
-        <!--style="width: 200px; height: 200px;margin-left:30px"-->
190
-        <!--:src="require('@/assets/home/template_ten.jpg')"-->
191
-        <!--:preview-src-list="imgs_ten"-->
192
-        <!--&gt;</el-image>-->
193
-        <!--</el-tooltip>-->
194
-        <!--</div>-->
195
-        <!--<el-radio v-model="radio" label="10" @change="change"-->
196
-        <!--&gt;模版十</el-radio-->
197
-        <!--&gt;-->
198
-        <!--</el-col>-->
199 34
     </el-row>
200
-
201
-
35
+ 
202 36
       <el-image-viewer
203 37
         v-if="showViewer"
204 38
         :on-close="closeViewer"
@@ -212,7 +46,8 @@
212 46
 <script>
213 47
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
214 48
 import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
215
-import { getPrintTemplate, postPrintTemplate } from "@/api/data";
49
+// import { getPrintTemplate, postPrintTemplate } from "@/api/data";
50
+import { postPrescriptionPrintTemplate,getPrescriptionTemplate } from "@/api/project/project"
216 51
 import store from "@/store";
217 52
 
218 53
 export default {
@@ -271,15 +106,16 @@ export default {
271 106
       )
272 107
         .then(() => {
273 108
           this.loading = true;
274
-          postPrintTemplate(val).then(response => {
109
+            var params  = {
110
+                template_id:val
111
+            }
112
+          postPrescriptionPrintTemplate(params).then(response => {
275 113
             if (response.data.state == 1) {
276 114
               var template_id = response.data.data.template_id;
277 115
               this.radio = template_id.toString();
278 116
               this.tempRadio = template_id.toString();
279
-              // 同步
280
-              // console.log(response.data.data.fileds)
281 117
               this.loading = false;
282
-              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
118
+            
283 119
               this.$message({
284 120
                 type: "success",
285 121
                 message: "切换成功"
@@ -290,19 +126,19 @@ export default {
290 126
         .catch(() => {
291 127
           this.radio = this.tempRadio;
292 128
         });
129
+    },
130
+    getlist(){
131
+      getPrescriptionTemplate().then(response=>{
132
+          if(response.data.state == 1){
133
+               var template = response.data.data.template;
134
+               this.radio = template.template_id.toString();
135
+               this.tempRadio = template.template_id.toString();
136
+          }
137
+      })
293 138
     }
294 139
   },
295 140
   created() {
296
-    getPrintTemplate().then(response => {
297
-      if (response.data.state == 0) {
298
-        this.$message.error(response.data.msg);
299
-        return false;
300
-      } else {
301
-        var template = response.data.data.template;
302
-        this.radio = template.template_id.toString();
303
-        this.tempRadio = template.template_id.toString();
304
-      }
305
-    });
141
+    this.getlist()
306 142
   }
307 143
 };
308 144
 </script>

+ 19 - 182
src/xt_pages/data/printTemplate/recordPrint.vue Прегледај датотеку

@@ -6,7 +6,7 @@
6 6
       element-loading-background="rgba(0, 0, 0, 0.8)"
7 7
     >
8 8
     <p style="margin-top: 10px;margin-bottom: 30px">
9
-        请选择你需要打印的血液透析护理记录单样式
9
+        请选择你需要打印的电子病历模板
10 10
     </p>
11 11
     <el-row :gutter="20" type="flex" justify="center">
12 12
         <el-col :span="6" style="text-align: center">
@@ -20,12 +20,6 @@
20 20
             content="点击查看大图"
21 21
             placement="top-start"
22 22
             >
23
-            <!--<el-image-->
24
-                <!--style="width: 200px; height: 200px"-->
25
-                <!--:src="require('@/assets/home/1.jpg')"-->
26
-                <!--:preview-src-list="imgs_one"-->
27
-            <!--&gt;</el-image>-->
28
-
29 23
             <el-image
30 24
                 style="width: 200px; height: 200px"
31 25
                 :src="require('@/assets/home/1.jpg')"
@@ -37,166 +31,8 @@
37 31
             >模版一</el-radio
38 32
         >
39 33
         </el-col>
40
-        <el-col
41
-        :span="6"
42
-        style="margin-left: 100px;margin-right: 100px;text-align: center"
43
-        >
44
-        <div
45
-            @click="imgClick('https://images.shengws.com/template_two.jpg')"
46
-
47
-        >
48
-            <el-tooltip
49
-            class="item"
50
-            effect="dark"
51
-            content="点击查看大图"
52
-            placement="top-start"
53
-            :hide-after="2000"
54
-            >
55
-            <!--<el-image-->
56
-                <!--style="width: 200px; height: 200px"-->
57
-                <!--:src="require('@/assets/home/2.jpg')"-->
58
-                <!--:preview-src-list="imgs_two"-->
59
-            <!--&gt;</el-image>-->
60
-
61
-            <el-image
62
-                style="width: 200px; height: 200px"
63
-                :src="require('@/assets/home/2.jpg')"
64
-            ></el-image>
65
-            </el-tooltip>
66
-        </div>
67
-        <el-radio v-model="radio" label="2" @change="change"
68
-            >模版二</el-radio
69
-        >
70
-        </el-col>
71
-        <el-col :span="6" style="text-align: center">
72
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
73
-            <el-tooltip
74
-            class="item"
75
-            effect="dark"
76
-            content="点击查看大图"
77
-            placement="top-start"
78
-            :hide-after="2000"
79
-            >
80
-            <!--<el-image-->
81
-                <!--style="width: 200px; height: 200px"-->
82
-                <!--:src="require('@/assets/home/5.jpg')"-->
83
-                <!--:preview-src-list="imgs_five"-->
84
-            <!--&gt;</el-image>-->
85
-
86
-            <el-image
87
-                style="width: 200px; height: 200px"
88
-                :src="require('@/assets/home/5.jpg')"
89
-            ></el-image>
90
-
91
-            </el-tooltip>
92
-        </div>
93
-        <el-radio v-model="radio" label="5" @change="change"
94
-            >模版三</el-radio
95
-        >
96
-        </el-col>
97
-        <el-col :span="6" style="text-align: center">
98
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
99
-            <el-tooltip
100
-            class="item"
101
-            effect="dark"
102
-            content="点击查看大图"
103
-            placement="top-start"
104
-            :hide-after="2000"
105
-            >
106
-            <!--<el-image-->
107
-                <!--style="width: 200px; height: 200px"-->
108
-                <!--:src="require('@/assets/home/serven.png')"-->
109
-                <!--:preview-src-list="imgs_seven"-->
110
-            <!--&gt;</el-image>-->
111
-
112
-            <el-image
113
-                style="width: 200px; height: 200px"
114
-                :src="require('@/assets/home/serven.png')"
115
-            ></el-image>
116
-            </el-tooltip>
117
-        </div>
118
-        <el-radio v-model="radio" label="7" @change="change"
119
-            >模版四</el-radio
120
-        >
121
-        </el-col>
122
-    </el-row>
123
-    <el-row :gutter="20" type="flex">
124
-        <el-col :span="6" style="text-align: center">
125
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
126
-            <el-tooltip
127
-            class="item"
128
-            effect="dark"
129
-            content="点击查看大图"
130
-            placement="top-start"
131
-            :hide-after="2000"
132
-            >
133
-            <!--<el-image-->
134
-                <!--style="width: 200px; height: 200px;margin-left:-60px"-->
135
-                <!--:src="require('@/assets/home/eight.png')"-->
136
-                <!--:preview-src-list="imgs_six"-->
137
-            <!--&gt;</el-image>-->
138
-
139
-            <el-image
140
-                style="width: 200px; height: 200px;margin-left:-60px"
141
-                :src="require('@/assets/home/eight.png')"
142
-            ></el-image>
143
-            </el-tooltip>
144
-        </div>
145
-        <el-radio
146
-            v-model="radio"
147
-            label="8"
148
-            @change="change"
149
-            style="margin-left:-60px"
150
-            >模版五</el-radio
151
-        >
152
-        </el-col>
153
-        <el-col :span="6" style="text-align: center">
154
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
155
-            <el-tooltip
156
-            class="item"
157
-            effect="dark"
158
-            content="点击查看大图"
159
-            placement="top-start"
160
-            :hide-after="2000"
161
-            >
162
-            <!--<el-image-->
163
-                <!--style="width: 200px; height: 200px;margin-left:30px"-->
164
-                <!--:src="require('@/assets/home/template_six.png')"-->
165
-                <!--:preview-src-list="imgs_eight"-->
166
-            <!--&gt;</el-image>-->
167
-
168
-            <el-image
169
-                style="width: 200px; height: 200px;margin-left:30px"
170
-                :src="require('@/assets/home/template_six.png')"
171
-            ></el-image>
172
-            </el-tooltip>
173
-        </div>
174
-        <el-radio v-model="radio" label="6" @change="change"
175
-            >模版六</el-radio
176
-        >
177
-        </el-col>
178
-
179
-        <!--<el-col :span="6" style="text-align: center">-->
180
-        <!--<div class="demo-image__preview">-->
181
-        <!--<el-tooltip-->
182
-        <!--class="item"-->
183
-        <!--effect="dark"-->
184
-        <!--content="点击查看大图"-->
185
-        <!--placement="top-start"-->
186
-        <!--:hide-after="2000"-->
187
-        <!--&gt;-->
188
-        <!--<el-image-->
189
-        <!--style="width: 200px; height: 200px;margin-left:30px"-->
190
-        <!--:src="require('@/assets/home/template_ten.jpg')"-->
191
-        <!--:preview-src-list="imgs_ten"-->
192
-        <!--&gt;</el-image>-->
193
-        <!--</el-tooltip>-->
194
-        <!--</div>-->
195
-        <!--<el-radio v-model="radio" label="10" @change="change"-->
196
-        <!--&gt;模版十</el-radio-->
197
-        <!--&gt;-->
198
-        <!--</el-col>-->
199 34
     </el-row>
35
+   
200 36
 
201 37
 
202 38
       <el-image-viewer
@@ -212,7 +48,7 @@
212 48
 <script>
213 49
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
214 50
 import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
215
-import { getPrintTemplate, postPrintTemplate } from "@/api/data";
51
+import { postPrintHisTemplate,getHisPrintTemplate } from "@/api/project/project"
216 52
 import store from "@/store";
217 53
 
218 54
 export default {
@@ -261,7 +97,7 @@ export default {
261 97
     change: function(val) {
262 98
       console.log("val是什么", val);
263 99
       this.$confirm(
264
-        "切换模版后,透析记录的字段会根据打印单来显示与隐藏,是否确定切换模版",
100
+        "切换模版后,打印单的字段会根据打印单来显示与隐藏,是否确定切换模版",
265 101
         "提示",
266 102
         {
267 103
           confirmButtonText: "确定",
@@ -271,15 +107,16 @@ export default {
271 107
       )
272 108
         .then(() => {
273 109
           this.loading = true;
274
-          postPrintTemplate(val).then(response => {
110
+           var params ={
111
+             template_id : val
112
+           }
113
+          postPrintHisTemplate(params).then(response => {
275 114
             if (response.data.state == 1) {
276 115
               var template_id = response.data.data.template_id;
116
+              console.log("template_id",template_id)
277 117
               this.radio = template_id.toString();
278 118
               this.tempRadio = template_id.toString();
279
-              // 同步
280
-              // console.log(response.data.data.fileds)
281 119
               this.loading = false;
282
-              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
283 120
               this.$message({
284 121
                 type: "success",
285 122
                 message: "切换成功"
@@ -290,19 +127,19 @@ export default {
290 127
         .catch(() => {
291 128
           this.radio = this.tempRadio;
292 129
         });
130
+    },
131
+    getHisPrintTemplate(){
132
+      getHisPrintTemplate().then(response=>{
133
+        if(response.data.state == 1){
134
+          var template =  response.data.data.template
135
+          this.radio = template.template_id.toString()
136
+          this.tempRadio = template.template_id.toString()
137
+        }
138
+      })
293 139
     }
294 140
   },
295 141
   created() {
296
-    getPrintTemplate().then(response => {
297
-      if (response.data.state == 0) {
298
-        this.$message.error(response.data.msg);
299
-        return false;
300
-      } else {
301
-        var template = response.data.data.template;
302
-        this.radio = template.template_id.toString();
303
-        this.tempRadio = template.template_id.toString();
304
-      }
305
-    });
142
+    this.getHisPrintTemplate()
306 143
   }
307 144
 };
308 145
 </script>

+ 22 - 179
src/xt_pages/data/printTemplate/treatPrint.vue Прегледај датотеку

@@ -20,11 +20,6 @@
20 20
             content="点击查看大图"
21 21
             placement="top-start"
22 22
             >
23
-            <!--<el-image-->
24
-                <!--style="width: 200px; height: 200px"-->
25
-                <!--:src="require('@/assets/home/1.jpg')"-->
26
-                <!--:preview-src-list="imgs_one"-->
27
-            <!--&gt;</el-image>-->
28 23
 
29 24
             <el-image
30 25
                 style="width: 200px; height: 200px"
@@ -37,166 +32,11 @@
37 32
             >模版一</el-radio
38 33
         >
39 34
         </el-col>
40
-        <el-col
41
-        :span="6"
42
-        style="margin-left: 100px;margin-right: 100px;text-align: center"
43
-        >
44
-        <div
45
-            @click="imgClick('https://images.shengws.com/template_two.jpg')"
46
-
47
-        >
48
-            <el-tooltip
49
-            class="item"
50
-            effect="dark"
51
-            content="点击查看大图"
52
-            placement="top-start"
53
-            :hide-after="2000"
54
-            >
55
-            <!--<el-image-->
56
-                <!--style="width: 200px; height: 200px"-->
57
-                <!--:src="require('@/assets/home/2.jpg')"-->
58
-                <!--:preview-src-list="imgs_two"-->
59
-            <!--&gt;</el-image>-->
60
-
61
-            <el-image
62
-                style="width: 200px; height: 200px"
63
-                :src="require('@/assets/home/2.jpg')"
64
-            ></el-image>
65
-            </el-tooltip>
66
-        </div>
67
-        <el-radio v-model="radio" label="2" @change="change"
68
-            >模版二</el-radio
69
-        >
70
-        </el-col>
71
-        <el-col :span="6" style="text-align: center">
72
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/template_five.jpg')">
73
-            <el-tooltip
74
-            class="item"
75
-            effect="dark"
76
-            content="点击查看大图"
77
-            placement="top-start"
78
-            :hide-after="2000"
79
-            >
80
-            <!--<el-image-->
81
-                <!--style="width: 200px; height: 200px"-->
82
-                <!--:src="require('@/assets/home/5.jpg')"-->
83
-                <!--:preview-src-list="imgs_five"-->
84
-            <!--&gt;</el-image>-->
85
-
86
-            <el-image
87
-                style="width: 200px; height: 200px"
88
-                :src="require('@/assets/home/5.jpg')"
89
-            ></el-image>
90
-
91
-            </el-tooltip>
92
-        </div>
93
-        <el-radio v-model="radio" label="5" @change="change"
94
-            >模版三</el-radio
95
-        >
96
-        </el-col>
97
-        <el-col :span="6" style="text-align: center">
98
-        <div class="demo-image__preview"  @click="imgClick('https://images.shengws.com/serven.png')">
99
-            <el-tooltip
100
-            class="item"
101
-            effect="dark"
102
-            content="点击查看大图"
103
-            placement="top-start"
104
-            :hide-after="2000"
105
-            >
106
-            <!--<el-image-->
107
-                <!--style="width: 200px; height: 200px"-->
108
-                <!--:src="require('@/assets/home/serven.png')"-->
109
-                <!--:preview-src-list="imgs_seven"-->
110
-            <!--&gt;</el-image>-->
111 35
 
112
-            <el-image
113
-                style="width: 200px; height: 200px"
114
-                :src="require('@/assets/home/serven.png')"
115
-            ></el-image>
116
-            </el-tooltip>
117
-        </div>
118
-        <el-radio v-model="radio" label="7" @change="change"
119
-            >模版四</el-radio
120
-        >
121
-        </el-col>
36
+     
37
+      
122 38
     </el-row>
123
-    <el-row :gutter="20" type="flex">
124
-        <el-col :span="6" style="text-align: center">
125
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
126
-            <el-tooltip
127
-            class="item"
128
-            effect="dark"
129
-            content="点击查看大图"
130
-            placement="top-start"
131
-            :hide-after="2000"
132
-            >
133
-            <!--<el-image-->
134
-                <!--style="width: 200px; height: 200px;margin-left:-60px"-->
135
-                <!--:src="require('@/assets/home/eight.png')"-->
136
-                <!--:preview-src-list="imgs_six"-->
137
-            <!--&gt;</el-image>-->
138
-
139
-            <el-image
140
-                style="width: 200px; height: 200px;margin-left:-60px"
141
-                :src="require('@/assets/home/eight.png')"
142
-            ></el-image>
143
-            </el-tooltip>
144
-        </div>
145
-        <el-radio
146
-            v-model="radio"
147
-            label="8"
148
-            @change="change"
149
-            style="margin-left:-60px"
150
-            >模版五</el-radio
151
-        >
152
-        </el-col>
153
-        <el-col :span="6" style="text-align: center">
154
-        <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
155
-            <el-tooltip
156
-            class="item"
157
-            effect="dark"
158
-            content="点击查看大图"
159
-            placement="top-start"
160
-            :hide-after="2000"
161
-            >
162
-            <!--<el-image-->
163
-                <!--style="width: 200px; height: 200px;margin-left:30px"-->
164
-                <!--:src="require('@/assets/home/template_six.png')"-->
165
-                <!--:preview-src-list="imgs_eight"-->
166
-            <!--&gt;</el-image>-->
167 39
 
168
-            <el-image
169
-                style="width: 200px; height: 200px;margin-left:30px"
170
-                :src="require('@/assets/home/template_six.png')"
171
-            ></el-image>
172
-            </el-tooltip>
173
-        </div>
174
-        <el-radio v-model="radio" label="6" @change="change"
175
-            >模版六</el-radio
176
-        >
177
-        </el-col>
178
-
179
-        <!--<el-col :span="6" style="text-align: center">-->
180
-        <!--<div class="demo-image__preview">-->
181
-        <!--<el-tooltip-->
182
-        <!--class="item"-->
183
-        <!--effect="dark"-->
184
-        <!--content="点击查看大图"-->
185
-        <!--placement="top-start"-->
186
-        <!--:hide-after="2000"-->
187
-        <!--&gt;-->
188
-        <!--<el-image-->
189
-        <!--style="width: 200px; height: 200px;margin-left:30px"-->
190
-        <!--:src="require('@/assets/home/template_ten.jpg')"-->
191
-        <!--:preview-src-list="imgs_ten"-->
192
-        <!--&gt;</el-image>-->
193
-        <!--</el-tooltip>-->
194
-        <!--</div>-->
195
-        <!--<el-radio v-model="radio" label="10" @change="change"-->
196
-        <!--&gt;模版十</el-radio-->
197
-        <!--&gt;-->
198
-        <!--</el-col>-->
199
-    </el-row>
200 40
 
201 41
 
202 42
       <el-image-viewer
@@ -212,7 +52,9 @@
212 52
 <script>
213 53
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
214 54
 import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
215
-import { getPrintTemplate, postPrintTemplate } from "@/api/data";
55
+// import { getPrintTemplate, postPrintTemplate } from "@/api/data";
56
+import { postTreatPrintTemplate,getTreatPrintTemplate } from "@/api/project/project"
57
+
216 58
 import store from "@/store";
217 59
 
218 60
 export default {
@@ -268,18 +110,18 @@ export default {
268 110
           cancelButtonText: "取消",
269 111
           type: "info"
270 112
         }
271
-      )
272
-        .then(() => {
113
+      ).then(() => {
114
+           var params = {
115
+               template_id:val
116
+           }
273 117
           this.loading = true;
274
-          postPrintTemplate(val).then(response => {
118
+          postTreatPrintTemplate(params).then(response => {
275 119
             if (response.data.state == 1) {
276 120
               var template_id = response.data.data.template_id;
277 121
               this.radio = template_id.toString();
278 122
               this.tempRadio = template_id.toString();
279
-              // 同步
280
-              // console.log(response.data.data.fileds)
281 123
               this.loading = false;
282
-              store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
124
+            
283 125
               this.$message({
284 126
                 type: "success",
285 127
                 message: "切换成功"
@@ -290,19 +132,20 @@ export default {
290 132
         .catch(() => {
291 133
           this.radio = this.tempRadio;
292 134
         });
135
+    },
136
+    getlist(){
137
+      getTreatPrintTemplate().then(response=>{
138
+         if(response.data.state == 1){
139
+            var template = response.data.data.template;
140
+            this.radio = template.template_id.toString();
141
+            this.tempRadio = template.template_id.toString();
142
+         }
143
+      })
293 144
     }
294 145
   },
295 146
   created() {
296
-    getPrintTemplate().then(response => {
297
-      if (response.data.state == 0) {
298
-        this.$message.error(response.data.msg);
299
-        return false;
300
-      } else {
301
-        var template = response.data.data.template;
302
-        this.radio = template.template_id.toString();
303
-        this.tempRadio = template.template_id.toString();
304
-      }
305
-    });
147
+     
148
+    this.getlist()
306 149
   }
307 150
 };
308 151
 </script>

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Прегледај датотеку

@@ -211,7 +211,7 @@
211 211
   import prescriptionTable from './components/prescriptionTable'
212 212
   import additionalCharges from './components/additionalCharges'
213 213
   import { getPatientInformation, getPatientList } from '@/api/project/project'
214
-  import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
214
+  import { getPatientInfo, getSchedulePatientList, register, upload } from '@/api/his/his'
215 215
 
216 216
   const moment = require('moment')
217 217
   export default {

+ 2 - 0
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Прегледај датотеку

@@ -266,6 +266,8 @@
266 266
               this.$message.error("患者病历已存在")
267 267
               return false
268 268
             } else {
269
+              var caseHistory = response.data.data.caseHistory
270
+              console.log("caseHistory",caseHistory)
269 271
               this.$message.success("保存成功")
270 272
             }
271 273
           })

+ 3 - 57
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

@@ -313,22 +313,12 @@
313 313
             this.$refs.prescriptions.setData(this.prescriptions,this.info)
314 314
           }
315 315
         })
316
-
317
-        // this.patientInfo = {
318
-        //     certno:"440221195903290027",
319
-        //     psn_no:"0221201972",
320
-        //     gend:"2",
321
-        //     brdy:"1960-03-29",
322
-        //     naty:"01",
323
-        //     psn_cert_type:"01",
324
-        //     psn_name:"杨美英",
325
-        //     age:60.7
326
-        // }
327
-      },open(index) {
316
+      },
317
+      open(index) {
328 318
         if (index == 1) {
329 319
           this.$refs.prescriptions.open(1)
330 320
         } else if (index == 2) {
331
-          this.$refs.prescriptions.open(2)
321
+          this.$router.push("/outpatientDoctorStation/template/printOne?record="+this.record_date)
332 322
         } else if (index == 3) {
333 323
           this.$refs.prescriptions.open(3)
334 324
         } else if (index == 4) {
@@ -344,50 +334,6 @@
344 334
             return
345 335
           }
346 336
           this.$refs.child.createCaseHistory()
347
-          // if(this.case_history.is_infect == true){
348
-          //   this.case_history.is_infect = 1
349
-          // }
350
-          // if(this.case_history.is_infect == false){
351
-          //    this.case_history.is_infect = 2
352
-          // }
353
-          // let params = {
354
-          //   "his_patient_id":this.hisPatientInfo.id,
355
-          //   "delivery_way":this.delivery_way?"":0,
356
-          //   "patient_id":this.patientInfo.id,
357
-          //   "temperature":this.case_history.temperature,
358
-          //   "blood_sugar":this.case_history.blood_sugar,
359
-          //   "pulse":this.case_history.pulse,
360
-          //   "sbp":this.case_history.sbp,
361
-          //   "dbp":this.case_history.dbp,
362
-          //   "blood_fat":this.case_history.blood_fat,
363
-          //   "height":this.case_history.height,
364
-          //   "sick_type":this.case_history.sick_type,
365
-          //   "symptom":this.case_history.symptom,
366
-          //   "sick_date":this.start_time,
367
-          //   "is_infect":this.case_history.is_infect,
368
-          //   "chief_conplaint":this.case_history.chief_conplaint,
369
-          //   "history_of_present_illness":this.case_history.history_of_present_illness,
370
-          //   "past_history":this.case_history.past_history,
371
-          //   "personal_history":this.case_history.personal_history,
372
-          //   "family_history":this.case_history.family_history,
373
-          //   "record_date":this.record_date,
374
-          //   "diagnostic":this.case_history.diagnostic,
375
-          //   "breathing":this.case_history.breathing,
376
-          //   // "doctor_advice":this.doctor_advice,
377
-          //   // "remark":this.remark
378
-          //   "doctor_advice":this.$ref.doctor_advice,
379
-          //   // "remark":this.remark
380
-          // }
381
-          // console.log("params",params)
382
-          // return
383
-          // createCaseHistory(params).then(response => {
384
-          //   if (response.data.state == 0) {
385
-          //     this.$message.error("患者病历已存在")
386
-          //     return false
387
-          //   } else {
388
-          //     this.$message.success("保存成功")
389
-          //   }
390
-          // })
391 337
         } else if (index == 2) {
392 338
           this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
393 339
         } else if (index == 3) {