Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
186becc70e

+ 47 - 65
src/api/config.js View File

35
   return request({
35
   return request({
36
     url: '/api/dataupload/config/get',
36
     url: '/api/dataupload/config/get',
37
     method: 'get',
37
     method: 'get',
38
-    params:params
38
+    params: params
39
   })
39
   })
40
 }
40
 }
41
 
41
 
43
   return request({
43
   return request({
44
     url: '/api/dataupload/is_docking/get',
44
     url: '/api/dataupload/is_docking/get',
45
     method: 'get',
45
     method: 'get',
46
-    params:params
46
+    params: params
47
 
47
 
48
   })
48
   })
49
 }
49
 }
50
 
50
 
51
-
52
-
53
-
54
-
55
 export function getAllSystemPrescription() {
51
 export function getAllSystemPrescription() {
56
   return request({
52
   return request({
57
     url: '/api/systemprescription/all',
53
     url: '/api/systemprescription/all',
58
-    method: 'get',
54
+    method: 'get'
59
   })
55
   })
60
 }
56
 }
61
 
57
 
62
-
63
 export function getSystemPrescription(params) {
58
 export function getSystemPrescription(params) {
64
   return request({
59
   return request({
65
     url: '/api/systemprescription/get',
60
     url: '/api/systemprescription/get',
66
     method: 'get',
61
     method: 'get',
67
-    params:params
62
+    params: params
68
 
63
 
69
   })
64
   })
70
 }
65
 }
71
 
66
 
72
-
73
 export function postSystemPrescription(params) {
67
 export function postSystemPrescription(params) {
74
-  console.log("params2222222",params)
68
+  console.log('params2222222', params)
75
   return request({
69
   return request({
76
     url: '/api/systemprescription/commit',
70
     url: '/api/systemprescription/commit',
77
     method: 'post',
71
     method: 'post',
80
   })
74
   })
81
 }
75
 }
82
 
76
 
83
-
84
-export function updateSystemPrescription(id,params) {
77
+export function updateSystemPrescription(id, params) {
85
   return request({
78
   return request({
86
-    url: '/api/systemprescription/update?id='+id,
79
+    url: '/api/systemprescription/update?id=' + id,
87
     method: 'post',
80
     method: 'post',
88
     data: params
81
     data: params
89
 
82
 
90
   })
83
   })
91
 }
84
 }
92
 
85
 
93
-
94
 export function getOrgs() {
86
 export function getOrgs() {
95
   return request({
87
   return request({
96
     url: '/api/public/orgs',
88
     url: '/api/public/orgs',
97
-    method: 'get',
89
+    method: 'get'
98
   })
90
   })
99
 }
91
 }
100
 
92
 
101
-
102
-
103
 export function changeOrg(params) {
93
 export function changeOrg(params) {
104
   return request({
94
   return request({
105
     url: '/api/org/change',
95
     url: '/api/org/change',
106
     method: 'post',
96
     method: 'post',
107
-    params:params,
97
+    params: params
108
   })
98
   })
109
 }
99
 }
110
 
100
 
111
-
112
-
113
 export function generateLog(params) {
101
 export function generateLog(params) {
114
   return request({
102
   return request({
115
     url: '/api/log/generate',
103
     url: '/api/log/generate',
116
     method: 'get',
104
     method: 'get',
117
-    params:params,
105
+    params: params
118
   })
106
   })
119
 }
107
 }
120
 
108
 
121
-
122
-
123
 export function getAllIsOpenInit() {
109
 export function getAllIsOpenInit() {
124
   return request({
110
   return request({
125
     url: '/api/isopen/init',
111
     url: '/api/isopen/init',
126
-    method: 'get',
112
+    method: 'get'
127
   })
113
   })
128
 }
114
 }
129
 
115
 
130
-
131
 export function postXtHisIsOpen(params) {
116
 export function postXtHisIsOpen(params) {
132
   return request({
117
   return request({
133
     url: '/api/xtconfig/isopen',
118
     url: '/api/xtconfig/isopen',
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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 View File

32
             <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
32
             <p style="margin-top:20px;">门诊处方项目同步到透析医嘱:
33
                 <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
33
                 <el-switch v-model="is_open_xt_his_project" @change="changeFuncProject"></el-switch>
34
             </p>
34
             </p>
35
+            <p style="margin-top:20px;">耗材先出库再执行:
36
+                <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
37
+            </p>
35
         </div>
38
         </div>
36
 
39
 
37
 
40
 
87
 
90
 
88
 <script>
91
 <script>
89
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
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
 export default {
95
 export default {
93
   name: "printTemplate",
96
   name: "printTemplate",
105
       is_open_order:false,
108
       is_open_order:false,
106
       is_open_print:false,
109
       is_open_print:false,
107
       is_open_xt_his_project: false,
110
       is_open_xt_his_project: false,
111
+      is_open_is_type:false,
108
     };
112
     };
109
   },
113
   },
110
   methods: {
114
   methods: {
126
               this.is_open_xt_his_project = false
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
           } else {
139
           } else {
130
             this.$message.error(response.data.msg)
140
             this.$message.error(response.data.msg)
131
           }
141
           }
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 View File

94
             filterable
94
             filterable
95
             placeholder="请选择"
95
             placeholder="请选择"
96
             @change="changeProject"
96
             @change="changeProject"
97
+            
97
           >
98
           >
98
             <el-option
99
             <el-option
99
               v-for="item in projectList"
100
               v-for="item in projectList"
249
         }
250
         }
250
       }
251
       }
251
     },
252
     },
252
-    changeProject() {
253
+    changeProject(val) {
254
+      console.log("i23232323323",val.id)
253
       this.form.number = 1;
255
       this.form.number = 1;
254
     },
256
     },
255
     querySearch(queryString, cb) {
257
     querySearch(queryString, cb) {
270
       };
272
       };
271
     },
273
     },
272
     handleSelect(val) {
274
     handleSelect(val) {
275
+      console.log("val3223322323232323",val)
273
       this.project_name = val.project_name;
276
       this.project_name = val.project_name;
274
       this.form.project_detail = val.id;
277
       this.form.project_detail = val.id;
275
     },
278
     },
405
       });
408
       });
406
     },
409
     },
407
     addProjectList() {
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
         for (let i = 0; i < this.projectList.length; i++) {
419
         for (let i = 0; i < this.projectList.length; i++) {
413
           if (this.form.project_detail == this.projectList[i].new_id) {
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
     DeleteProject(id, index) {
431
     DeleteProject(id, index) {
448
       this.$confirm("确认删除此项目吗?", "删除", {
432
       this.$confirm("确认删除此项目吗?", "删除", {
449
         confirmButtonText: "确 定",
433
         confirmButtonText: "确 定",

+ 15 - 0
src/xt_pages/data/components/editInspection.vue View File

347
         return name
347
         return name
348
       },
348
       },
349
       addProjectList() {
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
         for (let i = 0; i < this.projectList.length; i++) {
365
         for (let i = 0; i < this.projectList.length; i++) {
351
           if (this.form.project_detail == this.projectList[i].new_id) {
366
           if (this.form.project_detail == this.projectList[i].new_id) {
352
             this.projectList[i].number = this.form.number
367
             this.projectList[i].number = this.form.number

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

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>
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
                           <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>
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
                       </template>
301
                       </template>
310
                     </el-table-column>
302
                     </el-table-column>
311
                     <el-table-column label="单价" width="40">
303
                     <el-table-column label="单价" width="40">
400
                     </el-table-column>
392
                     </el-table-column>
401
                     <el-table-column label="库存" width="40">
393
                     <el-table-column label="库存" width="40">
402
                       <template slot-scope="scope">
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
                         <!-- <span
395
                         <!-- <span
409
                             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">
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
                             {{ scope.row.stock_count }}
397
                             {{ scope.row.stock_count }}

+ 14 - 14
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

85
 
85
 
86
 
86
 
87
           <div>
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
             <el-button v-loading="loadingone" size="small"
104
             <el-button v-loading="loadingone" size="small"

+ 3 - 1
src/xt_pages/stock/index.vue View File

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

+ 2 - 0
src/xt_pages/user/components/PatientForm.vue View File

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