Browse Source

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

see999 3 years ago
parent
commit
021ea59f70

+ 2 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -48,7 +48,8 @@
48 48
             <div class="inline_block" style="margin-left: 10px;">
49 49
               年龄:
50 50
               <div class="under_line" style="width: 30px;text-align: center;">
51
-                {{ record.patient.age }}
51
+                <!-- {{ record.patient.age }} -->
52
+                 {{ getAge(record.patient) }}
52 53
               </div>
53 54
54 55
             </div>

+ 11 - 2
src/xt_pages/stock/drugs/drugBatchNumber.vue View File

@@ -5,8 +5,8 @@
5 5
     </div>
6 6
     <div class="app-container ">
7 7
       <div class="cell clearfix">
8
-       药品名称:<span>{{this.$route.query.drug_name}}</span>&nbsp;
9
-       库存:{{this.$route.query.overPlus}}&nbsp;
8
+       药品名称:<span>{{getName(this.$route.query.drug_id)}}</span>&nbsp;
9
+       库存:{{this.$route.query.over_plus}}&nbsp;
10 10
        规格:<span>{{this.$route.query.unit}}</span>&nbsp;
11 11
        厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12 12
       </div>
@@ -181,6 +181,7 @@
181 181
         autoCountList:[],
182 182
         minCount:[],
183 183
         drugOutList:[],
184
+        drug:{},
184 185
       }
185 186
     },
186 187
     methods:{
@@ -199,6 +200,7 @@
199 200
               var total = response.data.data.total
200 201
               console.log("total",total)
201 202
               this.total = total
203
+              this.drug =  response.data.data.drug
202 204
            }
203 205
         })
204 206
       },
@@ -348,6 +350,13 @@
348 350
           }
349 351
        }
350 352
        return name
353
+     },
354
+    getName(drug_id){
355
+        var name = ""
356
+        if(drug_id == this.drug.id){
357
+           name = this.drug.drug_name
358
+        }
359
+        return name
351 360
      }
352 361
     }
353 362
   }

+ 1 - 1
src/xt_pages/stock/drugs/drugInventory.vue View File

@@ -59,7 +59,7 @@ export default {
59 59
       }
60 60
     },
61 61
     created(){
62
-      console.log("hhh2333223",localStorage.getItem("second")) 
62
+      
63 63
     },
64 64
     mounted() {
65 65
     },

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

@@ -200,7 +200,7 @@
200 200
             {{scope.row.warehousing_count}}{{scope.row.max_unit}}
201 201
           </template>
202 202
         </el-table-column>
203
-        <el-table-column label="包装零售价" align="center">
203
+        <el-table-column label="拆零零售价" align="center">
204 204
           <template slot-scope="scope">
205 205
             {{scope.row.retail_price}}
206 206
           </template>

+ 4 - 3
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

@@ -147,7 +147,7 @@
147 147
 
148 148
           <el-table-column align="center" width="140">
149 149
             <template slot="header" slot-scope="scope">
150
-              <span>包装零售价(元)<span style="color: red">*</span></span>
150
+              <span>拆零零售价(元)<span style="color: red">*</span></span>
151 151
             </template>
152 152
             <template slot-scope="scope">
153 153
               <el-form-item
@@ -157,7 +157,7 @@
157 157
               >
158 158
                 <el-input
159 159
                   style="width:100px"
160
-                  placeholder="请输入包装零售价"
160
+                  placeholder="请输入拆零零售价"
161 161
                   type="number"
162 162
                   v-model="scope.row.retail_price"
163 163
                 ></el-input>
@@ -854,7 +854,8 @@
854 854
              this.recordInfo.recordData[i].drug_type = val.drug_type
855 855
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
856 856
              this.recordInfo.recordData[i].last_price = val.last_price
857
-             this.recordInfo.recordData[i].retail_price = val.retail_price
857
+             
858
+             this.recordInfo.recordData[i].retail_price = val.min_price
858 859
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
859 860
              this.recordInfo.recordData[i].number =  val.number
860 861
              this.recordInfo.recordData[i].max_unit = val.max_unit

+ 4 - 4
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

@@ -170,7 +170,7 @@
170 170
           </el-table-column>
171 171
           <el-table-column align="center" width="140">
172 172
             <template slot="header" slot-scope="scope">
173
-              <span>包装零售价(元)<span style="color: red">*</span></span>
173
+              <span>拆零零售价(元)<span style="color: red">*</span></span>
174 174
             </template>
175 175
             <template slot-scope="scope">
176 176
               <el-form-item
@@ -180,7 +180,7 @@
180 180
               >
181 181
                 <el-input
182 182
                   style="width:100px"
183
-                  placeholder="请输入包装零售价"
183
+                  placeholder="请输入拆零零售价"
184 184
                   type="number"
185 185
                   v-model="scope.row.retail_price"
186 186
                 ></el-input>
@@ -851,10 +851,10 @@ export default {
851 851
              }else{
852 852
                this.recordInfo.recordData[i].last_price = val.last_price
853 853
              }
854
-             if(val.retail_price == 0){
854
+             if(val.min_price == 0){
855 855
                this.recordInfo.recordData[i].retail_price = ""
856 856
              }else{
857
-               this.recordInfo.recordData[i].retail_price = val.retail_price
857
+               this.recordInfo.recordData[i].retail_price = val.min_price
858 858
              }
859 859
            
860 860
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer

+ 9 - 3
src/xt_pages/stock/drugs/inventory.vue View File

@@ -65,14 +65,14 @@
65 65
               <el-table-column prop="name" label="盘点前数量" width="180"  align="center">
66 66
                 <template slot-scope="scope">
67 67
                     <span><el-input style="width:50px" v-model="scope.row.stock_max_number" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
-                    <span><el-input style="width:50px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
68
+                    <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:50px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
69 69
                   </template> 
70 70
               </el-table-column>
71 71
 
72 72
              <el-table-column prop="name" label="盘点后数量" width="180"  align="center">
73 73
                 <template slot-scope="scope">
74 74
                   <el-input style="width:50px" v-model="scope.row.last_stock_max_number"></el-input>{{scope.row.max_unit}}
75
-                  <el-input style="width:50px" v-model="scope.row.last_stock_min_number"></el-input>{{scope.row.min_unit}}
75
+                 <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:50px" v-model="scope.row.last_stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
76 76
                  </template> 
77 77
               </el-table-column>
78 78
 
@@ -199,6 +199,8 @@ export default {
199 199
             inventory_total:0,
200 200
             WarehouseList:[],
201 201
             showTableOne:false,
202
+            panShow:true,
203
+            panOneShow:true,
202 204
         }
203 205
     },
204 206
     methods:{
@@ -282,11 +284,13 @@ export default {
282 284
            getDrugWarehouseInfoList(params).then(response=>{
283 285
              if(response.data.state == 1){
284 286
                 var list =  response.data.data.list
285
-                console.log("lisrt2332323223322323232323",list)
287
+               
286 288
                 for(let i=0;i<list.length;i++){
287 289
                    if(list[i].XtBaseDrug.max_unit == list[i].XtBaseDrug.min_unit){
288 290
                       list[i].stock_max_number += list[i].stock_min_number
289 291
                       list[i].stock_min_number = 0
292
+                      this.panShow = false
293
+                      this.panOneShow = false
290 294
                    }
291 295
                    list[i].drug_name = list[i].XtBaseDrug.drug_name
292 296
                    list[i].specification_name = list[i].XtBaseDrug.dose +list[i].XtBaseDrug.dose_unit + "*"+list[i].XtBaseDrug.min_number +list[i].XtBaseDrug.min_unit+"/"+list[i].XtBaseDrug.max_unit
@@ -305,6 +309,7 @@ export default {
305 309
                    }
306 310
                    this.WarehouseList.push(list[i])
307 311
                 }
312
+                console.log("lisrt2332323223322323232323",list)
308 313
                   let objInfo = {}
309 314
                   this.WarehouseList.forEach((item,index)=>{
310 315
                     let { drug_id } = item
@@ -855,6 +860,7 @@ export default {
855 860
        var params = {
856 861
          tableData:arr
857 862
        }
863
+      console.log("paramse32323232",params)
858 864
       saveInentoryList(params).then(response=>{
859 865
         if(response.data.state == 1){
860 866
            var inventory = response.data.data.inventory

+ 1 - 0
src/xt_pages/stock/drugs/query.vue View File

@@ -552,6 +552,7 @@ import { min } from 'moment'
552 552
         
553 553
       },
554 554
       handleBatch(val){
555
+        console.log("val322332323232",val)
555 556
         var manufacturer_name = ""
556 557
         for(let i=0;i<this.manufacturerList.length;i++){
557 558
          if(val.manufacturer == this.manufacturerList[i].id){

+ 13 - 19
src/xt_pages/workforce/appointment.vue View File

@@ -91,8 +91,7 @@
91 91
         </div>
92 92
     </div>
93 93
     <div class="app-container">
94
-      <!-- <el-row>
95
-        <el-col :span="24"> -->
94
+      
96 95
       <div style="right:30px;position:fixed;z-index:99">
97 96
        <span>导出周次:</span>
98 97
         <el-date-picker
@@ -547,10 +546,6 @@
547 546
           
548 547
           if(this.export_type == 1){
549 548
       
550
-            
551
-            //  const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '', '周一'+"("+this.days[7]+")" , '', '', '周二'+"("+this.days[8]+")" , '', '', '周三'+"("+this.days[9]+")" , '', '', '周四'+"("+this.days[10]+")" , '', '', '周五'+"("+this.days[11]+")" , '', '', '周六'+"("+this.days[12]+")" , '', '', '周日'+"("+this.days[13]+")", '', '', '周一'+"("+this.days[14]+")", '', '', '周二'+"("+this.days[15]+")", '', '', '周三'+"("+this.days[16]+")", '', '', '周四'+"("+this.days[17]+")", '', '', '周五'+"("+this.days[18]+")", '', '', '周六'+"("+this.days[19]+")", '', '', '周日'+"("+this.days[20]+")", '', '']]
552
-            //  const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
553
-            //  const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
554 549
             const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '']]
555 550
              const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
556 551
              const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
@@ -2179,12 +2174,11 @@
2179 2174
               partition_id:this.partition_id,
2180 2175
               schedule_type:this.schedule_type
2181 2176
             }
2182
-        console.log("params2222",params)
2177
+          console.log("params32323232323223",params)
2183 2178
          getThreeWeekList(params).then(response=>{
2184 2179
            if(response.data.state == 1){
2185 2180
              var partitions =  response.data.data.partitions
2186
-            //  console.log("数据22222",this.partitions)
2187
-
2181
+           
2188 2182
              const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
2189 2183
               var list = []
2190 2184
               let i = 0
@@ -2351,16 +2345,16 @@
2351 2345
               var lastWeek = []
2352 2346
               var next_start = this.getNextWeekOne(1)
2353 2347
               var nextstart = this.getTimestamp(next_start) - 28800
2354
-              // console.log("下周开始时间",nextstart)
2348
+          
2355 2349
               var next_end = this.getNextWeek(1)
2356 2350
               var nextend = this.getTimestamp(next_end) - 28800
2357
-              // console.log("下周结束时间",nextend)
2351
+             
2358 2352
               var last_start = this.getNextWeekOne(2)
2359 2353
               var last_end = this.getNextWeek(2)
2360 2354
               var laststart = this.getTimestamp(last_start) - 28800
2361
-              // console.log("下下周数据时间",laststart)
2355
+            
2362 2356
               var lastend = this.getTimestamp(last_end) - 28800
2363
-              // console.log("下下周数据时间",lastend)
2357
+             
2364 2358
                
2365 2359
               if(this.export_type == 0){
2366 2360
                 for(let i = 0;i<scheduleList.length;i++){
@@ -2477,8 +2471,6 @@
2477 2471
               }
2478 2472
              }
2479 2473
 
2480
-            //  console.log("list5555555555",list)
2481
-
2482 2474
              if(nextWeek.length > 0 ){
2483 2475
                for(let i=0;i<list.length;i++){
2484 2476
                 for(let j=0;j<nextWeek.length;j++){
@@ -2580,8 +2572,6 @@
2580 2572
               }
2581 2573
              }
2582 2574
 
2583
-            //  console.log("nextWeek",nextWeek)
2584
-
2585 2575
              if(lastWeek.length > 0 ){
2586 2576
                for(let i=0;i<list.length;i++){
2587 2577
                  for(let j=0;j<lastWeek.length;j++){
@@ -2682,8 +2672,9 @@
2682 2672
                   }
2683 2673
                 }
2684 2674
              }
2685
-             console.log("list23233223232323232323",list)
2686 2675
              this.tableList = list
2676
+             this.start_time = ""
2677
+             this.end_time = ""
2687 2678
            }
2688 2679
          })
2689 2680
        },
@@ -2706,7 +2697,10 @@
2706 2697
        },
2707 2698
 
2708 2699
        changeWeek(val){
2709
-       
2700
+
2701
+         this.start_time = ""
2702
+         this.end_time = ""
2703
+         this.newDay =[]
2710 2704
          var start = this.getTimestamp(val) - 57600
2711 2705
         
2712 2706
          this.start_time = this.getTime(start)