Pārlūkot izejas kodu

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

csx 3 gadus atpakaļ
vecāks
revīzija
5d4c0ccc3a

+ 3 - 2
src/api/drug/drug.js Parādīt failu

@@ -428,9 +428,9 @@ export function modifyInventory(params) {
428 428
   })
429 429
 }
430 430
 
431
-export function deleteDrugInventory(params) {
431
+export function deleteDrugInventory(id, params) {
432 432
   return request({
433
-    url: '/api/drug/deletedruginventory',
433
+    url: '/api/drug/deletedruginventory?id=' + id,
434 434
     method: 'get',
435 435
     params: params
436 436
   })
@@ -467,3 +467,4 @@ export function getDrugWarehouseInfoTotal(params) {
467 467
     params: params
468 468
   })
469 469
 }
470
+

+ 3 - 3
src/xt_pages/management/components/UserForm.vue Parādīt failu

@@ -228,7 +228,7 @@
228 228
       <el-pagination
229 229
         @size-change="handleSizeChange"
230 230
         @current-change="handleCurrentChange"
231
-        :page-sizes="[10, 20, 30]"
231
+        :page-sizes="[10, 20, 30,50,100,200,500,1000,2000,5000,10000]"
232 232
         :page-size="10"
233 233
         background
234 234
         style="margin-top:20px;float: right"
@@ -1692,7 +1692,7 @@ export default {
1692 1692
               var information = response.data.data.information;
1693 1693
               this.dialogVisible = false;
1694 1694
               this.$message.success("修改成功");
1695
-              this.getInformationData();
1695
+              // this.getInformationData();
1696 1696
               this.$forceUpdate();
1697 1697
             }
1698 1698
           });
@@ -2361,7 +2361,7 @@ export default {
2361 2361
   },
2362 2362
   created() {
2363 2363
     this.getAllSubregion();
2364
-    this.getInformationData();
2364
+    // this.getInformationData();
2365 2365
     this.getAllOrganization();
2366 2366
   },
2367 2367
   watch: {

+ 6 - 4
src/xt_pages/management/home.vue Parādīt failu

@@ -4330,9 +4330,6 @@ export default {
4330 4330
         var bednumbers = parseInt(bednumber)
4331 4331
         this.userform.bed_number = bednumbers
4332 4332
 
4333
-        // var patientName = this.userform.patient_name
4334
-        // var patient_name = parseInt(patientName)
4335
-        // this.userform.patient_name = patient_name
4336 4333
         var dialysismode = this.userform.dialysis_mode
4337 4334
         var dialysis_mode = parseInt(dialysismode)
4338 4335
         this.userform.dialysis_mode = dialysis_mode
@@ -4425,7 +4422,12 @@ export default {
4425 4422
         if (this.userform.user_total === '0') {
4426 4423
           this.userform.user_total = 0
4427 4424
         }
4428
-       
4425
+        if (this.userform.user_total == ""){
4426
+          this.userform.user_total = 0
4427
+        }
4428
+
4429
+        console.log("user_form",this.userform)
4430
+      
4429 4431
         this.$refs[formName].validate((valid) => {
4430 4432
           if (valid) {
4431 4433
             SaveInformation(this.equimentid, this.userform).then(response => {

+ 0 - 2
src/xt_pages/stock/Dialog/goodInfoDailog.vue Parādīt failu

@@ -384,8 +384,6 @@
384 384
             { required: true, message: '请选择生产厂商', trigger: 'blur' }
385 385
           ], good_unit: [
386 386
             { required: true, message: '请选择单位', trigger: 'blur' }
387
-          ], stock_warn_count: [
388
-            { required: true, message: '请输入库存警戒', trigger: 'blur' }
389 387
           ],social_security_directory_code:[
390 388
             {required:true,message:"请填写社保目录编码",trigger:'blur'}
391 389
           ],production_type:[

+ 1 - 0
src/xt_pages/stock/drugs/drugDamaged.vue Parādīt failu

@@ -592,6 +592,7 @@ export default {
592 592
            getDrugWarehouseInfoList(params).then(response=>{
593 593
              if(response.data.state == 1){
594 594
                var list =   response.data.data.list
595
+              
595 596
                for(let i=0;i<list.length;i++){
596 597
                   list[i].stock_max_number = val.min_number * list[i].stock_max_number
597 598
                 }

+ 8 - 2
src/xt_pages/stock/drugs/drugModifyPrice.vue Parādīt failu

@@ -69,6 +69,11 @@
69 69
                    <template slot-scope="scope">
70 70
                     {{scope.row.specification_name}}
71 71
                   </template>  
72
+                </el-table-column>
73
+                 <el-table-column prop="date" label="原价格" width="100px"  align="center">
74
+                   <template slot-scope="scope">
75
+                    {{scope.row.retail_price}}
76
+                  </template>  
72 77
                 </el-table-column>
73 78
                  <el-table-column prop="date" label="现价格" width="100px"  align="center">
74 79
                    <template slot-scope="scope">
@@ -614,11 +619,12 @@ export default {
614 619
      getlist(){
615 620
          var params = {
616 621
             keyword:this.searchKey,
617
-            start_time:"",
618
-            end_time:"",
622
+            start_time:this.start_time,
623
+            end_time:this.end_time,
619 624
             limit:this.limit,
620 625
             page:this.page,
621 626
          }
627
+        console.log("params",params)
622 628
        getDrugPriceList(params).then(response=>{
623 629
           if(response.data.state == 1){
624 630
            var list =  response.data.data.list

+ 1 - 1
src/xt_pages/stock/drugs/drugStockFlow.vue Parādīt failu

@@ -76,7 +76,7 @@
76 76
              <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
77 77
               <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>
78 78
               <span v-if="scope.row.consumable_type == 4">{{scope.row.cancel_order_number}}</span>
79
-              <span v-if="scope.row.consumable_type == 5">{{scope.row.cancel_order_number}}</span>
79
+              <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
80 80
            </template>
81 81
         </el-table-column>
82 82
         <el-table-column prop="drug_name" label="操作日期" align="center">

+ 5 - 6
src/xt_pages/stock/drugs/inventory.vue Parādīt failu

@@ -530,7 +530,7 @@
530 530
 
531 531
 <script>
532 532
 import { uParseTime } from '@/utils/tools'
533
-import { postSearchDrugWarehouseList,getDrugWarehouseInfoList,saveDrugInventory,getDrugInventoryList,SaveDrugCheckedInventory,getDrugInventoryDetail,modifyInventory,SaveDrugProofInventory,getDrugWarehouseInfoTotal} from "@/api/drug/drug"
533
+import { postSearchDrugWarehouseList,getDrugWarehouseInfoList,saveDrugInventory,getDrugInventoryList,SaveDrugCheckedInventory,getDrugInventoryDetail,modifyInventory,SaveDrugProofInventory,getDrugWarehouseInfoTotal,deleteDrugInventory} from "@/api/drug/drug"
534 534
 import { getDrugBatchNumber } from  "@/api/drug/drug_stock"
535 535
 import { getDataConfig } from '@/utils/data'
536 536
 export default {
@@ -862,6 +862,7 @@ export default {
862 862
               tableData:this.tableData
863 863
            }
864 864
            console.log("parasm222",params)
865
+           
865 866
           saveDrugInventory(params).then(response=>{
866 867
             if(response.data.state == 1){
867 868
               var msg = response.data.data.msg
@@ -999,7 +1000,7 @@ export default {
999 1000
          }
1000 1001
       })
1001 1002
      },
1002
-     deleteDrugInventory(id,check_status){
1003
+     deleteDrugInventory(id,check_status,index){
1003 1004
        if(check_status == 1){
1004 1005
           this.$message.error("已核对的不能编辑")
1005 1006
           return
@@ -1009,10 +1010,8 @@ export default {
1009 1010
           cancelButtonText: '取消',
1010 1011
           type: 'warning'
1011 1012
         }).then(() => {
1012
-          let params = {
1013
-            id:id,
1014
-          }
1015
-       deleteDrugInventory(params).then(response => {
1013
+        
1014
+       deleteDrugInventory(id).then(response => {
1016 1015
             if (response.data.state == 1) {
1017 1016
               var msg = response.data.data.msg
1018 1017
               this.$message.success("保存成功")

+ 1 - 0
src/xt_pages/stock/drugs/inventoryDetails.vue Parādīt failu

@@ -180,6 +180,7 @@ export default {
180 180
              if(response.data.state == 1){
181 181
               this.total =  response.data.data.total
182 182
               this.tableData = response.data.data.list
183
+              console.log("比阿哥",this.tableData)
183 184
               this.doctorList = response.data.data.doctorList
184 185
              }
185 186
           })   

+ 2 - 4
src/xt_pages/stock/inventory.vue Parādīt failu

@@ -1008,10 +1008,8 @@ export default {
1008 1008
           cancelButtonText: '取消',
1009 1009
           type: 'warning'
1010 1010
         }).then(() => {
1011
-          let params = {
1012
-            id:id,
1013
-          }
1014
-       deleteInventory(params).then(response => {
1011
+          
1012
+       deleteInventory(id).then(response => {
1015 1013
             if (response.data.state == 1) {
1016 1014
               var msg = response.data.data.msg
1017 1015
               this.$message.success("保存成功")

+ 30 - 11
src/xt_pages/stock/stockModifyPrice.vue Parādīt failu

@@ -106,7 +106,8 @@
106 106
                     </el-table-column>
107 107
                     <el-table-column label="核对人" width="100" align="center">
108 108
                       <template slot-scope="scope">
109
-                         {{getDoctor(scope.row.checker)}}
109
+                         {{getDoctorOne(scope.row.checker)}}
110
+                        
110 111
                       </template>
111 112
                     </el-table-column>
112 113
                     <el-table-column label="状态" width="100" align="center">
@@ -422,7 +423,7 @@
422 423
 
423 424
 <script>
424 425
 import BreadCrumb from "../components/bread-crumb";
425
-import { postSearchGoodWarehouseList,saveAdjustPrice,getAllStockPrice,SaveCheckedPrice,getModifyPriceDetail,updateStockPrice,deleteStockPrice} from "@/api/stock"
426
+import { postSearchGoodList,saveAdjustPrice,getAllStockPrice,SaveCheckedPrice,getModifyPriceDetail,updateStockPrice,deleteStockPrice} from "@/api/stock"
426 427
 import { uParseTime } from '@/utils/tools'
427 428
 export default {
428 429
     name: "stockModifyPrice",
@@ -497,7 +498,7 @@ export default {
497 498
             if (keyword != undefined) {
498 499
              key = keyword
499 500
             }
500
-            postSearchGoodWarehouseList(key).then(response => {
501
+            postSearchGoodList(key).then(response => {
501 502
             if (response.data.state == 1) {
502 503
             
503 504
                 var list = response.data.data.list
@@ -535,21 +536,26 @@ export default {
535 536
         handleSelect(val){
536 537
           console.log("val23232323",val)
537 538
           this.form.id = val.id
538
-          this.form.good_id = val.good_id,
539
+          this.form.good_id = val.id,
539 540
           this.form.good_name = val.good_name
540 541
           this.form.packing_price = val.packing_price
541
-          this.form.warehousing_order = val.warehousing_order
542
-          this.form.license_number = val.license_number
542
+          if(val.xt_warehouse_info != null){
543
+              this.form.warehousing_order = val.warehousing_order
544
+          }else{
545
+             this.form.warehousing_order = ""
546
+          }
547
+        
548
+          if (val.xt_warehouse_info != null){
549
+             this.form.license_number = val.xt_warehouse_info[0].license_number
550
+          }else{
551
+            this.form.license_number = ""
552
+          }
543 553
           if(val.dealer == 0){
544 554
             this.form.dealer = ""
545 555
           }else{
546 556
             this.form.dealer = val.dealer
547 557
           }
548
-          // if(this.form.manufacturer == 0){
549
-          //   this.form.manufacturer = ""
550
-          // }else{
551
-          //   this.form.manufacturer = val.manufacturer
552
-          // }
558
+          
553 559
           this.form.manufacturer = val.manufacturer
554 560
           this.form.specification_name = val.specification_name
555 561
           this.form.remark = val.remark
@@ -684,11 +690,13 @@ export default {
684 690
         console.log("params",params)
685 691
        getAllStockPrice(params).then(response=>{
686 692
          if(response.data.state == 1){
693
+           this.tableList = []
687 694
            var list = response.data.data.list
688 695
            console.log("zhognguoffs",list)
689 696
            this.tableList = list
690 697
            var doctor = response.data.data.doctor
691 698
            console.log("doctor",doctor)
699
+           this.doctorList = []
692 700
            this.doctorList = doctor
693 701
            this.total = response.data.data.total
694 702
          }
@@ -703,6 +711,17 @@ export default {
703 711
        }
704 712
        return user_name
705 713
      },
714
+     getDoctorOne(id){
715
+       console.log("id233233",id)
716
+       console.log("hhhhh23323232",this.doctorList)
717
+       var user_name = ""
718
+       for(let i=0;i<this.doctorList.length;i++){
719
+          if(id == this.doctorList[i].admin_user_id){
720
+             user_name = this.doctorList[i].user_name
721
+          }
722
+       }
723
+       return user_name
724
+     },
706 725
      changePrice(val){
707 726
        console.log("val23232322323",val)
708 727