浏览代码

新分支

28169 2 年前
父节点
当前提交
cd340f2388
共有 1 个文件被更改,包括 33 次插入2 次删除
  1. 33 2
      src/xt_pages/management/components/RepairForm.vue

+ 33 - 2
src/xt_pages/management/components/RepairForm.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-row class="row">
4
-      <el-col :span="5">
4
+      <!-- <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -11,7 +11,7 @@
11 11
             :value="item.id"
12 12
           ></el-option>
13 13
         </el-select>
14
-      </el-col>
14
+      </el-col> -->
15 15
       <el-col :span="11">
16 16
         <span class="machineClass">日期查询:</span>
17 17
         <el-date-picker
@@ -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);