mainqaq 2 jaren geleden
bovenliggende
commit
87b31f718c

+ 4 - 4
src/xt_pages/hospitalStation/components/prescriptionTable.vue Bestand weergeven

471
               this.$message.error(scope.row.drug_name + '库存不足')
471
               this.$message.error(scope.row.drug_name + '库存不足')
472
             }
472
             }
473
           }
473
           }
474
-         
474
+
475
         } else {
475
         } else {
476
           if(scope.row.drug.is_user!=1){
476
           if(scope.row.drug.is_user!=1){
477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
478
               this.$message.error(scope.row.drug_name + '库存不足')
478
               this.$message.error(scope.row.drug_name + '库存不足')
479
             }
479
             }
480
           }
480
           }
481
-        
481
+
482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
483
         }
483
         }
484
 
484
 
521
               this.$message.error(scope.row.drug_name + '库存不足')
521
               this.$message.error(scope.row.drug_name + '库存不足')
522
            }
522
            }
523
           }
523
           }
524
-        
524
+
525
         } else {
525
         } else {
526
           if(scope.row.drug.is_user!=1){
526
           if(scope.row.drug.is_user!=1){
527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
528
               this.$message.error(scope.row.drug_name + '库存不足')
528
               this.$message.error(scope.row.drug_name + '库存不足')
529
             }
529
             }
530
           }
530
           }
531
-         
531
+
532
         }
532
         }
533
       },
533
       },
534
       getProjectSingleDose(scope) {
534
       getProjectSingleDose(scope) {

+ 19 - 14
src/xt_pages/management/components/RepairForm.vue Bestand weergeven

35
         ></el-date-picker>
35
         ></el-date-picker>
36
       </el-col>
36
       </el-col>
37
       <el-col :span="2">
37
       <el-col :span="2">
38
-        <el-button @click="queryRepair()">查询</el-button>
38
+        <el-button style="background-color:#409eff;color: #DCDFE6" @click="queryRepair()">查询</el-button>
39
       </el-col>
39
       </el-col>
40
     </el-row>
40
     </el-row>
41
     <el-row style="display: flex;align-items: center;">
41
     <el-row style="display: flex;align-items: center;">
406
         </el-row>
406
         </el-row>
407
       </el-form>
407
       </el-form>
408
       <span slot="footer" class="dialog-footer">
408
       <span slot="footer" class="dialog-footer">
409
+<!--        <button @click="lili">调试</button>-->
409
         <el-button @click="dialogVisible = false">取 消</el-button>
410
         <el-button @click="dialogVisible = false">取 消</el-button>
410
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411
           >保存</el-button
412
           >保存</el-button
482
       limit: 10,
483
       limit: 10,
483
       page: 1,
484
       page: 1,
484
       total: 0,
485
       total: 0,
485
-      filename: ""
486
     };
486
     };
487
   },
487
   },
488
   methods: {
488
   methods: {
489
+    lili(){
490
+      console.log("this.guaForm",this.guaForm)
491
+    },
489
     changeCheck() {
492
     changeCheck() {
490
       this.$refs.multipleTable.clearSelection();
493
       this.$refs.multipleTable.clearSelection();
491
       if (this.checkAllStatus) {
494
       if (this.checkAllStatus) {
655
       window.location.href = this.guaForm.images;
658
       window.location.href = this.guaForm.images;
656
     },
659
     },
657
     UpdateRepair(formName) {
660
     UpdateRepair(formName) {
661
+      console.log("formName",formName)
662
+      console.log("this.guaForm",this.guaForm)
658
       this.$refs[formName].validate(valid => {
663
       this.$refs[formName].validate(valid => {
659
-        this.guaForm.start_time = uParseTime(
660
-          this.guaForm.start_time,
661
-          "{y}-{m}-{d} {h}:{i}"
662
-        );
663
-        this.guaForm.arrive_time = uParseTime(
664
-          this.guaForm.arrive_time,
665
-          "{y}-{m}-{d} {h}:{i}"
666
-        );
667
-        this.guaForm.finish_time = uParseTime(
668
-          this.guaForm.finish_time,
669
-          "{y}-{m}-{d} {h}:{i}"
670
-        );
664
+        // this.guaForm.start_time = uParseTime(
665
+        //   this.guaForm.start_time,
666
+        //   "{y}-{m}-{d} {h}:{i}"
667
+        // );
668
+        // this.guaForm.arrive_time = uParseTime(
669
+        //   this.guaForm.arrive_time,
670
+        //   "{y}-{m}-{d} {h}:{i}"
671
+        // );
672
+        // this.guaForm.finish_time = uParseTime(
673
+        //   this.guaForm.finish_time,
674
+        //   "{y}-{m}-{d} {h}:{i}"
675
+        // );
671
 
676
 
672
         if (this.guaForm.failure_stage === "") {
677
         if (this.guaForm.failure_stage === "") {
673
           this.guaForm.failure_stage = 0;
678
           this.guaForm.failure_stage = 0;

+ 25 - 7
src/xt_pages/outpatientDoctorStation/batch_delete.vue Bestand weergeven

34
           <div v-if="new_type == 1">
34
           <div v-if="new_type == 1">
35
             请输入需要删除的药品:
35
             请输入需要删除的药品:
36
             <el-select
36
             <el-select
37
+              filterable
37
               v-model="id"
38
               v-model="id"
38
               placeholder="请选择"
39
               placeholder="请选择"
39
               @change="getUsername"
40
               @change="getUsername"
50
           <div v-if="new_type == 2">
51
           <div v-if="new_type == 2">
51
             请输入需要删除的项目:
52
             请输入需要删除的项目:
52
             <el-select
53
             <el-select
54
+              filterable
53
               v-model="id"
55
               v-model="id"
54
               placeholder="请选择"
56
               placeholder="请选择"
55
               @change="getUsername"
57
               @change="getUsername"
274
       tableDatas:[{
276
       tableDatas:[{
275
         id: "",
277
         id: "",
276
         drug_name: "",
278
         drug_name: "",
277
-        single_dose: 0,
279
+        single_dose: "",
278
         single_dose_unit: "",
280
         single_dose_unit: "",
279
         delivery_way: "",
281
         delivery_way: "",
280
         execution_frequency: "",
282
         execution_frequency: "",
281
-        day: 0,
282
-        prescribing_number: 0,
283
+        day: "",
284
+        prescribing_number: "",
283
         prescribing_number_unit: "",
285
         prescribing_number_unit: "",
284
         price: "",
286
         price: "",
285
         remark: "",
287
         remark: "",
288
         id: "",
290
         id: "",
289
         drug_name: "",
291
         drug_name: "",
290
         translate:"",
292
         translate:"",
291
-        single_dose: 0,
293
+        single_dose: "",
292
         unit: "",
294
         unit: "",
293
         delivery_way: "",
295
         delivery_way: "",
294
         execution_frequency: "",
296
         execution_frequency: "",
295
-        day: 0,
296
-        prescribing_number: 0,
297
+        day: "",
298
+        prescribing_number: "",
297
         price: "",
299
         price: "",
298
         remark: "",
300
         remark: "",
299
         frequency_type:1,
301
         frequency_type:1,
340
   },
342
   },
341
   methods: {
343
   methods: {
342
     save() {
344
     save() {
345
+      var tmp = this.modeOptions[this.modeOptions_value].name
346
+      var tmp2 = ""
347
+      if (this.druglist != null){
348
+        for(let i = 0;i < this.druglist.length;i++){
349
+          if (this.id == this.druglist[i].id){
350
+            tmp2 = this.druglist[i].name
351
+          }
352
+        }
353
+      }
354
+      if(this.projectlist != null){
355
+        for (let j = 0;j < this.projectlist.length;j++){
356
+          if (this.id == this.projectlist[j].id){
357
+            tmp2 = this.projectlist[j].name
358
+          }
359
+        }
360
+      }
343
       this.$confirm(
361
       this.$confirm(
344
-        "注:该操作将会把选中的药品或项目从所选患者处方模板中移除,请确定是否删除?",
362
+        "注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,请确定是否删除?",
345
         "",
363
         "",
346
         {
364
         {
347
           confirmButtonText: "确 定",
365
           confirmButtonText: "确 定",

+ 84 - 33
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue Bestand weergeven

50
           </div>
50
           </div>
51
         </div>
51
         </div>
52
 
52
 
53
-<!--        <button @click="lili">调试</button>-->
53
+        <button @click="lili">调试</button>
54
         <el-button @click="save">保存</el-button>
54
         <el-button @click="save">保存</el-button>
55
       </div>
55
       </div>
56
 
56
 
121
                 <el-table-column fixed label="新增药品名称" width="230">
121
                 <el-table-column fixed label="新增药品名称" width="230">
122
                   <template slot-scope="scope">
122
                   <template slot-scope="scope">
123
                     <el-select
123
                     <el-select
124
+                      filterable
124
                       v-model="scope.row.drug_name"
125
                       v-model="scope.row.drug_name"
125
                       placeholder="请选择"
126
                       placeholder="请选择"
126
                       @focus="clicktmp(item.patient_value, scope.row)"
127
                       @focus="clicktmp(item.patient_value, scope.row)"
280
                 <el-table-column fixed label="新增项目名称" width="230">
281
                 <el-table-column fixed label="新增项目名称" width="230">
281
                   <template slot-scope="scope">
282
                   <template slot-scope="scope">
282
                     <el-select
283
                     <el-select
284
+                      filterable
283
                       v-model="scope.row.drug_name"
285
                       v-model="scope.row.drug_name"
284
                       placeholder="请选择"
286
                       placeholder="请选择"
285
                       @focus="clicktmp(item.patient_value, scope.row)"
287
                       @focus="clicktmp(item.patient_value, scope.row)"
581
       </div>
583
       </div>
582
 
584
 
583
       <span slot="footer" class="dialog-footer">
585
       <span slot="footer" class="dialog-footer">
584
-        <button @click="lili">调试</button>
586
+<!--        <button @click="lili">调试</button>-->
585
     <el-button @click="dialogVisible = false">取 消</el-button>
587
     <el-button @click="dialogVisible = false">取 消</el-button>
586
     <el-button type="primary" @click="baocun">确 定</el-button>
588
     <el-button type="primary" @click="baocun">确 定</el-button>
587
   </span>
589
   </span>
615
             {
617
             {
616
               id: "",
618
               id: "",
617
               drug_name: "",
619
               drug_name: "",
618
-              single_dose: 0,
620
+              single_dose: "",
619
               single_dose_unit: "",
621
               single_dose_unit: "",
620
               delivery_way: "",
622
               delivery_way: "",
621
               execution_frequency: "",
623
               execution_frequency: "",
622
-              day: 0,
623
-              prescribing_number: 0,
624
+              day: "",
625
+              prescribing_number: "",
624
               prescribing_number_unit: "",
626
               prescribing_number_unit: "",
625
               price: "",
627
               price: "",
626
               remark: "",
628
               remark: "",
631
               id: "",
633
               id: "",
632
               drug_name: "",
634
               drug_name: "",
633
               translate:"",
635
               translate:"",
634
-              single_dose: 0,
636
+              single_dose: "",
635
               unit: "",
637
               unit: "",
636
               delivery_way: "",
638
               delivery_way: "",
637
               execution_frequency: "",
639
               execution_frequency: "",
638
-              day: 0,
639
-              prescribing_number: 0,
640
+              day: "",
641
+              prescribing_number: "",
640
               price: "",
642
               price: "",
641
               remark: "",
643
               remark: "",
642
               frequency_type:1,
644
               frequency_type:1,
685
   },
687
   },
686
   methods: {
688
   methods: {
687
     save() {
689
     save() {
690
+      var tmp = this.modeOptions[this.modeOptions_value].name
691
+      var tmp2 = ""
692
+      for(let i =0;i < this.editableTabs.length;i++){
693
+        console.log("for")
694
+          for (let j = 0;j < this.editableTabs[i].project.length;j++){
695
+            if (this.editableTabs[i].project[j].id != ""){
696
+              if (this.projectlist != null){
697
+                for(let p1 = 0;p1 < this.projectlist.length;p1++){
698
+                  if(this.editableTabs[i].project[j].id == this.projectlist[p1].id){
699
+                    tmp2 = tmp2 + this.projectlist[p1].name+","
700
+                  }
701
+                }
702
+              }
703
+              if(this.projectlist2 != null){
704
+                for(let p2 = 0;p2 < this.projectlist2.length;p2++){
705
+                  if(this.editableTabs[i].project[j].id == this.projectlist2[p2].id){
706
+                    tmp2 = tmp2 + this.projectlist2[p2].name+","
707
+                  }
708
+                }
709
+              }
710
+            }
711
+          }
712
+          for (let x = 0;x < this.editableTabs[i].tableDatas.length;x++){
713
+            if(this.editableTabs[i].tableDatas[x].id != ""){
714
+              if(this.druglist != null){
715
+                console.log("for"+i+"",this.editableTabs[i].tableDatas[x].id)
716
+                for(let d1 = 0;d1 < this.druglist.length;d1++){
717
+                  console.log("循环"+d1+"",this.druglist[d1].id)
718
+                  if(this.editableTabs[i].tableDatas[x].id == this.druglist[d1].id){
719
+                    tmp2 = tmp2 + this.druglist[d1].name+","
720
+                  }
721
+                }
722
+              }
723
+              if(this.druglist2 != null){
724
+                console.log("for"+i+"",this.editableTabs[i].tableDatas[x].id)
725
+                for(let d2 = 0;d2 < this.druglist2.length;d2++){
726
+                  console.log("循环"+d2+"",this.druglist2[d2].id)
727
+                  if(this.editableTabs[i].tableDatas[x].id == this.druglist2[d2].id){
728
+                    tmp2 = tmp2 + this.druglist2[d2].name+","
729
+                  }
730
+                }
731
+              }
732
+            }
733
+          }
734
+      }
735
+      console.log("tmp2",tmp2)
688
       this.$confirm(
736
       this.$confirm(
689
-        "注:该操作将会把所选患者的XX透析模式中的新增XXX,请确定是否保存?",
737
+        "注:该操作将会把所选患者的"+tmp+"透析模式中的新增"+tmp2+",请确定是否保存?",
690
         "",
738
         "",
691
         {
739
         {
692
           confirmButtonText: "确 定",
740
           confirmButtonText: "确 定",
702
         for (let i = 0;i < this.multipleSelection.length;i++){
750
         for (let i = 0;i < this.multipleSelection.length;i++){
703
           st = st + this.multipleSelection[i].id + ","
751
           st = st + this.multipleSelection[i].id + ","
704
         }
752
         }
705
-        console.log("string",st)
706
         let params = {
753
         let params = {
707
           mode_id:this.modeOptions_value,
754
           mode_id:this.modeOptions_value,
708
           patient_id: st,
755
           patient_id: st,
723
 
770
 
724
     lili() {
771
     lili() {
725
       console.log("this.editableTabs",this.editableTabs);
772
       console.log("this.editableTabs",this.editableTabs);
726
-      // console.log("this.week_days",this.week_days)
727
-      // console.log("this.editableTabs",this.editableTabs)
773
+      // console.log("this.druglist2",this.druglist2)
774
+      // console.log("this.projectlist",this.projectlist)
728
       // console.log("this.projectlist2",this.projectlist2)
775
       // console.log("this.projectlist2",this.projectlist2)
729
       // console.log("patient_value",this.patient_value)
776
       // console.log("patient_value",this.patient_value)
730
     },
777
     },
746
           {
793
           {
747
             id: "",
794
             id: "",
748
             drug_name: "",
795
             drug_name: "",
749
-            single_dose: 0,
796
+            single_dose: "",
750
             single_dose_unit: "",
797
             single_dose_unit: "",
751
             delivery_way: "",
798
             delivery_way: "",
752
             execution_frequency: "",
799
             execution_frequency: "",
753
-            day: 0,
754
-            prescribing_number: 0,
800
+            day: "",
801
+            prescribing_number: "",
755
             prescribing_number_unit: "",
802
             prescribing_number_unit: "",
756
             price: "",
803
             price: "",
757
             remark: "",
804
             remark: "",
762
             id: "",
809
             id: "",
763
             drug_name: "",
810
             drug_name: "",
764
             translate:"",
811
             translate:"",
765
-            single_dose: 0,
812
+            single_dose: "",
766
             unit: "",
813
             unit: "",
767
             delivery_way: "",
814
             delivery_way: "",
768
             execution_frequency: "",
815
             execution_frequency: "",
769
-            day: 0,
770
-            prescribing_number: 0,
816
+            day: "",
817
+            prescribing_number: "",
771
             price: "",
818
             price: "",
772
             remark: "",
819
             remark: "",
773
             frequency_type:1,
820
             frequency_type:1,
793
       this.tabhang = tab.index
840
       this.tabhang = tab.index
794
     },
841
     },
795
     changeid(item,index){
842
     changeid(item,index){
796
-      console.log("this.tabhang",this.tabhang)
843
+      console.log("this.tabhang1",this.tabhang)
797
       console.log("this.hang",this.hang)
844
       console.log("this.hang",this.hang)
798
       this.hang = index
845
       this.hang = index
799
       item.id = item.drug_name
846
       item.id = item.drug_name
816
       })
863
       })
817
     },
864
     },
818
     changeid2(item,index){
865
     changeid2(item,index){
819
-      console.log("this.tabhang",this.tabhang)
866
+      console.log("this.tabhang2",this.tabhang)
820
       console.log("this.hang???",this.hang)
867
       console.log("this.hang???",this.hang)
821
       this.hang = index
868
       this.hang = index
822
       item.id = item.drug_name
869
       item.id = item.drug_name
879
       rows.splice(index+1,0,{
926
       rows.splice(index+1,0,{
880
         id:"",
927
         id:"",
881
         drug_name: '',
928
         drug_name: '',
882
-        single_dose:0,
929
+        single_dose:"",
883
         single_dose_unit: '',
930
         single_dose_unit: '',
884
         delivery_way: '',
931
         delivery_way: '',
885
         execution_frequency: '',
932
         execution_frequency: '',
886
-        day: 0,
887
-        prescribing_number:0,
933
+        day: "",
934
+        prescribing_number:"",
888
         prescribing_number_unit:"",
935
         prescribing_number_unit:"",
889
         price:"",
936
         price:"",
890
         remark:"",
937
         remark:"",
894
       rows.splice(index+1,0,{
941
       rows.splice(index+1,0,{
895
         id: "",
942
         id: "",
896
         drug_name: "",
943
         drug_name: "",
897
-        single_dose: 0,
944
+        single_dose: "",
898
         unit: "",
945
         unit: "",
899
         delivery_way: "",
946
         delivery_way: "",
900
         execution_frequency: "",
947
         execution_frequency: "",
901
-        day: 0,
902
-        prescribing_number: 0,
948
+        day: "",
949
+        prescribing_number: "",
903
         price: "",
950
         price: "",
904
         remark: "",
951
         remark: "",
905
         frequency_type:"",
952
         frequency_type:"",
952
     },
999
     },
953
     handleTabsEdit(targetName, action,tab) {
1000
     handleTabsEdit(targetName, action,tab) {
954
       this.tabhang = this.editableTabs.length
1001
       this.tabhang = this.editableTabs.length
955
-      console.log("this.tabhang",this.tabhang)
1002
+      if(this.editableTabs.length == 1){
1003
+        this.$message.error("最后一条处方,不能删除")
1004
+        return
1005
+      }
1006
+      console.log("this.tabhang3",this.tabhang)
956
       if (action === "add") {
1007
       if (action === "add") {
957
         let newTabName = ++this.tabIndex + "";
1008
         let newTabName = ++this.tabIndex + "";
958
         let tmp = this.editableTabs.length + 1;
1009
         let tmp = this.editableTabs.length + 1;
964
             {
1015
             {
965
               id: "",
1016
               id: "",
966
               drug_name: "",
1017
               drug_name: "",
967
-              single_dose: 0,
1018
+              single_dose: "",
968
               single_dose_unit: "",
1019
               single_dose_unit: "",
969
               delivery_way: "",
1020
               delivery_way: "",
970
               execution_frequency: "",
1021
               execution_frequency: "",
971
-              day: 0,
972
-              prescribing_number: 0,
1022
+              day: "",
1023
+              prescribing_number: "",
973
               prescribing_number_unit: "",
1024
               prescribing_number_unit: "",
974
               price: "",
1025
               price: "",
975
               remark: "",
1026
               remark: "",
979
             {
1030
             {
980
               id: "",
1031
               id: "",
981
               drug_name: "",
1032
               drug_name: "",
982
-              single_dose: 0,
1033
+              single_dose: "",
983
               unit: "",
1034
               unit: "",
984
               delivery_way: "",
1035
               delivery_way: "",
985
               execution_frequency: "",
1036
               execution_frequency: "",
986
-              day: 0,
987
-              prescribing_number: 0,
1037
+              day: "",
1038
+              prescribing_number: "",
988
               price: "",
1039
               price: "",
989
               remark: "",
1040
               remark: "",
990
               frequency_type:"",
1041
               frequency_type:"",

+ 81 - 20
src/xt_pages/outpatientDoctorStation/batch_replacement.vue Bestand weergeven

34
           <div v-if="new_type == 1">
34
           <div v-if="new_type == 1">
35
             请输入需要替换的药品:
35
             请输入需要替换的药品:
36
             <el-select
36
             <el-select
37
+              filterable
37
               v-model="id"
38
               v-model="id"
38
               placeholder="请选择"
39
               placeholder="请选择"
39
               @change="getUsername"
40
               @change="getUsername"
50
           <div v-if="new_type == 2">
51
           <div v-if="new_type == 2">
51
             请输入需要替换的项目:
52
             请输入需要替换的项目:
52
             <el-select
53
             <el-select
54
+              filterable
53
               v-model="id"
55
               v-model="id"
54
               placeholder="请选择"
56
               placeholder="请选择"
55
               @change="getUsername"
57
               @change="getUsername"
65
           </div>
67
           </div>
66
         </div>
68
         </div>
67
 
69
 
68
-<!--        <button @click="lili">调试</button>-->
70
+        <button @click="lili">调试</button>
69
         <el-button @click="save">保存</el-button>
71
         <el-button @click="save">保存</el-button>
70
       </div>
72
       </div>
71
 
73
 
106
           <el-table-column fixed label="替换药品名称" width="230">
108
           <el-table-column fixed label="替换药品名称" width="230">
107
             <template slot-scope="scope">
109
             <template slot-scope="scope">
108
               <el-select
110
               <el-select
111
+                filterable
109
                 v-model="scope.row.drug_name"
112
                 v-model="scope.row.drug_name"
110
                 placeholder="请选择"
113
                 placeholder="请选择"
111
                 @change="changeid(scope.row,scope.$index)"
114
                 @change="changeid(scope.row,scope.$index)"
240
           <el-table-column fixed label="替换项目名称" width="230">
243
           <el-table-column fixed label="替换项目名称" width="230">
241
             <template slot-scope="scope">
244
             <template slot-scope="scope">
242
               <el-select
245
               <el-select
246
+                filterable
243
                 v-model="scope.row.drug_name"
247
                 v-model="scope.row.drug_name"
244
                 placeholder="请选择"
248
                 placeholder="请选择"
245
                 @change="changeid2(scope.row,scope.$index)"
249
                 @change="changeid2(scope.row,scope.$index)"
343
               <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
347
               <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
344
             </template>
348
             </template>
345
           </el-table-column>
349
           </el-table-column>
346
-          <el-table-column fixed="right" label="操作" width="102">
347
-            <template slot-scope="scope">
348
-              <el-button
349
-                @click.native.prevent="addopen(scope.$index)"
350
-                type="text"
351
-                size="small">
352
-                推送
353
-              </el-button>
354
-            </template>
355
-          </el-table-column>
350
+<!--          <el-table-column fixed="right" label="操作" width="102">-->
351
+<!--            <template slot-scope="scope">-->
352
+<!--              <el-button-->
353
+<!--                @click.native.prevent="addopen(scope.$index)"-->
354
+<!--                type="text"-->
355
+<!--                size="small">-->
356
+<!--                推送-->
357
+<!--              </el-button>-->
358
+<!--            </template>-->
359
+<!--          </el-table-column>-->
356
         </el-table>
360
         </el-table>
357
       </el-container>
361
       </el-container>
358
     </div>
362
     </div>
412
       tableDatas:[{
416
       tableDatas:[{
413
         id: "",
417
         id: "",
414
         drug_name: "",
418
         drug_name: "",
415
-        single_dose: 0,
419
+        single_dose: "",
416
         single_dose_unit: "",
420
         single_dose_unit: "",
417
         delivery_way: "",
421
         delivery_way: "",
418
         execution_frequency: "",
422
         execution_frequency: "",
419
-        day: 0,
420
-        prescribing_number: 0,
423
+        day: "",
424
+        prescribing_number: "",
421
         prescribing_number_unit: "",
425
         prescribing_number_unit: "",
422
         price: "",
426
         price: "",
423
         remark: "",
427
         remark: "",
426
         id: "",
430
         id: "",
427
         drug_name: "",
431
         drug_name: "",
428
         translate:"",
432
         translate:"",
429
-        single_dose: 0,
433
+        single_dose: "",
430
         unit: "",
434
         unit: "",
431
         delivery_way: "",
435
         delivery_way: "",
432
         execution_frequency: "",
436
         execution_frequency: "",
433
-        day: 0,
434
-        prescribing_number: 0,
437
+        day: "",
438
+        prescribing_number: "",
435
         price: "",
439
         price: "",
436
         remark: "",
440
         remark: "",
437
         frequency_type:1,
441
         frequency_type:1,
473
   },
477
   },
474
   methods: {
478
   methods: {
475
     save() {
479
     save() {
480
+      var tmp = this.modeOptions[this.modeOptions_value].name
481
+      var tmp2 = ""
482
+      var tmp3 = ""
483
+      if (this.new_type == 2){
484
+        if (this.projectlist != null){
485
+          for(let p1 = 0;p1 < this.projectlist.length;p1++){
486
+            if(this.id == this.projectlist[p1].id){
487
+              tmp2 =  this.projectlist[p1].name
488
+            }
489
+            if(this.project != null){
490
+              if(this.project[0].id == this.projectlist[p1].id){
491
+                tmp3 = this.projectlist[p1].name
492
+              }
493
+            }
494
+          }
495
+        }
496
+        if(this.projectlist2 != null){
497
+          for(let p2 = 0;p2 < this.projectlist2.length;p2++){
498
+            if(this.id == this.projectlist2[p2].id){
499
+              tmp2 = this.projectlist2[p2].name
500
+            }
501
+            if(this.project != null){
502
+              if(this.project[0].id == this.projectlist2[p2].id){
503
+                tmp3 = this.projectlist2[p2].name
504
+              }
505
+            }
506
+          }
507
+        }
508
+      }
509
+      if (this.new_type == 1){
510
+        if(this.druglist != null){
511
+          for(let d1 = 0;d1 < this.druglist.length;d1++){
512
+            if(this.id == this.druglist[d1].id){
513
+              tmp2 = this.druglist[d1].name
514
+            }
515
+            if(this.tableDatas != null){
516
+              if(this.tableDatas[0].id == this.druglist[d1].id){
517
+                tmp3 = this.druglist[d1].name
518
+              }
519
+            }
520
+          }
521
+        }
522
+        if(this.druglist2 != null){
523
+          for(let d2 = 0;d2 < this.druglist2.length;d2++){
524
+            if(this.id == this.druglist2[d2].id){
525
+              tmp2 = tmp2 + this.druglist2[d2].name
526
+            }
527
+            if(this.tableDatas != null){
528
+              if(this.tableDatas[0].id == this.druglist2[d2].id){
529
+                tmp3 = this.druglist2[d2].name
530
+              }
531
+            }
532
+          }
533
+        }
534
+      }
535
+
476
       this.$confirm(
536
       this.$confirm(
477
-        "注:该操作将会把所选患者的XX透析模式中的新增XXX,请确定是否保存?",
537
+        "注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"替换为"+tmp3+",请确定是否保存?",
478
         "",
538
         "",
479
         {
539
         {
480
           confirmButtonText: "确 定",
540
           confirmButtonText: "确 定",
530
     },
590
     },
531
 
591
 
532
     lili() {
592
     lili() {
533
-      console.log("this.multipleSelection",this.multipleSelection);
534
-      console.log("this.tableData",this.tableData)
593
+      // console.log("this.multipleSelection",this.multipleSelection);
594
+      console.log("this.tableDatas",this.tableDatas)
535
       // console.log("this.mode",this.modeOptions_value)
595
       // console.log("this.mode",this.modeOptions_value)
536
       // console.log("this.projectlist2",this.projectlist2)
596
       // console.log("this.projectlist2",this.projectlist2)
537
       // console.log("patient_value",this.patient_value)
597
       // console.log("patient_value",this.patient_value)
550
       this.tableData = []
610
       this.tableData = []
551
     },
611
     },
552
     changeid(item,index){
612
     changeid(item,index){
613
+      console.log("")
553
       item.id = item.drug_name
614
       item.id = item.drug_name
554
       var params = {
615
       var params = {
555
         id:item.id
616
         id:item.id