Browse Source

Merge remote-tracking branch 'origin/20220812' into 20220812

mainqaq 2 years ago
parent
commit
d559434bf6

+ 3 - 3
src/views/layout/Layout.vue View File

@@ -12,10 +12,10 @@
12 12
           <i class="iconfont icon-s_bingli navIcon"></i>
13 13
           <p>电子病历</p>
14 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 16
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
17 17
           <p>药房管理</p>
18
-        </div>
18
+        </div> -->
19 19
         <div v-if="touxiShow" :class="index == 2 ? 'navOne navActive' : 'navOne'" @click="clickActive(2,'透析管理')">
20 20
           <i class="iconfont icon-computer_fill navIcon"></i>
21 21
           <p>透析管理</p>
@@ -139,7 +139,7 @@ export default {
139 139
     let caigou = ['supplyManage','supplyList'];
140 140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];
141 141
     let kuyishopping = ['kuyiShopping'];
142
-    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','MedicianManagement']
142
+    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
143 143
     let menzhenArr = [];
144 144
     let bingliArr = [];
145 145
     let touxiArr = [];

+ 1 - 1
src/views/layout/components/Sidebar/index.vue View File

@@ -103,7 +103,7 @@ export default {
103 103
             this.$emit('func',a)
104 104
           }
105 105
         }else if(newVal == '药房管理'){
106
-          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','MedicianManagement']
106
+          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
107 107
           // console.log('permission_routers',this.permission_routers)
108 108
           let routerArr = [];
109 109
           this.permission_routers.map(item => {

+ 4 - 0
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -530,6 +530,10 @@ export default {
530 530
   }
531 531
 }
532 532
 
533
+.el-input__inner{
534
+  padding-right: 15px;
535
+}
536
+
533 537
 /deep/ .el-table--scrollable-x .el-table__body-wrapper {
534 538
   overflow: auto;
535 539
 }

+ 3 - 2
src/xt_pages/Pharmacy/print/drugPrint.vue View File

@@ -9,7 +9,7 @@
9 9
       >打印</el-button
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
-      <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}}医院 领药单</div></div>
12
+      <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 领药单</div></div>
13 13
       <div class="list_title">
14 14
         <div>药品名称:{{name}}</div>
15 15
         <div>规格:{{specifications}}</div>
@@ -152,11 +152,12 @@ export default {
152 152
       this.printJson({
153 153
         title: `
154 154
         <div>
155
-        <div style="width: 940px;text-align:center;font-size:16px;font-weight:bold;">${this.org_name}医院 领药单</div>
155
+        <div style="width: 940px;text-align:center;font-size:16px;font-weight:bold;">${this.org_name} 领药单</div>
156 156
         <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
157 157
         <div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
158 158
         <div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
159 159
         <div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
160
+        <div style="width: 230px;padding: 10px 0;">日期:</div>
160 161
         </div>`, // 打印出来的标题
161 162
         data: this.tableData, // 需要打印的数据
162 163
         serial: true, // 是否需要打印序列号

+ 10 - 6
src/xt_pages/Pharmacy/print/patientPrint.vue View File

@@ -9,7 +9,7 @@
9 9
       >打印</el-button
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12
-       <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}}医院 发药单</div></div>
12
+       <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 发药单</div></div>
13 13
       <div class="list_title">
14 14
         <div>患者名称:{{name}}</div>
15 15
         <div>发药状态:{{state}}</div>
@@ -23,7 +23,7 @@
23 23
         max-height="450"
24 24
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
25 25
       >
26
-        <el-table-column type="index" prop="index" label="序号" width="60">
26
+        <el-table-column type="index" prop="index" label="序号" width="60" align="center">
27 27
         </el-table-column>
28 28
         <el-table-column prop="name" label="名称" width="160">
29 29
           <template slot-scope="scope" >
@@ -140,9 +140,13 @@ export default {
140 140
       //     scanStyles: false,
141 141
       //   });
142 142
       this.printJson({
143
-        title: `<div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
144
-        <div style="width: 230px;padding: 10px 0;">患者名称:${this.name}</div>
145
-        <div style="width: 230px;padding: 10px 0;">发药状态:${this.state}</div>
143
+        title: `
144
+        <div>
145
+        <div style="width: 940px;text-align:center;font-size:16px;font-weight:bold;">${this.org_name} 发药单</div>
146
+        <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;font-size:14px;">
147
+        <div style="width: 310px;padding: 10px 0;">患者名称:${this.name}</div>
148
+        <div style="width: 320px;padding: 10px 0;">发药状态:${this.state}</div>
149
+        <div style="width: 310px;padding: 10px 0;">日期:</div>
146 150
         </div>`, // 打印出来的标题
147 151
         data: this.tableData, // 需要打印的数据
148 152
         serial: true, // 是否需要打印序列号
@@ -221,7 +225,7 @@ export default {
221 225
   margin: 30px auto;
222 226
 
223 227
   div {
224
-    width: 230px;
228
+    width: 320px;
225 229
     padding: 10px 0;
226 230
   }
227 231
 }

+ 180 - 2
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -1,7 +1,185 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
      <div class="app-container ">
4
-         库存查询喔喔喔
4
+        <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
5
+         <div>
6
+          <span>仓库:</span>
7
+          <el-select v-model="storehouse_id" style="width:200px;margin-right:10px;" placeholder="请选择"
8
+          filterable
9
+           @change="changeStorehouseName">
10
+            <el-option
11
+              v-for="item in houseList"
12
+              :key="item.id"
13
+              :label="item.storehouse_name"
14
+              :value="item.id">
15
+            </el-option>
16
+          </el-select>
17
+          <span>库存预警:</span>
18
+          <el-select v-model="good_id" style="width:250px;margin-right:10px;" placeholder="请选择"
19
+          filterable
20
+           @change="changeGoodName">
21
+            <el-option
22
+              v-for="item in goodList"
23
+              :key="item.id"
24
+              :label="item.good_name"
25
+              :value="item.id">
26
+            </el-option>
27
+          </el-select>
28
+         </div>
29
+        </div>
30
+
31
+           <el-table
32
+            :row-style="{ color: '#303133' }"
33
+            :header-cell-style="{
34
+              backgroundColor: 'rgb(245, 247, 250)',
35
+              color: '#606266'
36
+            }"
37
+            :data="tableList"
38
+            :class="signAndWeighBoxPatients"
39
+            border
40
+          >
41
+            <el-table-column label="耗材类型" align="center">
42
+              <template slot-scope="scope">
43
+                
44
+            </template>
45
+            </el-table-column>
46
+            <el-table-column label="耗材名称" align="center">
47
+              <template slot-scope="scope">
48
+               
49
+              </template>
50
+            </el-table-column>
51
+            <el-table-column label="规格&单位" align="center">
52
+                <template slot-scope="scope">
53
+                  
54
+                </template>
55
+            </el-table-column>
56
+            <el-table-column label="生产厂商" align="center">
57
+                <template slot-scope="scope">
58
+                 
59
+                </template>
60
+            </el-table-column>
61
+            <el-table-column label="国家编码" align="center">
62
+              <template slot-scope="scope">
63
+               
64
+              </template>
65
+            </el-table-column>
66
+            <el-table-column label="仓库名称" align="center">
67
+              <template slot-scope="scope">
68
+             
69
+              </template>
70
+            </el-table-column>
71
+        
72
+    
73
+            <el-table-column label="入库量" align="center">
74
+              <template slot-scope="scope">
75
+                
76
+              </template>
77
+            </el-table-column>
78
+
79
+            <el-table-column label="出库量" align="center">
80
+              <template slot-scope="scope">
81
+                
82
+              </template>
83
+            </el-table-column>
84
+
85
+            <el-table-column label="退库数量" align="center">
86
+              <template slot-scope="scope">
87
+                
88
+              </template>
89
+            </el-table-column>
90
+
91
+             <el-table-column label="实际出库" align="center">
92
+              <template slot-scope="scope">
93
+                
94
+              </template>
95
+            </el-table-column>
96
+
97
+            <el-table-column label="剩余库存" align="center">
98
+              <template slot-scope="scope">
99
+                
100
+              </template>
101
+            </el-table-column>
102
+
103
+            <el-table-column label="总库存量" align="center">
104
+              <template slot-scope="scope">
105
+                
106
+              </template>
107
+            </el-table-column>
108
+           
109
+            <el-table-column label="操作" align="center">
110
+             
111
+              <template slot-scope="scope">
112
+                <el-button
113
+                  size="small"
114
+                  type="primary"
115
+                  @click="toClick(scope.row)"
116
+                >库存流水
117
+                </el-button>
118
+                <el-button
119
+                  size="small"
120
+                  type="primary"
121
+                  @click="toClickOne(scope.row)"
122
+                >批次
123
+                </el-button>
124
+               </template>
125
+            </el-table-column>
126
+
127
+          </el-table>
5 128
      </div>
129
+
6 130
   </div>
7
-</template>
131
+</template>
132
+<script>
133
+export default {
134
+
135
+  data(){
136
+    return{
137
+     tableList:[],
138
+     goodList:[],
139
+     houseList:[],
140
+     storehouse_id:0,
141
+     good_id:0,
142
+     multipleSelection: [],
143
+     signAndWeighBoxPatients: "sign-and-weigh-box-patients",
144
+     manufacturerList:[],
145
+    }
146
+  
147
+  },
148
+  methods:{
149
+    changeStorehouseName(){
150
+
151
+    },
152
+    changeGoodName(){
153
+
154
+    },
155
+    toClick(val){
156
+       var manufacturer_name = ""
157
+       var specification_name = ""
158
+       for(let i=0;i<this.manufacturerList.length;i++){
159
+          if(val.manufacturer == this.manufacturerList[i].id){
160
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
161
+          }
162
+       }
163
+      specification_name = val.specification_name + "/" + val.packing_unit
164
+      var overCount  = this.getOverplus(val.xt_warehouse_info)
165
+      // window.sessionStorage.setItem('start_time',this.start_time)
166
+      // window.sessionStorage.setItem('end_time',this.end_time)
167
+      this.$router.push({path:"/stock/in/stockflow?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
168
+    },
169
+    toClickOne(val){
170
+      var manufacturer_name = ""
171
+      for(let i=0;i<this.manufacturerList.length;i++){
172
+          if(val.manufacturer == this.manufacturerList[i].id){
173
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
174
+          }
175
+       }
176
+      specification_name = val.specification_name + "/" + val.packing_unit
177
+      var overCount  = this.getOverplus(val.xt_warehouse_info)
178
+      // window.sessionStorage.setItem('start_time',this.start_time)
179
+      // window.sessionStorage.setItem('end_time',this.end_time)
180
+      this.$router.push({path:"/stock/in/stockbatchnumber?id="+val.id+"&manufacturer="+manufacturer_name+"&packing_unit="+val.packing_unit+"&overCount="+overCount})
181
+    },
182
+  }
183
+}
184
+</script>
185
+