see999 3 年 前
コミット
4cef53357a

+ 2 - 0
src/lang/zh.js ファイルの表示

@@ -186,6 +186,8 @@ export default {
186 186
     cancelStockDetail: '退库单详情',
187 187
     stockDetail: '明细查询',
188 188
     stockModifyPrice:'耗材调价',
189
+    stockDamaged:'耗材报损',
190
+    stockWarning:'耗材预警',
189 191
 
190 192
     showconfig: '显示配置',
191 193
     user_detail: '使用明细',

+ 20 - 0
src/router/modules/stock.js ファイルの表示

@@ -48,6 +48,26 @@ export default {
48 48
       name: 'stockModifyPrice',
49 49
       meta: { title: 'stockModifyPrice', noCache: true }
50 50
     },
51
+    {
52
+      path: '/stock/stockModifyPricePrint',
53
+      component: () => import('@/xt_pages/stock/stockModifyPricePrint'),
54
+      name: 'stockModifyPricePrint',
55
+      hidden: true,
56
+      is_menu: false,
57
+      meta: { title: 'stockModifyPricePrint', noCache: true }
58
+    },
59
+    {
60
+      path: '/stock/stockDamaged',
61
+      component: () => import('@/xt_pages/stock/stockDamaged'),
62
+      name: 'stockDamaged',
63
+      meta: { title: 'stockDamaged', noCache: true }
64
+    },
65
+    {
66
+      path: '/stock/stockWarning',
67
+      component: () => import('@/xt_pages/stock/stockWarning'),
68
+      name: 'stockWarning',
69
+      meta: { title: 'stockWarning', noCache: true }
70
+    },
51 71
     
52 72
     // {
53 73
     //   path: "/stock/",

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue ファイルの表示

@@ -83,7 +83,7 @@
83 83
 
84 84
         if(this.org_id == 10138){
85 85
           const style =
86
-          '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}}';
86
+          '@media print {#prescription-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;}@media print {html {zoom: 50%;}}}';
87 87
           printJS({
88 88
               printable: "prescription-print",
89 89
               type: "html",

+ 3 - 3
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue ファイルの表示

@@ -162,13 +162,13 @@
162 162
                   <tr>
163 163
                       <td colspan="7">
164 164
                           <div style="display:flex;flez-wrap:wrap;">
165
-                              <div style="width:33%;">医疗费总额:0元</div>
165
+                              <div style="width:33%;">医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
166 166
                               <div style="width:33%;">基金支付金额:0元</div>
167 167
                               <div style="width:33%;">个人账户支付金额:0元</div>
168 168
 
169 169
                           </div>
170 170
                           <div style="display:flex;flez-wrap:wrap;">
171
-                              <div style="width:33%;">个人支付金额:0元</div>
171
+                              <div style="width:33%;">个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</div>
172 172
                               <div style="width:33%;">个人账户金额:0元</div>
173 173
                           </div>
174 174
                       </td>
@@ -178,7 +178,7 @@
178 178
               </table>
179 179
             </div>
180 180
             <div style="float:right;margin:10px 0;display:flex;">
181
-                <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.admin_info.user_name}}</span></div>
181
+                <div>操作人:<span style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span></div>
182 182
                 <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),"{y}-{m}-{d}")?getTime(new Date(),"{y}-{m}-{d}"):""}}</span></div>
183 183
             </div>
184 184
             <img style="width:100%;" src="../../../assets/img/bailinBottom.jpg" alt="">

+ 15 - 6
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue ファイルの表示

@@ -8,7 +8,12 @@
8 8
     class="detailDialog"
9 9
   >
10 10
     <div style="position: absolute;right:20px;z-index:99">
11
-      <el-button v-if="activeName == 'first'" @click="open(1)" type="primary">打印</el-button>
11
+      <!-- <el-button v-if="activeName == 'first'" @click="open(1)" type="primary">打印</el-button> -->
12
+      <el-popover placement="bottom" width="200" trigger="click">
13
+          <el-button size="small" ref="button_two" @click="open(1)">处方单</el-button>
14
+          <el-button size="small" ref="button_six" @click="open(3)">治疗单</el-button>
15
+          <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
16
+      </el-popover>
12 17
       <el-button v-if="activeName == 'second'" @click="open(2)" type="primary">打印</el-button>
13 18
     </div>
14 19
     <el-tabs v-model="activeName">
@@ -110,7 +115,8 @@
110 115
       :visible.sync="innerVisible"
111 116
       append-to-body>
112 117
 
113
-      <print v-if="activeName == 'first'" :paramsObj='paramsObj'></print>
118
+      <print v-if="activeName == 'first' && prescriptionsType == 1" :paramsObj='paramsObj'></print>
119
+      <treatPrint v-if="activeName == 'first' && prescriptionsType == 3" :paramsObj='paramsObj'></treatPrint>
114 120
       <recordPrint v-if="activeName == 'second'" ref="recordPrint" :patientid="patientid"></recordPrint>
115 121
     </el-dialog>
116 122
   </el-dialog>
@@ -128,9 +134,10 @@
128 134
   import moment from 'moment';
129 135
   import print from '../print'
130 136
   import recordPrint from '../recordPrint'
137
+  import treatPrint from '../treatPrint'
131 138
 
132 139
   export default {
133
-    components: { NewPrescriptionTable,print,recordPrint },
140
+    components: { NewPrescriptionTable,print,recordPrint,treatPrint },
134 141
     data() {
135 142
       return {
136 143
         visible: false,
@@ -164,12 +171,14 @@
164 171
         departmentList:[],
165 172
         innerVisible:false,
166 173
         paramsObj:{},
167
-        patientid:''
174
+        patientid:'',
175
+        prescriptionsType:1
168 176
       }
169 177
     },
170 178
     methods: {
171 179
       open(index){
172
-        if(index == 1){
180
+        this.prescriptionsType = index
181
+        if(index == 1 || index == 3){
173 182
            var arr= []
174 183
            for(let i=0;i<this.prescriptions.length;i++){
175 184
               arr.push(this.prescriptions[i].id)
@@ -320,7 +329,7 @@
320 329
                 type: response.data.data.prescription[i].type
321 330
               }
322 331
               this.prescriptions.push(obj)
323
-              console.log(this.prescriptions)
332
+              console.log(22222,this.prescriptions)
324 333
 
325 334
               this.curPrescriptions = this.prescriptions[0]
326 335
             }

+ 85 - 8
src/xt_pages/outpatientDoctorStation/template/printThree.vue ファイルの表示

@@ -2,13 +2,13 @@
2 2
 <div>
3 3
   <div id='prescriptionPrint'>
4 4
     <div v-for="(item,index) in advicePrint" :key="index">
5
-      <div id='prescription-print'  v-for='(i,pageIndex) in item.pageArr.length' :key="pageIndex" class="prescription-print" style="page-break-after: always;">
5
+      <div id='prescription-print' v-if="item.project.length == 0"  v-for='(i,pageIndex) in item.pageArr.length' :key="pageIndex" class="prescription-print" style="page-break-after: always;">
6 6
           <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
7 7
           <div class="printTitle">处方笺</div>
8 8
           <div style="display:flex;">
9
-            <div style="width:33%;display:flex;">费别:<span class="under_line"></span></div>
10
-            <div style="width:33%;display:flex;">电脑号:<span class="under_line"></span></div>
11
-            <div style="width:33%;display:flex;">处方编号:<span class="under_line"></span></div>
9
+            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber ? getName(faber.transBody.outputlist1) : '' }}</span></div>
10
+            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber ? faber.transBody.aac999 : ''  }}</span></div>
11
+            <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
12 12
           </div>
13 13
 
14 14
 
@@ -42,13 +42,13 @@
42 42
                 <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
43 43
                </div>
44 44
                
45
-              <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
45
+              <!-- <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
46 46
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
47 47
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
48 48
               </div>
49 49
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
50 50
                 <div class="drugsOne">{{it.project_id?it.project_id:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
51
-               </div>
51
+               </div> -->
52 52
                <div style="text-align:center;" >(以下空白)</div>
53 53
 
54 54
           </div>
@@ -111,7 +111,8 @@ export default {
111 111
         projectList:[],
112 112
         orgname:"",
113 113
         diagnoses:[],
114
-        pageArr:[]
114
+        pageArr:[],
115
+        faber:{}
115 116
       }
116 117
     },
117 118
    methods:{
@@ -165,6 +166,9 @@ export default {
165 166
             var projectlist =  response.data.data.projectlist
166 167
             console.log("所有项目列表",projectlist)
167 168
             this.projectList = projectlist
169
+            let outputlist1Name = JSON.parse(response.data.data.his.patient_info);
170
+            this.faber = outputlist1Name
171
+
168 172
             this.getPage()
169 173
           }
170 174
        })
@@ -284,7 +288,80 @@ export default {
284 288
           }
285 289
         })
286 290
         // console.log('this.pageArr',this.pageArr)
287
-      }
291
+      },
292
+      getName(list) {
293
+        console.log('list',list)
294
+        let new_list = []
295
+        for (let i = 0; i < list.length; i++) {
296
+          if (list[i].aac031 == '1') {
297
+            new_list.push(list[i])
298
+          }
299
+        }
300
+
301
+        switch (new_list[0].bcc334) {
302
+          case "A31001":
303
+            return "深圳医保1档"
304
+            break
305
+          case "A31002":
306
+            return "深圳医保2档"
307
+
308
+            break
309
+          case "A31003":
310
+            return "深圳医保3档"
311
+
312
+            break
313
+          case "A31004":
314
+            return "二档(少儿)"
315
+
316
+            break
317
+          case "A31005":
318
+            return "学生二档"
319
+
320
+            break
321
+          case "A31006":
322
+            return "大学生二档"
323
+
324
+            break
325
+          case "A32001":
326
+            return "在职公务员"
327
+            break
328
+          case "A32002":
329
+            return "在职驻深公务员"
330
+
331
+            break
332
+          case "A39301":
333
+            return "家属统筹医疗"
334
+
335
+            break
336
+          case "A41001":
337
+            return "工伤在职"
338
+
339
+            break
340
+          case "A51001":
341
+            return "生育在职"
342
+
343
+            break
344
+          case "A52001":
345
+            return "生育医疗一档"
346
+
347
+            break
348
+          case "A52002":
349
+            return "生育医疗一档"
350
+
351
+            break
352
+          case "C31001":
353
+            return "一档医疗退休"
354
+
355
+            break
356
+          case "C31002":
357
+            return "二档医疗退休"
358
+            break
359
+
360
+        }
361
+
362
+
363
+
364
+      },
288 365
 
289 366
    },
290 367
    created(){

+ 84 - 8
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue ファイルの表示

@@ -1,13 +1,13 @@
1 1
 <template>
2 2
    <div id='prescriptionPrint'>
3
-    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
3
+    <div id='prescription-print' v-if="item.advices.length == 0" class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4 4
 
5 5
         <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
6 6
         <div class="printTitle">治疗单</div>
7 7
         <div style="display:flex;">
8
-            <div style="width:33%;display:flex;">费别:<span class="under_line"></span></div>
9
-            <div style="width:33%;display:flex;">电脑号:<span class="under_line"></span></div>
10
-            <div style="width:33%;display:flex;">处方编号:<span class="under_line"></span></div>
8
+            <div style="width:33%;display:flex;">费别:<span class="under_line">{{ faber ? getName(faber.transBody.outputlist1) : '' }}</span></div>
9
+            <div style="width:33%;display:flex;">电脑号:<span class="under_line">{{ faber ? faber.transBody.aac999 : ''  }}</span></div>
10
+            <div style="width:33%;display:flex;">处方编号:<span class="under_line">{{ item.prescription_number.substring(item.prescription_number.length-6) }}</span></div>
11 11
         </div>
12 12
 
13 13
 
@@ -70,10 +70,9 @@
70 70
         </div> -->
71 71
         <div class="prescriptionBox">
72 72
               <div class="Rp">Rp:</div>
73
-              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
74
-                  <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
73
+              <!-- <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
75 74
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
76
-              </div>
75
+              </div> -->
77 76
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
78 77
                   <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
79 78
               </div>
@@ -232,6 +231,7 @@ export default {
232 231
          hisPatient:{},
233 232
          diagnoses:[],
234 233
          department:[],
234
+         faber:{}
235 235
       }
236 236
     },
237 237
    methods:{
@@ -301,6 +301,9 @@ export default {
301 301
             this.projectList = projectlist
302 302
             this.hisPatient = response.data.data.hisPatient
303 303
 
304
+            let outputlist1Name = JSON.parse(response.data.data.his.patient_info);
305
+            this.faber = outputlist1Name
306
+
304 307
           }
305 308
        })
306 309
      },
@@ -381,7 +384,80 @@ export default {
381 384
           }
382 385
         }
383 386
         return name
384
-     }
387
+     },
388
+     getName(list) {
389
+        console.log('list',list)
390
+        let new_list = []
391
+        for (let i = 0; i < list.length; i++) {
392
+          if (list[i].aac031 == '1') {
393
+            new_list.push(list[i])
394
+          }
395
+        }
396
+
397
+        switch (new_list[0].bcc334) {
398
+          case "A31001":
399
+            return "深圳医保1档"
400
+            break
401
+          case "A31002":
402
+            return "深圳医保2档"
403
+
404
+            break
405
+          case "A31003":
406
+            return "深圳医保3档"
407
+
408
+            break
409
+          case "A31004":
410
+            return "二档(少儿)"
411
+
412
+            break
413
+          case "A31005":
414
+            return "学生二档"
415
+
416
+            break
417
+          case "A31006":
418
+            return "大学生二档"
419
+
420
+            break
421
+          case "A32001":
422
+            return "在职公务员"
423
+            break
424
+          case "A32002":
425
+            return "在职驻深公务员"
426
+
427
+            break
428
+          case "A39301":
429
+            return "家属统筹医疗"
430
+
431
+            break
432
+          case "A41001":
433
+            return "工伤在职"
434
+
435
+            break
436
+          case "A51001":
437
+            return "生育在职"
438
+
439
+            break
440
+          case "A52001":
441
+            return "生育医疗一档"
442
+
443
+            break
444
+          case "A52002":
445
+            return "生育医疗一档"
446
+
447
+            break
448
+          case "C31001":
449
+            return "一档医疗退休"
450
+
451
+            break
452
+          case "C31002":
453
+            return "二档医疗退休"
454
+            break
455
+
456
+        }
457
+
458
+
459
+
460
+      },
385 461
    },
386 462
    created(){
387 463
       this.getInitData()

+ 305 - 0
src/xt_pages/stock/stockDamaged.vue ファイルの表示

@@ -0,0 +1,305 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+        <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
8
+            <div>
9
+                <el-input
10
+                size="small"
11
+                style="width: 200px;"
12
+                class="filter-item"
13
+                v-model.trim="searchKey"
14
+                placeholder=""
15
+                />
16
+                <el-button
17
+                size="small"
18
+                class="filter-item"
19
+                type="primary"
20
+                icon="el-icon-search"
21
+                @click="search"
22
+                >搜索</el-button
23
+                >
24
+                <el-date-picker
25
+                size="small"
26
+                v-model="value1"
27
+                type="date"
28
+                style="margin-left:5px;width:140px;"
29
+                placeholder="选择日期">
30
+                </el-date-picker>
31
+                <el-date-picker
32
+                size="small"
33
+                v-model="value2"
34
+                type="date"
35
+                style="margin-left:5px;width:140px;"
36
+                placeholder="选择日期">
37
+                </el-date-picker>
38
+            </div>
39
+            <div>
40
+                <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
+                <el-button size="small" type="primary">核对</el-button>
42
+                <el-button size="small" type="primary" @click="print">打印</el-button>
43
+                <el-button size="small" type="primary">导出</el-button>
44
+            </div>
45
+        </div>
46
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
47
+            <el-table-column
48
+            prop="date"
49
+            label="报损编码">
50
+            </el-table-column>
51
+            <el-table-column
52
+            prop="date"
53
+            label="报损日期">
54
+            </el-table-column>
55
+            <el-table-column
56
+            prop="name"
57
+            label="操作人">
58
+            </el-table-column>
59
+            <el-table-column
60
+            prop="name"
61
+            label="审核日期">
62
+            </el-table-column>
63
+            <el-table-column
64
+            prop="name"
65
+            label="核对人">
66
+            </el-table-column>
67
+            <el-table-column
68
+            prop="name"
69
+            label="状态">
70
+            </el-table-column>
71
+            <el-table-column
72
+            label="操作">
73
+                <template slot-scope="scope">
74
+                    <el-button type="text" size="small">删除</el-button>
75
+                    <el-button type="text" size="small">编辑</el-button>
76
+                </template>
77
+            </el-table-column>
78
+        </el-table>
79
+        <el-pagination
80
+            @size-change="handleSizeChange"
81
+            @current-change="handleCurrentChange"
82
+            :page-sizes="[5, 10, 50, 100]"
83
+            :page-size="5"
84
+            background
85
+            style="margin-top:20px;text-align: right"
86
+            layout="total, sizes, prev, pager, next, jumper"
87
+            :total="total"
88
+        >
89
+        </el-pagination>
90
+    </div>
91
+    <el-dialog
92
+        title="库房调价"
93
+        :visible.sync="dialogVisible"
94
+        width="1200px"
95
+        :before-close="handleClose">
96
+        <el-form :model="form" class="modifyDialog" label-width="120px">
97
+            <el-form-item label="耗材ID">
98
+                <el-input v-model="form.name"></el-input>
99
+            </el-form-item>
100
+            <el-form-item label="药品名称">
101
+                <el-input v-model="form.name"></el-input>
102
+            </el-form-item>
103
+            <el-form-item label="规格">
104
+                <el-input v-model="form.name"></el-input>
105
+            </el-form-item>
106
+            <el-form-item label="单位">
107
+                <el-input v-model="form.name"></el-input>
108
+            </el-form-item>
109
+            <el-form-item label="进货价">
110
+                <el-input v-model="form.name"></el-input>
111
+            </el-form-item>
112
+            <el-form-item label="零售价">
113
+                <el-input v-model="form.name"></el-input>
114
+            </el-form-item>
115
+            <el-form-item label="报损数量">
116
+                <el-input v-model="form.name"></el-input>
117
+            </el-form-item>
118
+            <el-form-item label="库存">
119
+                <el-input v-model="form.name"></el-input>
120
+            </el-form-item>
121
+            <el-form-item label="产地">
122
+                <el-input v-model="form.name"></el-input>
123
+            </el-form-item>
124
+            <el-form-item label="批准文号">
125
+                <el-input v-model="form.name"></el-input>
126
+            </el-form-item>
127
+            <el-form-item label="生产厂商">
128
+                <el-input v-model="form.name"></el-input>
129
+            </el-form-item>
130
+            <el-form-item label="备注">
131
+                <div style="display:flex;">
132
+                    <el-input v-model="form.name"></el-input>
133
+                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
134
+                </div>
135
+            </el-form-item>
136
+        </el-form>
137
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
138
+            <el-table-column
139
+            prop="date"
140
+            label="耗材ID"
141
+            width="100">
142
+            </el-table-column>
143
+            <el-table-column
144
+            prop="date"
145
+            label="耗材名称"
146
+            width="100">
147
+            </el-table-column>
148
+            <el-table-column
149
+            prop="name"
150
+            label="规格"
151
+            width="100">
152
+            </el-table-column>
153
+            <el-table-column
154
+            prop="name"
155
+            label="单位"
156
+            width="100">
157
+            </el-table-column>
158
+            <el-table-column
159
+            prop="name"
160
+            label="调价数量"
161
+            width="100">
162
+            </el-table-column>
163
+            <el-table-column
164
+            prop="name"
165
+            label="原进货价"
166
+            width="100">
167
+            </el-table-column>
168
+            <el-table-column
169
+            prop="name"
170
+            label="原零售价"
171
+            width="100">
172
+            </el-table-column>
173
+            <el-table-column
174
+            prop="name"
175
+            label="新零售价"
176
+            width="100">
177
+            </el-table-column>
178
+            <el-table-column
179
+            prop="name"
180
+            label="生产厂商"
181
+            width="100">
182
+            </el-table-column>
183
+            <el-table-column
184
+            prop="name"
185
+            label="产地"
186
+            width="100">
187
+            </el-table-column>
188
+            <el-table-column
189
+            prop="name"
190
+            label="批准文号"
191
+            width="100">
192
+            </el-table-column>
193
+            <el-table-column
194
+            prop="name"
195
+            label="备注"
196
+            width="100">
197
+            </el-table-column>
198
+            <el-table-column
199
+            fixed="right"
200
+            width="100"
201
+            label="操作">
202
+                <template slot-scope="scope">
203
+                    <el-button type="text" size="small">删除</el-button>
204
+                    <el-button type="text" size="small">编辑</el-button>
205
+                </template>
206
+            </el-table-column>
207
+        </el-table>
208
+        <span slot="footer" class="dialog-footer">
209
+            <el-button @click="dialogVisible = false">取 消</el-button>
210
+            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
211
+        </span>
212
+    </el-dialog>
213
+  
214
+  </div>
215
+</template>
216
+
217
+<script>
218
+import BreadCrumb from "../components/bread-crumb";
219
+
220
+export default {
221
+    name: "stockModifyPrice",
222
+    components:{
223
+        BreadCrumb
224
+    },
225
+    data() {
226
+        return{
227
+            crumbs: [
228
+                { path: false, name: "库存管理" },
229
+                { path: false, name: "耗材管理" },
230
+                { path: false, name: "耗材报损" }
231
+            ],
232
+            searchKey:'',
233
+            value1:'',
234
+            value2:'',
235
+            tableData: [{
236
+                date: '2016-05-02',
237
+                name: '王小虎',
238
+                address: '上海市普陀区金沙江路 1518 弄'
239
+                }, {
240
+                date: '2016-05-04',
241
+                name: '王小虎',
242
+                address: '上海市普陀区金沙江路 1517 弄'
243
+                }, {
244
+                date: '2016-05-01',
245
+                name: '王小虎',
246
+                address: '上海市普陀区金沙江路 1519 弄'
247
+                }, {
248
+                date: '2016-05-03',
249
+                name: '王小虎',
250
+                address: '上海市普陀区金沙江路 1516 弄'
251
+            }],
252
+            dialogVisible:false,
253
+            form: {
254
+                name: '',
255
+            },
256
+            total: 0,
257
+        }
258
+    },
259
+    methods:{
260
+        search(){
261
+
262
+        },
263
+        print(){
264
+            this.$router.push({path:'/stock/stockModifyPricePrint'})
265
+            
266
+        },
267
+        handleSizeChange(){},
268
+        handleCurrentChange(){}
269
+
270
+    },
271
+    created(){
272
+    },
273
+    mounted() {
274
+    },
275
+};
276
+</script>
277
+
278
+<style rel="stylesheet/scss" lang="scss">
279
+.app-container {
280
+  // margin: 20px;
281
+  font-size: 15px;
282
+}
283
+.modifyDialog{
284
+    display: flex;
285
+    flex-wrap: wrap;
286
+    margin-bottom: 10px;
287
+    .el-form-item{
288
+        width: 33%;
289
+    }
290
+}
291
+.el-table td,
292
+.el-table th.is-leaf,
293
+.el-table--border,
294
+.el-table--group {
295
+  border-color: #d0d3da;
296
+}
297
+.el-table--border::after,
298
+.el-table--group::after,
299
+.el-table::before {
300
+  background-color: #d0d3da;
301
+}
302
+::-webkit-scrollbar{
303
+    height: 20px !important;
304
+}
305
+</style>

+ 120 - 4
src/xt_pages/stock/stockModifyPrice.vue ファイルの表示

@@ -37,9 +37,9 @@
37 37
             </el-date-picker>
38 38
         </div>
39 39
         <div>
40
-            <el-button size="small" type="primary">新增</el-button>
40
+            <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41 41
             <el-button size="small" type="primary">核对</el-button>
42
-            <el-button size="small" type="primary">打印</el-button>
42
+            <el-button size="small" type="primary" @click="print">打印</el-button>
43 43
             <el-button size="small" type="primary">导出</el-button>
44 44
         </div>
45 45
       </div>
@@ -158,7 +158,107 @@
158 158
             <!-- </div> -->
159 159
         </div>
160 160
     </div>
161
-
161
+    <el-dialog
162
+        title="库房调价"
163
+        :visible.sync="dialogVisible"
164
+        width="1200px"
165
+        :before-close="handleClose">
166
+        <el-form :model="form" class="modifyDialog" label-width="120px">
167
+            <el-form-item label="药品名称">
168
+                <el-input v-model="form.name"></el-input>
169
+            </el-form-item>
170
+            <el-form-item label="原价格">
171
+                <el-input v-model="form.name"></el-input>
172
+            </el-form-item>
173
+            <el-form-item label="现价格">
174
+                <el-input v-model="form.name"></el-input>
175
+            </el-form-item>
176
+            <el-form-item label="调价数量">
177
+                <el-input v-model="form.name"></el-input>
178
+            </el-form-item>
179
+            <el-form-item label="备注" style="width:66%;">
180
+                <div style="display:flex;">
181
+                    <el-input v-model="form.name"></el-input>
182
+                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
183
+                </div>
184
+            </el-form-item>
185
+        </el-form>
186
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
187
+            <el-table-column
188
+            prop="date"
189
+            label="单据编号"
190
+            width="100">
191
+            </el-table-column>
192
+            <el-table-column
193
+            prop="date"
194
+            label="药品名称"
195
+            width="100">
196
+            </el-table-column>
197
+            <el-table-column
198
+            prop="name"
199
+            label="规格"
200
+            width="100">
201
+            </el-table-column>
202
+            <el-table-column
203
+            prop="name"
204
+            label="单位"
205
+            width="100">
206
+            </el-table-column>
207
+            <el-table-column
208
+            prop="name"
209
+            label="调价数量"
210
+            width="100">
211
+            </el-table-column>
212
+            <el-table-column
213
+            prop="name"
214
+            label="原进货价"
215
+            width="100">
216
+            </el-table-column>
217
+            <el-table-column
218
+            prop="name"
219
+            label="原零售价"
220
+            width="100">
221
+            </el-table-column>
222
+            <el-table-column
223
+            prop="name"
224
+            label="新零售价"
225
+            width="100">
226
+            </el-table-column>
227
+            <el-table-column
228
+            prop="name"
229
+            label="生产厂商"
230
+            width="100">
231
+            </el-table-column>
232
+            <el-table-column
233
+            prop="name"
234
+            label="批准文号"
235
+            width="100">
236
+            </el-table-column>
237
+            <el-table-column
238
+            prop="name"
239
+            label="供应商"
240
+            width="100">
241
+            </el-table-column>
242
+            <el-table-column
243
+            prop="name"
244
+            label="备注"
245
+            width="100">
246
+            </el-table-column>
247
+            <el-table-column
248
+            fixed="right"
249
+            width="100"
250
+            label="操作">
251
+                <template slot-scope="scope">
252
+                    <el-button type="text" size="small">删除</el-button>
253
+                    <el-button type="text" size="small">编辑</el-button>
254
+                </template>
255
+            </el-table-column>
256
+        </el-table>
257
+        <span slot="footer" class="dialog-footer">
258
+            <el-button @click="dialogVisible = false">取 消</el-button>
259
+            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
260
+        </span>
261
+    </el-dialog>
162 262
   
163 263
   </div>
164 264
 </template>
@@ -199,13 +299,21 @@ export default {
199 299
                 date: '2016-05-03',
200 300
                 name: '王小虎',
201 301
                 address: '上海市普陀区金沙江路 1516 弄'
202
-            }]
302
+            }],
303
+            dialogVisible:false,
304
+            form: {
305
+                name: '',
306
+            },
203 307
         }
204 308
     },
205 309
     methods:{
206 310
         search(){
207 311
 
208 312
         },
313
+        print(){
314
+            this.$router.push({path:'/stock/stockModifyPricePrint'})
315
+            
316
+        }
209 317
     },
210 318
     created(){
211 319
         let tableHeight = document.body.clientHeight - 200;
@@ -243,6 +351,14 @@ export default {
243 351
   // margin: 20px;
244 352
   font-size: 15px;
245 353
 }
354
+.modifyDialog{
355
+    display: flex;
356
+    flex-wrap: wrap;
357
+    margin-bottom: 10px;
358
+    .el-form-item{
359
+        width: 33%;
360
+    }
361
+}
246 362
 .el-table td,
247 363
 .el-table th.is-leaf,
248 364
 .el-table--border,

+ 119 - 0
src/xt_pages/stock/stockModifyPricePrint.vue ファイルの表示

@@ -0,0 +1,119 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;">
12
+            <div id="print_content">
13
+                <div class="printTitle">耗材调价登记单</div>
14
+                <div class="flex">
15
+                    <div>药库类别:</div>
16
+                    <div>调价日期:</div>
17
+                </div>
18
+                <div class="flex">
19
+                    <div>单据编号:</div>
20
+                    <div>打印日期:</div>
21
+                </div>
22
+                <div class="tableTitle">
23
+                    <div style="width:8%">货号</div>
24
+                    <div style="width:8%">药品名称</div>
25
+                    <div style="width:8%">规格</div>
26
+                    <div style="width:8%">单位</div>
27
+                    <div style="width:8%">批次</div>
28
+                    <div style="width:8%">调价数量</div>
29
+                    <div style="width:8%">原进货价</div>
30
+                    <div style="width:8%">新进货价</div>
31
+                    <div style="width:8%">进货差价</div>
32
+                    <div style="width:8%">原零售价</div>
33
+                    <div style="width:8%">新零售价</div>
34
+                    <div style="width:8%">零售差价</div>
35
+                </div>
36
+                <div class="tableTr" v-for="item in 3">
37
+                    <div style="width:8%">上三</div>
38
+                    <div style="width:8%">上三名称</div>
39
+                    <div style="width:8%">上三</div>
40
+                    <div style="width:8%">上三</div>
41
+                    <div style="width:8%">上三</div>
42
+                    <div style="width:8%">上三数量</div>
43
+                    <div style="width:8%">上三货价</div>
44
+                    <div style="width:8%">上三货价</div>
45
+                    <div style="width:8%">上三差价</div>
46
+                    <div style="width:8%">上三售价</div>
47
+                    <div style="width:8%">上三售价</div>
48
+                    <div style="width:8%">上三差价</div>
49
+                </div>
50
+                <div class="tableBottom">
51
+                    <div style="width:8%">合计:</div>
52
+                    <div style="width:8%"></div>
53
+                    <div style="width:8%"></div>
54
+                    <div style="width:8%"></div>
55
+                    <div style="width:8%"></div>
56
+                    <div style="width:8%"></div>
57
+                    <div style="width:8%"></div>
58
+                    <div style="width:8%"></div>
59
+                    <div style="width:8%">上三差价</div>
60
+                    <div style="width:8%"></div>
61
+                    <div style="width:8%"></div>
62
+                    <div style="width:8%">上三差价</div>
63
+                </div>
64
+                <div style="display:flex;margin-top:1px;float:right;margin-top:10px;">
65
+                    <div style="width:80px;">审批:</div><div style="width:100px;"></div>
66
+                    <div style="width:100px;">药材主任:</div><div style="width:60px;"></div>
67
+                    <div style="width:50px;">会计:</div><div style="width:100px;"></div>
68
+                    <div style="width:50px;">审核:</div><div style="width:100px;"></div>
69
+                    <div style="width:70px;">制单人:</div><div style="width:100px;"></div>
70
+                </div>
71
+            </div>
72
+        </div>
73
+    </div>
74
+</template>
75
+
76
+<script>
77
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
78
+const moment = require('moment');
79
+import { uParseTime } from '@/utils/tools'
80
+export default {
81
+    components:{
82
+        BreadCrumb
83
+    },
84
+    data(){
85
+        return{
86
+          crumbs: [
87
+            { path: false, name: '库存管理' },
88
+            { path: false, name: '耗材管理' },
89
+            { path: false, name: '耗材调价打印' },
90
+          ],
91
+        }
92
+    },
93
+    methods:{
94
+        printAction: function() {
95
+            const style = '@media print { .printTitle{font-size: 22px;text-align: center;}.flex{display: flex;justify-content: space-between;}.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;} }';
96
+            printJS({
97
+            printable: 'print_content',
98
+            type: 'html',
99
+            documentTitle: '  ',
100
+            style: style,
101
+            scanStyles: false
102
+            })
103
+        },
104
+
105
+
106
+    },
107
+    created(){
108
+    }
109
+}
110
+</script>
111
+
112
+
113
+<style rel="stylesheet/scss" lang="scss" scoped>
114
+.printTitle{font-size: 22px;text-align: center;}
115
+.flex{display: flex;justify-content: space-between;}
116
+.tableTitle{display: flex;border-top:1px solid #000;border-bottom: 1px solid #000;padding: 10px 0;}
117
+.tableTr{display: flex;border-bottom: 1px dashed #000;padding: 10px 0;}
118
+.tableBottom{display: flex;border-bottom: 1px solid #000;padding: 10px 0;}
119
+</style>

+ 305 - 0
src/xt_pages/stock/stockWarning.vue ファイルの表示

@@ -0,0 +1,305 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+        <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
8
+            <div>
9
+                <el-input
10
+                size="small"
11
+                style="width: 200px;"
12
+                class="filter-item"
13
+                v-model.trim="searchKey"
14
+                placeholder=""
15
+                />
16
+                <el-button
17
+                size="small"
18
+                class="filter-item"
19
+                type="primary"
20
+                icon="el-icon-search"
21
+                @click="search"
22
+                >搜索</el-button
23
+                >
24
+                <el-date-picker
25
+                size="small"
26
+                v-model="value1"
27
+                type="date"
28
+                style="margin-left:5px;width:140px;"
29
+                placeholder="选择日期">
30
+                </el-date-picker>
31
+                <el-date-picker
32
+                size="small"
33
+                v-model="value2"
34
+                type="date"
35
+                style="margin-left:5px;width:140px;"
36
+                placeholder="选择日期">
37
+                </el-date-picker>
38
+            </div>
39
+            <div>
40
+                <el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
41
+                <el-button size="small" type="primary">核对</el-button>
42
+                <el-button size="small" type="primary" @click="print">打印</el-button>
43
+                <el-button size="small" type="primary">导出</el-button>
44
+            </div>
45
+        </div>
46
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
47
+            <el-table-column
48
+            prop="date"
49
+            label="报损编码">
50
+            </el-table-column>
51
+            <el-table-column
52
+            prop="date"
53
+            label="报损日期">
54
+            </el-table-column>
55
+            <el-table-column
56
+            prop="name"
57
+            label="操作人">
58
+            </el-table-column>
59
+            <el-table-column
60
+            prop="name"
61
+            label="审核日期">
62
+            </el-table-column>
63
+            <el-table-column
64
+            prop="name"
65
+            label="核对人">
66
+            </el-table-column>
67
+            <el-table-column
68
+            prop="name"
69
+            label="状态">
70
+            </el-table-column>
71
+            <el-table-column
72
+            label="操作">
73
+                <template slot-scope="scope">
74
+                    <el-button type="text" size="small">删除</el-button>
75
+                    <el-button type="text" size="small">编辑</el-button>
76
+                </template>
77
+            </el-table-column>
78
+        </el-table>
79
+        <el-pagination
80
+            @size-change="handleSizeChange"
81
+            @current-change="handleCurrentChange"
82
+            :page-sizes="[5, 10, 50, 100]"
83
+            :page-size="5"
84
+            background
85
+            style="margin-top:20px;text-align: right"
86
+            layout="total, sizes, prev, pager, next, jumper"
87
+            :total="total"
88
+        >
89
+        </el-pagination>
90
+    </div>
91
+    <el-dialog
92
+        title="库房调价"
93
+        :visible.sync="dialogVisible"
94
+        width="1200px"
95
+        :before-close="handleClose">
96
+        <el-form :model="form" class="modifyDialog" label-width="120px">
97
+            <el-form-item label="耗材ID">
98
+                <el-input v-model="form.name"></el-input>
99
+            </el-form-item>
100
+            <el-form-item label="药品名称">
101
+                <el-input v-model="form.name"></el-input>
102
+            </el-form-item>
103
+            <el-form-item label="规格">
104
+                <el-input v-model="form.name"></el-input>
105
+            </el-form-item>
106
+            <el-form-item label="单位">
107
+                <el-input v-model="form.name"></el-input>
108
+            </el-form-item>
109
+            <el-form-item label="进货价">
110
+                <el-input v-model="form.name"></el-input>
111
+            </el-form-item>
112
+            <el-form-item label="零售价">
113
+                <el-input v-model="form.name"></el-input>
114
+            </el-form-item>
115
+            <el-form-item label="报损数量">
116
+                <el-input v-model="form.name"></el-input>
117
+            </el-form-item>
118
+            <el-form-item label="库存">
119
+                <el-input v-model="form.name"></el-input>
120
+            </el-form-item>
121
+            <el-form-item label="产地">
122
+                <el-input v-model="form.name"></el-input>
123
+            </el-form-item>
124
+            <el-form-item label="批准文号">
125
+                <el-input v-model="form.name"></el-input>
126
+            </el-form-item>
127
+            <el-form-item label="生产厂商">
128
+                <el-input v-model="form.name"></el-input>
129
+            </el-form-item>
130
+            <el-form-item label="备注">
131
+                <div style="display:flex;">
132
+                    <el-input v-model="form.name"></el-input>
133
+                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
134
+                </div>
135
+            </el-form-item>
136
+        </el-form>
137
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
138
+            <el-table-column
139
+            prop="date"
140
+            label="耗材ID"
141
+            width="100">
142
+            </el-table-column>
143
+            <el-table-column
144
+            prop="date"
145
+            label="耗材名称"
146
+            width="100">
147
+            </el-table-column>
148
+            <el-table-column
149
+            prop="name"
150
+            label="规格"
151
+            width="100">
152
+            </el-table-column>
153
+            <el-table-column
154
+            prop="name"
155
+            label="单位"
156
+            width="100">
157
+            </el-table-column>
158
+            <el-table-column
159
+            prop="name"
160
+            label="调价数量"
161
+            width="100">
162
+            </el-table-column>
163
+            <el-table-column
164
+            prop="name"
165
+            label="原进货价"
166
+            width="100">
167
+            </el-table-column>
168
+            <el-table-column
169
+            prop="name"
170
+            label="原零售价"
171
+            width="100">
172
+            </el-table-column>
173
+            <el-table-column
174
+            prop="name"
175
+            label="新零售价"
176
+            width="100">
177
+            </el-table-column>
178
+            <el-table-column
179
+            prop="name"
180
+            label="生产厂商"
181
+            width="100">
182
+            </el-table-column>
183
+            <el-table-column
184
+            prop="name"
185
+            label="产地"
186
+            width="100">
187
+            </el-table-column>
188
+            <el-table-column
189
+            prop="name"
190
+            label="批准文号"
191
+            width="100">
192
+            </el-table-column>
193
+            <el-table-column
194
+            prop="name"
195
+            label="备注"
196
+            width="100">
197
+            </el-table-column>
198
+            <el-table-column
199
+            fixed="right"
200
+            width="100"
201
+            label="操作">
202
+                <template slot-scope="scope">
203
+                    <el-button type="text" size="small">删除</el-button>
204
+                    <el-button type="text" size="small">编辑</el-button>
205
+                </template>
206
+            </el-table-column>
207
+        </el-table>
208
+        <span slot="footer" class="dialog-footer">
209
+            <el-button @click="dialogVisible = false">取 消</el-button>
210
+            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
211
+        </span>
212
+    </el-dialog>
213
+  
214
+  </div>
215
+</template>
216
+
217
+<script>
218
+import BreadCrumb from "../components/bread-crumb";
219
+
220
+export default {
221
+    name: "stockModifyPrice",
222
+    components:{
223
+        BreadCrumb
224
+    },
225
+    data() {
226
+        return{
227
+            crumbs: [
228
+                { path: false, name: "库存管理" },
229
+                { path: false, name: "耗材管理" },
230
+                { path: false, name: "耗材报损" }
231
+            ],
232
+            searchKey:'',
233
+            value1:'',
234
+            value2:'',
235
+            tableData: [{
236
+                date: '2016-05-02',
237
+                name: '王小虎',
238
+                address: '上海市普陀区金沙江路 1518 弄'
239
+                }, {
240
+                date: '2016-05-04',
241
+                name: '王小虎',
242
+                address: '上海市普陀区金沙江路 1517 弄'
243
+                }, {
244
+                date: '2016-05-01',
245
+                name: '王小虎',
246
+                address: '上海市普陀区金沙江路 1519 弄'
247
+                }, {
248
+                date: '2016-05-03',
249
+                name: '王小虎',
250
+                address: '上海市普陀区金沙江路 1516 弄'
251
+            }],
252
+            dialogVisible:false,
253
+            form: {
254
+                name: '',
255
+            },
256
+            total: 0,
257
+        }
258
+    },
259
+    methods:{
260
+        search(){
261
+
262
+        },
263
+        print(){
264
+            this.$router.push({path:'/stock/stockModifyPricePrint'})
265
+            
266
+        },
267
+        handleSizeChange(){},
268
+        handleCurrentChange(){}
269
+
270
+    },
271
+    created(){
272
+    },
273
+    mounted() {
274
+    },
275
+};
276
+</script>
277
+
278
+<style rel="stylesheet/scss" lang="scss">
279
+.app-container {
280
+  // margin: 20px;
281
+  font-size: 15px;
282
+}
283
+.modifyDialog{
284
+    display: flex;
285
+    flex-wrap: wrap;
286
+    margin-bottom: 10px;
287
+    .el-form-item{
288
+        width: 33%;
289
+    }
290
+}
291
+.el-table td,
292
+.el-table th.is-leaf,
293
+.el-table--border,
294
+.el-table--group {
295
+  border-color: #d0d3da;
296
+}
297
+.el-table--border::after,
298
+.el-table--group::after,
299
+.el-table::before {
300
+  background-color: #d0d3da;
301
+}
302
+::-webkit-scrollbar{
303
+    height: 20px !important;
304
+}
305
+</style>