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