Explorar el Código

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

csx hace 3 años
padre
commit
c0f8738d5f

+ 32 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue Ver fichero

@@ -985,6 +985,32 @@
985 985
           </td>
986 986
           
987 987
           
988
+          <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
989
+          <td>
990
+            <span v-if="setAdminUserES(advice.execution_staff) == ''">
991
+              {{ getAdminUser(advice.execution_staff) }}
992
+            </span>
993
+            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
994
+              <img style="height:38px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
995
+            </span>
996
+          </td>
997
+        </tr>
998
+        <tr v-for="(advice, advice_index) in projects" :key="advice_index + 'no'">
999
+          <td style="height:40px;line-height:40px">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
1000
+          <td class="parent" style="text-align:left;padding-left:10px;">
1001
+            <span v-if="advice.type == 2">{{ advice.project.project_name }} &nbsp;&nbsp;{{advice.count}}{{advice.unit}}</span>
1002
+            <span v-if="advice.type == 3">{{ advice.good_info.good_name }} &nbsp;&nbsp;{{advice.count}}{{advice.good_info.packing_unit}}</span>
1003
+          </td>
1004
+          <td>
1005
+            <span v-if="setAdminUserES(advice.doctor) == ''">
1006
+              {{ getAdminUser(advice.doctor) }}
1007
+            </span>
1008
+            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
1009
+              <img style="height:38px;" :src="setAdminUserES(advice.doctor)" alt srcset />
1010
+            </span>
1011
+          </td>
1012
+          
1013
+          
988 1014
           <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
989 1015
           <td>
990 1016
             <span v-if="setAdminUserES(advice.execution_staff) == ''">
@@ -1122,7 +1148,8 @@ export default {
1122 1148
         gaijiliang_unit: ''
1123 1149
       },
1124 1150
       org_id:0,
1125
-      tableAdvice:[]
1151
+      tableAdvice:[],
1152
+      projects:[]
1126 1153
     }
1127 1154
   },
1128 1155
   methods: {
@@ -1409,13 +1436,13 @@ export default {
1409 1436
             }
1410 1437
           }
1411 1438
           this.jilurow = this.monitors.length + 1
1412
-
1439
+          this.projects = response.data.data.projects
1413 1440
           var doctorAdevieInfo = response.data.data.advices
1414 1441
           var tableAdvice = doctorAdevieInfo
1415
-          if (tableAdvice.length < 30) {
1416
-            var nl = 30 - tableAdvice.length
1442
+          if (tableAdvice.length + this.projects.length < 30) {
1443
+            var nl = 30 - (tableAdvice.length + this.projects.length)
1417 1444
             for (let index = 0; index < nl; index++) {
1418
-              tableAdvice.push([])
1445
+              this.projects.push([])
1419 1446
             }
1420 1447
           }
1421 1448
           this.tableAdvice = tableAdvice

+ 13 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

@@ -2,7 +2,7 @@
2 2
     <div class="main-contain outpatientChargesManagement" v-loading="newLoading"
3 3
     element-loading-text="拼命加载中"
4 4
     element-loading-spinner="el-icon-loading"
5
-    element-loading-background="rgba(0, 0, 0, 0.8)">
5
+    element-loading-background="rgba(0, 0, 0, 0.4)">
6 6
         <div class="position">
7 7
             <bread-crumb :crumbs='crumbs'></bread-crumb>
8 8
         </div>
@@ -4252,5 +4252,17 @@
4252 4252
     }
4253 4253
 
4254 4254
     }
4255
+    .el-icon-loading{
4256
+      font-size: 30px;
4257
+    }
4258
+    .el-loading-spinner .el-loading-text{
4259
+      font-size: 30px;
4260
+    }
4261
+    // .outpatientChargesManagement{
4262
+    //   .el-loading-mask{
4263
+    //     z-index: 5000;
4264
+    //   }
4265
+    // }
4266
+    
4255 4267
 </style>
4256 4268
 

+ 9 - 8
src/xt_pages/stock/detail/stockInDetail.vue Ver fichero

@@ -273,6 +273,7 @@ export default {
273 273
       goodUnit:[],
274 274
       stockTotal:[],
275 275
       org_id:0,
276
+      tableInfo:[],
276 277
     };
277 278
   },
278 279
   methods: {
@@ -746,19 +747,19 @@ export default {
746 747
     
747 748
       exportList(){
748 749
   
749
-        console.log("hhhh",this.tableList)
750
+        console.log("hhhh",this.tableInfo)
750 751
        
751
-        for(let i=0;i<this.tableList.length;i++){
752
-          this.tableList[i].index = i+1  
753
-          this.tableList[i].total_price = (this.tableList[i].warehousing_count * this.tableList[i].packing_price).toFixed(2) 
752
+        for(let i=0;i<this.tableInfo.length;i++){
753
+          this.tableInfo[i].index = i+1  
754
+          this.tableInfo[i].total_price = (this.tableInfo[i].warehousing_count * this.tableInfo[i].price).toFixed(2) 
754 755
         }
755
-        console.log("总共条数555",this.tableList)   
756
+        console.log("总共条数555",this.tableInfo)   
756 757
         import('@/vendor/Export2Excel').then(excel => {
757 758
         const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','进货价','总价','备注']
758 759
         const filterVal = ['index','good_name', 'specification_name', 'packing_unit','warehousing_count','price','total_price','remark']
759
-        console.log("hhhhhhhh",this.tableList)
760
+        console.log("hhhhhhhh",this.tableInfo)
760 761
        
761
-        const data = this.formatJson(filterVal, this.tableList)
762
+        const data = this.formatJson(filterVal, this.tableInfo)
762 763
         console.log("data222222222",data)
763 764
           excel.export_json_to_excel({
764 765
             header: tHeader,
@@ -790,7 +791,7 @@ export default {
790 791
         if(response.data.state == 1){
791 792
           var list = response.data.data.list
792 793
           console.log("入库详情单",list)
793
-          this.tableList = list
794
+          this.tableInfo = list
794 795
         }
795 796
       })
796 797
      }

+ 6 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Ver fichero

@@ -276,12 +276,14 @@ export default {
276 276
     changeType: function(val) {
277 277
       this.order_type = val;
278 278
       this.GetCancelStock();
279
+      this.getGoodDetailPrintList()
279 280
       // this.getPrintStockGood()
280 281
     },
281 282
     changeManufacturer: function(val) {
282 283
       this.manufacturer_id = val;
283 284
       this.GetCancelStock();
284 285
       // this.getPrintStockGood()
286
+       this.getGoodDetailPrintList()
285 287
     },
286 288
     getTypeName: function(row) {
287 289
       let name = "";
@@ -461,7 +463,8 @@ export default {
461 463
         this.start_time = "";
462 464
       } else {
463 465
         this.GetCancelStock();
464
-        // this.getPrintStockGood()
466
+        this.getGoodDetailPrintList()
467
+       
465 468
       }
466 469
     },
467 470
     endTimeChange(val) {
@@ -471,7 +474,7 @@ export default {
471 474
         this.end_time = "";
472 475
       } else {
473 476
         this.GetCancelStock();
474
-        // this.getPrintStockGood()
477
+        this.getGoodDetailPrintList()
475 478
       }
476 479
     },
477 480
     getTimestamp(time) {
@@ -756,6 +759,7 @@ export default {
756 759
       },
757 760
 
758 761
     exportList(){
762
+       console.log("表格",this.tableOut)
759 763
        for(let i=0;i<this.tableOut.length;i++){
760 764
         this.tableOut[i].index = i+1
761 765
         this.tableOut[i].good_name = this.tableOut[i].good_name

+ 27 - 16
src/xt_pages/stock/drugs/query.vue Ver fichero

@@ -116,12 +116,16 @@
116 116
         </el-table-column>
117 117
         <el-table-column prop="drug_name" label="出库数量" align="center">
118 118
            <template slot-scope="scope">
119
-            {{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
119
+              <span v-if="org_id == 10028 || org_id == 9671">{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}</span>
120
+              <span v-else>{{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
120 121
            </template>
121 122
         </el-table-column>
122 123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
123 124
            <template slot-scope="scope">
124
-             <span>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
125
+            <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
126
+               <span v-if="(org_id == 10028 || org_id == 9671)">{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}} </span>
127
+               <span v-else>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
128
+            </div>
125 129
            </template>
126 130
         </el-table-column>
127 131
         <el-table-column prop="drug_name" label="操作" align="center" width="200px">
@@ -174,23 +178,24 @@ import { min } from 'moment'
174 178
     name: 'stockIn',
175 179
     created() {
176 180
       
177
-      var nowDate = new Date();
178
-      var nowYear = nowDate.getFullYear();
179
-      var nowMonth = nowDate.getMonth() + 1;
180
-      var nowDay = nowDate.getDate();
181
-      this.end_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
182
-      nowDate.setMonth(nowDate.getMonth() - 1);
183
-      nowYear = nowDate.getFullYear();
184
-      nowMonth = nowDate.getMonth() + 1;
185
-      nowDay = nowDate.getDate();
186
-      this.start_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
181
+      // var nowDate = new Date();
182
+      // var nowYear = nowDate.getFullYear();
183
+      // var nowMonth = nowDate.getMonth() + 1;
184
+      // var nowDay = nowDate.getDate();
185
+      // this.end_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
186
+      // nowDate.setMonth(nowDate.getMonth() - 1);
187
+      // nowYear = nowDate.getFullYear();
188
+      // nowMonth = nowDate.getMonth() + 1;
189
+      // nowDay = nowDate.getDate();
190
+      // this.start_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
187 191
       this.getlist()
188 192
       var drugCategory = getDictionaryDataConfig('system','drug_category')
189 193
       this.drugCategory.push(...drugCategory)
190 194
       var drugTypeList = getDictionaryDataConfig('system','drug_type') 
191 195
       this.drugTypeList.push(...drugTypeList)
192
-     
193
-      // this.getDrugCountList()
196
+      this.org_id =  this.$store.getters.xt_user.org.id
197
+      console.log("机构ID",this.org_id)
198
+      this.getDrugCountList()
194 199
      
195 200
       
196 201
     },
@@ -240,6 +245,7 @@ import { min } from 'moment'
240 245
         drugOutList:[],
241 246
         cancelCountList:[],
242 247
         allCountList:[],
248
+        org_id:"",
243 249
       }
244 250
     },
245 251
     methods: {
@@ -350,10 +356,12 @@ import { min } from 'moment'
350 356
       handleSizeChange(val) {
351 357
         this.limit = val
352 358
         this.getlist()
359
+        this.getDrugCountList()
353 360
       },
354 361
       handleCurrentChange(val) {
355 362
         this.page = val
356 363
         this.getlist()
364
+        this.getDrugCountList()
357 365
       },
358 366
       calculate: function(val) {
359 367
         return Math.round(parseFloat(val) * 100) / 100
@@ -413,6 +421,7 @@ import { min } from 'moment'
413 421
       },
414 422
       search: function() {
415 423
         this.getlist()
424
+        this.getDrugCountList()
416 425
       }, 
417 426
       setting: function() {
418 427
         this.$refs.dialog.show()
@@ -528,8 +537,10 @@ import { min } from 'moment'
528 537
                  info[i].count = info[i].count * info[i].min_number
529 538
               }
530 539
             }
531
-            console.log("搜有列表",this.autoCountList)
532
-            console.log("info2222222",info)
540
+            this.outCountList = response.data.data.outCountList
541
+            console.log("手动出库",this.outCountList)
542
+            this.auCountList = response.data.data.auCountList
543
+            console.log("自动出库",this.auCountList)
533 544
             this.drugOutList = info
534 545
           }
535 546
         })

+ 14 - 11
src/xt_pages/stock/stockQuery.vue Ver fichero

@@ -171,17 +171,17 @@ export default {
171 171
     var nowYear = nowDate.getFullYear();
172 172
     var nowMonth = nowDate.getMonth() + 1;
173 173
     var nowDay = nowDate.getDate();
174
-    this.end_time =
175
-      nowYear +
176
-      "-" +
177
-      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
178
-      "-" +
179
-      (nowDay < 10 ? "0" + nowDay : nowDay);
180
-    nowDate.setMonth(nowDate.getMonth() - 1);
181
-    nowYear = nowDate.getFullYear();
182
-    nowMonth = nowDate.getMonth() + 1;
183
-    nowDay = nowDate.getDate();
184
-    this.start_time = nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
174
+    // this.end_time =
175
+    //   nowYear +
176
+    //   "-" +
177
+    //   (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
178
+    //   "-" +
179
+    //   (nowDay < 10 ? "0" + nowDay : nowDay);
180
+    // nowDate.setMonth(nowDate.getMonth() - 1);
181
+    // nowYear = nowDate.getFullYear();
182
+    // nowMonth = nowDate.getMonth() + 1;
183
+    // nowDay = nowDate.getDate();
184
+    // this.start_time = nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
185 185
     this.GetAllGoodInfo();
186 186
     this.GetAllGoodType();
187 187
     this.getlist()
@@ -321,11 +321,13 @@ export default {
321 321
       this.limit = val;
322 322
 
323 323
       this.getlist()
324
+      this.getStockDrugCount()
324 325
       
325 326
     },
326 327
     handleCurrentChange(val) {
327 328
       this.page = val;
328 329
        this.getlist()
330
+        this.getStockDrugCount()
329 331
     },
330 332
     calculate: function(val) {
331 333
       return Math.round(parseFloat(val) * 100) / 100;
@@ -390,6 +392,7 @@ export default {
390 392
     showCancelStockDetailDialog: function() {},
391 393
     search: function() {
392 394
       this.getlist()
395
+      this.getStockDrugCount()
393 396
     },
394 397
 
395 398
     exportList(){