瀏覽代碼

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

XMLWAN 3 年之前
父節點
當前提交
42408478d3
共有 26 個文件被更改,包括 2800 次插入1974 次删除
  1. 8 0
      src/api/config.js
  2. 8 0
      src/api/dialysis.js
  3. 24 0
      src/api/his/advice.js
  4. 1 1
      src/router/modules/hospitalCharges.js
  5. 10 10
      src/utils/request.js
  6. 2 2
      src/views/layout/Layout.vue
  7. 178 11
      src/xt_pages/Pharmacy/DrugDispensing.vue
  8. 30 1
      src/xt_pages/data/basicConfig.vue
  9. 9 3
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  10. 15 1
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  11. 25 17
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  12. 3 3
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  13. 7 4
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  14. 597 329
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  15. 7 14
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyTwo.vue
  16. 1 1
      src/xt_pages/hospitalStation/components/chargeDialog.vue
  17. 832 807
      src/xt_pages/outpatientCharges/listPrint.vue
  18. 2 2
      src/xt_pages/outpatientDoctorStation/recordPrint.vue
  19. 14 12
      src/xt_pages/outpatientTool/components/detailStatistics.vue
  20. 11 0
      src/xt_pages/outpatientTool/components/gatherStatistics.vue
  21. 6 5
      src/xt_pages/role/components/AdminInfoForm.vue
  22. 23 29
      src/xt_pages/stock/drugs/components/drugOutDetail.vue
  23. 1 1
      src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue
  24. 102 25
      src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue
  25. 883 696
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  26. 1 0
      src/xt_pages/stock/inventory.vue

+ 8 - 0
src/api/config.js 查看文件

202
     params: params
202
     params: params
203
   })
203
   })
204
 }
204
 }
205
+
206
+export function changeDrugOpenConfig(params) {
207
+  return request({
208
+    url: '/api/changedrugopenconfig',
209
+    method: 'get',
210
+    params: params
211
+  })
212
+}

+ 8 - 0
src/api/dialysis.js 查看文件

291
 
291
 
292
   })
292
   })
293
 }
293
 }
294
+
295
+export function changeRole(params) {
296
+  return request({
297
+    url: '/api/get/getrolelist',
298
+    method: 'get',
299
+    params: params
300
+  })
301
+}

+ 24 - 0
src/api/his/advice.js 查看文件

23
     params: params
23
     params: params
24
   })
24
   })
25
 }
25
 }
26
+
27
+export function SaveSetting(params) {
28
+  return request({
29
+    url: '/api/advice/savesetting',
30
+    method: 'get',
31
+    params: params
32
+  })
33
+}
34
+
35
+export function getPharmacyConfig(params) {
36
+  return request({
37
+    url: '/api/advice/getpharmacyconfig',
38
+    method: 'get',
39
+    params: params
40
+  })
41
+}
42
+
43
+export function getUserdDrugList(params) {
44
+  return request({
45
+    url: '/api/advice/getpharmacybasedruglist',
46
+    method: 'get',
47
+    params: params
48
+  })
49
+}

+ 1 - 1
src/router/modules/hospitalCharges.js 查看文件

40
       path: '/hospitalCharges/summary',
40
       path: '/hospitalCharges/summary',
41
       component: () => import('@/xt_pages/hospitalStation/summary'),
41
       component: () => import('@/xt_pages/hospitalStation/summary'),
42
       name: 'summary',
42
       name: 'summary',
43
-      meta: { title: 'summary', noCache: true }
43
+      meta: { title:'summary', noCache: true }
44
     },
44
     },
45
     {
45
     {
46
       path: '/hospitalCharges/chargeDetailManagement',
46
       path: '/hospitalCharges/chargeDetailManagement',

+ 10 - 10
src/utils/request.js 查看文件

6
 // create an axios instance
6
 // create an axios instance
7
 const service = axios.create({
7
 const service = axios.create({
8
   baseURL: process.env.BASE_API, // api的base_url
8
   baseURL: process.env.BASE_API, // api的base_url
9
-  timeout: 60000, // request timeout
9
+  timeout: 30000, // request timeout
10
   withCredentials: true
10
   withCredentials: true
11
 })
11
 })
12
 
12
 
13
 // request interceptor
13
 // request interceptor
14
-service.interceptors.request.use(config => {
14
+// service.interceptors.request.use(config => {
15
 //   Do something before request is sent
15
 //   Do something before request is sent
16
-  if (store.getters.token) {
16
+//   if (store.getters.token) {
17
 //     让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改
17
 //     让每个请求携带token-- ['X-Token']为自定义key 请根据实际情况自行修改
18
-    config.headers['token_cookie'] = ""
19
-  }
20
-  return config
21
-}, error => {
18
+//     config.headers['X-Token'] = getToken()
19
+//   }
20
+//   return config
21
+// }, error => {
22
 //   Do something with request error
22
 //   Do something with request error
23
-  console.log(error) // for debug
24
-  Promise.reject(error)
25
-})
23
+//   console.log(error) // for debug
24
+//   Promise.reject(error)
25
+// })
26
 
26
 
27
 // respone interceptor
27
 // respone interceptor
28
 service.interceptors.response.use(
28
 service.interceptors.response.use(

+ 2 - 2
src/views/layout/Layout.vue 查看文件

12
           <i class="iconfont icon-s_bingli navIcon"></i>
12
           <i class="iconfont icon-s_bingli navIcon"></i>
13
           <p>电子病历</p>
13
           <p>电子病历</p>
14
         </div>
14
         </div>
15
-         <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
15
+         <!-- <div v-if="medicianshow" :class="index == 7 ? 'navOne navActive' : 'navOne'" @click="clickActive(7,'药房管理')">
16
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
16
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
17
           <p>药房管理</p>
17
           <p>药房管理</p>
18
-        </div>
18
+        </div> -->
19
         <div v-if="touxiShow" :class="index == 2 ? 'navOne navActive' : 'navOne'" @click="clickActive(2,'透析管理')">
19
         <div v-if="touxiShow" :class="index == 2 ? 'navOne navActive' : 'navOne'" @click="clickActive(2,'透析管理')">
20
           <i class="iconfont icon-computer_fill navIcon"></i>
20
           <i class="iconfont icon-computer_fill navIcon"></i>
21
           <p>透析管理</p>
21
           <p>透析管理</p>

+ 178 - 11
src/xt_pages/Pharmacy/DrugDispensing.vue 查看文件

79
             border
79
             border
80
             style="width: 100%"
80
             style="width: 100%"
81
             highlight-current-row
81
             highlight-current-row
82
+            @current-change="handleSelectionChangeOne"
82
             ref="singleTable"
83
             ref="singleTable"
83
           >
84
           >
84
             <el-table-column prop="name" label="名称" width="100">
85
             <el-table-column prop="name" label="名称" width="100">
101
       </div>
102
       </div>
102
       <div class="mainRight">
103
       <div class="mainRight">
103
         <div class="titlelist">
104
         <div class="titlelist">
104
-          <el-button type="primary" @click="dispense" v-if="state == 1"
105
-            >发药</el-button
106
-          >
105
+          <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
107
           <el-button type="primary" @click="toPrint">打印</el-button>
106
           <el-button type="primary" @click="toPrint">打印</el-button>
108
-          <el-button type="primary" v-if="state == 1">设置</el-button>
107
+          <el-button type="primary" @click="toSetting">设置</el-button>
109
         </div>
108
         </div>
110
         <el-divider></el-divider>
109
         <el-divider></el-divider>
111
         <div>
110
         <div>
115
             border
114
             border
116
             style="width: 1328px"
115
             style="width: 1328px"
117
             @selection-change="handleSelectionChange"
116
             @selection-change="handleSelectionChange"
117
+             v-if="state == 1"
118
+          >
119
+            >
120
+            <el-table-column type="selection" width="55"> </el-table-column>
121
+            <el-table-column type="index" label="序号" width="120" align="center">
122
+              <template slot-scope="scope">
123
+                {{scope.$index + 1}}
124
+              </template>
125
+            </el-table-column>
126
+            <el-table-column prop="name" label="患者名称" width="180" align="center">
127
+                <template slot-scope="scope">
128
+                 {{getPatientName(scope.row.patient_id)}}
129
+              </template>
130
+            </el-table-column>
131
+            <el-table-column prop="name" label="单次用量" width="170" align="center">
132
+               <template  slot-scope="scope">
133
+                 {{scope.row.single_dose}}
134
+               </template>
135
+            </el-table-column>
136
+            <el-table-column prop="name" label="用法" width="160" align="center">
137
+               <template  slot-scope="scope">
138
+                 {{scope.row.delivery_way}}
139
+               </template>
140
+            </el-table-column>
141
+            <el-table-column prop="name" label="频率" width="160" align="center">
142
+                <template  slot-scope="scope">
143
+                 {{scope.row.execution_frequency}}
144
+               </template>
145
+            </el-table-column>
146
+            <el-table-column prop="name" label="天数" width="160" align="center">
147
+               <template  slot-scope="scope">
148
+                 {{scope.row.day}}
149
+               </template>
150
+            </el-table-column>
151
+            <el-table-column prop="name" label="总量" width="160" align="center">
152
+                <template  slot-scope="scope">
153
+                 {{scope.row.prescribing_number}}
154
+               </template>
155
+            </el-table-column>
156
+            <el-table-column prop="name" label="数据来源" width="162" align="center">
157
+                <template  slot-scope="scope">
158
+                 <span v-if="scope.row.type == 1">血透</span>
159
+                 <span v-if="scope.row.type == 2">HIS</span>
160
+               </template>
161
+            </el-table-column>
162
+          </el-table>
163
+
164
+
165
+            <el-table
166
+            :height="tableHeight"
167
+            :data="tableList"
168
+            border
169
+            style="width: 1328px"
170
+            v-if="state == 2"
118
           >
171
           >
119
             >
172
             >
120
             <el-table-column type="selection" width="55"> </el-table-column>
173
             <el-table-column type="selection" width="55"> </el-table-column>
160
                </template>
213
                </template>
161
             </el-table-column>
214
             </el-table-column>
162
           </el-table>
215
           </el-table>
216
+
217
+
218
+        </div>
219
+        <div style="margin-top">领料人:
220
+          <el-select v-model="admin_user_id" placeholder="请选择">
221
+            <el-option
222
+              v-for="item in doctorList"
223
+              :key="item.admin_user_id"
224
+              :label="item.user_name"
225
+              :value="item.admin_user_id">
226
+            </el-option>
227
+           </el-select>
163
         </div>
228
         </div>
164
-        <div style="margin-top">诊断时间:2022-05-07 19:22:16</div>
165
       </div>
229
       </div>
230
+
231
+      <el-dialog
232
+        title="设置"
233
+        :visible.sync="dialogVisible"
234
+        width="30%">
235
+        <span>请选择药品是否要通过药房管理出库</span>
236
+        <span>
237
+          <el-radio v-model="is_open" label="1">是</el-radio>
238
+          <el-radio v-model="is_open" label="2">否</el-radio>
239
+        </span>
240
+        <span>
241
+          若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
242
+        </span>
243
+        <span slot="footer" class="dialog-footer">
244
+          <el-button @click="dialogVisible = false">取 消</el-button>
245
+          <el-button type="primary" @click="SaveSetting">确 定</el-button>
246
+        </span>
247
+      </el-dialog>
166
     </div>
248
     </div>
167
 
249
 
168
     <drug-print
250
     <drug-print
178
 <script>
260
 <script>
179
 import drugPrint from "./print/drugPrint.vue";
261
 import drugPrint from "./print/drugPrint.vue";
180
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
262
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
181
-import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug } from "@/api/his/advice";
263
+import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
182
 const moment = require('moment')
264
 const moment = require('moment')
183
 export default {
265
 export default {
184
   components: {
266
   components: {
198
       alreadmount: 0,
280
       alreadmount: 0,
199
       tableData: [],
281
       tableData: [],
200
       tableData_list: [],
282
       tableData_list: [],
283
+      tableList:[],
201
       multipleSelection: [],
284
       multipleSelection: [],
202
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
285
       start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203
       patientList:[],
286
       patientList:[],
204
       keywords:"",
287
       keywords:"",
288
+      dialogVisible:false,
289
+      is_open:"2",
290
+      isVisibility:"",
291
+      propsTable:"",
292
+      doctorList:[],
293
+      admin_user_id:this.$store.getters.xt_user.user.id,
205
     };
294
     };
206
   },
295
   },
207
 
296
 
217
     handleSelectionChange(val) {
306
     handleSelectionChange(val) {
218
       this.multipleSelection = val;
307
       this.multipleSelection = val;
219
     },
308
     },
220
-
309
+    handleSelectionChangeOne(val){
310
+      this.tableList = []
311
+      this.getUserlist(val.id)
312
+    },
221
     // 药品发药
313
     // 药品发药
222
     dispense() {
314
     dispense() {
223
-      var params = {};
315
+      var blood_ids = []
316
+      var his_ids = []
317
+      var bloodStr = ""
318
+      var hisStr = ""
319
+      for(let i=0;i<this.tableData.length;i++){
320
+        if(this.tableData[i].type == 1){
321
+          blood_ids.push(this.tableData[i].id)
322
+        }
323
+        if(this.tableData[i].type == 2){
324
+          his_ids.push(this.tableData[i].id)
325
+        }
326
+      }
327
+      bloodStr = blood_ids.join(",")
328
+      hisStr =  his_ids.join(",")
329
+      var params = {
330
+        bloodStr:bloodStr,
331
+        hisStr:hisStr,
332
+        admin_user_id:this.admin_user_id,
333
+      }
224
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
334
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
225
         confirmButtonText: "确 定",
335
         confirmButtonText: "确 定",
226
         cancelButtonText: "取 消",
336
         cancelButtonText: "取 消",
227
         type: "warning",
337
         type: "warning",
228
-      })
229
-        .then(() => {})
230
-        .catch(() => {});
338
+      }).then(() => {
339
+        updatePharmacyBaseDrug(params).then(response=>{
340
+           if(response.data.state == 1){
341
+           var msg = response.data.data.msg
342
+           var medical =  response.data.data.medical
343
+           if(msg === 1){
344
+             this.$message.success("发药成功!")
345
+           }
346
+           if(msg == 2 || msg ===3){
347
+             this.$message.error("库存不足")
348
+           }
349
+         }
350
+        })
351
+      }).catch(() => {});
231
     },
352
     },
232
 
353
 
233
     // 药品退药
354
     // 药品退药
255
            var list =  response.data.data.list
376
            var list =  response.data.data.list
256
            this.$refs.singleTable.setCurrentRow(list[0])
377
            this.$refs.singleTable.setCurrentRow(list[0])
257
            this.tableData = list
378
            this.tableData = list
379
+           var doctorlist = response.data.data.doctorlist
380
+           this.doctorList = doctorlist
258
          }
381
          }
259
       }) 
382
       }) 
260
     }, 
383
     }, 
320
        }
443
        }
321
        return name
444
        return name
322
     },
445
     },
446
+    toSetting(){
447
+      getPharmacyConfig().then(response=>{
448
+        if(response.data.state == 1){
449
+           this.dialogVisible = true
450
+           var config = response.data.data.config
451
+           this.is_open = config.is_open.toString()
452
+        }
453
+      })
454
+    },
455
+    SaveSetting(){
456
+      var params = {
457
+        is_open:parseInt(this.is_open),
458
+      }
459
+     SaveSetting(params).then(response=>{
460
+       if(response.data.state == 1){
461
+         var config = response.data.data.config
462
+         this.$message.success("保存成功!")
463
+         this.dialogVisible = false
464
+       }
465
+     })
466
+    },
467
+    getUserlist(drug_id){
468
+       var params = {
469
+        start_time:this.start_time,
470
+        drug_id:drug_id,
471
+      }
472
+      getUserdDrugList(params).then(response=>{
473
+       if(response.data.state == 1){
474
+           var advicelist = response.data.data.advicelist
475
+           for(let i=0;i<advicelist.length;i++){
476
+             advicelist[i].type = 1
477
+             advicelist[i].day = " "
478
+             this.tableList.push(advicelist[i])
479
+           }
480
+           var hisAdviceList = response.data.data.hisAdviceList
481
+           for(let i=0;i<hisAdviceList.length;i++){
482
+             hisAdviceList[i].type = 2
483
+             this.tableList.push(hisAdviceList[i])
484
+           }
485
+           var patient = response.data.data.patient
486
+           this.patientList = patient
487
+        }
488
+      })
489
+    }
323
   },
490
   },
324
   created() {
491
   created() {
325
     this.getlist()
492
     this.getlist()

+ 30 - 1
src/xt_pages/data/basicConfig.vue 查看文件

39
             <p style="margin-top:20px;">耗材先出库再执行:
39
             <p style="margin-top:20px;">耗材先出库再执行:
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
41
             </p>
41
             </p>
42
+            <!-- <p style="margin-top:20px;">药品在保存处方时出库:
43
+                <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
+            </p> -->
42
         </div>
45
         </div>
43
 
46
 
44
 
47
 
94
 
97
 
95
 <script>
98
 <script>
96
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
99
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
97
-import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig} from '@/api/config'
100
+import { getAllIsOpenInit,postXtHisIsOpen,postMonitorIsOpen,changeFuncPrint,getDataPrintList,postXtHisProjectIsOpen,changeStockSetting,changeAdviceConfig,changePrescriptionConfig,changeDrugOpenConfig} from '@/api/config'
98
 
101
 
99
 export default {
102
 export default {
100
   name: "printTemplate",
103
   name: "printTemplate",
115
       is_open_is_type:false,
118
       is_open_is_type:false,
116
       is_open_advice_xt_his:false,
119
       is_open_advice_xt_his:false,
117
       is_open_prescription_xt_his:false,
120
       is_open_prescription_xt_his:false,
121
+      drug_out_open:false,
118
     };
122
     };
119
   },
123
   },
120
   methods: {
124
   methods: {
154
               this.is_open_prescription_xt_his = false
158
               this.is_open_prescription_xt_his = false
155
             }
159
             }
156
 
160
 
161
+            if(response.data.data.is_open == 1){
162
+              this.drug_out_open = true
163
+            }else{
164
+              this.drug_out_open = false
165
+            }
166
+
157
           } else {
167
           } else {
158
             this.$message.error(response.data.msg)
168
             this.$message.error(response.data.msg)
159
           }
169
           }
376
             this.$message.success("保存成功!")
386
             this.$message.success("保存成功!")
377
           }
387
           }
378
       })
388
       })
389
+    },
390
+    changeDrugOpen(){
391
+      var drug_out_open = 0
392
+      if(this.drug_out_open == false){
393
+        drug_out_open = 2
394
+      }
395
+      if(this.drug_out_open == true){
396
+        drug_out_open = 1
397
+      }
398
+      var params = {
399
+        drug_out_open:drug_out_open,
400
+      }
401
+      changeDrugOpenConfig(params).then(response=>{
402
+        if(response.data.state == 1){
403
+           var msg =  response.data.data.msg
404
+           this.$message.success("保存成功!")
405
+        }
406
+      })
407
+
379
     }
408
     }
380
 
409
 
381
   },
410
   },

+ 9 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

1636
           this.$message.error('你没有执行医嘱的权限')
1636
           this.$message.error('你没有执行医嘱的权限')
1637
           return false
1637
           return false
1638
         }
1638
         }
1639
+
1640
+        console.log("王哈",this.currentRow)
1641
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id ==10340 ){
1642
+           if(this.currentRow.checker == 0){
1643
+              this.$message.error("请先核对医嘱")
1644
+              return
1645
+           }
1646
+        }
1639
         this.execTimeDialogVisible = true
1647
         this.execTimeDialogVisible = true
1640
-        // if (this.currentAdvices.length <= 0) {
1641
-        //   return;
1642
-        //  }
1643
         if (this.current_select_object == 1) {
1648
         if (this.current_select_object == 1) {
1644
           var isExecution = true
1649
           var isExecution = true
1645
           var adviceArr = this.advice_groups[this.current_group_index].advices
1650
           var adviceArr = this.advice_groups[this.current_group_index].advices
2085
         }
2090
         }
2086
       },
2091
       },
2087
       cellMouseEnter: function(row, column, event) {
2092
       cellMouseEnter: function(row, column, event) {
2093
+        console.log("row323323322323233232",row)
2088
         this.currentRow = row
2094
         this.currentRow = row
2089
         this.groupSelectRow = row
2095
         this.groupSelectRow = row
2090
         // this.sameRowArr.forEach((arr, i) => {
2096
         // this.sameRowArr.forEach((arr, i) => {

+ 15 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

162
       if (this.form.puncture_nurse_id == 0) {
162
       if (this.form.puncture_nurse_id == 0) {
163
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
163
         this.form.puncture_nurse_id = this.$store.getters.xt_user.user.id
164
       }
164
       }
165
+     
166
+      if(this.form.change_nurse == 0){
165
 
167
 
166
-
168
+         this.form.change_nurse = this.$store.getters.xt_user.user.id
169
+      }
170
+      
171
+      if(this.form.washpipe_nurse == 0){
172
+        this.form.washpipe_nurse =  this.$store.getters.xt_user.user.id
173
+      }
174
+      if(this.form.difficult_puncture_nurse == 0){
175
+        this.form.difficult_puncture_nurse =  this.$store.getters.xt_user.user.id
176
+      }
177
+      if(this.form.new_fistula_nurse == 0){
178
+        this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id
179
+      }
167
     },
180
     },
168
     watch: {
181
     watch: {
169
       patient:{
182
       patient:{
182
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
195
         this.form.change_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id : this.dialysis_order.change_nurse
183
         this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
196
         this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
184
         this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
197
         this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
198
+
185
         var nowDate = new Date()
199
         var nowDate = new Date()
186
         var nowYear = nowDate.getFullYear()
200
         var nowYear = nowDate.getFullYear()
187
         var nowMonth = nowDate.getMonth() + 1
201
         var nowMonth = nowDate.getMonth() + 1

+ 25 - 17
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

128
         </el-select>
128
         </el-select>
129
       </el-form-item>
129
       </el-form-item>
130
 
130
 
131
-      <el-form-item label="第二核对人员工号:" isShowFiled label-width="140px">
131
+      <el-form-item label="第二核对人员工号:" v-if="isShowFiled('第二核对人员工号')" label-width="150px">
132
         <el-input style="width:200px" v-model="doubleReview.employee_number"></el-input>
132
         <el-input style="width:200px" v-model="doubleReview.employee_number"></el-input>
133
       </el-form-item>
133
       </el-form-item>
134
 
134
 
151
 </template>
151
 </template>
152
 
152
 
153
 <script>
153
 <script>
154
-  import { postDoubleCheck } from '@/api/dialysis'
154
+  import { postDoubleCheck,changeRole } from '@/api/dialysis'
155
   import { uParseTime } from '@/utils/tools'
155
   import { uParseTime } from '@/utils/tools'
156
   import { parseTime } from '@/utils'
156
   import { parseTime } from '@/utils'
157
   import { getDataConfig } from '@/utils/data'
157
   import { getDataConfig } from '@/utils/data'
209
         dialysate_flow:"透析液流量:",
209
         dialysate_flow:"透析液流量:",
210
         blood_access_part_opera_id:"通路类型:",
210
         blood_access_part_opera_id:"通路类型:",
211
         displace_liqui_value:"置换液总量:",
211
         displace_liqui_value:"置换液总量:",
212
+        job_number:"",
213
+        org_id:0,
212
       }
214
       }
213
     }, 
215
     }, 
214
     methods: {
216
     methods: {
262
           //   this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
264
           //   this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
263
           // }
265
           // }
264
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
266
           this.first_check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
265
-          console.log( this.first_check_time )
266
-          console.log( this.check_time )
267
+          
267
 
268
 
268
         }
269
         }
269
       },
270
       },
307
         if(this.check_time){
308
         if(this.check_time){
308
           ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
309
           ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
309
         }
310
         }
310
-        // ParamsQuery['check_time'] = this.record_date + ' ' + this.check_time
311
+        
311
         if(this.first_check_time){
312
         if(this.first_check_time){
312
           ParamsQuery['first_check_time'] = this.record_date + ' ' + this.first_check_time
313
           ParamsQuery['first_check_time'] = this.record_date + ' ' + this.first_check_time
313
         }
314
         }
314
         
315
         
315
         ParamsQuery['creater'] = this.doubleReview.creater
316
         ParamsQuery['creater'] = this.doubleReview.creater
316
         ParamsQuery['modifier'] = this.doubleReview.modifier
317
         ParamsQuery['modifier'] = this.doubleReview.modifier
317
-
318
-
318
+            
319
+    
320
+       
319
         postDoubleCheck(ParamsQuery).then(response => {
321
         postDoubleCheck(ParamsQuery).then(response => {
320
           if (response.data.state == 0) {
322
           if (response.data.state == 0) {
321
             this.$message.error(response.data.msg)
323
             this.$message.error(response.data.msg)
341
            
343
            
342
 
344
 
343
             let doublecheck_resp = response.data.data.doubleCheck
345
             let doublecheck_resp = response.data.data.doubleCheck
344
-            console.log("处方233232323232232332",this.prescription)
345
             var doubleCheck = this.double_check
346
             var doubleCheck = this.double_check
346
             for (var index in doublecheck_resp) {        
347
             for (var index in doublecheck_resp) {        
347
               this.$set(doubleCheck, index, doublecheck_resp[index])
348
               this.$set(doubleCheck, index, doublecheck_resp[index])
550
          
551
          
551
          var arr = []
552
          var arr = []
552
          var str = val.join(';')
553
          var str = val.join(';')
553
-         console.log("strw222222222",str)
554
         if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
554
         if(str.indexOf('透析器/灌流器')!=-1 && this.prescription!=null){
555
             arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
555
             arr.push("透析器/灌流器:"+(this.prescription.dialyzer_perfusion_apparatus?this.prescription.dialyzer_perfusion_apparatus:""))
556
         }
556
         }
586
         if(str.indexOf('钙')!=-1 && this.prescription==null ){
586
         if(str.indexOf('钙')!=-1 && this.prescription==null ){
587
           arr.push("钙:")
587
           arr.push("钙:")
588
         }
588
         }
589
-        console.log("arr",arr)
589
+    
590
         this.doubleReview.dialysis_item_desc = arr.join(";")
590
         this.doubleReview.dialysis_item_desc = arr.join(";")
591
         if(val.length > 0){
591
         if(val.length > 0){
592
           this.doubleReview.dialysis_item_check = 2
592
           this.doubleReview.dialysis_item_check = 2
684
         if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
684
         if(str.indexOf("置换液总量")!=-1 && this.prescription == null){
685
            arr.push("置换液总量:")
685
            arr.push("置换液总量:")
686
         }
686
         }
687
-        console.log("arr",arr)
688
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
687
         this.doubleReview.dialysis_parameter_desc = arr.join(";")
689
         if(val.length>0){
688
         if(val.length>0){
690
           this.doubleReview.dialysis_parameter_check = 2
689
           this.doubleReview.dialysis_parameter_check = 2
719
           if(str.indexOf('滑脱')!=-1){
718
           if(str.indexOf('滑脱')!=-1){
720
              arr.push("滑脱:")
719
              arr.push("滑脱:")
721
           }
720
           }
722
-        console.log("arr",arr)
723
         this.doubleReview.vascular_access_desc = arr.join(";")
721
         this.doubleReview.vascular_access_desc = arr.join(";")
724
         if(val.length>0){
722
         if(val.length>0){
725
           this.doubleReview.vascular_access_verification = 2
723
           this.doubleReview.vascular_access_verification = 2
790
 
788
 
791
       GetDialysateFormulationById(val) {
789
       GetDialysateFormulationById(val) {
792
          this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
790
          this.dialysate_formulation_options = getDataConfig('hemodialysis','dialysate_formulation')
793
-         console.log("透析液配方",this.dialysate_formulation_options)
794
         
791
         
795
         let name = ''
792
         let name = ''
796
         let dfl = this.dialysate_formulation_options.length
793
         let dfl = this.dialysate_formulation_options.length
932
      getDisplace(id){
929
      getDisplace(id){
933
        var name = ""
930
        var name = ""
934
        var arr = this.$store.getters.displace_liqui
931
        var arr = this.$store.getters.displace_liqui
935
-       console.log("arr233233233223",arr)
936
        for(let i=0;i<arr.length;i++){
932
        for(let i=0;i<arr.length;i++){
937
         if(id == arr[i].id){
933
         if(id == arr[i].id){
938
           name = arr[i].name
934
           name = arr[i].name
940
        }
936
        }
941
        return name
937
        return name
942
      },
938
      },
939
+     changeRole(admin_user_id){
940
+        var params = {
941
+          admin_user_id:admin_user_id,
942
+        }
943
+       changeRole(params).then(response=>{
944
+         if(response.data.state == 1){
945
+           var role = response.data.data.adminRole
946
+           this.job_number = role.job_number
947
+         }
948
+       })
949
+     }
943
     },
950
     },
944
 
951
 
945
     props: {
952
     props: {
1084
           if(this.prescription.displace_liqui_value!=""){
1091
           if(this.prescription.displace_liqui_value!=""){
1085
             this.displace_liqui_value = "置换液总量:"
1092
             this.displace_liqui_value = "置换液总量:"
1086
             this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
1093
             this.displace_liqui_value = this.displace_liqui_value + this.prescription.displace_liqui_value
1087
-            console.log("置换液总量",this.displace_liqui_value)
1094
+          
1088
           }
1095
           }
1089
         
1096
         
1090
         }
1097
         }
1194
            if(this.double_check.pipeline_connection_desc.indexOf("管路打折")!=-1){
1201
            if(this.double_check.pipeline_connection_desc.indexOf("管路打折")!=-1){
1195
              this.checkListThree.push("管路打折")
1202
              this.checkListThree.push("管路打折")
1196
            }
1203
            }
1197
-           console.log("hhh",this.checkListOne)
1204
+      
1198
         }
1205
         }
1199
       }, 
1206
       }, 
1200
       'double_check.id': function() {
1207
       'double_check.id': function() {
1268
      
1275
      
1269
       var date = this.$route.query && this.$route.query.date
1276
       var date = this.$route.query && this.$route.query.date
1270
       this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1277
       this.record_date = date ? uParseTime(date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}')
1271
-
1278
+      this.org_id = this.$store.getters.xt_user.org.id
1279
+     
1272
       var nowDate = new Date()
1280
       var nowDate = new Date()
1273
       var nowYear = nowDate.getFullYear()
1281
       var nowYear = nowDate.getFullYear()
1274
       var nowMonth = nowDate.getMonth() + 1
1282
       var nowMonth = nowDate.getMonth() + 1

+ 3 - 3
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39
         </el-form-item>
39
         </el-form-item>
40
 
40
 
41
-        <el-form-item label="透析器凝血: ">
41
+        <el-form-item label="透析器凝血: " v-if="isShowFiled('透析器凝血')">
42
           <el-input
42
           <el-input
43
             style="width:200px"
43
             style="width:200px"
44
             v-model="form.cruor"
44
             v-model="form.cruor"
256
         ParamsQuery["nurse"] = this.form.nurse_id;
256
         ParamsQuery["nurse"] = this.form.nurse_id;
257
         ParamsQuery["end_time"] = this.end_time;
257
         ParamsQuery["end_time"] = this.end_time;
258
         ParamsQuery["mode"] = "2"
258
         ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = this.form.puncture_point_haematoma
259
+        ParamsQuery["puncture_point_haematoma"] = paseInt(this.form.puncture_point_haematoma)
260
         ParamsQuery["internal_fistula"] = this.form.internal_fistula
260
         ParamsQuery["internal_fistula"] = this.form.internal_fistula
261
         ParamsQuery["catheter"] = this.form.catheter
261
         ParamsQuery["catheter"] = this.form.catheter
262
         ParamsQuery["cruor"] = this.form.cruor
262
         ParamsQuery["cruor"] = this.form.cruor
284
       submit: function() {
284
       submit: function() {
285
         this.loading = true
285
         this.loading = true
286
         let mode = "1"
286
         let mode = "1"
287
-        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,this.form.puncture_point_haematoma,this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
287
+        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
288
           this.loading = false
288
           this.loading = false
289
           var resp = rs.data
289
           var resp = rs.data
290
           if (resp.state == 1) {
290
           if (resp.state == 1) {

+ 7 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

1011
             v-if="org_template_info.template_id == 42"
1011
             v-if="org_template_info.template_id == 42"
1012
           >
1012
           >
1013
           </DialysisPrintOrderFortyTwo>
1013
           </DialysisPrintOrderFortyTwo>
1014
+
1015
+        
1014
           <DialysisPrintOrderFortyThree
1016
           <DialysisPrintOrderFortyThree
1015
             v-bind:childResponse="childResponse"
1017
             v-bind:childResponse="childResponse"
1016
             v-if="org_template_info.template_id == 43"
1018
             v-if="org_template_info.template_id == 43"
1017
           >
1019
           >
1018
           </DialysisPrintOrderFortyThree>
1020
           </DialysisPrintOrderFortyThree>
1021
+
1019
           <DialysisPrintOrderFortyFour
1022
           <DialysisPrintOrderFortyFour
1020
             v-bind:childResponse="childResponse"
1023
             v-bind:childResponse="childResponse"
1021
             v-if="org_template_info.template_id == 44"
1024
             v-if="org_template_info.template_id == 44"
1022
           >
1025
           >
1023
           </DialysisPrintOrderFortyFour>
1026
           </DialysisPrintOrderFortyFour>
1027
+
1024
           <DialysisPrintOrderFortyFive
1028
           <DialysisPrintOrderFortyFive
1025
             v-bind:childResponse="childResponse"
1029
             v-bind:childResponse="childResponse"
1026
             v-if="org_template_info.template_id == 45"
1030
             v-if="org_template_info.template_id == 45"
1375
       const style9 =
1379
       const style9 =
1376
         '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1380
         '@media print {#dialysis-print-box-1{margin:0 auto;}.dialysis-print-order{width:920px;margin:0 10px;font-size:10px;}.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 940px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}@page {margin-top:5px;}.table-box1 tr {border-bottom: 1px solid #000;}';
1377
       const style10 =
1381
       const style10 =
1378
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1382
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px}   .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1379
 
1383
 
1380
       // 三明曙光样式
1384
       // 三明曙光样式
1381
       const style11 =
1385
       const style11 =
1382
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1386
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1383
       // 漳浦天福样式
1387
       // 漳浦天福样式
1384
-      const style12 =
1385
-        '@media print {.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1388
+      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1386
 
1389
 
1387
       if (this.org_template_info.template_id == 1) {
1390
       if (this.org_template_info.template_id == 1) {
1388
         printJS({
1391
         printJS({
1667
         printJS({
1670
         printJS({
1668
           printable: "dialysis-print-box",
1671
           printable: "dialysis-print-box",
1669
           type: "html",
1672
           type: "html",
1670
-          style: style10,
1673
+          style: style2,
1671
           scanStyles: false,
1674
           scanStyles: false,
1672
         });
1675
         });
1673
       } else if (this.org_template_info.template_id == 43) {
1676
       } else if (this.org_template_info.template_id == 43) {

文件差異過大導致無法顯示
+ 597 - 329
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue


+ 7 - 14
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyTwo.vue 查看文件

187
                     </div>
187
                     </div>
188
                     <div class="inline_block" style="margin-left:10px;flex:1;">
188
                     <div class="inline_block" style="margin-left:10px;flex:1;">
189
                       穿刺方式:
189
                       穿刺方式:
190
-                      <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
191
-                        /
192
-                      </div>
193
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
194
-                        绳梯
195
-                      </div>
196
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
197
-                        扣眼
198
-                      </div>
199
-                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
200
-                        区域
201
-                      </div> -->
202
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
190
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
203
                         /
191
                         /
204
                       </div>
192
                       </div>
211
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
199
                       <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
212
                         区域
200
                         区域
213
                       </div>
201
                       </div>
202
+                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('顺穿')>-1">
203
+                        顺穿
204
+                      </div>
205
+                      <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('反穿')>-1">
206
+                        反穿
207
+                      </div>
214
                     </div>
208
                     </div>
215
                     <div class="inline_block" style="margin-left:10px;flex:1;">
209
                     <div class="inline_block" style="margin-left:10px;flex:1;">
216
                       穿刺针:
210
                       穿刺针:
548
                         <td width="50">血流量<br />(ml/min)</td>
542
                         <td width="50">血流量<br />(ml/min)</td>
549
                         <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
543
                         <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
550
                         <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
544
                         <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
551
-                        <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
552
-                        <td width="60" v-if="org_id == 9836">体温(°C)</td>
545
+                        <td width="60">透析液温度(°C)</td>
553
                         <td width="50">电导度<br />(ms/cm)</td>
546
                         <td width="50">电导度<br />(ms/cm)</td>
554
                         <td width="50">超滤量<br />(ml)</td>
547
                         <td width="50">超滤量<br />(ml)</td>
555
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">
548
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">

+ 1 - 1
src/xt_pages/hospitalStation/components/chargeDialog.vue 查看文件

216
           // {value: 2, label: '银行卡'},
216
           // {value: 2, label: '银行卡'},
217
           // {value: 3, label: '微信'},
217
           // {value: 3, label: '微信'},
218
           // {value: 4, label: '支付宝'},
218
           // {value: 4, label: '支付宝'},
219
-          { value: 5, label: '医保卡' },
219
+          { value: 4, label: '医保卡' },
220
 
220
 
221
         ],
221
         ],
222
         total: "",
222
         total: "",

文件差異過大導致無法顯示
+ 832 - 807
src/xt_pages/outpatientCharges/listPrint.vue


+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue 查看文件

13
 
13
 
14
     <div class="dialysisPage" style="padding-top: 40px">
14
     <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
-        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164"
16
+        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164 && org_id == 10188"
17
         ref="printOne"
17
         ref="printOne"
18
         v-bind:childResponse="childResponse"
18
         v-bind:childResponse="childResponse"
19
         :patient="patient"
19
         :patient="patient"
23
       ></printOne>
23
       ></printOne>
24
       <printTwo
24
       <printTwo
25
         v-if="
25
         v-if="
26
-          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164
26
+          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164 ||org_id == 10188
27
         "
27
         "
28
         ref="printTwo"
28
         ref="printTwo"
29
         v-bind:childResponse="childResponse"
29
         v-bind:childResponse="childResponse"

+ 14 - 12
src/xt_pages/outpatientTool/components/detailStatistics.vue 查看文件

11
           style="width: 150px; margin-left: 10px"
11
           style="width: 150px; margin-left: 10px"
12
           @change="changeItem"
12
           @change="changeItem"
13
         >
13
         >
14
-          <el-option label="全部" value=0> </el-option>
14
+          <el-option label="全部" value="0"> </el-option>
15
           <el-option
15
           <el-option
16
             v-for="(item, index) in items"
16
             v-for="(item, index) in items"
17
             :key="index"
17
             :key="index"
330
 
330
 
331
           var new_arr = [];
331
           var new_arr = [];
332
 
332
 
333
-          let list_1 = this.$store.getters.pagedata.list;
334
-          if (list_1.keywords == undefined) {
335
-            this.keywords = "";
336
-          } else {
337
-            this.keywords = list_1.keywords;
338
-          }
339
-          this.id = list_1.type_id;
340
-          this.item_type = this.id
333
+          
341
 
334
 
342
           if (this.keywords != "") {
335
           if (this.keywords != "") {
343
             for (let i = 0; i < this.tableData.length; i++) {
336
             for (let i = 0; i < this.tableData.length; i++) {
443
           act_pay += this.list[i].orders[j].acct_pay;
436
           act_pay += this.list[i].orders[j].acct_pay;
444
         }
437
         }
445
       }
438
       }
446
-      return act_pay.toFixed(2)
439
+      return act_pay.toFixed(2);
447
     },
440
     },
448
     getFundPaySumamt() {
441
     getFundPaySumamt() {
449
       var fund_pay_sumamt = 0;
442
       var fund_pay_sumamt = 0;
528
     },
521
     },
529
   },
522
   },
530
   created() {
523
   created() {
531
-    this.org_id = this.$store.getters.xt_user.org.id;
532
-    console.log("org_id233232323232",this.org_id)
524
+    let list_1 = this.$store.getters.pagedata.list;
525
+          if (list_1.start_time == "") {
526
+            this.chargeDate[0] = "";
527
+          } else {
528
+            this.chargeDate[0] = list_1.start_time;
529
+          }
530
+           if (list_1.end_time == "") {
531
+            this.chargeDate[1] = "";
532
+          } else {
533
+            this.chargeDate[1] = list_1.end_time;
534
+          }
533
     this.start_time = this.chargeDate[0];
535
     this.start_time = this.chargeDate[0];
534
     this.end_time = this.chargeDate[1];
536
     this.end_time = this.chargeDate[1];
535
     this.getHisSummaryDetailList();
537
     this.getHisSummaryDetailList();

+ 11 - 0
src/xt_pages/outpatientTool/components/gatherStatistics.vue 查看文件

1246
     },
1246
     },
1247
   },
1247
   },
1248
   created() {
1248
   created() {
1249
+    let list_1 = this.$store.getters.pagedata.list;
1250
+          if (list_1.start_time == "") {
1251
+            this.chargeDate[0] = "";
1252
+          } else {
1253
+            this.chargeDate[0] = list_1.start_time;
1254
+          }
1255
+           if (list_1.end_time == "") {
1256
+            this.chargeDate[1] = "";
1257
+          } else {
1258
+            this.chargeDate[1] = list_1.end_time;
1259
+    }
1249
     this.start_time = this.chargeDate[0];
1260
     this.start_time = this.chargeDate[0];
1250
     this.end_time = this.chargeDate[1];
1261
     this.end_time = this.chargeDate[1];
1251
     this.tableList = [];
1262
     this.tableList = [];

+ 6 - 5
src/xt_pages/role/components/AdminInfoForm.vue 查看文件

74
         <el-input v-model="form.doctor_number"></el-input>
74
         <el-input v-model="form.doctor_number"></el-input>
75
        </el-form-item>
75
        </el-form-item>
76
     </el-col>
76
     </el-col>
77
+    <el-col :span="8">
78
+       <el-form-item label="工号:">
79
+           <el-input v-model="form.job_number" style="width:180px;"></el-input>
80
+       </el-form-item>
81
+    </el-col>
77
    </el-row>
82
    </el-row>
78
   
83
   
79
   <div v-show="show">
84
   <div v-show="show">
203
         
208
         
204
        </el-form-item>
209
        </el-form-item>
205
     </el-col>
210
     </el-col>
206
-     <el-col :span="8">
207
-       <el-form-item label="工号:">
208
-           <el-input v-model="form.job_number" style="width:180px;"></el-input>
209
-       </el-form-item>
210
-    </el-col>
211
+   
211
     <el-col :span="8">
212
     <el-col :span="8">
212
        <el-form-item label="处方资格标志:">
213
        <el-form-item label="处方资格标志:">
213
            <el-select v-model="form.prescription_qualification_identification" placeholder="处方资格标志" style="width:180px;">
214
            <el-select v-model="form.prescription_qualification_identification" placeholder="处方资格标志" style="width:180px;">

+ 23 - 29
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

159
         </el-table-column>
159
         </el-table-column>
160
         <el-table-column label="总价" align="center">
160
         <el-table-column label="总价" align="center">
161
           <template slot-scope="scope">
161
           <template slot-scope="scope">
162
-           <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
163
-           <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
164
-           <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
-           <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
166
-             <!-- <span v-if="scope.row.price >0">
167
-                <span v-if="scope.row.count_unit == scope.row.min_unit">
168
-                  {{(scope.row.price * scope.row.count).toFixed(2)}}
169
-                </span>  
170
-                <span v-if="scope.row.count_unit == scope.row.max_unit">{{(scope.row.price * scope.row.count * scope.row.min_number).toFixed(2)}}</span>
171
-              </span>
172
-             <span v-if="scope.row.price  == 0">
173
-               <span v-if="scope.row.count_unit  == scope.row.min_unit">
174
-                 {{((getPrice(scope.row.drug_id)* scope.row.count)).toFixed(2)}}
175
-               </span> 
176
-               <span v-if="scope.row.count_unit == scope.row.max_unit">
177
-                 {{(getPrice(scope.row.drug_id)* scope.row.count * scope.row.min_number).toFixed(2)}}
178
-              </span>
179
-             </span> -->
180
-             {{scope.row.total_price}}
181
-           </span>
162
+            <span v-if="scope.row.is_total !=1">
163
+              <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span> 
164
+              <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
165
+              <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span> 
166
+              <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
167
+                 {{scope.row.total_price}}
168
+               </span>
169
+            </span>
170
+            <span v-if="scope.row.is_total == 1">
171
+              {{scope.row.total_price}}
172
+            </span>
182
           </template>
173
           </template>
183
         </el-table-column>
174
         </el-table-column>
184
       </el-table>
175
       </el-table>
437
                order[i].total_price = order[i].count * order[i].last_price
428
                order[i].total_price = order[i].count * order[i].last_price
438
                total_price += order[i].count * order[i].last_price
429
                total_price += order[i].count * order[i].last_price
439
              }else{
430
              }else{
431
+               console.log("555555555555",order[i])
440
                if(order[i].price > 0){
432
                if(order[i].price > 0){
433
+                console.log("近来33232323322323")
441
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
434
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
442
                    order[i].total_price = order[i].count * order[i].price
435
                    order[i].total_price = order[i].count * order[i].price
443
-                  total_price += order[i].total_price
444
                  }
436
                  }
445
                  if(order[i].count_unit == order[i].max_unit){
437
                  if(order[i].count_unit == order[i].max_unit){
446
                    if(order[i].is_sys == 0){
438
                    if(order[i].is_sys == 0){
449
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
441
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
450
                    }
442
                    }
451
                  }
443
                  }
444
+
445
+                total_price += order[i].total_price
452
                 
446
                 
453
                }
447
                }
448
+
454
                if(order[i].price ==0 ){
449
                if(order[i].price ==0 ){
455
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
450
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
456
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
451
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
457
-                   total_price +=order[i].total_price
452
+                  
458
                     order[i].price = this.getPrice(order[i].drug_id)
453
                     order[i].price = this.getPrice(order[i].drug_id)
459
                  }
454
                  }
460
                 
455
                 
466
                    }
461
                    }
467
                    order[i].price = this.getPrice(order[i].drug_id)
462
                    order[i].price = this.getPrice(order[i].drug_id)
468
                 }
463
                 }
469
-                 
464
+                total_price +=order[i].total_price
470
                } 
465
                } 
471
                
466
                
472
              }
467
              }
473
             
468
             
474
           }
469
           }
475
-         
470
+           console.log("toal_p3232332332233232",total_price)
476
            order.push({
471
            order.push({
477
             warehouse_out_order_number: "合计",
472
             warehouse_out_order_number: "合计",
478
             is_total: 1,
473
             is_total: 1,
487
        
482
        
488
           console.log("233223322323322332232323",order)
483
           console.log("233223322323322332232323",order)
489
           this.tableData = order
484
           this.tableData = order
485
+
490
            let objInfo = {}
486
            let objInfo = {}
491
           order.forEach((item,index)=>{
487
           order.forEach((item,index)=>{
492
              let { drug_id } = item
488
              let { drug_id } = item
579
           this.tablePrint[i].index = i+1
575
           this.tablePrint[i].index = i+1
580
         }
576
         }
581
         for(let i=0;i<this.tablePrint.length;i++){
577
         for(let i=0;i<this.tablePrint.length;i++){
582
-           if(this.org_id == 9919 ){
578
+           if(this.org_id == 9919){
583
            
579
            
584
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
580
              this.tablePrint[i].count = this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child)
585
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
581
              this.tablePrint[i].total_price = this.getCountSenven(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)
699
          end_time:this.end_time,
695
          end_time:this.end_time,
700
          order_type:2,
696
          order_type:2,
701
       }  
697
       }  
702
-     
703
      getDrugOutOrderPrint(params).then(response=>{
698
      getDrugOutOrderPrint(params).then(response=>{
704
         if(response.data.state == 1){
699
         if(response.data.state == 1){
705
             var list = response.data.data.list
700
             var list = response.data.data.list
706
-          
707
             let objInfo = {}
701
             let objInfo = {}
708
             if(this.org_id == 9919){
702
             if(this.org_id == 9919){
709
               list.forEach((item,index)=>{
703
               list.forEach((item,index)=>{
726
                   min_price:item.XtBaseDrug.min_price,
720
                   min_price:item.XtBaseDrug.min_price,
727
                 }
721
                 }
728
               }
722
               }
729
-            })
723
+             })
730
             }else{
724
             }else{
731
-               list.forEach((item,index)=>{
725
+             list.forEach((item,index)=>{
732
               let { drug_id } = item
726
               let { drug_id } = item
733
               if(!objInfo[drug_id]){
727
               if(!objInfo[drug_id]){
734
                 objInfo[drug_id] = {
728
                 objInfo[drug_id] = {

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue 查看文件

523
           this.list = response.data.data.list;
523
           this.list = response.data.data.list;
524
           this.doctorList = response.data.data.doctorList;
524
           this.doctorList = response.data.data.doctorList;
525
           
525
           
526
-          this.doctorList.push({index:"999",user_name:"护士站", admin_user_id:"999"})
526
+          // this.doctorList.push({index:999,user_name:"护士站", admin_user_id:999})
527
         
527
         
528
         }
528
         }
529
         loading.close();
529
         loading.close();

+ 102 - 25
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue 查看文件

7
     </div>
7
     </div>
8
     <div class="app-container ">
8
     <div class="app-container ">
9
       <div id="dialysis-print-box">
9
       <div id="dialysis-print-box">
10
+        <div v-if="org_id!=9671 && org_id!=10210">
10
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
         <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12
          <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
12
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
13
           <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
58
              </tr>
59
              </tr>
59
             </tbody>
60
             </tbody>
60
           </table>
61
           </table>
62
+          <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
63
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
64
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
65
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
66
+            <div style="width:50px;">审核:</div><div style="width:100px;"></div>
67
+            <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
68
+          </div>
69
+          <div v-if="orgId == 10024" style="display:flex;margin-top:1px;float:right;">
70
+            <div style="width:50px;">科室:</div><div style="width:60px;"></div>
71
+            <div style="width:70px;">领料人:</div><div style="width:60px;"></div>
72
+            <div style="width:80px;">审批:</div><div style="width:100px;">肖庆娥</div>
73
+            <div style="width:50px;">会计:</div><div style="width:100px;">徐立琼</div>
74
+            <div style="width:50px;">审核:</div><div style="width:100px;">徐立琼</div>
75
+            <div style="width:70px;">制单人:</div><div style="width:100px;">徐立琼</div>
76
+          </div>
77
+        </div>
78
+      </div> 
79
+
61
 
80
 
81
+      <div v-if="org_id == 9671 || org_id == 10210">
82
+       <div class="dialysis-print-order" v-for="(it,index) in tableData" :key="index" >
83
+         <div class="order-yy-name" style="font-size:22px;font-weight:bold;letter-spacing:0px;margin-top:40px">{{orgName}}</div>
84
+          <div class="order-title" style="font-weight:500;font-size:18px;">药品出库登记表</div>
62
 
85
 
86
+          <div style="float: left;margin-bottom: 1px;">单据编号:{{it.warehouse_out_order_number}}</div>
87
+          <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
88
+
89
+          <table class="print-table" border="1">
90
+            <tbody>
91
+            <tr>
92
+              <td style="line-height: 50px" width="230">药品名称</td>
93
+              <td style="line-height: 50px" width="230">规格型号</td>
94
+              <td style="line-height: 50px" width="80">出货数量</td>
95
+              <td style="line-height: 50px" width="50">单位</td>
96
+              <td style="line-height:50px" width="80">出库价格</td>
97
+              <td style="line-height: 50px" width="80">总价</td>
98
+              <td style="line-height: 50px" width="80">批号</td>
99
+              <td style="line-height: 50px" width="80">生产日期</td>
100
+              <td style="line-height: 50px" width="80">有效日期</td>
101
+            </tr>
102
+
103
+            <tr v-for="(item,i) in it.xt_drug_warehouse_out_info" :key="i">
104
+              <td style="line-height: 50px">
105
+                <span>{{item.drug.drug_name}}</span>
106
+              </td>
107
+              <td style="line-height: 50px">
108
+                  <span>{{item.drug.dose}}{{item.dose_unit}}*{{item.drug.min_number}}{{item.drug.min_unit}}/{{item.drug.max_unit}}</span>
109
+              </td>
110
+              <td style="line-height: 50px">
111
+                  {{item.count}}
112
+              </td>
113
+              <td style="line-height: 50px">
114
+                <span>{{item.count_unit}}</span>
115
+              </td>
116
+              <td style="line-height:50px">
117
+                  {{item.price}}
118
+              </td>
119
+             <td  style="line-height:50px">
120
+                {{(item.count * item.price).toFixed(2)}}
121
+             </td>
122
+             <td>{{item.batch_number}}</td>
123
+             <td>{{(getTime(item.product_date))}}</td>
124
+             <td>{{(getTime(item.expire_date))}}</td>
125
+            </tr>
126
+             <tr>
127
+               <td style="line-height:50px">合计</td>
128
+               <td colspan="7"></td>
129
+               <td>{{getTotalPrince(it.xt_drug_warehouse_out_info).toFixed(2)}}</td>
130
+             </tr>
131
+            </tbody>
132
+          </table>
63
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
133
           <div v-if="orgId != 10024" style="display:flex;margin-top:1px;float:right;">
64
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
134
             <div style="width:50px;">审批:</div><div style="width:100px;"></div>
65
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
135
             <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
77
           </div>
147
           </div>
78
         </div>
148
         </div>
79
 
149
 
150
+       </div>
80
       </div>
151
       </div>
81
 
152
 
82
     </div>
153
     </div>
133
         manufactureList:[],
204
         manufactureList:[],
134
         tableList:[],
205
         tableList:[],
135
         loading:false,
206
         loading:false,
136
-        warehouseList:[]
207
+        warehouseList:[],
208
+        tableData:[],
137
       }
209
       }
138
     },
210
     },
139
     methods: {
211
     methods: {
175
             const params = {
247
             const params = {
176
             'id': order_id
248
             'id': order_id
177
             };
249
             };
178
-            getDrugWarehouseOutInfo(params).then(response => {
179
-            if (response.data.state == 0) {
250
+     getDrugWarehouseOutInfo(params).then(response => {
251
+        if (response.data.state == 0) {
180
 
252
 
181
-                this.$message.error(response.data.msg);
182
-                return false
183
-            } else {
184
-              for (let i = 0; i < response.data.data.list.length; i++) {
185
-                this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
186
-               }
187
-               var total_price = 0;
188
-               for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
189
-                 total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
190
-               }
191
-               this.allPrice = total_price;
192
-               this.warehousingOutInfo.info = response.data.data.info;
193
-               this.handleSpanTempArr()
253
+            this.$message.error(response.data.msg);
254
+            return false
255
+        } else {
256
+          for (let i = 0; i < response.data.data.list.length; i++) {
257
+            this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
194
             }
258
             }
195
-            })
196
-        },
259
+            var total_price = 0;
260
+            for(let i=0;i<this.warehousingOutInfo.warehousingOutData.length;i++){
261
+              total_price += this.warehousingOutInfo.warehousingOutData[i].count * this.warehousingOutInfo.warehousingOutData[i].price
262
+            }
263
+            this.allPrice = total_price;
264
+            this.warehousingOutInfo.info = response.data.data.info;
265
+            this.handleSpanTempArr()
266
+        }
267
+      })
268
+     },
197
         getList() {
269
         getList() {
198
         let params = {
270
         let params = {
199
           page: this.page,
271
           page: this.page,
213
             for (let i = 0; i < response.data.data.list.length; i++) {
285
             for (let i = 0; i < response.data.data.list.length; i++) {
214
               this.list.push(response.data.data.list[i])
286
               this.list.push(response.data.data.list[i])
215
             }
287
             }
216
-            console.log("list222222",this.list)
288
+           
217
           }
289
           }
218
         })
290
         })
219
       },
291
       },
265
         getDrugWarehouseOrderInfo().then(response=>{
337
         getDrugWarehouseOrderInfo().then(response=>{
266
            if(response.data.state == 1){
338
            if(response.data.state == 1){
267
              var list =  response.data.data.list
339
              var list =  response.data.data.list
268
-             console.log("入库单详情",list)
269
              this.drugOrderList = list
340
              this.drugOrderList = list
270
            }
341
            }
271
         })
342
         })
315
         getDrugOutOrderDetailPrint(params).then(response=>{
386
         getDrugOutOrderDetailPrint(params).then(response=>{
316
           if(response.data.state ==1){
387
           if(response.data.state ==1){
317
              var info = response.data.data.info
388
              var info = response.data.data.info
318
-             console.log("info",info)
319
             var warehousing = response.data.data.warehousing
389
             var warehousing = response.data.data.warehousing
320
-            console.log("ware2232",warehousing)
321
             this.warehouseList = warehousing
390
             this.warehouseList = warehousing
322
           
391
           
323
             for(let i=0;i<info.length;i++){
392
             for(let i=0;i<info.length;i++){
330
             }
399
             }
331
             
400
             
332
             var manufacturerList = response.data.data.manufacturerList
401
             var manufacturerList = response.data.data.manufacturerList
333
-            console.log("manufacturelist",manufacturerList)
402
+           
334
             this.manufactureList = manufacturerList
403
             this.manufactureList = manufacturerList
335
-            console.log("列表",info)
404
+
336
             this.tableList = info
405
             this.tableList = info
406
+            this.tableData = response.data.data.drug_warhouse_out
337
             this.loading = false
407
             this.loading = false
338
           }
408
           }
339
         })
409
         })
346
           }
416
           }
347
         }
417
         }
348
         return count
418
         return count
349
-      }
419
+      },
420
+      getTotalPrice(val){
421
+        var count = 0
422
+        for(let i=0;i<val.length;i++){
423
+           count +=val[i].count * val[i].price
424
+          }
425
+         return count.toFixed(2)
426
+        }
350
     },
427
     },
351
     created() {
428
     created() {
352
       this.orgName = this.$store.getters.xt_user.org.org_name;
429
       this.orgName = this.$store.getters.xt_user.org.org_name;

文件差異過大導致無法顯示
+ 883 - 696
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue


+ 1 - 0
src/xt_pages/stock/inventory.vue 查看文件

320
               this.total = total
320
               this.total = total
321
               this.doctorList =  response.data.data.doctorlist
321
               this.doctorList =  response.data.data.doctorlist
322
               this.houseList = response.data.data.houseList
322
               this.houseList = response.data.data.houseList
323
+              console.log("仓库行吗32323232232332",this.houseList)
323
               var houseConfig = response.data.data.houseConfig
324
               var houseConfig = response.data.data.houseConfig
324
               this.storehouse_id = houseConfig.storehouse_out_info
325
               this.storehouse_id = houseConfig.storehouse_out_info
325
               }
326
               }