Browse Source

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

csx 3 years ago
parent
commit
a076d599a3

+ 133 - 0
src/api/warehouse.js View File

@@ -0,0 +1,133 @@
1
+import request from '@/utils/request'
2
+
3
+//分页(已渲染)
4
+export function storehouselist(params) {
5
+  return request({
6
+    url: '/api/secondary/storehouselist',
7
+    method: 'get',
8
+    params: params
9
+  })
10
+}
11
+
12
+//获取当前机构的所有可用仓库名称接口(已渲染)
13
+export function getallstorehousename(params) {
14
+  return request({
15
+    url: '/api/secondary/getallstorehousename',
16
+    method: 'get',
17
+    params: params
18
+  })
19
+}
20
+
21
+//获取一条仓库数据接口(好像用不到了)
22
+export function getonestorehouse(params) {
23
+  return request({
24
+    url: '/api/secondary/getonestorehouse',
25
+    method: 'get',
26
+    params: params
27
+  })
28
+}
29
+
30
+//修改仓库接口(已渲染)
31
+export function updatestorehouse(data) {
32
+  return request({
33
+    url: '/api/secondary/updatestorehouse',
34
+    method: 'post',
35
+    data: data
36
+  })
37
+}
38
+
39
+//添加仓库接口(已渲染)
40
+export function addstorehouse(data) {
41
+  return request({
42
+    url: '/api/secondary/addstorehouse',
43
+    method: 'post',
44
+    data: data
45
+  })
46
+}
47
+
48
+//仓库地址查重接口(合并到新增)
49
+export function isstorehouseaddress(params) {
50
+  return request({
51
+    url: '/api/secondary/isstorehouseaddress',
52
+    method: 'get',
53
+    params: params
54
+  })
55
+}
56
+
57
+//仓库名称查重接口(合并到新增)
58
+export function isstorehousename(params) {
59
+  return request({
60
+    url: '/api/secondary/isstorehousename',
61
+    method: 'get',
62
+    params: params
63
+  })
64
+}
65
+
66
+//删除仓库接口(已渲染)
67
+export function deletestorehouse(params) {
68
+  return request({
69
+    url: '/api/secondary/deletestorehouse',
70
+    method: 'get',
71
+    params: params
72
+  })
73
+}
74
+
75
+//修改仓库状态接口(已渲染)
76
+export function updatestatus(params) {
77
+  return request({
78
+    url: '/api/secondary/updatestatus',
79
+    method: 'get',
80
+    params: params
81
+  })
82
+}
83
+
84
+//获取仓库编号接口(已渲染)
85
+export function getcode(params) {
86
+  return request({
87
+    url: '/api/secondary/getcode',
88
+    method: 'get',
89
+    params: params
90
+  })
91
+}
92
+
93
+//查询该机构的仓库配置(已渲染)
94
+export function findstorehouseconfig(params) {
95
+  return request({
96
+    url: '/api/secondary/findstorehouseconfig',
97
+    method: 'get',
98
+    params: params
99
+  })
100
+}
101
+
102
+//更改耗材自动入库仓库(已渲染)
103
+export function updateinfo(params) {
104
+  return request({
105
+    url: '/api/secondary/updateinfo',
106
+    method: 'get',
107
+    params: params
108
+  })
109
+}
110
+//更改耗材自动出库仓库(已渲染)
111
+export function updateoutinfo(params) {
112
+  return request({
113
+    url: '/api/secondary/updateoutinfo',
114
+    method: 'get',
115
+    params: params
116
+  })
117
+}
118
+//更改药品自动入库仓库(已渲染)
119
+export function updatedruginfo(params) {
120
+  return request({
121
+    url: '/api/secondary/updatedruginfo',
122
+    method: 'get',
123
+    params: params
124
+  })
125
+}
126
+//更改药品自动出库仓库(已渲染)
127
+export function updatedrugout(params) {
128
+  return request({
129
+    url: '/api/secondary/updatedrugout',
130
+    method: 'get',
131
+    params: params
132
+  })
133
+}

File diff suppressed because it is too large
+ 556 - 521
src/xt_pages/outpatientCharges/statementPrint.vue


+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

@@ -22,7 +22,7 @@
22 22
         <td width="100" v-if="info.hosp_lv == '9'">一级乙等</td>
23 23
         <td width="100" v-if="info.hosp_lv == '10'">一级丙等</td>
24 24
         <td width="100" v-if="info.hosp_lv == '11'">无等级</td>
25
-        <td width="100" v-else></td>
25
+        <td width="100" v-if="!info.hosp_lv"></td>
26 26
 
27 27
       </tr>
28 28
       <tr>

+ 400 - 0
src/xt_pages/outpatientCharges/statementTemplate/test.vue View File

@@ -0,0 +1,400 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
5
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
6
+
7
+    <table class="statementTable" border="1">
8
+      <tr>
9
+        <td width="80">机构名称</td>
10
+        <td colspan="4">{{info.fixmedins_name}}</td>
11
+        <td width="80">机构编码</td>
12
+        <td colspan="4">{{info.fixmedins_code}}</td>
13
+        <td width="100">医保结算级别</td>
14
+        <td width="100" v-if="info.hosp_lv == '1'">三级特等</td>
15
+        <td width="100" v-if="info.hosp_lv == '2'">三级甲等</td>
16
+        <td width="100" v-if="info.hosp_lv == '3'">三级乙等</td>
17
+        <td width="100" v-if="info.hosp_lv == '4'">三级丙等</td>
18
+        <td width="100" v-if="info.hosp_lv == '5'">二级甲等</td>
19
+        <td width="100" v-if="info.hosp_lv == '6'">二级乙等</td>
20
+        <td width="100" v-if="info.hosp_lv == '7'">二级丙等</td>
21
+        <td width="100" v-if="info.hosp_lv == '8'">一级甲等</td>
22
+        <td width="100" v-if="info.hosp_lv == '9'">一级乙等</td>
23
+        <td width="100" v-if="info.hosp_lv == '10'">一级丙等</td>
24
+        <td width="100" v-if="info.hosp_lv == '11'">无等级</td>
25
+        <td width="100" v-if="!info.hosp_lv"></td>
26
+
27
+      </tr>
28
+      <tr>
29
+        <td width="90">就医登记号</td>
30
+        <td colspan="11">{{info.psn_no}}</td>
31
+      </tr>
32
+      <tr>
33
+        <td width="80">姓名</td>
34
+        <td width="80">{{info.psn_name}}</td>
35
+        <td width="80">性别</td>
36
+        <td width="50" v-if="info.gend == '1'">男</td>
37
+        <td width="50" v-if="info.gend == '2'">女</td>
38
+
39
+        <td width="80">出生日期</td>
40
+        <td width="100">{{info.brdy}}</td>
41
+        <td width="90">个人电脑号</td>
42
+        <td width="110"></td>
43
+        <td width="80">人员类别</td>
44
+        <td colspan="3" v-if="info.psn_type == '11'">在职</td>
45
+        <td colspan="3" v-if="info.psn_type == '1101'">职工在职</td>
46
+        <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
47
+        <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
48
+        <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
49
+
50
+
51
+        <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
52
+        <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
53
+        <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
54
+        <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
55
+        <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
56
+
57
+
58
+        <td colspan="3" v-if="info.psn_type == '13'">离休</td>
59
+        <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
60
+        <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
61
+
62
+        <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
63
+        <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
64
+        <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
65
+        <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
66
+        <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
67
+        <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
68
+
69
+
70
+        <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
71
+        <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
72
+        <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
73
+
74
+        <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
75
+
76
+
77
+
78
+      </tr>
79
+      <tr>
80
+        <td>单位名称</td>
81
+        <td colspan="5">{{info.emp_name}}</td>
82
+        <td width="80">联系电话</td>
83
+        <!-- <td width="110">{{info.patient.phone}}</td> -->
84
+        <td>13535320234</td>
85
+        <td width="80">身份证号</td>
86
+        <td colspan="3">{{info.certno}}</td>
87
+      </tr>
88
+      <tr>
89
+        <td>住院号</td>
90
+        <td>{{info.number}}</td>
91
+        <td>科别</td>
92
+        <td width="100"></td>
93
+        <td>床号</td>
94
+        <td></td>
95
+        <td>入院日期</td>
96
+        <td>{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
97
+        <td>出院日期</td>
98
+        <td width="100">{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
99
+        <td>住院天数</td>
100
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
101
+
102
+      </tr>
103
+      <tr>
104
+        <td>险种</td>
105
+        <td colspan="2" v-if="info.insutype == '310'">职工基本医疗保险</td>
106
+        <td colspan="2" v-if="info.insutype == '320'">公务员医疗补助</td>
107
+        <td colspan="2" v-if="info.insutype == '330'">大额医疗费用补助</td>
108
+        <td colspan="2" v-if="info.insutype == '340'">离休人员医疗保障</td>
109
+        <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
110
+        <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
111
+        <td colspan="2" v-if="info.insutype == '510'">生育保险</td>
112
+
113
+
114
+        <td>入院第一诊断</td>
115
+        <td colspan="3">{{info.dise_name}}</td>
116
+        <td>出院第一诊断</td>
117
+        <td colspan="4">{{info.dise_name}}</td>
118
+      </tr>
119
+      <tr>
120
+        <td>业务类别</td>
121
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '11'">普通门诊</td>
122
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '12'">门诊挂号</td>
123
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '13'">急诊</td>
124
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '14'">门诊特殊病</td>
125
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '15'">门诊统筹</td>
126
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '16'">门诊慢性病</td>
127
+        <td colspan="5" style="text-align:left;padding-left:10px;" v-if="info.med_type == '21'">普通住院</td>
128
+
129
+        <td>结算时间</td>
130
+        <td colspan="5" style="text-align:left;padding-left:10px;">{{info.setl_time ? info.setl_time.split(' ')[0] : ''}}</td>
131
+      </tr>
132
+      <tr>
133
+        <td colspan="12" style="text-align:left;padding-left:10px;">
134
+          本次就医:总费用{{info.medfee_sumamt}}元,基金支付{{info.fund_pay_sumamt}}元,个人支付{{info.psn_pay}}元。
135
+            
136
+        </td>
137
+      </tr>
138
+      <tr>
139
+        <td>费用名称</td>
140
+        <td colspan="2">总费用</td>
141
+        <td>自费</td>
142
+        <td colspan="2">部分项目自付</td>
143
+        <td>费用名称</td>
144
+        <td colspan="2">总费用</td>
145
+        <td>自费</td>
146
+        <td colspan="2">部分项目自付</td>
147
+      </tr>
148
+      <tr>
149
+        <td>床位费</td>
150
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
151
+        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
152
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
153
+        <td>西成药</td>
154
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
155
+        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
156
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
157
+      </tr>
158
+      <tr>
159
+        <td>中药费</td>
160
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
161
+        <td style="text-align:right;padding-right:10px;">0</td>
162
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
163
+        <td>中成药</td>
164
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
165
+        </td>
166
+        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
167
+        <td colspan="2" style="text-align:right;padding-right:10px;">
168
+          {{info.chinese_traditional_medicine_cost_part_self_total}}
169
+        </td>
170
+      </tr>
171
+      <tr>
172
+        <td>中草药</td>
173
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
174
+        <td style="text-align:right;padding-right:10px;">0</td>
175
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
176
+        <td>检查费</td>
177
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
178
+        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
179
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
180
+      </tr>
181
+      <tr>
182
+        <td>治疗费</td>
183
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
184
+        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
185
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
186
+        <td>放射费</td>
187
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
188
+        <td style="text-align:right;padding-right:10px;">0</td>
189
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
190
+      </tr>
191
+      <tr>
192
+        <td>手术费</td>
193
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
194
+        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
195
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
196
+        <td>化验费</td>
197
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
198
+        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
199
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
200
+      </tr>
201
+      <tr>
202
+        <td>输血费</td>
203
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
204
+        <td style="text-align:right;padding-right:10px;">0</td>
205
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
206
+        <td>输氧费</td>
207
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
208
+        <td style="text-align:right;padding-right:10px;">0</td>
209
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
210
+      </tr>
211
+      <tr>
212
+        <td>其他</td>
213
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
214
+        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
215
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
216
+        <td>麻醉费</td>
217
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
218
+        <td style="text-align:right;padding-right:10px;">0</td>
219
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
220
+      </tr>
221
+      <tr>
222
+        <td>材料费</td>
223
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
224
+        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
225
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
226
+        <td>特殊检查费</td>
227
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
228
+        <td style="text-align:right;padding-right:10px;">0</td>
229
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
230
+      </tr>
231
+      <tr>
232
+        <td>特殊治疗费</td>
233
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
234
+        <td style="text-align:right;padding-right:10px;">0</td>
235
+        <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
236
+        <td style="text-align:right;padding-right:10px;"></td>
237
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
238
+        <td style="text-align:right;padding-right:10px;"></td>
239
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
240
+      </tr>
241
+      <tr>
242
+        <td>合计</td>
243
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total) +
244
+          parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
245
+          parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
246
+          parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
247
+          parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
248
+        </td>
249
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
250
+          parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
251
+          parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
252
+          parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
253
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
254
+        </td>
255
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
256
+          parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
257
+          parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
258
+          parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
259
+          parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
260
+          parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
261
+        </td>
262
+        <td style="text-align:right;padding-right:10px;"></td>
263
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
264
+        <td style="text-align:right;padding-right:10px;"></td>
265
+        <td colspan="2" style="text-align:right;padding-right:10px;"></td>
266
+      </tr>
267
+      <tr>
268
+        <td colspan="3" style="text-align:left;padding-left:10px;">基本医疗保险统筹基金支付</td>
269
+        <td colspan="3">{{info.hifp_pay}}</td>
270
+        <td colspan="3" style="text-align:left;padding-left:10px;">大额基金支付</td>
271
+        <td colspan="3">{{info.hifob_pay}}</td>
272
+      </tr>
273
+      <tr>
274
+        <td colspan="3" style="text-align:left;padding-left:10px;">大病基金支付</td>
275
+        <td colspan="3">{{info.hifmi_pay}}</td>
276
+        <td colspan="3" style="text-align:left;padding-left:10px;">补充保险基金支付</td>
277
+        <td colspan="3">{{info.hifes_pay}}</td>
278
+      </tr>
279
+      <tr>
280
+        <td colspan="3" style="text-align:left;padding-left:10px;">医疗救助基金支付</td>
281
+        <td colspan="3">{{info.maf_pay}}</td>
282
+        <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
283
+        <td colspan="3">{{info.cvlserv_pay}}</td>
284
+      </tr>
285
+      <tr>
286
+        <td colspan="3" style="text-align:left;padding-left:10px;">其他基金支付</td>
287
+        <td colspan="3">{{info.oth_pay}}</td>
288
+        <td colspan="3" style="text-align:left;padding-left:10px;">个人账户支付</td>
289
+        <td colspan="3">{{info.acct_pay}}</td>
290
+      </tr>
291
+      <tr>
292
+        <td>收款人:</td>
293
+        <!-- <td colspan="2">{{info.charge_admin.user_name}}</td> -->
294
+        <td colspan="2">高慧与</td> 
295
+        <td>审核人:</td>
296
+        <td colspan="2" v-if="this.$store.getters.xt_user.org_id == 10106">{{'梅晓辉'}}</td>
297
+        <!-- <td colspan="2" v-if="this.$store.getters.xt_user.org_id != 10106">{{info.p_admin.user_name}}</td> -->
298
+        <td colspan="2">梅晓辉</td>
299
+        <td>制单人:</td>
300
+        <!-- <td colspan="2">{{info.p_admin.user_name}}</td> -->
301
+        <td colspan="2">梅晓辉</td>
302
+        <td>打印日期</td>
303
+        <td colspan="2">{{getNowTime()}}</td>
304
+      </tr>
305
+      <tr>
306
+        <td colspan="12" style="text-align:left;padding-left:10px;line-height:20px;">
307
+          注: 1、部分项目自付金额是指基本医疗保险范围内的项目需参保人先按规定比例自付的金额。<br/>
308
+          &ensp;&ensp;&ensp;2、此表由医院打印。<br/>
309
+          &ensp;&ensp;&ensp;3、此表一式两份,医院、参保人各一份。
310
+        </td>
311
+      </tr>
312
+      <tr rowspan="2">
313
+        <td  colspan="12" style="text-align:left;padding-left:10px;">
314
+          病人家属签字:
315
+        </td>
316
+      </tr>
317
+    </table>
318
+  </div>
319
+</template>
320
+<script>
321
+  export default {
322
+    props: {
323
+      info: {
324
+        type: Object,
325
+        default: function() {
326
+          return {}
327
+        }
328
+      }, p_admin: {
329
+        type: Object,
330
+        default: function() {
331
+          return {}
332
+        }
333
+      }, charge_admin: {
334
+        type: Object,
335
+        default: function() {
336
+          return {}
337
+        }
338
+      }
339
+    },methods:{
340
+      getDay(dateString1,dateString2){
341
+          var  startDate = Date.parse(dateString1);
342
+          var  endDate = Date.parse(dateString2);
343
+          if (startDate>endDate){
344
+            return 0;
345
+          }
346
+          if (startDate==endDate){
347
+            return 1;
348
+          }
349
+          var days=(endDate - startDate)/(1*24*60*60*1000);
350
+          return  days;
351
+
352
+        },
353
+      getNowTime: function () {
354
+        let dateTime;
355
+        let yy = new Date().getFullYear();
356
+        let mm = new Date().getMonth() + 1;
357
+        let dd = new Date().getDate();
358
+        let hh = new Date().getHours();
359
+        let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
360
+          :
361
+          new Date().getMinutes();
362
+        let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
363
+          :
364
+          new Date().getSeconds();
365
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
366
+        return dateTime
367
+      },
368
+
369
+    }
370
+  }
371
+
372
+
373
+</script>
374
+
375
+
376
+<style lang="scss" scoped>
377
+  .statement-print {
378
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
379
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
380
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
381
+    margin-bottom: 20px;
382
+    padding: 20px 10px;
383
+  }
384
+
385
+  .statementTitle {
386
+    font-size: 28px;
387
+    text-align: center;
388
+    font-weight: bold;
389
+    margin-bottom: 10px;
390
+  }
391
+
392
+  .statementTable {
393
+    width: 100%;
394
+    text-align: center;
395
+    border-collapse: collapse;
396
+    line-height: 40px;
397
+    font-size: 14px;
398
+    border-color: #000;
399
+  }
400
+</style>

+ 151 - 22
src/xt_pages/stock/warehouseManage/components/AddWareHouse.vue View File

@@ -3,6 +3,7 @@
3 3
     title="新增仓库信息"
4 4
     :visible.sync="dialogVisible"
5 5
     width="30%"
6
+    :before-close="closePop"
6 7
   >
7 8
     <div class="main_contain">
8 9
       <el-form
@@ -13,54 +14,67 @@
13 14
         label-width="100px"
14 15
         class="demo-ruleForm"
15 16
       >
16
-        <el-form-item label="活动名称">
17
-          <span>SH-6732</span>
17
+        <el-form-item label="仓库编号">
18
+          <span>{{storehouse_code}}</span>
18 19
         </el-form-item>
19
-        <el-form-item label="仓库名称" prop="region">
20
-          <el-input v-model="ruleForm.name"></el-input>
20
+        <el-form-item label="仓库名称" prop="storehouse_name">
21
+          <el-input v-model="ruleForm.storehouse_name"></el-input>
21 22
         </el-form-item>
22
-        <el-form-item label="仓库地址" prop="desc">
23
-          <el-input type="textarea" v-model="ruleForm.desc"></el-input>
23
+        <el-form-item label="仓库地址" prop="address">
24
+          <el-input type="textarea" v-model="ruleForm.address"></el-input>
24 25
         </el-form-item>
25
-        <el-form-item label="状态" prop="resource">
26
-          <el-radio-group v-model="ruleForm.resource">
27
-            <el-radio label="启用"></el-radio>
28
-            <el-radio label="禁用"></el-radio>
26
+        <el-form-item label="状态" prop="status">
27
+          <el-radio-group v-model="ruleForm.status">
28
+            <el-radio :label="1" >启用</el-radio>
29
+            <el-radio :label="0" >禁用</el-radio>
29 30
           </el-radio-group>
30 31
         </el-form-item>
31
-        <el-form-item label="仓库管理员" prop="region">
32
-          <el-select v-model="ruleForm.region" placeholder="请选择活动区域">
33
-            <el-option label="区域一" value="shanghai"></el-option>
34
-            <el-option label="区域二" value="beijing"></el-option>
35
-          </el-select>
32
+        <el-form-item label="仓库管理员" ><!--prop="region">-->
33
+          admin
34
+<!--          <el-select v-model="ruleForm.region" placeholder="请选择管理员">-->
35
+<!--            <el-option label="admin" value="0"></el-option>-->
36
+<!--          </el-select>-->
36 37
         </el-form-item>
37 38
       </el-form>
38 39
     </div>
39 40
     <span slot="footer" class="dialog-footer">
40
-      <el-button @click="dialogVisible = false">取 消</el-button>
41
-      <el-button type="primary" @click="dialogVisible = false">保存</el-button>
41
+      <el-button @click="closePop">取 消</el-button>
42
+      <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
42 43
     </span>
43 44
   </el-dialog>
44 45
 </template>
45 46
 
46 47
 <script>
48
+import { getcode,addstorehouse,updatestorehouse } from "@/api/warehouse";
49
+import login from '../../../../mock/login'
47 50
 export default {
48 51
   data() {
49 52
     return {
53
+      show_type: 1,
54
+      storehouse_id: "",
55
+      storehouse_code:"coco",
50 56
       dialogVisible: false,
51 57
       labelPosition:'left',
52 58
       ruleForm: {
53
-        name: "",
59
+        admin_name:"",
60
+        storehouse_name: "",
54 61
         region: "",
55 62
         date1: "",
56 63
         date2: "",
57 64
         delivery: false,
58 65
         type: [],
59
-        resource: "",
60
-        desc: "",
66
+        status: "",
67
+        address: "",
61 68
       },
69
+      //表单验证规则
62 70
       rules: {
63
-        region: [{ required: true, message: "请选择活动区域", trigger: "change" }],
71
+        storehouse_name:[{
72
+          required:true,message:"仓库名称不能为空",trigger: "change"
73
+        }],
74
+        address:[{
75
+          required:true,message:"仓库地址不能为空",trigger: "change"
76
+        }],
77
+        // region: [{ required: true, message: "请选择活动区域", trigger: "change" }],
64 78
         type: [{
65 79
             type: "array",
66 80
             required: true,
@@ -69,9 +83,124 @@ export default {
69 83
           },],
70 84
         desc: [{ required: true, message: "请填写活动形式", trigger: "blur" }],
71 85
       },
86
+      type:"",
87
+      // storehouse:{
88
+      //   storehouse_code:"",
89
+      // },
72 90
     };
73 91
   },
74 92
   methods: {
93
+    show(data, type) {
94
+      if (type == 1) {
95
+        this.initstorehouseData();
96
+        this.show_type = 1;
97
+        this.title = "新增仓库";
98
+        this.dialogVisible = true;
99
+      } else if (type == 2) {
100
+        console.log("data:::::::::::",data);
101
+        this.show_type = 2;
102
+        this.storehouse_id = data.id;
103
+        this.title = "编辑仓库";
104
+        this.storehouse_code = data.storehouse_code;
105
+        this.ruleForm.address = data.storehouse_address;
106
+        this.ruleForm.status = data.storehouse_status;
107
+        this.ruleForm.storehouse_name = data.storehouse_name;
108
+        this.ruleForm.admin_name = data.storehouse_admin_name;
109
+        console.log("this.ruleForm.admin_name",this.ruleForm.admin_name);
110
+        this.dialogVisible = true;
111
+      }
112
+    },
113
+    // 获取仓库编码接口
114
+    initstorehouseData() {
115
+      getcode().then((res) => {
116
+        if (res.data.state == 1) {
117
+          this.storehouse_code =
118
+            res.data.data.list;
119
+        }
120
+      });
121
+    },
122
+    //清除表单数据
123
+    closePop() {
124
+      console.log("this.ruleForm",this.ruleForm)
125
+      this.dialogVisible = false;
126
+      this.ruleForm.storehouse_name = "";
127
+      this.ruleForm.region = "";
128
+      this.ruleForm.date1 = "";
129
+      this.ruleForm.date2 = "";
130
+      this.ruleForm.type = [];
131
+      this.ruleForm.status = "";
132
+      this.ruleForm.address = "";
133
+    },
134
+
135
+
136
+    //  验证表单内容
137
+    submitForm(ruleForm) {
138
+      if (this.show_type == 1) {
139
+        this.$refs[ruleForm].validate((valid) => {
140
+          if (valid) {
141
+            console.log("this.ruleForm.status",this.ruleForm.status);
142
+            let params = {
143
+              storehouse_code: this.storehouse_code || "",
144
+              storehouse_name: this.ruleForm.storehouse_name || "",
145
+              storehouse_address: this.ruleForm.address || "",
146
+              storehouse_status:parseInt(this.ruleForm.status)
147
+              // storehouse_admin_id: this.ruleForm.storehouse_admin_id || "",
148
+              // storehouse_admin_name: this.ruleForm.storehouse_admin_name || "",
149
+            };
150
+            console.log("params::::",params)
151
+            console.log("status::::",this.ruleForm.status)
152
+            addstorehouse(params).then((res) => {
153
+              if (res.data.state == 1) {
154
+                this.$message.success("新增成功");
155
+                this.closePop();
156
+                this.$emit("init");
157
+              } else {
158
+                this.$message.error("新增失败:" + res.data.msg);
159
+                setTimeout(() => {
160
+                  this.closePop();
161
+                }, 2000);
162
+              }
163
+            });
164
+          } else {
165
+            return false;
166
+          }
167
+        });
168
+      } else if (this.show_type == 2) {
169
+        this.$refs[ruleForm].validate((valid) => {
170
+          if (valid) {
171
+            console.log("this.ruleForm.status",this.ruleForm.status);
172
+            let params = {
173
+              storehouse_code: this.storehouse_code || "",
174
+              storehouse_name: this.ruleForm.storehouse_name || "",
175
+              storehouse_address: this.ruleForm.address || "",
176
+              storehouse_status:parseInt(this.ruleForm.status),
177
+              id: this.storehouse_id
178
+              // storehouse_admin_id: this.ruleForm.storehouse_admin_id || "",
179
+              // storehouse_admin_name: this.ruleForm.storehouse_admin_name || "",
180
+            };
181
+            updatestorehouse(params).then((res) => {
182
+              if (res.data.state == 1) {
183
+                this.$message.success("保存成功");
184
+                this.closePop();
185
+                this.$emit("init");
186
+              } else {
187
+                this.$message.error("保存失败:" + res.data.msg);
188
+                setTimeout(() => {
189
+                  this.closePop();
190
+                }, 2000);
191
+              }
192
+            });
193
+          } else {
194
+            return false;
195
+          }
196
+        });
197
+      }
198
+      this.contactsinfo();
199
+    },
200
+
201
+
202
+
203
+
75 204
   },
76 205
 };
77 206
 </script>
@@ -88,4 +217,4 @@ export default {
88 217
     line-height: 30px;
89 218
   }
90 219
 }
91
-</style>
220
+</style>

+ 85 - 53
src/xt_pages/stock/warehouseManage/query.vue View File

@@ -17,7 +17,7 @@
17 17
             size="small"
18 18
             style="width: 200px; margin-left: 10px"
19 19
             class="filter-item"
20
-            v-model.trim="keywords"
20
+            v-model.trim="keyword"
21 21
             placeholder="药品名称"
22 22
           />
23 23
           <el-button
@@ -30,12 +30,8 @@
30 30
           >
31 31
         </div>
32 32
         <div>
33
-          <el-button size="small" type="primary" @click="AddWareHouse"
34
-            >新增</el-button
35
-          >
36
-          <el-button size="small" type="primary" @click="toPrint"
37
-            >设置</el-button
38
-          >
33
+          <el-button size="small" type="primary" @click="AddWareHouse(1)">新增</el-button>
34
+          <el-button size="small" type="primary" @click="toPrint">设置</el-button>
39 35
         </div>
40 36
       </div>
41 37
 
@@ -51,27 +47,28 @@
51 47
       >
52 48
         <el-table-column label="仓库编号" align="center">
53 49
           <template slot-scope="scope">
54
-            <span>{{ scope.row.drug_name ? scope.row.drug_name : "" }}</span>
50
+            <span>{{ scope.row.storehouse_code ? scope.row.storehouse_code : "" }}</span>
55 51
           </template>
56 52
         </el-table-column>
57 53
         <el-table-column label="仓库名称" align="center">
58 54
           <template slot-scope="scope">
59
-            <span>{{ scope.row.drug_spec ? scope.row.drug_spec : "" }}</span>
55
+            <span>{{ scope.row.storehouse_name ? scope.row.storehouse_name : "" }}</span>
60 56
           </template>
61 57
         </el-table-column>
62 58
         <el-table-column label="仓库地址" align="center">
63 59
           <template slot-scope="scope">
64
-            <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
60
+            <span>{{ scope.row.storehouse_address ? scope.row.storehouse_address : "" }}</span>
65 61
           </template>
66 62
         </el-table-column>
67 63
         <el-table-column label="仓库管理员" align="center">
68 64
           <template slot-scope="scope">
69
-            <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
65
+            <span>{{ scope.row.storehouse_admin_name ? scope.row.storehouse_admin_name : "" }}</span>
70 66
           </template>
71 67
         </el-table-column>
72 68
         <el-table-column label="状态" align="center">
73 69
           <template slot-scope="scope">
74
-            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
70
+            <span v-if="scope.row.storehouse_status == 1">启用</span>
71
+            <span v-if="scope.row.storehouse_status == 0">禁用</span>
75 72
           </template>
76 73
         </el-table-column>
77 74
 
@@ -82,7 +79,7 @@
82 79
                 icon="el-icon-edit-outline"
83 80
                 size="small"
84 81
                 type="primary"
85
-                @click="toEdit(scope.row)"
82
+                @click="toEdit(scope.row,2)"
86 83
               >
87 84
               </el-button>
88 85
             </el-tooltip>
@@ -91,7 +88,7 @@
91 88
               <el-button
92 89
                 size="small"
93 90
                 type="danger"
94
-                @click="toDelete(scope.row, scope.row.$index)"
91
+                @click="toDisable(scope.row, scope.row.$index)"
95 92
                 ><img
96 93
                   src="../../../assets/purchase/ban.png"
97 94
                   alt=""
@@ -126,14 +123,14 @@
126 123
       </el-pagination>
127 124
     </div>
128 125
 
129
-    <AddWareHouse ref="AddWareHouse"></AddWareHouse>
126
+    <AddWareHouse ref="AddWareHouse" @init="initData" ></AddWareHouse>
130 127
   </div>
131 128
 </template>
132 129
 
133 130
 <script>
134 131
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
135 132
 import { getDictionaryDataConfig, getDataConfig } from "@/utils/data";
136
-import { getSelfStockQuery } from "@/api/drug/drug";
133
+import { storehouselist,updatestatus,deletestorehouse } from "@/api/warehouse";
137 134
 import AddWareHouse from "./components/AddWareHouse.vue";
138 135
 export default {
139 136
   name: "stockIn",
@@ -158,50 +155,45 @@ export default {
158 155
         { path: false, name: "库房管理" },
159 156
         { path: "/stock/warehousequery", name: "仓库管理" },
160 157
       ],
161
-      keywords: "",
158
+      keyword: "",
162 159
       total: 0,
163 160
       multipleSelection: [],
164 161
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
165
-      start_time: "",
166
-      end_time: "",
167 162
       page: 1,
168 163
       limit: 10,
169 164
       tableData: [],
170 165
       drugType: [],
171
-      type_name: 0,
172 166
       stockOutData: [],
173 167
     };
174 168
   },
175 169
   methods: {
170
+    initData() {
171
+      let params = {
172
+        limit: this.limit,
173
+        page: this.page,
174
+        keyword:this.keyword,
175
+      };
176
+      //请求分页接口
177
+      storehouselist(params).then((response) => {
178
+        if (response.data.state == 1) {
179
+          this.tableData = response.data.data.list;
180
+          this.total = response.data.data.total;
181
+        }
182
+      });
183
+    },
184
+
176 185
     getlist() {
177 186
       var params = {
178
-        type_name: this.type_name,
179
-        start_time: this.start_time,
180
-        end_time: this.end_time,
181
-        keywords: this.keywords,
187
+        keyword: this.keyword,
182 188
         page: this.page,
183 189
         limit: this.limit,
184 190
       };
185 191
       console.log("params", params);
186
-      getSelfStockQuery(params).then((response) => {
192
+      //请求分页接口
193
+      storehouselist(params).then((response) => {
187 194
         if (response.data.state == 1) {
188
-          var stockQuery = response.data.data.stockQuery;
189
-          console.log("入库", stockQuery);
195
+          this.tableData = response.data.data.list;
190 196
           this.total = response.data.data.total;
191
-          console.log("total", this.total);
192
-          var stockOutQuery = response.data.data.stockOutQuery;
193
-          console.log("stockOut", stockOutQuery);
194
-          for (let i = 0; i < stockQuery.length; i++) {
195
-            for (let j = 0; j < stockOutQuery.length; j++) {
196
-              if (stockQuery[i].drug_name_id == stockOutQuery[j].drug_name_id) {
197
-                stockQuery[i].outCount = stockOutQuery[j].Count;
198
-                stockQuery[i].total =
199
-                  stockQuery[i].Count - stockOutQuery[j].Count;
200
-              }
201
-            }
202
-          }
203
-          console.log("表格数据", stockQuery);
204
-          this.tableData = stockQuery;
205 197
         }
206 198
       });
207 199
     },
@@ -238,25 +230,65 @@ export default {
238 230
       this.getlist();
239 231
     },
240 232
     // 新增仓库
241
-    AddWareHouse() {
242
-      this.$refs.AddWareHouse.dialogVisible = true;
233
+    AddWareHouse(val) {
234
+      this.$refs.AddWareHouse.show(1, val);
243 235
     },
244
-    // 删除仓库
245
-    toDelete(val, index) {
246
-      this.$confirm("是否确认删除这条仓库信息?", "删除仓库信息", {
236
+    // 编辑仓库
237
+    toEdit(data,val) {
238
+      console.log("data is :",data)
239
+      this.$refs.AddWareHouse.show(data,val);
240
+    },
241
+    // 禁用仓库
242
+    toDisable(val, index) {
243
+      var params = {
244
+        id:val.id,
245
+      };
246
+      this.$confirm("是否确定将此仓库禁用?", "禁用仓库信息", {
247 247
         confirmButtonText: "确 定",
248 248
         cancelButtonText: "取 消",
249 249
         type: "warning",
250
-      })
251
-        .then(() => {
252
-          this.$message.success("删除成功");
250
+      }).then(() => {
251
+        updatestatus(params).then((res) => {
252
+          if (res.data.state == 1) {
253
+            this.$message.success(res.data.data.list);
254
+          }else {
255
+            this.$message.error(res.data.msg);
256
+          }
257
+        })//刷新
258
+        .then(() =>{
259
+          this.initData();
253 260
         })
254
-        .catch(() => {});
261
+        .catch((err) => {
262
+          console.log(err)
263
+        })
264
+        }).catch(() => {});
255 265
     },
256
-    // 编辑仓库
257
-    toEdit() {
258
-        this.$refs.AddWareHouse.dialogVisible = true;
266
+    //删除仓库
267
+    toDelete(val, index) {
268
+      var params = {
269
+        id:val.id,
270
+      };
271
+      this.$confirm("是否确定将此仓库删除?", "删除仓库信息", {
272
+        confirmButtonText: "确 定",
273
+        cancelButtonText: "取 消",
274
+        type: "warning",
275
+      }).then(() => {
276
+        deletestorehouse(params).then((res) => {
277
+          if (res.data.state == 1) {
278
+            this.$message.success(res.data.data.list);
279
+          }else {
280
+            this.$message.error(res.data.msg);
281
+          }
282
+        })//刷新
283
+          .then(() =>{
284
+            this.initData();
285
+          })
286
+          .catch((err) => {
287
+            console.log(err)
288
+          })
289
+      }).catch(() => {});
259 290
     },
291
+
260 292
     formatJson(filterVal, jsonData) {
261 293
       return jsonData.map((v) => filterVal.map((j) => v[j]));
262 294
     },

+ 104 - 20
src/xt_pages/stock/warehouseManage/waresetting.vue View File

@@ -11,12 +11,12 @@
11 11
           <div style="line-height: 36px; white-space: nowrap">
12 12
             请选择耗材自动入库仓库:
13 13
           </div>
14
-          <el-select v-model="value" placeholder="请选择">
14
+          <el-select v-model="h1" placeholder="请选择" @select="handleSelect1" @change="updateconfig1(h1)" >
15 15
             <el-option
16 16
               v-for="item in options"
17
-              :key="item.value"
18
-              :label="item.label"
19
-              :value="item.value"
17
+              :key="item.storehouse_name"
18
+              :label="item.storehouse_name"
19
+              :value="item.id"
20 20
             >
21 21
             </el-option>
22 22
           </el-select>
@@ -25,12 +25,12 @@
25 25
           <div style="line-height: 36px; white-space: nowrap">
26 26
             请选择耗材自动出库仓库:
27 27
           </div>
28
-          <el-select v-model="value" placeholder="请选择">
28
+          <el-select v-model="h2" placeholder="请选择" @select="handleSelect2" @change="updateconfig2(h2)">
29 29
             <el-option
30 30
               v-for="item in options"
31
-              :key="item.value"
32
-              :label="item.label"
33
-              :value="item.value"
31
+              :key="item.storehouse_name"
32
+              :label="item.storehouse_name"
33
+              :value="item.id"
34 34
             >
35 35
             </el-option>
36 36
           </el-select>
@@ -39,12 +39,12 @@
39 39
           <div style="line-height: 36px; white-space: nowrap">
40 40
             请选择药品自动入库仓库:
41 41
           </div>
42
-          <el-select v-model="value" placeholder="请选择">
42
+          <el-select v-model="h3" placeholder="请选择" @select="handleSelect3" @change="updateconfig3(h3)">
43 43
             <el-option
44 44
               v-for="item in options"
45
-              :key="item.value"
46
-              :label="item.label"
47
-              :value="item.value"
45
+              :key="item.storehouse_name"
46
+              :label="item.storehouse_name"
47
+              :value="item.id"
48 48
             >
49 49
             </el-option>
50 50
           </el-select>
@@ -53,12 +53,12 @@
53 53
           <div style="line-height: 36px; white-space: nowrap">
54 54
             请选择药品自动出库仓库:
55 55
           </div>
56
-          <el-select v-model="value" placeholder="请选择">
56
+          <el-select v-model="h4" placeholder="请选择" @select="handleSelect4" @change="updateconfig4(h4)">
57 57
             <el-option
58 58
               v-for="item in options"
59
-              :key="item.value"
60
-              :label="item.label"
61
-              :value="item.value"
59
+              :key="item.storehouse_name"
60
+              :label="item.storehouse_name"
61
+              :value="item.id"
62 62
             >
63 63
             </el-option>
64 64
           </el-select>
@@ -70,6 +70,7 @@
70 70
 
71 71
 <script>
72 72
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
73
+import { getallstorehousename,findstorehouseconfig,updateinfo,updateoutinfo,updatedruginfo,updatedrugout } from "@/api/warehouse";
73 74
 export default {
74 75
   components: {
75 76
     BreadCrumb,
@@ -81,18 +82,101 @@ export default {
81 82
         { path: false, name: "仓库管理" },
82 83
         { path: false, name: "仓库设置" },
83 84
       ],
84
-      options:[]
85
+      options:[],
86
+      h1:"",
87
+      h2:"",
88
+      h3:"",
89
+      h4:"",
85 90
     };
86 91
   },
87 92
 
88 93
   created(){
89
-
94
+    this.initData()
90 95
   },
91 96
 
92 97
   methods:{
93 98
       returnTo(){
94 99
           this.$router.back(-1)
95
-      }
100
+      },
101
+    initData() {
102
+      let params = {};
103
+      //请求分页接口
104
+      getallstorehousename(params).then((response) => {
105
+        if (response.data.state == 1) {
106
+          this.options = response.data.data.list;
107
+        }
108
+      });
109
+      let param ={}
110
+      findstorehouseconfig(param).then((response) => {
111
+        if (response.data.state == 1) {
112
+          console.log("response",response)
113
+          this.h1 = response.data.data.storehouse_info;
114
+          this.h2 = response.data.data.storehouse_out_info;
115
+          this.h3 = response.data.data.drug_storehouse_info;
116
+          this.h4 = response.data.data.drug_storehouse_out;
117
+          console.log("h1",this.h1)
118
+        }
119
+      });
120
+    },
121
+
122
+    handleSelect1(item) {
123
+      this.h1 = item.storehouse_name;
124
+    },
125
+    handleSelect2(item) {
126
+      this.h2 = item.storehouse_name;
127
+    },
128
+    handleSelect3(item) {
129
+      this.h3 = item.storehouse_name;
130
+    },
131
+    handleSelect4(item) {
132
+      this.h4 = item.storehouse_name;
133
+    },
134
+    updateconfig1(h1){
135
+      let params = {
136
+        id:h1
137
+      };
138
+      //请求分页接口
139
+      updateinfo(params).then((response) => {
140
+        if (response.data.state == 1) {
141
+          this.$message.success("修改成功");
142
+        }
143
+      });
144
+    },
145
+    updateconfig2(h2){
146
+      let params = {
147
+        id:h2
148
+      };
149
+      //请求分页接口
150
+      updateoutinfo(params).then((response) => {
151
+        if (response.data.state == 1) {
152
+          this.$message.success("修改成功");
153
+        }
154
+      });
155
+    },
156
+    updateconfig3(h3){
157
+      let params = {
158
+        id:h3
159
+      };
160
+      //请求分页接口
161
+      updatedruginfo(params).then((response) => {
162
+        if (response.data.state == 1) {
163
+          this.$message.success("修改成功");
164
+        }
165
+      });
166
+    },
167
+    updateconfig4(h4){
168
+      let params = {
169
+        id:h4
170
+      };
171
+      //请求分页接口
172
+      updatedrugout(params).then((response) => {
173
+        if (response.data.state == 1) {
174
+          this.$message.success("修改成功");
175
+        }
176
+      });
177
+    },
178
+
179
+
96 180
   }
97 181
 };
98 182
 </script>
@@ -116,4 +200,4 @@ export default {
116 200
 /deep/ .el-input__inner {
117 201
   width: 202px;
118 202
 }
119
-</style>
203
+</style>