Przeglądaj źródła

11月14日 库存扣减更新

XMLWAN 3 lat temu
rodzic
commit
9972c63b84

+ 2 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Wyświetl plik

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

+ 11 - 2
src/xt_pages/stock/drugs/drugBatchNumber.vue Wyświetl plik

5
     </div>
5
     </div>
6
     <div class="app-container ">
6
     <div class="app-container ">
7
       <div class="cell clearfix">
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
        规格:<span>{{this.$route.query.unit}}</span>&nbsp;
10
        规格:<span>{{this.$route.query.unit}}</span>&nbsp;
11
        厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
11
        厂家:<span>{{this.$route.query.manufacturer}}</span>&nbsp;
12
       </div>
12
       </div>
181
         autoCountList:[],
181
         autoCountList:[],
182
         minCount:[],
182
         minCount:[],
183
         drugOutList:[],
183
         drugOutList:[],
184
+        drug:{},
184
       }
185
       }
185
     },
186
     },
186
     methods:{
187
     methods:{
199
               var total = response.data.data.total
200
               var total = response.data.data.total
200
               console.log("total",total)
201
               console.log("total",total)
201
               this.total = total
202
               this.total = total
203
+              this.drug =  response.data.data.drug
202
            }
204
            }
203
         })
205
         })
204
       },
206
       },
348
           }
350
           }
349
        }
351
        }
350
        return name
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 Wyświetl plik

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

+ 4 - 3
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Wyświetl plik

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

+ 3 - 3
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Wyświetl plik

170
           </el-table-column>
170
           </el-table-column>
171
           <el-table-column align="center" width="140">
171
           <el-table-column align="center" width="140">
172
             <template slot="header" slot-scope="scope">
172
             <template slot="header" slot-scope="scope">
173
-              <span>包装零售价(元)<span style="color: red">*</span></span>
173
+              <span>拆零零售价(元)<span style="color: red">*</span></span>
174
             </template>
174
             </template>
175
             <template slot-scope="scope">
175
             <template slot-scope="scope">
176
               <el-form-item
176
               <el-form-item
851
              }else{
851
              }else{
852
                this.recordInfo.recordData[i].last_price = val.last_price
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
                this.recordInfo.recordData[i].retail_price = ""
855
                this.recordInfo.recordData[i].retail_price = ""
856
              }else{
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
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
860
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer

+ 9 - 3
src/xt_pages/stock/drugs/inventory.vue Wyświetl plik

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

+ 1 - 0
src/xt_pages/stock/drugs/query.vue Wyświetl plik

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

+ 13 - 19
src/xt_pages/workforce/appointment.vue Wyświetl plik

91
         </div>
91
         </div>
92
     </div>
92
     </div>
93
     <div class="app-container">
93
     <div class="app-container">
94
-      <!-- <el-row>
95
-        <el-col :span="24"> -->
94
+      
96
       <div style="right:30px;position:fixed;z-index:99">
95
       <div style="right:30px;position:fixed;z-index:99">
97
        <span>导出周次:</span>
96
        <span>导出周次:</span>
98
         <el-date-picker
97
         <el-date-picker
547
           
546
           
548
           if(this.export_type == 1){
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
             const multiHeader = [['区号', '机号', '周一'+"("+this.newDay[0]+")" , '', '', '周二'+"("+this.newDay[1]+")", '', '', '周三'+"("+this.newDay[2]+")" , '', '', '周四'+"("+this.newDay[3]+")" , '', '', '周五'+"("+this.newDay[4]+")" , '', '', '周六'+"("+this.newDay[5]+")" , '', '', '周日'+"("+this.newDay[6]+")" , '', '']]
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
              const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
550
              const header = ['', '', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上', '上午', '下午', '晚上']
556
              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']
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
               partition_id:this.partition_id,
2174
               partition_id:this.partition_id,
2180
               schedule_type:this.schedule_type
2175
               schedule_type:this.schedule_type
2181
             }
2176
             }
2182
-        console.log("params2222",params)
2177
+          console.log("params32323232323223",params)
2183
          getThreeWeekList(params).then(response=>{
2178
          getThreeWeekList(params).then(response=>{
2184
            if(response.data.state == 1){
2179
            if(response.data.state == 1){
2185
              var partitions =  response.data.data.partitions
2180
              var partitions =  response.data.data.partitions
2186
-            //  console.log("数据22222",this.partitions)
2187
-
2181
+           
2188
              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']
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
               var list = []
2183
               var list = []
2190
               let i = 0
2184
               let i = 0
2351
               var lastWeek = []
2345
               var lastWeek = []
2352
               var next_start = this.getNextWeekOne(1)
2346
               var next_start = this.getNextWeekOne(1)
2353
               var nextstart = this.getTimestamp(next_start) - 28800
2347
               var nextstart = this.getTimestamp(next_start) - 28800
2354
-              // console.log("下周开始时间",nextstart)
2348
+          
2355
               var next_end = this.getNextWeek(1)
2349
               var next_end = this.getNextWeek(1)
2356
               var nextend = this.getTimestamp(next_end) - 28800
2350
               var nextend = this.getTimestamp(next_end) - 28800
2357
-              // console.log("下周结束时间",nextend)
2351
+             
2358
               var last_start = this.getNextWeekOne(2)
2352
               var last_start = this.getNextWeekOne(2)
2359
               var last_end = this.getNextWeek(2)
2353
               var last_end = this.getNextWeek(2)
2360
               var laststart = this.getTimestamp(last_start) - 28800
2354
               var laststart = this.getTimestamp(last_start) - 28800
2361
-              // console.log("下下周数据时间",laststart)
2355
+            
2362
               var lastend = this.getTimestamp(last_end) - 28800
2356
               var lastend = this.getTimestamp(last_end) - 28800
2363
-              // console.log("下下周数据时间",lastend)
2357
+             
2364
                
2358
                
2365
               if(this.export_type == 0){
2359
               if(this.export_type == 0){
2366
                 for(let i = 0;i<scheduleList.length;i++){
2360
                 for(let i = 0;i<scheduleList.length;i++){
2477
               }
2471
               }
2478
              }
2472
              }
2479
 
2473
 
2480
-            //  console.log("list5555555555",list)
2481
-
2482
              if(nextWeek.length > 0 ){
2474
              if(nextWeek.length > 0 ){
2483
                for(let i=0;i<list.length;i++){
2475
                for(let i=0;i<list.length;i++){
2484
                 for(let j=0;j<nextWeek.length;j++){
2476
                 for(let j=0;j<nextWeek.length;j++){
2580
               }
2572
               }
2581
              }
2573
              }
2582
 
2574
 
2583
-            //  console.log("nextWeek",nextWeek)
2584
-
2585
              if(lastWeek.length > 0 ){
2575
              if(lastWeek.length > 0 ){
2586
                for(let i=0;i<list.length;i++){
2576
                for(let i=0;i<list.length;i++){
2587
                  for(let j=0;j<lastWeek.length;j++){
2577
                  for(let j=0;j<lastWeek.length;j++){
2682
                   }
2672
                   }
2683
                 }
2673
                 }
2684
              }
2674
              }
2685
-             console.log("list23233223232323232323",list)
2686
              this.tableList = list
2675
              this.tableList = list
2676
+             this.start_time = ""
2677
+             this.end_time = ""
2687
            }
2678
            }
2688
          })
2679
          })
2689
        },
2680
        },
2706
        },
2697
        },
2707
 
2698
 
2708
        changeWeek(val){
2699
        changeWeek(val){
2709
-       
2700
+
2701
+         this.start_time = ""
2702
+         this.end_time = ""
2703
+         this.newDay =[]
2710
          var start = this.getTimestamp(val) - 57600
2704
          var start = this.getTimestamp(val) - 57600
2711
         
2705
         
2712
          this.start_time = this.getTime(start)
2706
          this.start_time = this.getTime(start)