Kaynağa Gözat

518合并代码

XMLWAN 2 yıl önce
ebeveyn
işleme
186becc70e

+ 47 - 65
src/api/config.js Dosyayı Görüntüle

@@ -35,7 +35,7 @@ export function getConfig(params) {
35 35
   return request({
36 36
     url: '/api/dataupload/config/get',
37 37
     method: 'get',
38
-    params:params
38
+    params: params
39 39
   })
40 40
 }
41 41
 
@@ -43,35 +43,29 @@ export function getIsDocking(params) {
43 43
   return request({
44 44
     url: '/api/dataupload/is_docking/get',
45 45
     method: 'get',
46
-    params:params
46
+    params: params
47 47
 
48 48
   })
49 49
 }
50 50
 
51
-
52
-
53
-
54
-
55 51
 export function getAllSystemPrescription() {
56 52
   return request({
57 53
     url: '/api/systemprescription/all',
58
-    method: 'get',
54
+    method: 'get'
59 55
   })
60 56
 }
61 57
 
62
-
63 58
 export function getSystemPrescription(params) {
64 59
   return request({
65 60
     url: '/api/systemprescription/get',
66 61
     method: 'get',
67
-    params:params
62
+    params: params
68 63
 
69 64
   })
70 65
 }
71 66
 
72
-
73 67
 export function postSystemPrescription(params) {
74
-  console.log("params2222222",params)
68
+  console.log('params2222222', params)
75 69
   return request({
76 70
     url: '/api/systemprescription/commit',
77 71
     method: 'post',
@@ -80,54 +74,45 @@ export function postSystemPrescription(params) {
80 74
   })
81 75
 }
82 76
 
83
-
84
-export function updateSystemPrescription(id,params) {
77
+export function updateSystemPrescription(id, params) {
85 78
   return request({
86
-    url: '/api/systemprescription/update?id='+id,
79
+    url: '/api/systemprescription/update?id=' + id,
87 80
     method: 'post',
88 81
     data: params
89 82
 
90 83
   })
91 84
 }
92 85
 
93
-
94 86
 export function getOrgs() {
95 87
   return request({
96 88
     url: '/api/public/orgs',
97
-    method: 'get',
89
+    method: 'get'
98 90
   })
99 91
 }
100 92
 
101
-
102
-
103 93
 export function changeOrg(params) {
104 94
   return request({
105 95
     url: '/api/org/change',
106 96
     method: 'post',
107
-    params:params,
97
+    params: params
108 98
   })
109 99
 }
110 100
 
111
-
112
-
113 101
 export function generateLog(params) {
114 102
   return request({
115 103
     url: '/api/log/generate',
116 104
     method: 'get',
117
-    params:params,
105
+    params: params
118 106
   })
119 107
 }
120 108
 
121
-
122
-
123 109
 export function getAllIsOpenInit() {
124 110
   return request({
125 111
     url: '/api/isopen/init',
126
-    method: 'get',
112
+    method: 'get'
127 113
   })
128 114
 }
129 115
 
130
-
131 116
 export function postXtHisIsOpen(params) {
132 117
   return request({
133 118
     url: '/api/xtconfig/isopen',
@@ -136,71 +121,68 @@ export function postXtHisIsOpen(params) {
136 121
   })
137 122
 }
138 123
 
139
-
140
-export function postMonitorIsOpen(params){
141
-  console.log("params",params)
124
+export function postMonitorIsOpen(params) {
125
+  console.log('params', params)
142 126
   return request({
143
-    url:"/api/monitor/open",
144
-    method:"get",
145
-    params:params
127
+    url: '/api/monitor/open',
128
+    method: 'get',
129
+    params: params
146 130
   })
147 131
 }
148 132
 
149
-
150
-export function getMonitorConfig(params){
151
-
133
+export function getMonitorConfig(params) {
152 134
   return request({
153
-    url:"/api/monitor/getmonitorconfig",
154
-    method:"Get",
155
-    params:params,
135
+    url: '/api/monitor/getmonitorconfig',
136
+    method: 'Get',
137
+    params: params
156 138
   })
157 139
 }
158 140
 
159
-
160
-export function addOrderConfig(params){
161
-
141
+export function addOrderConfig(params) {
162 142
   return request({
163
-    url:"/api/order/addorderconfig",
164
-    method:"Get",
165
-    params:params,
143
+    url: '/api/order/addorderconfig',
144
+    method: 'Get',
145
+    params: params
166 146
 
167 147
   })
168 148
 }
169 149
 
170
-export function getOrderConfig(params){
171
-
150
+export function getOrderConfig(params) {
172 151
   return request({
173
-    url:"/api/order/getorderconfig",
174
-    method:"get",
175
-    params:params,
152
+    url: '/api/order/getorderconfig',
153
+    method: 'get',
154
+    params: params
176 155
   })
177 156
 }
178 157
 
179
-export function changeFuncPrint(params){
180
-
158
+export function changeFuncPrint(params) {
181 159
   return request({
182
-    url:"/api/order/changefuncprint",
183
-    method:"get",
184
-    params:params
160
+    url: '/api/order/changefuncprint',
161
+    method: 'get',
162
+    params: params
185 163
   })
186 164
 }
187 165
 
188
-export function getDataPrintList(params){
189
-
166
+export function getDataPrintList(params) {
190 167
   return request({
191
-    url:"/api/order/getdataprint",
192
-    method:"get",
193
-    params:params
168
+    url: '/api/order/getdataprint',
169
+    method: 'get',
170
+    params: params
194 171
   })
195 172
 }
196 173
 
174
+export function postXtHisProjectIsOpen(params) {
175
+  return request({
176
+    url: '/api/xtconfigproject/isopen',
177
+    method: 'post',
178
+    params: params
179
+  })
180
+}
197 181
 
198
-
199
-export function postXtHisProjectIsOpen(params){
200
-
182
+export function changeStockSetting(params) {
201 183
   return request({
202
-    url:"/api/xtconfigproject/isopen",
203
-    method:"post",
204
-    params:params
184
+    url: '/api/changestocksetting/isopen',
185
+    method: 'get',
186
+    params: params
205 187
   })
206 188
 }

+ 28 - 1
src/xt_pages/data/basicConfig.vue Dosyayı Görüntüle

@@ -32,6 +32,9 @@
32 32
             <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
33 33
                 <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
34 34
             </p>
35
+            <p style="margin-top:20px;">耗材先出库再执行:
36
+                <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
37
+            </p>
35 38
         </div>
36 39
 
37 40
 
@@ -87,7 +90,7 @@
87 90
 
88 91
 <script>
89 92
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
90
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen} from '@/api/config'
93
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting} from '@/api/config'
91 94
 
92 95
 export default {
93 96
   name: "printTemplate",
@@ -105,6 +108,7 @@ export default {
105 108
       is_open_order:false,
106 109
       is_open_print:false,
107 110
       is_open_xt_his_project: false,
111
+      is_open_is_type:false,
108 112
     };
109 113
   },
110 114
   methods: {
@@ -126,6 +130,12 @@ export default {
126 130
               this.is_open_xt_his_project = false
127 131
             }
128 132
 
133
+            if(response.data.data.is_open_stock == 1){
134
+              this.is_open_is_type = true
135
+            }else{
136
+              this.is_open_is_type = false
137
+            }
138
+
129 139
           } else {
130 140
             this.$message.error(response.data.msg)
131 141
           }
@@ -301,6 +311,23 @@ export default {
301 311
            }
302 312
          }
303 313
       })
314
+    },
315
+    changeFuncType(){
316
+       var is_type = 2
317
+       if(this.is_open_is_type == false){
318
+         is_type = 2
319
+       }
320
+       if(this.is_open_is_type == true){
321
+         is_type = 1
322
+       }
323
+       var params = {
324
+         is_type:is_type,
325
+       }
326
+      changeStockSetting(params).then(response=>{
327
+        if(response.data.state == 1){
328
+           this.$message.success("保存成功!")
329
+        }
330
+      })
304 331
     }
305 332
 
306 333
   },

+ 20 - 36
src/xt_pages/data/components/addInspection.vue Dosyayı Görüntüle

@@ -94,6 +94,7 @@
94 94
             filterable
95 95
             placeholder="请选择"
96 96
             @change="changeProject"
97
+            
97 98
           >
98 99
             <el-option
99 100
               v-for="item in projectList"
@@ -249,7 +250,8 @@ export default {
249 250
         }
250 251
       }
251 252
     },
252
-    changeProject() {
253
+    changeProject(val) {
254
+      console.log("i23232323323",val.id)
253 255
       this.form.number = 1;
254 256
     },
255 257
     querySearch(queryString, cb) {
@@ -270,6 +272,7 @@ export default {
270 272
       };
271 273
     },
272 274
     handleSelect(val) {
275
+      console.log("val3223322323232323",val)
273 276
       this.project_name = val.project_name;
274 277
       this.form.project_detail = val.id;
275 278
     },
@@ -405,45 +408,26 @@ export default {
405 408
       });
406 409
     },
407 410
     addProjectList() {
408
-      console.log(this.tableData, "this.tableData");
409
-      console.log(this.form.project_detail, "form.project_detail");
410
-      let obj = {new_id:this.form.project_detail}
411
-      if (this.tableData.length <= 0) {
411
+        if(this.tableData.length > 0){
412
+          for(let i=0;i<this.tableData.length;i++){
413
+            if(this.tableData[i].new_id == this.form.project_detail){
414
+               this.$message.error("项目名称已存在")
415
+               return
416
+            }
417
+          }
418
+        }
412 419
         for (let i = 0; i < this.projectList.length; i++) {
413 420
           if (this.form.project_detail == this.projectList[i].new_id) {
414
-            this.projectList[i].number = this.form.number;
415
-            this.projectList[i].number = this.projectList[i].number.toString();
416
-
417
-            this.tableData.push(this.projectList[i]);
418
-            this.form.project_detail = "";
419
-            this.form.number = 1;
421
+            this.projectList[i].number = this.form.number
422
+            this.projectList[i].number = this.projectList[i].number.toString()
423
+            
424
+            this.tableData.push(this.projectList[i])
425
+            this.form.project_detail = ''
426
+            this.form.number = 1
420 427
           }
421 428
         }
422
-      } else {
423
-        console.log(obj,'obj')
424
-        this.tableData.forEach((el) => {
425
-          if (this.form.project_detail == el.new_id) {
426
-            this.$message.error("已存在!");
427
-            return;
428
-          } else {
429
-            console.log("oo");
430
-
431
-            // for (let i = 0; i < this.projectList.length; i++) {
432
-            //   if (this.form.project_detail == this.projectList[i].new_id) {
433
-            //     this.projectList[i].number = this.form.number;
434
-            //     this.projectList[i].number =
435
-            //       this.projectList[i].number.toString();
436
-
437
-            //     this.tableData.push(this.projectList[i]);
438
-            //     this.form.project_detail = "";
439
-            //     this.form.number = 1;
440
-            //   }
441
-            // }
442
-          }
443
-        });
444
-
445
-      }
446
-    },
429
+       
430
+      },
447 431
     DeleteProject(id, index) {
448 432
       this.$confirm("确认删除此项目吗?", "删除", {
449 433
         confirmButtonText: "确 定",

+ 15 - 0
src/xt_pages/data/components/editInspection.vue Dosyayı Görüntüle

@@ -347,6 +347,21 @@
347 347
         return name
348 348
       },
349 349
       addProjectList() {
350
+       
351
+        var project_name = ""
352
+        for(let i=0;i<this.projectList.length;i++){
353
+          if(this.form.project_detail == this.projectList[i].new_id){
354
+             project_name = this.projectList[i].project_name
355
+          }
356
+        }
357
+        if(this.tableData.length > 0){
358
+          for(let i=0;i<this.tableData.length;i++){
359
+            if(this.tableData[i].project_name == project_name){
360
+               this.$message.error("项目名称已存在")
361
+               return
362
+            }
363
+          }
364
+        }
350 365
         for (let i = 0; i < this.projectList.length; i++) {
351 366
           if (this.form.project_detail == this.projectList[i].new_id) {
352 367
             this.projectList[i].number = this.form.number

+ 0 - 13
src/xt_pages/hospitalStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -298,14 +298,6 @@
298 298
                           <span v-if="scope.row.sum_count/scope.row.min_number>0">{{ Math.floor(scope.row.sum_count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
299 299
                           <span v-if="scope.row.sum_count%scope.row.min_number>0"> {{ scope.row.sum_count % scope.row.min_number }}{{ scope.row.min_unit }}</span>
300 300
 
301
-                                          <span
302
-                                              v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10188 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
303
-                                              <span
304
-                                                  v-if="scope.row.count/scope.row.min_number>0">{{ Math.floor(scope.row.count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
305
-                                              <span
306
-                                                  v-if="scope.row.count%scope.row.min_number>0"> {{ scope.row.count % scope.row.min_number }}{{ scope.row.min_unit }}</span>
307
-                                            </span>
308
-                        <span v-else> {{ scope.row.total }}{{ scope.row.total ? scope.row.min_unit : '' }}</span>
309 301
                       </template>
310 302
                     </el-table-column>
311 303
                     <el-table-column label="单价" width="40">
@@ -400,11 +392,6 @@
400 392
                     </el-table-column>
401 393
                     <el-table-column label="库存" width="40">
402 394
                       <template slot-scope="scope">
403
-                                                <span
404
-                                                    v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
405
-                                                    {{ scope.row.stock_count }}
406
-                                                </span>
407
-                        <span v-else> {{ scope.row.total }}</span>
408 395
                         <!-- <span
409 396
                             v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278">
410 397
                             {{ scope.row.stock_count }}

+ 14 - 14
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Dosyayı Görüntüle

@@ -85,20 +85,20 @@
85 85
 
86 86
 
87 87
           <div>
88
-<!--            <el-button size="small"-->
89
-<!--                       @click="openZb(1)"-->
90
-<!--                       type="primary">登记-->
91
-<!--            </el-button>-->
92
-
93
-<!--            <el-button  size="small"-->
94
-<!--                       @click="openZb(2)"-->
95
-<!--                       type="primary">记账-->
96
-<!--            </el-button>-->
97
-
98
-<!--            <el-button   size="small"-->
99
-<!--                       @click="openZb(3)"-->
100
-<!--                       type="primary">撤销记账-->
101
-<!--            </el-button>-->
88
+           <el-button size="small"
89
+                      @click="openZb(1)"
90
+                      type="primary">登记
91
+          </el-button>
92
+
93
+            <el-button  size="small"
94
+                       @click="openZb(2)"
95
+                      type="primary">记账
96
+            </el-button>
97
+
98
+            <el-button   size="small"
99
+                       @click="openZb(3)"
100
+                       type="primary">撤销记账
101
+           </el-button>
102 102
 
103 103
 
104 104
             <el-button v-loading="loadingone" size="small"

+ 3 - 1
src/xt_pages/stock/index.vue Dosyayı Görüntüle

@@ -37,6 +37,7 @@
37 37
   import GoodType from './config/goodType'
38 38
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
39 39
   import AutomaticReduce from './config/automaticReduce'
40
+  
40 41
   export default {
41 42
     name: 'service',
42 43
     components: {
@@ -45,7 +46,8 @@
45 46
       GoodInfo,
46 47
       Manufacturer,
47 48
       Dealer,
48
-      BreadCrumb
49
+      BreadCrumb,
50
+      
49 51
     },
50 52
     data() {
51 53
       return {

+ 2 - 0
src/xt_pages/user/components/PatientForm.vue Dosyayı Görüntüle

@@ -1724,6 +1724,8 @@ export default {
1724 1724
               this.form.expense_kind = patietInfo.expense_kind;
1725 1725
             }
1726 1726
 
1727
+            this.form.troble_shoot = patietInfo.troble_shoot
1728
+
1727 1729
             this.form.first_treatment_date = uParseTime(
1728 1730
               patietInfo.first_treatment_date,
1729 1731
               "{y}-{m}-{d}"