Pārlūkot izejas kodu

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

杨青 2 gadus atpakaļ
vecāks
revīzija
801b8e47e2
1 mainītis faili ar 31 papildinājumiem un 0 dzēšanām
  1. 31 0
      src/xt_pages/management/components/RepairForm.vue

+ 31 - 0
src/xt_pages/management/components/RepairForm.vue Parādīt failu

@@ -757,6 +757,8 @@ export default {
757 757
       total: 0,
758 758
       hiddenShow:false,
759 759
       nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
760
+      docList:[],
761
+      macherList:[]
760 762
     };
761 763
   },
762 764
   methods: {
@@ -789,6 +791,8 @@ export default {
789 791
         if (response.data.state === 1) {
790 792
           var repair = response.data.data.repair;
791 793
           console.log("repair是", repair);
794
+          this.macherList = response.data.data.macherList
795
+          this.docList = response.data.data.docList
792 796
           // eslint-disable-next-line no-unused-vars
793 797
           var total = response.data.data.total;
794 798
           this.total = total;
@@ -1082,6 +1086,33 @@ export default {
1082 1086
         });
1083 1087
       });
1084 1088
     },
1089
+    getDeviceName(equimentid){
1090
+      var equitname = ""
1091
+      for(let i=0;i<this.macherList.length;i++){
1092
+        if(equimentid == this.macherList[i].id){
1093
+           equitname = this.macherList[i].device_name
1094
+        }
1095
+      }
1096
+      return equitname
1097
+    },
1098
+    getRepairName(equimentid){
1099
+      var equitname = ""
1100
+      for(let i=0;i<this.macherList.length;i++){
1101
+        if(equimentid == this.macherList[i].id){
1102
+           equitname = this.macherList[i].device_type
1103
+        }
1104
+      }
1105
+      return equitname
1106
+    },
1107
+    getName(admin_user_id){
1108
+      var user_name=  ""
1109
+      for(let i=0;i<this.docList.length;i++){
1110
+        if(admin_user_id == this.docList[i].admin_user_id){
1111
+           user_name = this.docList[i].user_name
1112
+        }
1113
+      }
1114
+      return user_name
1115
+    },
1085 1116
     printCard(){
1086 1117
       this.hiddenShow = true;
1087 1118
       var ptime = Math.round(new Date().getTime() / 1000);