Browse Source

冻结表头及备件库存问题修改

段小段 2 năm trước cách đây
mục cha
commit
5c4e7908e7
100 tập tin đã thay đổi với 930 bổ sung12988 xóa
  1. 2 2
      .env.production
  2. BIN
      dist.zip
  3. 0 0
      dist/index.html
  4. 1 0
      src/store/modules/user.js
  5. 2 0
      src/views/asset/SST/index.vue
  6. 38 35
      src/views/asset/basics/index.vue
  7. 4 1
      src/views/asset/basics/index1.vue
  8. 4 1
      src/views/asset/basics/index2.vue
  9. 33 30
      src/views/asset/basics/index3.vue
  10. 3 1
      src/views/asset/equipmentAllocation/index.vue
  11. 3 0
      src/views/asset/install/index.vue
  12. 4 2
      src/views/asset/standardAssetAllocation/index.vue
  13. 3 1
      src/views/asset/telvisit/index.vue
  14. 3 1
      src/views/asset/template/components/baoyang.vue
  15. 3 1
      src/views/asset/template/components/buwei.vue
  16. 3 1
      src/views/asset/template/components/buwei1.vue
  17. 3 2
      src/views/asset/template/components/dianjian.vue
  18. 3 1
      src/views/asset/template/components/guzhang.vue
  19. 24 22
      src/views/asset/template/components/miaoshu.vue
  20. 3 1
      src/views/asset/template/components/yunxing.vue
  21. 2 0
      src/views/basic/assetStandardManagement/index.vue
  22. 2 0
      src/views/basic/brand/index.vue
  23. 2 0
      src/views/basic/maintenanceWorkerCategory/index.vue
  24. 2 0
      src/views/basic/otherinfo/index.vue
  25. 2 0
      src/views/basic/product/index.vue
  26. 2 0
      src/views/basic/standardStock/index.vue
  27. 2 0
      src/views/basic/warehouse/index.vue
  28. 2 0
      src/views/console/apisql/index.vue
  29. 2 0
      src/views/console/dept/index.vue
  30. 2 0
      src/views/console/dict/index.vue
  31. 2 0
      src/views/console/emp/index.vue
  32. 2 0
      src/views/console/feedings/index.vue
  33. 2 0
      src/views/console/menu/index.vue
  34. 3 1
      src/views/console/ranchManagement/index.vue
  35. 2 0
      src/views/console/role/index.vue
  36. 2 0
      src/views/console/safetyStock/index.vue
  37. 2 0
      src/views/console/stockType/index.vue
  38. 2 0
      src/views/console/user/index.vue
  39. 0 719
      src/views/console/user/index备份.vue
  40. 0 705
      src/views/console/user/index改好 - 副本.vue
  41. 2 0
      src/views/console/user/index改好.vue
  42. 2 1
      src/views/cost/budget/index.vue
  43. 27 49
      src/views/cost/diesel/index.vue
  44. 26 5
      src/views/cost/elec/index.vue
  45. 2 0
      src/views/cost/gas/index.vue
  46. 2 0
      src/views/cost/steam/index.vue
  47. 27 6
      src/views/cost/water/index.vue
  48. 23 21
      src/views/custom/allot/index.vue
  49. 4 1
      src/views/custom/basic/index.vue
  50. 10 5
      src/views/custom/contractManagement/index.vue
  51. 6 1
      src/views/custom/contractManagement/index1.vue
  52. 6 1
      src/views/custom/contractManagement/index2.vue
  53. 31 6
      src/views/custom/custom/index.vue
  54. 2 0
      src/views/custom/inventory/index.vue
  55. 29 26
      src/views/custom/outStock/index.vue
  56. 3 0
      src/views/custom/outStock/index1.vue
  57. 6 5
      src/views/custom/purchase/index.vue
  58. 4 2
      src/views/custom/purchase/index1.vue
  59. 6 2
      src/views/custom/purchase/index2.vue
  60. 11 9
      src/views/custom/receive/index.vue
  61. 11 9
      src/views/custom/receive/index1.vue
  62. 2 0
      src/views/custom/refuse/index.vue
  63. 36 33
      src/views/custom/returngoods/index.vue
  64. 4 1
      src/views/custom/returngoods/index1.vue
  65. 3 2
      src/views/custom/saplog/index.vue
  66. 35 33
      src/views/custom/storage/index.vue
  67. 12 10
      src/views/custom/subscribe/index.vue
  68. 2 0
      src/views/custom/subscribe/index1.vue
  69. 2 0
      src/views/custom/subscribe/index2.vue
  70. 2 0
      src/views/custom/subscribe/index3.vue
  71. 14 12
      src/views/custom/writeoff/index.vue
  72. 2 0
      src/views/custom/writeoff/index1.vue
  73. 2 1
      src/views/custom/writeoff/index2.vue
  74. 2 0
      src/views/electro/electroData/index.vue
  75. 14 11
      src/views/evaluationVerification/assessment/index.vue
  76. 2 0
      src/views/knowledgeBase/file/index.vue
  77. 2 0
      src/views/maintenance/maintain/index.vue
  78. 0 2194
      src/views/maintenance/maintain/index1.vue
  79. 0 2200
      src/views/maintenance/maintain/index2.vue
  80. 0 2172
      src/views/maintenance/maintain/index备份.vue
  81. 0 2185
      src/views/maintenance/maintain/index改好.vue
  82. 0 2188
      src/views/maintenance/maintain/index流程改了一半.vue
  83. 2 0
      src/views/maintenance/maintain/index流程改完了3.vue
  84. 14 12
      src/views/maintenance/maintenancePlan/index.vue
  85. 7 5
      src/views/maintenance/maintenancePlan/index1.vue
  86. 2 2
      src/views/maintenance/repair/index.vue
  87. 2 0
      src/views/maintenance/repair/index1.vue
  88. 3 0
      src/views/maintenance/spotCheck/index.vue
  89. 2 2
      src/views/maintenance/subcontractingMainten/tabPage/tab1.vue
  90. 3 3
      src/views/maintenance/subcontractingMainten/tabPage/tab2.vue
  91. 101 101
      src/views/report/cattle/index.vue
  92. 4 2
      src/views/report/completionRateMaintenance/index.vue
  93. 3 2
      src/views/report/energyConsum/index.vue
  94. 15 14
      src/views/report/equipmentIndex/index.vue
  95. 31 27
      src/views/report/equipmentIndex/index备份.vue
  96. 167 88
      src/views/report/equipmentIndex/index改好.vue
  97. 6 4
      src/views/report/equipmentOverview/index.vue
  98. 4 2
      src/views/report/inventorySpareParts/index.vue
  99. 7 4
      src/views/report/inventorySummary/index.vue
  100. 5 2
      src/views/report/inventorySummary/index1.vue

+ 2 - 2
.env.production

@@ -3,11 +3,11 @@ ENV = 'production'
 
 # base api
 # 线上测试
-  VUE_APP_BASE_API = 'https://tmrwatch.cn:8082/'
+# VUE_APP_BASE_API = 'https://tmrwatch.cn:8082/'
 # 后台本地
 # VUE_APP_BASE_API = 'http://192.168.1.77:8082/'
 # 正式地址
-# VUE_APP_BASE_API = 'https://eam.modernfarming.cn:8000/'
+VUE_APP_BASE_API = 'https://eam.modernfarming.cn:8000/'
 
  # VUE_APP_BASE_API = 'http://127.0.0.1:8082/'
 

BIN
dist.zip


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.html


+ 1 - 0
src/store/modules/user.js

@@ -36,6 +36,7 @@ const mutations = {
   },
   SET_ROLES: (state, roles) => {
     state.roles = roles
+    sessionStorage.setItem('roles', JSON.stringify(roles))
   },
   SET_PASTUREID: (state, pastureid) => {
     Cookies.set('pastureid', pastureid)

+ 2 - 0
src/views/asset/SST/index.vue

@@ -36,6 +36,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -302,6 +303,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       tableKey: 0,
       list: null,
       total: 0,

+ 38 - 35
src/views/asset/basics/index.vue

@@ -21,14 +21,14 @@
             :node-key="nodeKey"
             clearable
             :disabled="disabled"
-             placeholder="请选择设备类别"
+            placeholder="请选择设备类别"
             :checked-keys="defaultCheckedKeys"
             style="display: inline-block;"
             @popoverHide="popoverHide"
           />
           <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 120px;" class="filter-item" />
           <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 150px;" class="filter-item" />
-          <el-input v-model="getdataListParm.parammaps.financeCode" placeholder="财务编号" clearable style="width: 120px;" class="filter-item" /> 
+          <el-input v-model="getdataListParm.parammaps.financeCode" placeholder="财务编号" clearable style="width: 120px;" class="filter-item" />
           <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
             <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
           </el-select>
@@ -41,12 +41,12 @@
           <!-- <el-date-picker ref="inputDatetime1" v-model="getdataListParm.parammaps.inputDatetime1" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="审批日期" end-placeholder="审批日期" /> -->
           <el-date-picker ref="inputDatetime2" v-model="getdataListParm.parammaps.inputDatetime2" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="购置日期" end-placeholder="购置日期" />
           <!-- <el-date-picker ref="inputDatetime3" v-model="getdataListParm.parammaps.inputDatetime3" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="报废日期" end-placeholder="报废日期" /> -->
-          
+
           <el-input v-model="getdataListParm.parammaps.assetCode" placeholder="资产编号" clearable style="width: 120px;" class="filter-item" />
           <el-input v-model="getdataListParm.parammaps.brand" placeholder="品牌" clearable style="width: 120px;" class="filter-item" />
           <!-- <el-input v-model="getdataListParm.parammaps.proName" placeholder="供应商" clearable style="width: 120px;" class="filter-item" /> -->
 
-                   
+
           <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
           <div>
             <el-button v-if="isBasicsAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
@@ -73,6 +73,7 @@
             class="elTable"
             @selection-change="handleSelectionChange"
             @sort-change="tableSort2"
+            :max-height="myHeight"
           >
             <el-table-column type="selection" width="55" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -84,7 +85,7 @@
             <el-table-column label="设备类别" align="center" prop="eqClassName" />
             <el-table-column label="设备名称" align="center" prop="eqName" />
             <el-table-column label="设备内部编号" align="center" prop="eqCode" />
-           <el-table-column label="财务编号" align="center" prop="financeCode" /> 
+           <el-table-column label="财务编号" align="center" prop="financeCode" />
             <el-table-column label="规格" align="center" prop="specification" />
             <el-table-column label="品牌" align="center" prop="brandName" />
             <el-table-column label="状态" align="center" prop="status">
@@ -117,7 +118,7 @@
             <el-table-column label="折旧年限" sortable align="center" prop="depreciation" />
             <el-table-column label="使用时长(年)" sortable align="center" prop="serviceDuration" />
             <el-table-column label="使用率(%)" sortable align="center" prop="utilizationRate" />
-           
+
             <el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
               <template slot-scope="{row}">
                 <el-button v-if="isBasicsCard" type="primary" size="mini" @click="form_see(row)">查看</el-button>
@@ -166,6 +167,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -631,7 +633,7 @@
                   </el-form-item>
                 </el-col>
 
-              
+
                 <el-col :span="6">
                   <el-form-item label="一级督办:" prop="leveloneName">
                     <el-input ref="leveloneName" v-model="seeTemp.leveloneName" placeholder="" disabled />
@@ -1128,7 +1130,7 @@ export default {
         financeCode: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         employeeId: [{ required: true, message: '必填', trigger: 'blur' }],
-        
+
         deptId: [{ required: true, message: '必填', trigger: 'blur' }],
         employeName: [{ required: true, message: '必填', trigger: 'blur' }],
         pastureId: [{ required: true, message: '必填', trigger: 'blur' }],
@@ -1137,7 +1139,7 @@ export default {
         leveltwoTime: [{ required: true, message: '必填', trigger: 'blur' }],
         levelthreeTime: [{ required: true, message: '必填', trigger: 'blur' }],
 
- 
+
         levelone: [{ required: true, message: '必填', trigger: 'blur' }],
         leveltwo: [{ required: true, message: '必填', trigger: 'blur' }],
         levelthree: [{ required: true, message: '必填', trigger: 'blur' }],
@@ -1178,7 +1180,7 @@ export default {
         { name: 'getdictbyname', offset: 0, pagecount: 0, params: ['保养级别'] }
       ],
       getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-      disabled: false,  
+      disabled: false,
       nodeKey: 'id',
       defaultCheckedKeys: [],
       parentClass: [],
@@ -1212,7 +1214,7 @@ export default {
       uploadImageUrl: process.env.VUE_APP_BASE_API + 'authdata/uploaderimage',
       width: '',
 
-      createTemp: { inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), employeId: this.$store.state.user.employeid, inputUser: this.$store.state.user.employeid, deptId: this.$store.state.user.departmentid, departmentName: Cookies.get('departmentname'), pastureId: this.$store.state.user.pastureid, assetCode: '', eqClassName: '', eqClassId: '', eqCode: '', eqName: '', specification: '', providerName: '', brandName: '', financeCode: '', status: '正常', purpose: '', purchaseDate: parseTime(new Date(), '{y}-{m}-{d}'), entranceDate: parseTime(new Date(), '{y}-{m}-{d}'), yearUpkeepCost: '', yearMaintainDost: '', yuanzhi: '', baseHours: '', upkeepgrade: '', salvage: '', subtractvalue: '', yearMaintainCost: '', brandId: '', providerId: '', inputUserName: '', employeName: this.$store.state.user.employename, depreciation: '5', maintenance: '', levelone: '', leveltwo: '', levelthree: '', pushTime: '', leveloneTime: '', leveltwoTime: '', levelthreeTime: '' }, 
+      createTemp: { inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), employeId: this.$store.state.user.employeid, inputUser: this.$store.state.user.employeid, deptId: this.$store.state.user.departmentid, departmentName: Cookies.get('departmentname'), pastureId: this.$store.state.user.pastureid, assetCode: '', eqClassName: '', eqClassId: '', eqCode: '', eqName: '', specification: '', providerName: '', brandName: '', financeCode: '', status: '正常', purpose: '', purchaseDate: parseTime(new Date(), '{y}-{m}-{d}'), entranceDate: parseTime(new Date(), '{y}-{m}-{d}'), yearUpkeepCost: '', yearMaintainDost: '', yuanzhi: '', baseHours: '', upkeepgrade: '', salvage: '', subtractvalue: '', yearMaintainCost: '', brandId: '', providerId: '', inputUserName: '', employeName: this.$store.state.user.employename, depreciation: '5', maintenance: '', levelone: '', leveltwo: '', levelthree: '', pushTime: '', leveloneTime: '', leveltwoTime: '', levelthreeTime: '' },
       requestParam: { name: 'insertAsset', offset: 0, pagecount: 0, parammaps: {}},
       seeTemp: {},
       dialogFormVisible_Examine: false,
@@ -1339,7 +1341,8 @@ export default {
         personList: []
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 250
     }
   },
   computed: {
@@ -1359,7 +1362,7 @@ export default {
         sheetname: 'SheetJS'
       }
     },
-   
+
     // 设置上传地址
     uploadExcelUrl() {
       // process.env.VUE_APP_BASE_API是服务器的路径,也是axios的基本路径
@@ -1368,11 +1371,11 @@ export default {
   },
 
 
-  
+
   created() {
 
 
-    
+
 
 
 
@@ -1505,12 +1508,12 @@ export default {
       } else {
         result = false
       }
- 
+
       return result
     },
 
     roleSet2(row){
-      
+
       var result = true
       if( (row.pastureId == "18" || row.pastureId == "0" ) && this.isBasicsDel2 ){
         result = true
@@ -1519,7 +1522,7 @@ export default {
       } else {
         result = false
       }
-     
+
       return result
     },
 
@@ -1549,7 +1552,7 @@ export default {
             duration: 2000
           })
 
-          
+
         }
       } else {
         this.$notify({
@@ -1967,7 +1970,7 @@ export default {
       this.createTemp.yearUpkeepCost = ''
       this.createTemp.yearMaintainDost = ''
       this.createTemp.yuanzhi = ''
- 
+
       this.createTemp.baseHours = ''
       this.createTemp.upkeepgrade = 113
       this.createTemp.salvage = ''
@@ -1981,7 +1984,7 @@ export default {
       this.createTemp.depreciation = '5'
     },
 
-     
+
     form_add() {
       this.resetCreateTemp()
       this.edit = 1
@@ -2081,7 +2084,7 @@ export default {
                 this.$notify({ title: '提示', message: '指定维修人最多4个人!', type: 'success', duration: 2000 })
                 return false
               }
-  
+
              this.requestParam.parammaps.maintenance = this.requestParam.parammaps.maintenance.toString()
           }
           PostDataByName(this.requestParam).then(response => {
@@ -2182,7 +2185,7 @@ export default {
         this.createTemp.inputUser = parseInt(row.inputUser)
       }
 
-      
+
       if (row.levelone !== undefined) {
         this.createTemp.levelone = parseInt(row.levelone)
       }
@@ -2203,18 +2206,18 @@ export default {
         this.createTemp.levelthreeTime = parseInt(row.levelthreeTime)
       }
 
-     
+
       if (row.maintenance !== undefined) {
         var newArr = row.maintenance.split(",")
         var arr2 = []
         newArr.forEach(function(item){
-          arr2.push(parseInt(item)) 
+          arr2.push(parseInt(item))
         })
         console.log('arr2',arr2)
         this.createTemp.maintenance = arr2
       }
-     
- 
+
+
       if (this.createTemp.eqClassId !== undefined) {
         this.defaultCheckedKeys = [this.createTemp.eqClassId]
       } else {
@@ -2249,7 +2252,7 @@ export default {
       }
 
 
-      
+
     },
     edit_dialog_save() {
       console.log(this.createTemp.maintenance)
@@ -2294,7 +2297,7 @@ export default {
             } else {
               this.requestParam.parammaps.picpath = this.createTemp.picId
             }
- 
+
 
           if(this.requestParam.parammaps.maintenance.length != 0 && this.requestParam.parammaps.maintenance){
 
@@ -2302,11 +2305,11 @@ export default {
               this.$notify({ title: '提示', message: '指定维修人最多4个人!', type: 'success', duration: 2000 })
               return false
             }
- 
+
             this.requestParam.parammaps.maintenance = this.requestParam.parammaps.maintenance.toString()
           }
 
-          
+
             PostDataByName(this.requestParam).then(response => {
               console.log(response)
               if (response.msg !== 'fail') {
@@ -2875,12 +2878,12 @@ export default {
       this.getdataEQNumber.parammaps.pastureId = Cookies.get('pastureid')
       GetDataByName(this.getdataEQNumber).then(response => {
 
-        
+
         this.createTemp.assetCode = response.data.list[0].createNumber
         console.log(response.data.list[0].createNumber)
         console.log(this.createTemp.assetCode)
         this.$forceUpdate()
-        
+
       })
     },
 
@@ -2985,7 +2988,7 @@ export default {
           }, 2000)
         }
         console.log(this.downLoadList)
- 
+
 
 
         const elecExcelDatas = [
@@ -2996,7 +2999,7 @@ export default {
             sheetName: '设备基础信息'
           }
 
- 
+
 
 
 

+ 4 - 1
src/views/asset/basics/index1.vue

@@ -61,6 +61,7 @@
             class="elTable"
             @selection-change="handleSelectionChange"
             @sort-change="tableSort2"
+            :max-height="myHeight"
           >
             <el-table-column type="selection" width="55" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -151,6 +152,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -1181,7 +1183,8 @@ export default {
         personList: []
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 250
     }
   },
   created() {

+ 4 - 1
src/views/asset/basics/index2.vue

@@ -61,6 +61,7 @@
             class="elTable"
             @selection-change="handleSelectionChange"
             @sort-change="tableSort2"
+            :max-height="myHeight"
           >
             <el-table-column type="selection" width="55" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -151,6 +152,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -1181,7 +1183,8 @@ export default {
         personList: []
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   created() {

+ 33 - 30
src/views/asset/basics/index3.vue

@@ -28,7 +28,7 @@
           />
           <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 120px;" class="filter-item" />
           <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 150px;" class="filter-item" />
-          <el-input v-model="getdataListParm.parammaps.financeCode" placeholder="财务编号" clearable style="width: 120px;" class="filter-item" /> 
+          <el-input v-model="getdataListParm.parammaps.financeCode" placeholder="财务编号" clearable style="width: 120px;" class="filter-item" />
           <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
             <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
           </el-select>
@@ -41,12 +41,12 @@
           <!-- <el-date-picker ref="inputDatetime1" v-model="getdataListParm.parammaps.inputDatetime1" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="审批日期" end-placeholder="审批日期" /> -->
           <el-date-picker ref="inputDatetime2" v-model="getdataListParm.parammaps.inputDatetime2" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="购置日期" end-placeholder="购置日期" />
           <!-- <el-date-picker ref="inputDatetime3" v-model="getdataListParm.parammaps.inputDatetime3" class="inputDatetime" type="daterange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="报废日期" end-placeholder="报废日期" /> -->
-          
+
           <el-input v-model="getdataListParm.parammaps.assetCode" placeholder="资产编号" clearable style="width: 120px;" class="filter-item" />
           <el-input v-model="getdataListParm.parammaps.brand" placeholder="品牌" clearable style="width: 120px;" class="filter-item" />
           <el-input v-model="getdataListParm.parammaps.proName" placeholder="供应商" clearable style="width: 120px;" class="filter-item" />
 
-                   
+
           <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
           <div>
             <el-button v-if="isBasicsAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
@@ -73,6 +73,7 @@
             class="elTable"
             @selection-change="handleSelectionChange"
             @sort-change="tableSort2"
+            :max-height="myHeight"
           >
             <el-table-column type="selection" width="55" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -84,7 +85,7 @@
             <el-table-column label="设备类别" align="center" prop="eqClassName" />
             <el-table-column label="设备名称" align="center" prop="eqName" />
             <el-table-column label="设备内部编号" align="center" prop="eqCode" />
-           <el-table-column label="财务编号" align="center" prop="financeCode" /> 
+           <el-table-column label="财务编号" align="center" prop="financeCode" />
             <el-table-column label="规格" align="center" prop="specification" />
             <el-table-column label="品牌" align="center" prop="brandName" />
             <el-table-column label="状态" align="center" prop="status">
@@ -117,7 +118,7 @@
             <el-table-column label="折旧年限" sortable align="center" prop="depreciation" />
             <el-table-column label="使用时长(年)" sortable align="center" prop="serviceDuration" />
             <el-table-column label="使用率(%)" sortable align="center" prop="utilizationRate" />
-           
+
             <el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
               <template slot-scope="{row}">
                 <el-button v-if="isBasicsCard" type="primary" size="mini" @click="form_see(row)">查看</el-button>
@@ -165,6 +166,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -630,7 +632,7 @@
                   </el-form-item>
                 </el-col>
 
-              
+
                 <el-col :span="6">
                   <el-form-item label="一级督办:" prop="leveloneName">
                     <el-input ref="leveloneName" v-model="seeTemp.leveloneName" placeholder="" disabled />
@@ -1127,7 +1129,7 @@ export default {
         financeCode: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         employeeId: [{ required: true, message: '必填', trigger: 'blur' }],
-        
+
         deptId: [{ required: true, message: '必填', trigger: 'blur' }],
         employeName: [{ required: true, message: '必填', trigger: 'blur' }],
         pastureId: [{ required: true, message: '必填', trigger: 'blur' }],
@@ -1136,7 +1138,7 @@ export default {
         leveltwoTime: [{ required: true, message: '必填', trigger: 'blur' }],
         levelthreeTime: [{ required: true, message: '必填', trigger: 'blur' }],
 
- 
+
         levelone: [{ required: true, message: '必填', trigger: 'blur' }],
         leveltwo: [{ required: true, message: '必填', trigger: 'blur' }],
         levelthree: [{ required: true, message: '必填', trigger: 'blur' }],
@@ -1176,7 +1178,7 @@ export default {
         { name: 'getdictbyname', offset: 0, pagecount: 0, params: ['保养级别'] }
       ],
       getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-      disabled: false,  
+      disabled: false,
       nodeKey: 'id',
       defaultCheckedKeys: [],
       parentClass: [],
@@ -1210,7 +1212,7 @@ export default {
       uploadImageUrl: process.env.VUE_APP_BASE_API + 'authdata/uploaderimage',
       width: '',
 
-      createTemp: { inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), employeId: this.$store.state.user.employeid, inputUser: this.$store.state.user.employeid, deptId: this.$store.state.user.departmentid, departmentName: Cookies.get('departmentname'), pastureId: this.$store.state.user.pastureid, assetCode: '', eqClassName: '', eqClassId: '', eqCode: '', eqName: '', specification: '', providerName: '', brandName: '', financeCode: '', status: '正常', purpose: '', purchaseDate: parseTime(new Date(), '{y}-{m}-{d}'), entranceDate: parseTime(new Date(), '{y}-{m}-{d}'), yearUpkeepCost: '', yearMaintainDost: '', yuanzhi: '', baseHours: '', upkeepgrade: '', salvage: '', subtractvalue: '', yearMaintainCost: '', brandId: '', providerId: '', inputUserName: '', employeName: this.$store.state.user.employename, depreciation: '5', maintenance: '', levelone: '', leveltwo: '', levelthree: '', pushTime: '', leveloneTime: '', leveltwoTime: '', levelthreeTime: '' }, 
+      createTemp: { inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), employeId: this.$store.state.user.employeid, inputUser: this.$store.state.user.employeid, deptId: this.$store.state.user.departmentid, departmentName: Cookies.get('departmentname'), pastureId: this.$store.state.user.pastureid, assetCode: '', eqClassName: '', eqClassId: '', eqCode: '', eqName: '', specification: '', providerName: '', brandName: '', financeCode: '', status: '正常', purpose: '', purchaseDate: parseTime(new Date(), '{y}-{m}-{d}'), entranceDate: parseTime(new Date(), '{y}-{m}-{d}'), yearUpkeepCost: '', yearMaintainDost: '', yuanzhi: '', baseHours: '', upkeepgrade: '', salvage: '', subtractvalue: '', yearMaintainCost: '', brandId: '', providerId: '', inputUserName: '', employeName: this.$store.state.user.employename, depreciation: '5', maintenance: '', levelone: '', leveltwo: '', levelthree: '', pushTime: '', leveloneTime: '', leveltwoTime: '', levelthreeTime: '' },
       requestParam: { name: 'insertAsset', offset: 0, pagecount: 0, parammaps: {}},
       seeTemp: {},
       dialogFormVisible_Examine: false,
@@ -1337,7 +1339,8 @@ export default {
         personList: []
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 250
     }
   },
   computed: {
@@ -1356,7 +1359,7 @@ export default {
         sheetname: 'SheetJS'
       }
     },
-   
+
     // 设置上传地址
     uploadExcelUrl() {
       // process.env.VUE_APP_BASE_API是服务器的路径,也是axios的基本路径
@@ -1365,7 +1368,7 @@ export default {
   },
 
 
-  
+
   created() {
     const that = this
     GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
@@ -1502,7 +1505,7 @@ export default {
             duration: 2000
           })
 
-          
+
         }
       } else {
         this.$notify({
@@ -1920,7 +1923,7 @@ export default {
       this.createTemp.yearUpkeepCost = ''
       this.createTemp.yearMaintainDost = ''
       this.createTemp.yuanzhi = ''
- 
+
       this.createTemp.baseHours = ''
       this.createTemp.upkeepgrade = 113
       this.createTemp.salvage = ''
@@ -1934,7 +1937,7 @@ export default {
       this.createTemp.depreciation = '5'
     },
 
-     
+
     form_add() {
       this.resetCreateTemp()
       this.edit = 1
@@ -2034,7 +2037,7 @@ export default {
                 this.$notify({ title: '提示', message: '指定维修人最多4个人!', type: 'success', duration: 2000 })
                 return false
               }
-  
+
              this.requestParam.parammaps.maintenance = this.requestParam.parammaps.maintenance.toString()
           }
           PostDataByName(this.requestParam).then(response => {
@@ -2135,7 +2138,7 @@ export default {
         this.createTemp.inputUser = parseInt(row.inputUser)
       }
 
-      
+
       if (row.levelone !== undefined) {
         this.createTemp.levelone = parseInt(row.levelone)
       }
@@ -2156,18 +2159,18 @@ export default {
         this.createTemp.levelthreeTime = parseInt(row.levelthreeTime)
       }
 
-     
+
       if (row.maintenance !== undefined) {
         var newArr = row.maintenance.split(",")
         var arr2 = []
         newArr.forEach(function(item){
-          arr2.push(parseInt(item)) 
+          arr2.push(parseInt(item))
         })
         console.log('arr2',arr2)
         this.createTemp.maintenance = arr2
       }
-     
- 
+
+
       if (this.createTemp.eqClassId !== undefined) {
         this.defaultCheckedKeys = [this.createTemp.eqClassId]
       } else {
@@ -2202,7 +2205,7 @@ export default {
       }
 
 
-      
+
     },
     edit_dialog_save() {
       console.log(this.createTemp.maintenance)
@@ -2247,7 +2250,7 @@ export default {
             } else {
               this.requestParam.parammaps.picpath = this.createTemp.picId
             }
- 
+
 
           if(this.requestParam.parammaps.maintenance.length != 0 && this.requestParam.parammaps.maintenance){
 
@@ -2255,11 +2258,11 @@ export default {
               this.$notify({ title: '提示', message: '指定维修人最多4个人!', type: 'success', duration: 2000 })
               return false
             }
- 
+
             this.requestParam.parammaps.maintenance = this.requestParam.parammaps.maintenance.toString()
           }
 
-          
+
             PostDataByName(this.requestParam).then(response => {
               console.log(response)
               if (response.msg !== 'fail') {
@@ -2828,12 +2831,12 @@ export default {
       this.getdataEQNumber.parammaps.pastureId = Cookies.get('pastureid')
       GetDataByName(this.getdataEQNumber).then(response => {
 
-        
+
         this.createTemp.assetCode = response.data.list[0].createNumber
         console.log(response.data.list[0].createNumber)
         console.log(this.createTemp.assetCode)
         this.$forceUpdate()
-        
+
       })
     },
 
@@ -2938,7 +2941,7 @@ export default {
           }, 2000)
         }
         console.log(this.downLoadList)
- 
+
 
 
         const elecExcelDatas = [
@@ -2949,7 +2952,7 @@ export default {
             sheetName: '设备基础信息'
           }
 
- 
+
 
 
 

+ 3 - 1
src/views/asset/equipmentAllocation/index.vue

@@ -29,6 +29,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -294,7 +295,8 @@ export default {
       },
       postDataPramas: {},
       findAllDepartIn: [], // 调入部门
-      getParmDeptList: { name: 'findAllDepart', offset: 0, pagecount: 0, parammaps: {}}
+      getParmDeptList: { name: 'findAllDepart', offset: 0, pagecount: 0, parammaps: {}},
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   created() {

+ 3 - 0
src/views/asset/install/index.vue

@@ -37,6 +37,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -248,6 +249,7 @@
           :row-style="rowStyle"
           :cell-style="cellStyle"
           class="elTable"
+          :max-height="250"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -300,6 +302,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       tableKey: 0,
       list: null,
       total: 0,

+ 4 - 2
src/views/asset/standardAssetAllocation/index.vue

@@ -43,7 +43,7 @@
         @popoverHide="popoverHide"
       /> -->
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <el-button class="filter-item" type="success" icon="el-icon-download" style="float: right;" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">导出</el-button>
 
       <el-table
         :key="tableKey"
@@ -58,6 +58,7 @@
         :cell-style="tableCellStyle"
         class="elTable"
         show-summary
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -122,7 +123,8 @@ export default {
       percentage: 1,
       isokDisable: false,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   created() {

+ 3 - 1
src/views/asset/telvisit/index.vue

@@ -56,6 +56,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="sortChange"
+      :max-height="myHeight"
     >
       <el-table-column label="设备编号" prop="id" sortable="custom" align="center" width="150">
         <template slot-scope="scope">
@@ -297,7 +298,8 @@ export default {
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
-      downloadLoading: false
+      downloadLoading: false,
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   created() {

+ 3 - 1
src/views/asset/template/components/baoyang.vue

@@ -21,6 +21,7 @@
       row-key="id"
       default-expand-all
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
       <el-table-column label="名称" min-width="100px" header-align="center" align="center">
@@ -529,7 +530,8 @@ export default {
         }, trigger: 'blur' }]
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
   computed: {

+ 3 - 1
src/views/asset/template/components/buwei.vue

@@ -21,6 +21,7 @@
       class="elTable table-fixed"
       row-key="id"
       default-expand-all
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
       <el-table-column label="部位" header-align="center" width="100px" align="center">
@@ -377,7 +378,8 @@ export default {
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
-      isUpdate: false
+      isUpdate: false,
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
 

+ 3 - 1
src/views/asset/template/components/buwei1.vue

@@ -20,6 +20,7 @@
       :cell-style="cellStyle"
       class="elTable table-fixed"
       row-key="id"
+      :max-height="myHeight"
       default-expand-all
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -377,7 +378,8 @@ export default {
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
-      isUpdate: false
+      isUpdate: false,
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
 

+ 3 - 2
src/views/asset/template/components/dianjian.vue

@@ -20,6 +20,7 @@
       :cell-style="cellStyle"
       class="elTable table-fixed"
       row-key="id"
+      :max-height="myHeight"
       default-expand-all
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -284,8 +285,8 @@ export default {
         standard: [{ type: 'string', required: true, message: '必填', trigger: 'blur' }]
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
-
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
   computed: {

+ 3 - 1
src/views/asset/template/components/guzhang.vue

@@ -21,6 +21,7 @@
       class="elTable table-fixed"
       row-key="id"
       default-expand-all
+      :max-height="myHeight"
       @sort-change="tableSort"
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -324,7 +325,8 @@ export default {
         appearanceName: [{ type: 'string', required: true, message: '必填', trigger: 'blur' }]
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
   computed: {

+ 24 - 22
src/views/asset/template/components/miaoshu.vue

@@ -2,7 +2,7 @@
   <div class="app-container">
     <div>
       <el-button class="font-small" style="margin:0 10px 10px 0" type="primary" icon="el-icon-edit" @click="form_add"> 新增  </el-button>
- 
+
     </div>
     <el-table
       v-loading="listLoading"
@@ -18,6 +18,7 @@
       row-key="id"
       default-expand-all
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px" />
       <el-table-column label="描述" min-width="100px" header-align="center" align="center">
@@ -25,10 +26,10 @@
           <span>{{ scope.row.describe }}</span>
         </template>
       </el-table-column>
-      
+
       <el-table-column label="操作" align="center" width="260" fixed="right">
         <template slot-scope="{row}">
-  
+
           <el-button type="danger" size="mini" @click="updateDelete(row)">删除</el-button>
         </template>
       </el-table-column>
@@ -51,7 +52,7 @@
           style="width: 90%; margin:0 auto;"
         >
           <el-row>
-           
+
           </el-row>
           <el-row>
             <el-col :span="20">
@@ -60,7 +61,7 @@
               </el-form-item>
             </el-col>
           </el-row>
-          
+
         </el-form>
       </div>
       <div slot="footer" class="dialog-footer">
@@ -69,8 +70,8 @@
         <el-button @click="dialogFormVisible = false;get_table_data()">取消并关闭</el-button>
       </div>
     </el-dialog>
-  
-    
+
+
   </div>
 </template>
 
@@ -159,11 +160,11 @@ export default {
         note: ''
       },
       listPart: [],
-    
+
       tableKey: 0,
       isokDisable: false,
       postDataPramas: {},
-      
+
       dialogStatusSee: '',
       isDisplay: false,
       dialogFormVisibleSee: false,
@@ -180,11 +181,12 @@ export default {
       update: false,
       see: false,
       rules: {
-    
+
         describe: [{ type: 'string', required: true, message: '必填', trigger: 'blur' }]
       },
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
   computed: {
@@ -214,8 +216,8 @@ export default {
         this.eqClassId = this.assetTypeid
         console.log('eqClassId',eqClassId)
         this.get_table_data()
-     
-     
+
+
       }
     },
     assetTypename(val) {
@@ -255,7 +257,7 @@ export default {
       this.createTemp.describe = ''
       this.createTemp.note = ''
     },
-   
+
     form_add() {
       if (this.assetTypeid != '') {
         this.resetCreateTemp()
@@ -265,7 +267,7 @@ export default {
         console.log(this.assetTypeid)
         console.log(this.assetTypename)
         console.log(this.assetLable)
-   
+
         console.log(this.listPart)
       }
     },
@@ -363,7 +365,7 @@ export default {
             } else {
               this.resetCreateTemp()
               console.log(this.dialogStatus)
-          
+
               this.$notify({
                 title: '',
                 message: '保存成功',
@@ -375,10 +377,10 @@ export default {
         }
       })
     },
-     
- 
-   
-    
+
+
+
+
     form_edit(row) {
       console.log(row)
       this.seeTemp = Object.assign({}, row)
@@ -452,7 +454,7 @@ export default {
         })
       })
     },
-   
+
     addFaultData() {
       this.isokDisable = true
       setTimeout(() => {
@@ -537,7 +539,7 @@ export default {
         })
       }
     },
- 
+
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
         filterVal.map(j => {

+ 3 - 1
src/views/asset/template/components/yunxing.vue

@@ -27,6 +27,7 @@
       class="elTable"
       row-key="id"
       default-expand-all
+      :max-height="myHeight"
       :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
     >
       <el-table-column label="序号" header-align="center" width="50px" align="center">
@@ -203,7 +204,8 @@ export default {
       },
       parent: [],
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
+      cellStyle: { padding: 0 + 'px' },
+      myHeight:document.documentElement.clientHeight - 85- 200
     }
   },
 

+ 2 - 0
src/views/basic/assetStandardManagement/index.vue

@@ -32,6 +32,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="部门" min-width="130px" align="center">
         <template slot-scope="scope">
@@ -101,6 +102,7 @@ export default {
   components: { Pagination, TreeSelect },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       equipmentCategory: {

+ 2 - 0
src/views/basic/brand/index.vue

@@ -25,6 +25,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -181,6 +182,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       disabled: false,
       tableKey: 0,
       list: null,

+ 2 - 0
src/views/basic/maintenanceWorkerCategory/index.vue

@@ -18,6 +18,7 @@
         row-key="id"
         default-expand-all
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -85,6 +86,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isWorkerAdd: [], isWorkerUpdate: [],
       table: {
         tableKey: 0, total: 0, listLoading: true, list: [], pageNum: 0, pageSize: 10,

+ 2 - 0
src/views/basic/otherinfo/index.vue

@@ -34,6 +34,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -256,6 +257,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isOtherinfoExport:[],
       buttons:[],
       isokDisable: false,

+ 2 - 0
src/views/basic/product/index.vue

@@ -25,6 +25,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -327,6 +328,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       disabled: false,
       tableKey: 0,
       list: null,

+ 2 - 0
src/views/basic/standardStock/index.vue

@@ -38,6 +38,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="备件类别" min-width="240px" align="center">
         <template slot-scope="scope">
@@ -96,6 +97,7 @@ export default {
   components: { Pagination, TreeSelect },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       equipmentCategory: {

+ 2 - 0
src/views/basic/warehouse/index.vue

@@ -64,6 +64,7 @@
         class="elTable"
         row-key="id"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -186,6 +187,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isWarehouseImport: [],
       isokDisable: false,
       disabled: false,

+ 2 - 0
src/views/console/apisql/index.vue

@@ -54,6 +54,7 @@
           row-key="id"
           default-expand-all
           :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
+          :max-height="myHeight"
         >
           <el-table-column label="菜单名称" min-width="100px" header-align="center" align="center">
             <template slot-scope="scope">
@@ -234,6 +235,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       disabled: false,
       defaultProps: {
         children: 'children',

+ 2 - 0
src/views/console/dept/index.vue

@@ -17,6 +17,7 @@
         class="elTable"
         row-key="id"
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" type="index" width="50" />
         <el-table-column label="部门名称" header-align="center" min-width="150px">
@@ -160,6 +161,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       disabled: false,
       tableKey: 0,
       list: [],

+ 2 - 0
src/views/console/dict/index.vue

@@ -44,6 +44,7 @@
           row-key="id"
           default-expand-all
           :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
+          :max-height="myHeight"
         >
           <el-table-column label="名称" header-align="center" width="150px" align="center">
             <template slot-scope="scope">
@@ -176,6 +177,7 @@ export default {
   directives: { waves, enterToNext },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       defaultProps: {
         children: 'children',
         label: 'name'

+ 2 - 0
src/views/console/emp/index.vue

@@ -39,6 +39,7 @@
         default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -186,6 +187,7 @@ export default {
   directives: { waves, enterToNext },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isEmpAdd: [],
       isEmpUpdate: [],
       isEmpDel: [],

+ 2 - 0
src/views/console/feedings/index.vue

@@ -31,6 +31,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -135,6 +136,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       // 校验规则
       rules: {
         pastureId: [{ required: true, message: '必填', trigger: 'blur' }],

+ 2 - 0
src/views/console/menu/index.vue

@@ -20,6 +20,7 @@
         row-key="id"
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="菜单名称" header-align="center" width="180px">
           <template slot-scope="scope">
@@ -203,6 +204,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 100,
       disabled: false,
       tableKey: 0,
       list: [{ 'deptname': '公司', 'id': 1, 'parentid': -1, 'remark': '' }],

+ 3 - 1
src/views/console/ranchManagement/index.vue

@@ -22,17 +22,18 @@
         :row-style="rowStyle"
         :cell-style="cellStyle"
         class="elTable"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
             <span>{{ scope.$index + (table.pageNum-1) * table.pageSize + 1 }}</span>
           </template>
         </el-table-column>
+        <el-table-column label="中心" min-width="150px" align="center" prop="center" />
         <el-table-column label="区域" min-width="150px" align="center" prop="areaName" />
         <el-table-column label="牧场" min-width="150px" align="center" prop="pastureName" />
         <el-table-column label="牧场全称" min-width="150px" align="center" prop="companyName" />
         <el-table-column label="牧场编号" min-width="150px" align="center" prop="pastureNumber" />
-        <el-table-column label="中心" min-width="150px" align="center" prop="center" />
         <el-table-column label="地图经度" min-width="150px" align="center" prop="longitude" />
         <el-table-column label="地图纬度" min-width="150px" align="center" prop="latitude" />
         <el-table-column label="备注" min-width="150px" align="center" prop="note" />
@@ -141,6 +142,7 @@ export default {
   components: { Pagination },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       requestParams: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
         { name: 'getareaList', offset: 0, pagecount: 0, returntype: 'Map', parammaps: {}}

+ 2 - 0
src/views/console/role/index.vue

@@ -19,6 +19,7 @@
         default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="角色名称" header-align="center" min-width="150px" align="center">
           <template slot-scope="scope">
@@ -132,6 +133,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 180,
       disabled: false,
       tableKey: 0,
       list: [{ 'sqlname': '', 'id': 0, 'sqlstr': '' }],

+ 2 - 0
src/views/console/safetyStock/index.vue

@@ -51,6 +51,7 @@
       class="elTable"
       @selection-change="handleSelectionChange"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column type="selection" width="55" />
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -155,6 +156,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       rules: {
         maxRepertory: [{ type: 'number', required: true, validator: (rule, value, callback) => {
           if (!value) {

+ 2 - 0
src/views/console/stockType/index.vue

@@ -32,6 +32,7 @@
         row-key="id"
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="类别编号名称" min-width="260px" header-align="center">
           <template slot-scope="scope">
@@ -133,6 +134,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isokDisable: false,
       disabled: false,
       tableKey: 0,

+ 2 - 0
src/views/console/user/index.vue

@@ -23,6 +23,7 @@
         default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="用户名称" header-align="center" width="120px" align="center">
           <template slot-scope="scope">
@@ -199,6 +200,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],
       tableKey: 0,
       list: [{ sqlname: '', id: 0, sqlstr: '' }],

+ 0 - 719
src/views/console/user/index备份.vue

@@ -1,719 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="app-container">
-      <div class="filter-container">
-        <el-input v-model="getdataListParm.parammaps.empCode" placeholder="用户名" style="width: 140px;" class="filter-item" />
-        <el-input v-model="getdataListParm.parammaps.empname" placeholder="姓名" style="width: 140px;" class="filter-item" />
-        <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-        <el-button v-if="isUserAdd" class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="form_add"> 新增 </el-button>
-      </div>
-      <el-table
-        v-loading="listLoading"
-        element-loading-text="给我一点时间"
-        :data="list"
-        border
-        fit
-        highlight-current-row
-        style="width: 100%;"
-        :row-style="rowStyle"
-        :cell-style="cellStyle"
-        class="elTable"
-        row-key="id"
-        default-expand-all
-        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
-        @sort-change="tableSort"
-      >
-        <el-table-column label="用户名称" header-align="center" width="120px" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.username }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="姓名" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.empname }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="部门" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.deptname }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="角色" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.roleName }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="顺序" sortable prop="sort" min-width="80px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.sort }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="启用" min-width="80px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <el-switch v-model="scope.row.enable" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
-          </template>
-        </el-table-column>
-        <el-table-column label="操作" header-align="center" align="center" width="330" class-name="small-padding fixed-width" fixed="right">
-          <template slot-scope="{row}">
-            <el-button v-if="isUserRole" type="warning" size="mini" @click="handleRole(row)"> 角色 </el-button>
-            <el-button v-if="isUserEdit" type="primary" size="mini" @click="form_edit(row)"> 编辑 </el-button>
-            <el-button v-if="isUserResetpassword" type="warning" size="mini" style="padding: 7px 5px;" @click="handleResetPassword(row)"> 重置密码 </el-button>
-            <el-button v-if="row.status !== '已删' && isUserDelete" size="mini" type="danger" @click="form_delete(row)"> 删除 </el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-
-      <!-- 编辑 -->
-      <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
-        <el-form ref="dataForm" :rules="rules" :model="dataform" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="职工名" prop="empid">
-            <el-autocomplete ref="empid" v-model="dataform.empname" value-key="empid" class="inline-input" :fetch-suggestions="formNameSearch" placeholder="请输入内容" style="width:80%" @select="handleformNameSelect">
-              <template slot-scope="{ item }">
-                <div class="name" style="display: inline;">姓名: {{ item.empname }}</div>
-                <span class="addr"> 职位:{{ item.position }}</span>
-              </template>
-            </el-autocomplete>
-          </el-form-item>
-          <el-form-item label="用户名" prop="username">
-            <el-input ref="username" v-model="dataform.username" />
-          </el-form-item>
-          <el-form-item label="顺序" prop="sort">
-            <el-input ref="sort" v-model="dataform.sort" />
-          </el-form-item>
-          <el-form-item label="启用" prop="enable">
-            <el-switch ref="enable" v-model="dataform.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-           <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item>
-          <el-form-item label="是否保养工" prop="keeper">
-            <el-switch ref="keeper" v-model="dataform.keeper" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="是否维修工" prop="maintenancePerson">
-            <el-switch ref="maintenancePerson" v-model="dataform.maintenancePerson" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="changeMaintenanceWorker" />
-          </el-form-item>
-          <el-form-item label="维修工类型" prop="maintenanceTypeId">
-            <el-select v-model="dataform.maintenanceTypeId" :disabled="disabled" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in repairmanTypeList" :key="item.id" :label="item.typeName" :value="item.id" />
-            </el-select>
-          </el-form-item>
-
-          <!-- <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item> -->
-
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="edit_dialog_save()"> 确认 </el-button>
-          <el-button @click="dialogFormVisible = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-
-      <!-- 新增 -->
-      <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisibleAdd" :close-on-click-modal="false">
-        <el-form ref="dataForm" :rules="rules" :model="dataform" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="职工名" prop="empid">
-            <el-autocomplete ref="empid" v-model="dataform.empname" value-key="empid" class="inline-input" :fetch-suggestions="formNameSearch" placeholder="请输入内容" style="width:100%" @select="handleformNameSelect">
-              <template slot-scope="{ item }">
-                <div class="name" style="display: inline;">姓名: {{ item.empname }}</div>
-                <span class="addr"> 职位:{{ item.position }}</span>
-              </template>
-            </el-autocomplete>
-          </el-form-item>
-          <el-form-item label="用户名" prop="username">
-            <el-input ref="username" v-model="dataform.username" />
-          </el-form-item>
-          <el-form-item label="角色" prop="rolename">
-            <el-select v-model="dataform.selectedRole" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in rolelist" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-          </el-form-item>
-          <el-form-item label="启用" prop="enable">
-            <el-switch ref="enable" v-model="dataform.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item>
-          <el-form-item label="是否保养工" prop="keeper">
-            <el-switch ref="keeper" v-model="dataform.keeper" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="是否维修工" prop="maintenancePerson">
-            <el-switch ref="maintenancePerson" v-model="dataform.maintenancePerson" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="changeMaintenanceWorker" />
-          </el-form-item>
-          <el-form-item label="维修工类型" prop="maintenanceTypeId">
-            <el-select v-model="dataform.maintenanceTypeId" :disabled="disabled" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in repairmanTypeList" :key="item.id" :label="item.typeName" :value="item.id" />
-            </el-select>
-          </el-form-item>
-
-          <!-- <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item> -->
-
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="add_dialog_save()"> 确认 </el-button>
-          <el-button @click="dialogFormVisibleAdd = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-
-      <!-- 角色 -->
-      <el-dialog :title="textMap['role']" :visible.sync="dialogRoleVisible" :close-on-click-modal="false">
-        <el-form :rules="rules" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="角色" prop="rolename">
-            <el-select v-model="selectedRole" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in rolelist" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-          </el-form-item>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="updateRole()"> 确认 </el-button>
-          <el-button @click="dialogRoleVisible = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-    </div>
-  </div>
-</template>
-
-<script>
-import waves from '@/directive/waves' // waves directive
-import { isIntegerZero } from '@/utils/validate'
-import { PostDataByName, GetDataByName, GetDataByNames, UpdateDataRelation, ExecDataByConfig,checkButtons } from '@/api/common'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import { MessageBox } from 'element-ui'
-import Cookies from 'js-cookie'
-import { sortChange } from '@/utils/index.js'
-export default {
-  name: 'User',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],
-      tableKey: 0,
-      list: [{ sqlname: '', id: 0, sqlstr: '' }],
-      total: 0,
-      listLoading: true,
-      requestParam: { name: 'createapisql', offset: 0, pagecount: 0, params: [] },
-      requestParam2: {},
-      repairmanTypeList: [],
-      requestParams: [
-        { name: 'getRoleall', offset: 0, pagecount: 0, parammaps: { pastureId: Cookies.get('pastureid') }},
-        { name: 'getEmpall', offset: 0, pagecount: 0, params: [] },
-        { name: 'getMaintenanceTypeList', offset: 0, pagecount: 0, params: [] },
-        { name: 'getMcsAccounts', offset: 0, pagecount: 0, params: [] },
-
-      ],
-      requestFilterParams: { returntype: 'Map', parammaps: {}},
-      UpdateDataRelationParam: { name: '', dataname: '', datavalue: '', valuename: '', values: [] },
-      dataform: { empname: '', position: '', username: '', fullname: '', empid: '', id: '', sort: '', enable: 1, maintenancePerson: 1, keeper: 1, maintenanceTypeId: '', selectedRole: '' },
-      temp1: { empname: '', empid: '', position: '' },
-      rolelist: [],
-      emplist: [],
-      viedoAccountList: [
-        // { deviceId: '92301', uId: 'gxlf', pwd: '000000' },
-      //   { deviceId: 'apptest2', uId: 'PC', pwd: 'mcs8@666' }
-      ],
-      getdataListParm: {
-        name: 'getuserallL', offset: 1, pagecount: 10, returntype: 'Map',
-        parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
-      },
-      updateParam: {
-        name: 'getMaintenanceTypeByUser', offset: 1, pagecount: 0, returntype: 'list',
-        params: []
-      },
-      rules: {
-        empid: [{ required: true, message: '用户名必填', trigger: 'blur' }],
-        username: [{ type: 'string', required: true, message: '用户名必填', trigger: 'change' }],
-        empname: [{ type: 'string', required: true, message: '职工名必填', trigger: 'change' }],
-        sort: [{ validator: isIntegerZero, trigger: 'blur' }]
-      },
-      dialogFormVisible: false,
-      dialogRoleVisible: false,
-      selectedRole: '',
-      dialogStatus: '',
-      textMap: { update: '编辑', create: '新增', role: '选择角色' },
-      dialogFormVisibleAdd: false,
-      postDataPramas: {},
-      disabled: false,
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    this.get_table_data()
-  },
-  methods: {
-    tableSort(column) {
-      sortChange(column, this.list)
-    },
-    get_auto_buttons() {
-      // 新增
-      const UserAdd = 'console:user:add'
-      const isUserAdd = checkButtons(this.$store.state.user.buttons, UserAdd)
-      this.isUserAdd = isUserAdd
-      // 角色
-      const UserRole = 'console:user:role'
-      const isUserRole = checkButtons(this.$store.state.user.buttons, UserRole)
-      this.isUserRole = isUserRole
-      // 编辑
-      const UserEdit = 'console:user:edit'
-      const isUserEdit = checkButtons(this.$store.state.user.buttons, UserEdit)
-      this.isUserEdit = isUserEdit
-      // 重置密码
-      const UserResetpassword = 'console:user:resetpassword'
-      const isUserResetpassword = checkButtons(this.$store.state.user.buttons, UserResetpassword)
-      this.isUserResetpassword = isUserResetpassword
-      // 删除
-      const UserDelete = 'console:user:delete'
-      const isUserDelete = checkButtons(this.$store.state.user.buttons, isUserDelete)
-      this.isUserDelete = isUserDelete
-    },
-    get_table_data() {
-      this.listLoading = true
-      GetDataByNames(this.requestParams).then(response => {
-        this.rolelist = response.data.getRoleall.list
-        this.emplist = response.data.getEmpall.list
-        this.repairmanTypeList = response.data.getMaintenanceTypeList.list
-
-        this.viedoAccountList = response.data.getMcsAccounts.list
-
-
-        GetDataByName(this.getdataListParm).then(response => {
-          this.list = response.data.list
-          if (response.data.total) {
-            this.total = response.data.total
-          }
-          setTimeout(() => {
-            this.listLoading = false
-          }, 1000)
-        })
-      })
-    },
-    form_search() {
-      this.listLoading = true
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-    },
-    resetRequestParam() {
-      this.dataform = { username: '', fullname: '', empid: '', id: '', empname: '', position: '', sort: '', enable: 1, selectedRole: '',selectedRole2:'', maintenancePerson: 1, keeper: 1, maintenanceTypeId: '' }
-    },
-    form_add() {
-      this.resetRequestParam()
-      this.dialogStatus = 'create'
-      this.dialogFormVisibleAdd = true
-    },
-    changeMaintenanceWorker(item) {
-      if (item == 1) {
-        this.disabled = false
-      } else {
-        this.disabled = true
-        this.dataform.maintenanceTypeId = []
-      }
-    },
-    add_dialog_save() {
-      var role_Array = []
-      for (let i = 0; i < this.dataform.selectedRole.length; i++) {
-        var role_obj = {}
-        this.$set(role_obj, 'role_id', this.dataform.selectedRole[i])
-        role_Array.push(role_obj)
-      }
-      this.dataform.selectedRole2 = role_Array
-      var maintenanceTypeId_Array = []
-      for (let i = 0; i < this.dataform.maintenanceTypeId.length; i++) {
-        var maintenanceTypeId = {}
-        this.$set(maintenanceTypeId, 'maintenanceTypeId', this.dataform.maintenanceTypeId[i])
-        maintenanceTypeId_Array.push(maintenanceTypeId)
-      }
-      this.dataform.maintenanceTypeId = maintenanceTypeId_Array
-      this.$refs['dataForm'].validate(valid => {
-        if (valid) {
-          if (this.dataform.selectedRole2.length <= 0) {
-            this.$message({ type: 'warning', message: '请检查角色是否未填写', duration: 2000 })
-            return false
-          } else {
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'createUser', 'type': 'e', 'parammaps': {
-              username: this.dataform.username,
-              empid: this.dataform.empid,
-              sort: '0',
-              enable: this.dataform.enable,
-              maintenancePerson: this.dataform.maintenancePerson,
-              keeper: this.dataform.keeper
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.dataform.selectedRole2 }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertUserRole', 'type': 'e', 'parammaps': {
-              user_id: '@createUser.LastInsertId',
-              role_id: '@insertSpotList.role_id'
-            }}
-            this.postDataPramas.data[2] = { 'name': 'insertSpotList1', 'resultmaps': { 'list': this.dataform.maintenanceTypeId }}
-            this.postDataPramas.data[2].children = []
-            this.postDataPramas.data[2].children[0] = { 'name': 'insertUserMaintenance', 'type': 'e', 'parammaps': {
-              user_id: '@createUser.LastInsertId',
-              maintenance_id: '@insertSpotList1.maintenanceTypeId'
-            }}
-            console.log('新增保存发送参数', this.postDataPramas)
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('新增保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                var username = new RegExp('username')
-                if (username.test(response.data)) {
-                  this.$notify({ title: '', message: '该用户名称已存在', type: 'warning', duration: 2000 })
-                } else {
-                  this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                }
-              } else {
-
-                // 没有记录的内容
-                this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                this.get_table_data()
-                this.dialogFormVisibleAdd = false
-                // 没有记录的内容
-
-
-
-
-                var pastureId = Cookies.get('pastureid')
-
-
-                console.log(pastureid)
-
-                var deviceId = this.dataform.deviceId
-                var uId = this.dataform.uId
-                var pwd = this.dataform.pwd
-
-
-
-
-                console.log('pastureId', pastureId)
-                var send_data = {
-                  'common': {
-                    'returnmap': '0'
-                  },
-                  'data': [
-                    {
-                      'name': 'checkDeviceId',
-                      'type': 'v',
-                      'parammaps': {
-                        'deviceId': deviceId
-
-                      }
-                    },
-                    {
-                      'name': 'addDeviceInformation',
-                      'type': 'e',
-                      'parammaps': {
-                        'empId': this.dataform.empid,
-                        'uId': uId,
-                        'deviceId': deviceId,
-                        'pwd': pwd
-                      }
-                    },
-                    {
-                      'name': 'updateUserDevice',
-                      'type': 'e',
-                      'parammaps': {
-                        'empId': this.dataform.empid
-
-                      }
-                    }
-
-                  ]
-                }
-
-
-                console.log('记录仪保存发送参数===========', send_data)
-                ExecDataByConfig(send_data).then(response => {
-                  console.log('记录仪保存结果===========', response)
-                  if (response.msg === 'fail') {
-                    if (response.data == '已被绑定') {
-                      var send_data3 = {
-                        'name': 'updateDeviceInformation',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid,
-                          'deviceId': this.dataform.deviceId
-                        }
-                      }
-
-                      MessageBox.confirm('该设备已经绑定,是否重新绑定?', {
-                        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-                      }).then(() => {
-                        PostDataByName(send_data3).then(() => {
-                          this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-                          this.get_table_data()
-                          this.dialogFormVisible = false
-                        })
-                      })
-                    } else {
-                      this.dialogFormVisibleAdd = false
-                      this.get_table_data()
-                      this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
-                    }
-                  } else {
-                    this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                  }
-                })
-
-
-
-
-              }
-            })
-          }
-        }
-      })
-    },
-    handleRole(row) {
-      this.requestParam.name = 'getRoleByUser'
-      this.requestParam.params = []
-      this.requestParam.params[0] = row.id
-      this.requestParam.pagecount = 0
-      this.requestParam.returntype = 'list'
-      this.dataform.id = row.id
-      this.dialogRoleVisible = true
-      GetDataByName(this.requestParam).then(response => {
-        this.selectedRole = response.data.lists.role_id
-      })
-    },
-    updateRole() {
-      this.UpdateDataRelationParam.name = 'user_role'
-      this.UpdateDataRelationParam.dataname = 'user_id'
-      this.UpdateDataRelationParam.datavalue = this.dataform.id
-      this.UpdateDataRelationParam.valuename = 'role_id'
-      this.UpdateDataRelationParam.values = this.selectedRole
-
-      UpdateDataRelation(this.UpdateDataRelationParam).then(() => {
-        this.dialogRoleVisible = false
-        this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-        this.get_table_data()
-      })
-    },
-    form_edit(row) {
-      if (row.maintenancePerson == 1) {
-        this.updateParam.params[0] = row.id
-        GetDataByName(this.updateParam).then(response => {
-          console.log(response.data)
-          if (response.data.lists !== null) {
-            this.$set(row, 'maintenanceTypeId', response.data.lists.maintenance_id)
-          } else {
-            this.$set(row, 'maintenanceTypeId', [])
-          }
-          this.dialogStatus = 'update'
-          this.dialogFormVisible = true
-          this.disabled = false
-        })
-      } else {
-        this.disabled = true
-        this.dialogStatus = 'update'
-        this.dialogFormVisible = true
-        this.$set(row, 'maintenanceTypeId', [])
-      }
-      this.dataform = Object.assign(row, {})
-      this.$nextTick(() => {
-        this.$refs['dataForm'].clearValidate()
-      })
-    },
-    edit_dialog_save() {
-      this.$refs['dataForm'].validate(valid => {
-        if (valid) {
-          this.requestParam = {}
-          this.requestParam.name = 'updateUser'
-          this.requestParam.params = []
-          this.requestParam.params[0] = this.dataform.username
-          this.requestParam.params[1] = this.dataform.empid
-          this.requestParam.params[2] = this.dataform.sort
-          this.requestParam.params[3] = this.dataform.enable
-
-        if(this.dataform.maintenancePerson == null || this.dataform.maintenancePerson == undefined){
-           this.requestParam.params[4] = 0
-        } else {
-          this.requestParam.params[4] = this.dataform.maintenancePerson
-        }
-
-
-
-          this.requestParam.params[5] = this.dataform.keeper
-          this.requestParam.params[6] = this.dataform.id
-          PostDataByName(this.requestParam).then(response => {
-            if (response.msg !== 'fail') {
-              this.requestParam2 = {}
-              this.requestParam2.name = 'user_mainthenance'
-              this.requestParam2.dataname = 'user_id'
-              this.requestParam2.datavalue = this.dataform.id
-              this.requestParam2.valuename = 'maintenance_id'
-              this.requestParam2.values = this.dataform.maintenanceTypeId
-              UpdateDataRelation(this.requestParam2).then(response => {
-                if (response.msg !== 'fail') {
-                  // this.get_table_data()
-                  // this.dialogFormVisible = false
-
-                  var send_data = {
-                    'common': {
-                      'returnmap': '0'
-                    },
-                    'data': [
-                      {
-                        'name': 'checkDeviceId',
-                        'type': 'v',
-                        'parammaps': {
-                          'deviceId': this.dataform.deviceId
-
-                        }
-                      },
-                      {
-                        'name': 'addDeviceInformation',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid,
-                          'uId': this.dataform.uId,
-                          'deviceId': this.dataform.deviceId,
-                          'pwd': this.dataform.pwd
-                        }
-                      },
-                      {
-                        'name': 'updateUserDevice',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid
-
-                        }
-                      }
-
-                    ]
-                  }
-
-                  console.log('记录仪保存发送参数===========', send_data)
-                  ExecDataByConfig(send_data).then(response => {
-                    console.log('记录仪保存结果===========', response)
-                    if (response.msg === 'fail') {
-                      if (response.data == '已被绑定') {
-                        var send_data3 = {
-                          'name': 'updateDeviceInformation',
-                          'type': 'e',
-                          'parammaps': {
-                            'empId': this.dataform.empid,
-                            'deviceId': this.dataform.deviceId
-                          }
-                        }
-
-                        MessageBox.confirm('该设备已经绑定,是否重新绑定?', {
-                          confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-                        }).then(() => {
-                          PostDataByName(send_data3).then(() => {
-                            this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-                            this.get_table_data()
-                            this.dialogFormVisible = false
-                          })
-                        })
-                      } else {
-                        this.get_table_data()
-                        this.dialogFormVisible = false
-                      }
-                    } else {
-                      this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                    }
-                  })
-                } else {
-                  this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                }
-              })
-            } else {
-              this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    handleEnableChange(index, row) {
-      this.requestParam.name = 'updateUser'
-      this.requestParam.params = []
-      this.requestParam.params[0] = row.username
-      this.requestParam.params[1] = row.empid
-      this.requestParam.params[2] = row.sort
-      this.requestParam.params[3] = row.enable
-      this.requestParam.params[4] = row.id
-      PostDataByName(this.requestParam).then(() => {
-        this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-      })
-    },
-    form_delete(row) {
-      MessageBox.confirm('确认删除?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'deleteUser'
-        this.requestParam.params = []
-        this.requestParam.params[0] = row.id
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.resetRequestParam()
-          this.dialogFormVisible = false
-          this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
-        })
-      })
-    },
-
-    formNameSearch(queryString, cb) {
-      this.requestFilterParams.name = 'userSolr'
-      this.requestFilterParams.parammaps['pastureId'] = this.$store.state.user.pastureid
-      this.requestFilterParams.parammaps['empname'] = queryString
-      GetDataByName(this.requestFilterParams).then(response => {
-        cb(response.data.list)
-      })
-    },
-    handleformNameSelect(item) {
-      this.dataform.username = item.empCode
-      this.dataform.empid = item.id
-      this.$set(this.dataform, 'empname', item.empname)
-      this.$set(this.dataform, 'position', item.position)
-    },
-    handleResetPassword(row) {
-      MessageBox.confirm('是否确认将此用户密码重置为默认密码123456?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'initPassword'
-        this.requestParam.parammaps = {}
-        this.requestParam.parammaps.id = row.id
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.resetRequestParam()
-          this.dialogFormVisible = false
-          this.$notify({ title: '成功', message: '重置密码成功', type: 'success', duration: 2000 })
-        })
-      })
-    },
-    change_deviceId(e) {
-      console.log(e)
-      var deviceId = e
-      var pwd = ''
-      var uId = ''
-      var viedoAccountList = this.viedoAccountList
-      viedoAccountList.forEach(function(io) {
-        if (io.deviceId == deviceId) {
-          uId = io.uId
-          pwd = io.pwd
-        }
-      })
-      this.dataform.uId = uId
-      this.dataform.pwd = pwd
-      this.dataform.deviceId = deviceId
-    }
-  }
-}
-</script>

+ 0 - 705
src/views/console/user/index改好 - 副本.vue

@@ -1,705 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="app-container">
-      <div class="filter-container">
-        <el-input v-model="getdataListParm.parammaps.empCode" placeholder="用户名" style="width: 140px;" class="filter-item" />
-        <el-input v-model="getdataListParm.parammaps.empname" placeholder="姓名" style="width: 140px;" class="filter-item" />
-        <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-        <el-button v-if="isUserAdd" class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit" @click="form_add"> 新增 </el-button>
-      </div>
-      <el-table
-        v-loading="listLoading"
-        element-loading-text="给我一点时间"
-        :data="list"
-        border
-        fit
-        highlight-current-row
-        style="width: 100%;"
-        :row-style="rowStyle"
-        :cell-style="cellStyle"
-        class="elTable"
-        row-key="id"
-        default-expand-all
-        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
-        @sort-change="tableSort"
-      >
-        <el-table-column label="用户名称" header-align="center" width="120px" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.username }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="姓名" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.empname }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="部门" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.deptname }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="角色" min-width="120px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.roleName }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="顺序" sortable prop="sort" min-width="80px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.sort }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="启用" min-width="80px" header-align="center" align="center">
-          <template slot-scope="scope">
-            <el-switch v-model="scope.row.enable" disabled active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
-          </template>
-        </el-table-column>
-        <el-table-column label="操作" header-align="center" align="center" width="330" class-name="small-padding fixed-width" fixed="right">
-          <template slot-scope="{row}">
-           <el-button v-if="isUserRole" type="warning" size="mini" @click="handleRole(row)"> 角色 </el-button>
-           <el-button v-if="isUserEdit" type="primary" size="mini" @click="form_edit(row)"> 编辑 </el-button>
-           <el-button v-if="isUserResetpassword" type="warning" size="mini" style="padding: 7px 5px;" @click="handleResetPassword(row)"> 重置密码 </el-button>
-           <el-button v-if="row.status !== '已删' && isUserDelete" size="mini" type="danger" @click="form_delete(row)"> 删除 </el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-
-      <!-- 编辑 -->
-      <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
-        <el-form ref="dataForm" :rules="rules" :model="dataform" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="职工名" prop="empid">
-            <el-autocomplete ref="empid" v-model="dataform.empname" value-key="empid" class="inline-input" :fetch-suggestions="formNameSearch" placeholder="请输入内容" style="width:80%" @select="handleformNameSelect">
-              <template slot-scope="{ item }">
-                <div class="name" style="display: inline;">姓名: {{ item.empname }}</div>
-                <span class="addr"> 职位:{{ item.position }}</span>
-              </template>
-            </el-autocomplete>
-          </el-form-item>
-          <el-form-item label="用户名" prop="username">
-            <el-input ref="username" v-model="dataform.username" />
-          </el-form-item>
-          <el-form-item label="顺序" prop="sort">
-            <el-input ref="sort" v-model="dataform.sort" />
-          </el-form-item>
-          <el-form-item label="启用" prop="enable">
-            <el-switch ref="enable" v-model="dataform.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <!-- <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item> -->
-          <el-form-item label="是否保养工" prop="keeper">
-            <el-switch ref="keeper" v-model="dataform.keeper" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="是否维修工" prop="maintenancePerson">
-            <el-switch ref="maintenancePerson" v-model="dataform.maintenancePerson" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="changeMaintenanceWorker" />
-          </el-form-item>
-          <el-form-item label="维修工类型" prop="maintenanceTypeId">
-            <el-select v-model="dataform.maintenanceTypeId" :disabled="disabled" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in repairmanTypeList" :key="item.id" :label="item.typeName" :value="item.id" />
-            </el-select>
-          </el-form-item>
-
-          <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item>
-
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="edit_dialog_save()"> 确认 </el-button>
-          <el-button @click="dialogFormVisible = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-
-      <!-- 新增 -->
-      <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisibleAdd" :close-on-click-modal="false">
-        <el-form ref="dataForm" :rules="rules" :model="dataform" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="职工名" prop="empid">
-            <el-autocomplete ref="empid" v-model="dataform.empname" value-key="empid" class="inline-input" :fetch-suggestions="formNameSearch" placeholder="请输入内容" style="width:100%" @select="handleformNameSelect">
-              <template slot-scope="{ item }">
-                <div class="name" style="display: inline;">姓名: {{ item.empname }}</div>
-                <span class="addr"> 职位:{{ item.position }}</span>
-              </template>
-            </el-autocomplete>
-          </el-form-item>
-          <el-form-item label="用户名" prop="username">
-            <el-input ref="username" v-model="dataform.username" />
-          </el-form-item>
-          <el-form-item label="角色" prop="rolename">
-            <el-select v-model="dataform.selectedRole" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in rolelist" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-          </el-form-item>
-          <el-form-item label="启用" prop="enable">
-            <el-switch ref="enable" v-model="dataform.enable" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择" @change="change_deviceId">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item>
-          <el-form-item label="是否保养工" prop="keeper">
-            <el-switch ref="keeper" v-model="dataform.keeper" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" />
-          </el-form-item>
-          <el-form-item label="是否维修工" prop="maintenancePerson">
-            <el-switch ref="maintenancePerson" v-model="dataform.maintenancePerson" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="changeMaintenanceWorker" />
-          </el-form-item>
-          <el-form-item label="维修工类型" prop="maintenanceTypeId">
-            <el-select v-model="dataform.maintenanceTypeId" :disabled="disabled" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in repairmanTypeList" :key="item.id" :label="item.typeName" :value="item.id" />
-            </el-select>
-          </el-form-item>
-
-          <el-form-item label="记录仪账号" prop="deviceId">
-            <el-select v-model="dataform.deviceId" style="width:500px;" placeholder="请选择">
-              <el-option v-for="item in viedoAccountList" :key="item.deviceId" :label="item.deviceId" :value="item.deviceId" />
-            </el-select>
-          </el-form-item>
-
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="add_dialog_save()"> 确认 </el-button>
-          <el-button @click="dialogFormVisibleAdd = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-
-      <!-- 角色 -->
-      <el-dialog :title="textMap['role']" :visible.sync="dialogRoleVisible" :close-on-click-modal="false">
-        <el-form :rules="rules" label-position="left" label-width="100px" style="width: 600px; margin-left:50px;">
-          <el-form-item label="角色" prop="rolename">
-            <el-select v-model="selectedRole" style="width:500px;" multiple placeholder="请选择">
-              <el-option v-for="item in rolelist" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-          </el-form-item>
-        </el-form>
-        <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="updateRole()"> 确认 </el-button>
-          <el-button @click="dialogRoleVisible = false"> 关闭 </el-button>
-        </div>
-      </el-dialog>
-    </div>
-  </div>
-</template>
-
-<script>
-import waves from '@/directive/waves' // waves directive
-import { isIntegerZero } from '@/utils/validate'
-import { PostDataByName, GetDataByName, GetDataByNames, UpdateDataRelation, ExecDataByConfig,checkButtons } from '@/api/common'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import { MessageBox } from 'element-ui'
-import Cookies from 'js-cookie'
-import { sortChange } from '@/utils/index.js'
-export default {
-  name: 'User',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],
-      tableKey: 0,
-      list: [{ sqlname: '', id: 0, sqlstr: '' }],
-      total: 0,
-      listLoading: true,
-      requestParam: { name: 'createapisql', offset: 0, pagecount: 0, params: [] },
-      requestParam2: {},
-      repairmanTypeList: [],
-      requestParams: [
-        { name: 'getRoleall', offset: 0, pagecount: 0, parammaps: { pastureId: Cookies.get('pastureid') }},
-        { name: 'getEmpall', offset: 0, pagecount: 0, params: [] },
-        { name: 'getMaintenanceTypeList', offset: 0, pagecount: 0, params: [] }
-      ],
-      requestFilterParams: { returntype: 'Map', parammaps: {}},
-      UpdateDataRelationParam: { name: '', dataname: '', datavalue: '', valuename: '', values: [] },
-      dataform: { empname: '', position: '', username: '', fullname: '', empid: '', id: '', sort: '', enable: 1, maintenancePerson: 1, keeper: 1, maintenanceTypeId: '', selectedRole: '' },
-      temp1: { empname: '', empid: '', position: '' },
-      rolelist: [],
-      emplist: [],
-      viedoAccountList: [
-        // { deviceId: '92301', uId: 'gxlf', pwd: '000000' },
-        { deviceId: 'apptest2', uId: 'PC', pwd: 'mcs8@666' }
-      ],
-      getdataListParm: {
-        name: 'getuserallL', offset: 1, pagecount: 10, returntype: 'Map',
-        parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
-      },
-      updateParam: {
-        name: 'getMaintenanceTypeByUser', offset: 1, pagecount: 0, returntype: 'list',
-        params: []
-      },
-      rules: {
-        empid: [{ required: true, message: '用户名必填', trigger: 'blur' }],
-        username: [{ type: 'string', required: true, message: '用户名必填', trigger: 'change' }],
-        empname: [{ type: 'string', required: true, message: '职工名必填', trigger: 'change' }],
-        sort: [{ validator: isIntegerZero, trigger: 'blur' }]
-      },
-      dialogFormVisible: false,
-      dialogRoleVisible: false,
-      selectedRole: '',
-      dialogStatus: '',
-      textMap: { update: '编辑', create: '新增', role: '选择角色' },
-      dialogFormVisibleAdd: false,
-      postDataPramas: {},
-      disabled: false,
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' }
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    this.get_table_data()
-  },
-  methods: {
-    get_auto_buttons() {
-      // 新增
-      const UserAdd = 'console:user:add'
-      const isUserAdd = checkButtons(this.$store.state.user.buttons, UserAdd)
-      this.isUserAdd = isUserAdd
-      // 角色
-      const UserRole = 'console:user:role'
-      const isUserRole = checkButtons(this.$store.state.user.buttons, UserRole)
-      this.isUserRole = isUserRole
-      // 编辑
-      const UserEdit = 'console:user:edit'
-      const isUserEdit = checkButtons(this.$store.state.user.buttons, UserEdit)
-      this.isUserEdit = isUserEdit
-      // 重置密码
-      const UserResetpassword = 'console:user:resetpassword'
-      const isUserResetpassword = checkButtons(this.$store.state.user.buttons, UserResetpassword)
-      this.isUserResetpassword = isUserResetpassword
-      // 删除
-      const UserDelete = 'console:user:delete'
-      const isUserDelete = checkButtons(this.$store.state.user.buttons, isUserDelete)
-      this.isUserDelete = isUserDelete
-    },
-    tableSort(column) {
-      sortChange(column, this.list)
-    },
-    get_table_data() {
-      this.listLoading = true
-      GetDataByNames(this.requestParams).then(response => {
-        this.rolelist = response.data.getRoleall.list
-        this.emplist = response.data.getEmpall.list
-        this.repairmanTypeList = response.data.getMaintenanceTypeList.list
-        GetDataByName(this.getdataListParm).then(response => {
-          this.list = response.data.list
-          if (response.data.total) {
-            this.total = response.data.total
-          }
-          setTimeout(() => {
-            this.listLoading = false
-          }, 1000)
-        })
-      })
-    },
-    form_search() {
-      this.listLoading = true
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-    },
-    resetRequestParam() {
-      this.dataform = { username: '', fullname: '', empid: '', id: '', empname: '', position: '', sort: '', enable: 1, selectedRole: '',selectedRole2:'', maintenancePerson: 1, keeper: 1, maintenanceTypeId: '' }
-    },
-    form_add() {
-      this.resetRequestParam()
-      this.dialogStatus = 'create'
-      this.dialogFormVisibleAdd = true
-    },
-    changeMaintenanceWorker(item) {
-      if (item == 1) {
-        this.disabled = false
-      } else {
-        this.disabled = true
-        this.dataform.maintenanceTypeId = []
-      }
-    },
-    add_dialog_save() {
-      var role_Array = []
-      for (let i = 0; i < this.dataform.selectedRole.length; i++) {
-        var role_obj = {}
-        this.$set(role_obj, 'role_id', this.dataform.selectedRole[i])
-        role_Array.push(role_obj)
-      }
-      this.dataform.selectedRole2 = role_Array
-      var maintenanceTypeId_Array = []
-      for (let i = 0; i < this.dataform.maintenanceTypeId.length; i++) {
-        var maintenanceTypeId = {}
-        this.$set(maintenanceTypeId, 'maintenanceTypeId', this.dataform.maintenanceTypeId[i])
-        maintenanceTypeId_Array.push(maintenanceTypeId)
-      }
-      this.dataform.maintenanceTypeId = maintenanceTypeId_Array
-      this.$refs['dataForm'].validate(valid => {
-        if (valid) {
-          if (this.dataform.selectedRole2.length <= 0) {
-            this.$message({ type: 'warning', message: '请检查角色是否未填写', duration: 2000 })
-            return false
-          } else {
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'createUser', 'type': 'e', 'parammaps': {
-              username: this.dataform.username,
-              empid: this.dataform.empid,
-              sort: '0',
-              enable: this.dataform.enable,
-              maintenancePerson: this.dataform.maintenancePerson,
-              keeper: this.dataform.keeper
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.dataform.selectedRole2 }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertUserRole', 'type': 'e', 'parammaps': {
-              user_id: '@createUser.LastInsertId',
-              role_id: '@insertSpotList.role_id'
-            }}
-            this.postDataPramas.data[2] = { 'name': 'insertSpotList1', 'resultmaps': { 'list': this.dataform.maintenanceTypeId }}
-            this.postDataPramas.data[2].children = []
-            this.postDataPramas.data[2].children[0] = { 'name': 'insertUserMaintenance', 'type': 'e', 'parammaps': {
-              user_id: '@createUser.LastInsertId',
-              maintenance_id: '@insertSpotList1.maintenanceTypeId'
-            }}
-            console.log('新增保存发送参数', this.postDataPramas)
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('新增保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                var username = new RegExp('username')
-                if (username.test(response.data)) {
-                  this.$notify({ title: '', message: '该用户名称已存在', type: 'warning', duration: 2000 })
-                } else {
-                  this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                }
-              } else {
-
-                // 没有记录的内容
-                this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                this.get_table_data()
-                this.dialogFormVisibleAdd = false
-                // 没有记录的内容
-
-
-
-
-                var pastureId = Cookies.get('pastureid')
-
-
-                console.log(pastureid)
-
-                var deviceId = this.dataform.deviceId
-                var uId = this.dataform.uId
-                var pwd = this.dataform.pwd
-
-
-
-
-                console.log('pastureId', pastureId)
-                var send_data = {
-                  'common': {
-                    'returnmap': '0'
-                  },
-                  'data': [
-                    {
-                      'name': 'checkDeviceId',
-                      'type': 'v',
-                      'parammaps': {
-                        'deviceId': deviceId
-
-                      }
-                    },
-                    {
-                      'name': 'addDeviceInformation',
-                      'type': 'e',
-                      'parammaps': {
-                        'empId': this.dataform.empid,
-                        'uId': uId,
-                        'deviceId': deviceId,
-                        'pwd': pwd
-                      }
-                    },
-                    {
-                      'name': 'updateUserDevice',
-                      'type': 'e',
-                      'parammaps': {
-                        'empId': this.dataform.empid
-
-                      }
-                    }
-
-                  ]
-                }
-
-
-                console.log('记录仪保存发送参数===========', send_data)
-                ExecDataByConfig(send_data).then(response => {
-                  console.log('记录仪保存结果===========', response)
-                  if (response.msg === 'fail') {
-                    if (response.data == '已被绑定') {
-                      var send_data3 = {
-                        'name': 'updateDeviceInformation',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid,
-                          'deviceId': this.dataform.deviceId
-                        }
-                      }
-
-                      MessageBox.confirm('该设备已经绑定,是否重新绑定?', {
-                        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-                      }).then(() => {
-                        PostDataByName(send_data3).then(() => {
-                          this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-                          this.get_table_data()
-                          this.dialogFormVisible = false
-                        })
-                      })
-                    } else {
-                      this.dialogFormVisibleAdd = false
-                      this.get_table_data()
-                      this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
-                    }
-                  } else {
-                    this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                  }
-                })
-
-
-
-
-              }
-            })
-          }
-        }
-      })
-    },
-    handleRole(row) {
-      this.requestParam.name = 'getRoleByUser'
-      this.requestParam.params = []
-      this.requestParam.params[0] = row.id
-      this.requestParam.pagecount = 0
-      this.requestParam.returntype = 'list'
-      this.dataform.id = row.id
-      this.dialogRoleVisible = true
-      GetDataByName(this.requestParam).then(response => {
-        this.selectedRole = response.data.lists.role_id
-      })
-    },
-    updateRole() {
-      this.UpdateDataRelationParam.name = 'user_role'
-      this.UpdateDataRelationParam.dataname = 'user_id'
-      this.UpdateDataRelationParam.datavalue = this.dataform.id
-      this.UpdateDataRelationParam.valuename = 'role_id'
-      this.UpdateDataRelationParam.values = this.selectedRole
-
-      UpdateDataRelation(this.UpdateDataRelationParam).then(() => {
-        this.dialogRoleVisible = false
-        this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-        this.get_table_data()
-      })
-    },
-    form_edit(row) {
-      if (row.maintenancePerson == 1) {
-        this.updateParam.params[0] = row.id
-        GetDataByName(this.updateParam).then(response => {
-          console.log(response.data)
-          if (response.data.lists !== null) {
-            this.$set(row, 'maintenanceTypeId', response.data.lists.maintenance_id)
-          } else {
-            this.$set(row, 'maintenanceTypeId', [])
-          }
-          this.dialogStatus = 'update'
-          this.dialogFormVisible = true
-          this.disabled = false
-        })
-      } else {
-        this.disabled = true
-        this.dialogStatus = 'update'
-        this.dialogFormVisible = true
-        this.$set(row, 'maintenanceTypeId', [])
-      }
-      this.dataform = Object.assign(row, {})
-      this.$nextTick(() => {
-        this.$refs['dataForm'].clearValidate()
-      })
-    },
-    edit_dialog_save() {
-      this.$refs['dataForm'].validate(valid => {
-        if (valid) {
-          this.requestParam = {}
-          this.requestParam.name = 'updateUser'
-          this.requestParam.params = []
-          this.requestParam.params[0] = this.dataform.username
-          this.requestParam.params[1] = this.dataform.empid
-          this.requestParam.params[2] = this.dataform.sort
-          this.requestParam.params[3] = this.dataform.enable
-          this.requestParam.params[4] = this.dataform.maintenancePerson
-          this.requestParam.params[5] = this.dataform.keeper
-          this.requestParam.params[6] = this.dataform.id
-          PostDataByName(this.requestParam).then(response => {
-            if (response.msg !== 'fail') {
-              this.requestParam2 = {}
-              this.requestParam2.name = 'user_mainthenance'
-              this.requestParam2.dataname = 'user_id'
-              this.requestParam2.datavalue = this.dataform.id
-              this.requestParam2.valuename = 'maintenance_id'
-              this.requestParam2.values = this.dataform.maintenanceTypeId
-              UpdateDataRelation(this.requestParam2).then(response => {
-                if (response.msg !== 'fail') {
-                  // this.get_table_data()
-                  // this.dialogFormVisible = false
-
-                  var send_data = {
-                    'common': {
-                      'returnmap': '0'
-                    },
-                    'data': [
-                      {
-                        'name': 'checkDeviceId',
-                        'type': 'v',
-                        'parammaps': {
-                          'deviceId': this.dataform.deviceId
-
-                        }
-                      },
-                      {
-                        'name': 'addDeviceInformation',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid,
-                          'uId': this.dataform.uId,
-                          'deviceId': this.dataform.deviceId,
-                          'pwd': this.dataform.pwd
-                        }
-                      },
-                      {
-                        'name': 'updateUserDevice',
-                        'type': 'e',
-                        'parammaps': {
-                          'empId': this.dataform.empid
-
-                        }
-                      }
-
-                    ]
-                  }
-
-                  console.log('记录仪保存发送参数===========', send_data)
-                  ExecDataByConfig(send_data).then(response => {
-                    console.log('记录仪保存结果===========', response)
-                    if (response.msg === 'fail') {
-                      if (response.data == '已被绑定') {
-                        var send_data3 = {
-                          'name': 'updateDeviceInformation',
-                          'type': 'e',
-                          'parammaps': {
-                            'empId': this.dataform.empid,
-                            'deviceId': this.dataform.deviceId
-                          }
-                        }
-
-                        MessageBox.confirm('该设备已经绑定,是否重新绑定?', {
-                          confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-                        }).then(() => {
-                          PostDataByName(send_data3).then(() => {
-                            this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-                            this.get_table_data()
-                            this.dialogFormVisible = false
-                          })
-                        })
-                      } else {
-                        this.get_table_data()
-                        this.dialogFormVisible = false
-                      }
-                    } else {
-                      this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                    }
-                  })
-                } else {
-                  this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-                }
-              })
-            } else {
-              this.$notify({ title: '失败', message: response.data, type: 'warning', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    handleEnableChange(index, row) {
-      this.requestParam.name = 'updateUser'
-      this.requestParam.params = []
-      this.requestParam.params[0] = row.username
-      this.requestParam.params[1] = row.empid
-      this.requestParam.params[2] = row.sort
-      this.requestParam.params[3] = row.enable
-      this.requestParam.params[4] = row.id
-      PostDataByName(this.requestParam).then(() => {
-        this.$notify({ title: '成功', message: '修改成功', type: 'success', duration: 2000 })
-      })
-    },
-    form_delete(row) {
-      MessageBox.confirm('确认删除?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'deleteUser'
-        this.requestParam.params = []
-        this.requestParam.params[0] = row.id
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.resetRequestParam()
-          this.dialogFormVisible = false
-          this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
-        })
-      })
-    },
-
-    formNameSearch(queryString, cb) {
-      this.requestFilterParams.name = 'userSolr'
-      this.requestFilterParams.parammaps['pastureId'] = this.$store.state.user.pastureid
-      this.requestFilterParams.parammaps['empname'] = queryString
-      GetDataByName(this.requestFilterParams).then(response => {
-        cb(response.data.list)
-      })
-    },
-    handleformNameSelect(item) {
-      this.dataform.username = item.empCode
-      this.dataform.empid = item.id
-      this.$set(this.dataform, 'empname', item.empname)
-      this.$set(this.dataform, 'position', item.position)
-    },
-    handleResetPassword(row) {
-      MessageBox.confirm('是否确认将此用户密码重置为默认密码123456?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'initPassword'
-        this.requestParam.parammaps = {}
-        this.requestParam.parammaps.id = row.id
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.resetRequestParam()
-          this.dialogFormVisible = false
-          this.$notify({ title: '成功', message: '重置密码成功', type: 'success', duration: 2000 })
-        })
-      })
-    },
-    change_deviceId(e) {
-      console.log(e)
-      var deviceId = e
-      var pwd = ''
-      var uId = ''
-      var viedoAccountList = this.viedoAccountList
-      viedoAccountList.forEach(function(io) {
-        if (io.deviceId == deviceId) {
-          uId = io.uId
-          pwd = io.pwd
-        }
-      })
-      this.dataform.uId = uId
-      this.dataform.pwd = pwd
-      this.dataform.deviceId = deviceId
-    }
-  }
-}
-</script>

+ 2 - 0
src/views/console/user/index改好.vue

@@ -22,6 +22,7 @@
         default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="用户名称" header-align="center" width="120px" align="center">
           <template slot-scope="scope">
@@ -198,6 +199,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isUserDelete:[],isUserResetpassword:[],isUserEdit:[],isUserRole:[],isUserAdd:[],
       tableKey: 0,
       list: [{ sqlname: '', id: 0, sqlstr: '' }],

+ 2 - 1
src/views/cost/budget/index.vue

@@ -37,6 +37,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -162,7 +163,7 @@ export default {
   directives: { waves },
   data() {
     return {
-
+      myHeight:document.documentElement.clientHeight - 85- 200,
       // 校验规则
       rules: {
         pastureId: [{ required: true, message: '必填', trigger: 'blur' }],

+ 27 - 49
src/views/cost/diesel/index.vue

@@ -23,11 +23,11 @@
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
       <div>
         <el-button v-if="isDieselAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
-        <el-button v-if="isDieselExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownloadTemp">导出</el-button>
+        <el-button v-waves class="filter-item" type="info" icon="el-icon-tickets" @click="handleDownloadTemp">导出模板</el-button>
+        <el-button v-if="isDieselExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">数据导出</el-button>
         <el-upload style="display: inline-block;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImportExcel" :on-success="handleImportExcelSuccess">
           <el-button v-if="isRetreatImport" v-waves class="filter-item" type="warning" icon="el-icon-upload2" @click="form_search">导入</el-button>
         </el-upload>
-        <el-button v-if="isDieselExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">数据导出</el-button>
         <el-button class="filter-item" type="danger" icon="el-icon-download" @click="form_delete">删除</el-button>
       </div>
     </div>
@@ -45,6 +45,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort1"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -258,7 +259,7 @@
               <span>{{ scope.row.endAmount }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="用量" sortable prop="waterConsumption" min-width="110px" align="center">
+          <el-table-column label="用量(升)" sortable prop="waterConsumption" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.waterConsumption }}</span>
             </template>
@@ -323,6 +324,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       isDieselUpdate: [],
       isDieselDel: [],
@@ -471,7 +473,7 @@ export default {
     uploadData() {
       return {
         name: 'importDiesel',
-        importParams: '牧场,油卡编号,设备名称,设备编号,加油日期,加油量(L),单价,录入人,加油人,加油工班,备注',
+        importParams: '牧场,油卡编号,设备名称,设备编号,加油日期,加油量(),单价,录入人,加油人,加油工班,备注',
         sheetname: 'SheetJS'
       }
     },
@@ -621,7 +623,27 @@ export default {
       this.temp.deptName = ''
       this.temp.pastureName = ''
       this.temp.price = ''
-    }, // 导出
+    }, 
+    
+    handleDownloadTemp(){
+      import('@/vendor/Export2Excel').then(excel => {
+        const tHeader = [
+          '编号', '牧场', '油卡编号', '设备名称', '设备编号', '加油日期', '加油量(升)', '单价', '录入人', '加油人', '加油工班', '备注'
+        ]
+        const filterVal = [
+          '编号', '牧场', '油卡编号', '设备名称', '设备编号', '加油日期', '加油量(升)', '单价', '录入人', '加油人', '加油工班', '备注'
+        ]
+        const data1 = []
+        excel.export_json_to_excel({
+          header: tHeader,
+          data: data1,
+          filename: '水表',
+          autoWidth: true,
+          bookType: 'xlsx'
+        })
+      })
+    },
+    // 导出
     handleDownload() {
       this.$alert('油卡正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
       this.isPercentage = true
@@ -661,50 +683,6 @@ export default {
         })
       })
     },
-    handleDownloadTemp() {
-      this.$alert('油卡正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
-      this.isPercentage = true
-      this.percentage = 1
-      var timer = setInterval(() => {
-        this.percentage += 5
-        if (this.percentage > 95) {
-          this.percentage = 99
-          clearInterval(timer)
-        }
-        this.percentage = this.percentage
-      }, 1000)
-      this.requestParam.name = 'meteringOutfitDiesel'
-      this.requestParam.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
-      this.requestParam.parammaps.departName = this.getdataListParm.parammaps.departName
-      this.requestParam.parammaps.selTime = this.getdataListParm.parammaps.selTime
-      GetAccount(this.requestParam).then(response => {
-        if (response.data.list !== '') {
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        }
-        this.$nextTick(() => {
-              import('@/vendor/Export2Excel').then(excel => {
-                const list1 = response.data.list
-                const tHeader = [
-                  '编号', '牧场', '油卡编号', '设备名称', '设备编号', '加油日期', '加油量(L)', '单价', '录入人', '加油人', '加油工班', '备注'
-                ]
-                const filterVal = [
-                  '编号', '牧场', '油卡编号', '设备名称', '设备编号', '加油日期', '加油量(L)', '单价', '录入人', '加油人', '加油工班', '备注'
-                ]
-                const data1 = this.formatJson(filterVal, list1)
-                excel.export_json_to_excel({
-                  header: tHeader,
-                  data: data1,
-                  filename: '柴油',
-                  autoWidth: true,
-                  bookType: 'xlsx'
-                })
-              })
-        })
-      })
-    },
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
         filterVal.map(j => {

+ 26 - 5
src/views/cost/elec/index.vue

@@ -21,6 +21,7 @@
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
       <div>
         <el-button v-if="isElecAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
+        <el-button v-waves class="filter-item" type="info" icon="el-icon-tickets" @click="handleDownloadTemp">导出模板</el-button>
         <el-button v-if="isElecExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">导出</el-button>
         <el-upload style="display: inline-block;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImportExcel" :on-success="handleImportExcelSuccess">
           <el-button v-if="isElecImport" v-waves class="filter-item" type="warning" icon="el-icon-upload2" @click="form_search">导入</el-button>
@@ -42,6 +43,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort1"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -83,7 +85,7 @@
           <span>{{ scope.row.endAmount }}</span>
         </template>
       </el-table-column> -->
-      <el-table-column label="当天用电量" sortable prop="elecConsumption" width="80px" align="center">
+      <el-table-column label="当天用电量(度)" sortable prop="elecConsumption" width="80px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.elecConsumption }}</span>
         </template>
@@ -168,7 +170,7 @@
         </el-row>
         <el-row>
           <el-col :span="8">
-            <el-form-item label="用量:" prop="consumption">
+            <el-form-item label="用量(度):" prop="consumption">
               <el-input ref="consumption" v-model="temp.consumption" @blur="handleBlurConsumption" />
             </el-form-item>
           </el-col>
@@ -252,7 +254,7 @@
               <span>{{ scope.row.endAmount }}</span>
             </template>
           </el-table-column> -->
-          <el-table-column label="用量" sortable prop="waterConsumption" min-width="110px" align="center">
+          <el-table-column label="用量(度)" sortable prop="waterConsumption" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.waterConsumption }}</span>
             </template>
@@ -319,6 +321,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       isElecAdd: [],
       isElecExport: [],
@@ -473,7 +476,7 @@ export default {
     uploadData() {
       return {
         name: 'insertElecsMeasure',
-        importParams: '牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注',
+        importParams: '牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量(度),本次值,单价,录入人,备注',
         sheetname: 'SheetJS'
       }
     },
@@ -535,6 +538,24 @@ export default {
         }
       }, 0)
     },
+    handleDownloadTemp(){
+      import('@/vendor/Export2Excel').then(excel => {
+        const tHeader = [
+          '编号', '牧场', '表名称', '表编号', '抄表日期', '用量(度)', '单价', '录入人', '备注'
+        ]
+        const filterVal = [
+          '编号', '牧场', '表名称', '表编号', '抄表日期2', '用量', '单价2', '录入人', '备注2'
+        ]
+        const data1 = []
+        excel.export_json_to_excel({
+          header: tHeader,
+          data: data1,
+          filename: '电表',
+          autoWidth: true,
+          bookType: 'xlsx'
+        })
+      })
+    },
     handleDownload() {
       /*       this.requestParam.name = 'meteringOutfit'
       this.requestParam.returntype = 'xlsx'
@@ -574,7 +595,7 @@ export default {
           import('@/vendor/Export2Excel').then(excel => {
             const list1 = response.data.list
             const tHeader = [
-              '编号', '牧场', '表名称', '表编号', '抄表日期', '用量', '单价', '录入人', '备注'
+              '编号', '牧场', '表名称', '表编号', '抄表日期', '用量(度)', '单价', '录入人', '备注'
             ]
             const filterVal = [
               '编号', '牧场', '表名称', '表编号', '抄表日期2', '用量', '单价2', '录入人', '备注2'

+ 2 - 0
src/views/cost/gas/index.vue

@@ -40,6 +40,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort1"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -238,6 +239,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       isGasAdd: [], isGasExport: [], isGasImport: [], isGasModify: [], formNumberSearchList: [], formNameSearchList: [],
       requestParam: { name: 'insertGas', offset: 0, pagecount: 0, parammaps: {}},

+ 2 - 0
src/views/cost/steam/index.vue

@@ -41,6 +41,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort1"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -318,6 +319,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       isSteamAdd: [],
       isSteamExport: [],

+ 27 - 6
src/views/cost/water/index.vue

@@ -21,7 +21,8 @@
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
       <div>
         <el-button v-if="isWaterAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
-        <el-button v-if="isWaterExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">导出</el-button>
+        <el-button v-waves class="filter-item" type="info" icon="el-icon-tickets" @click="handleDownloadTemp">导出模板</el-button>
+        <el-button v-if="isWaterExport" v-waves class="filter-item" type="success" icon="el-icon-download" @click="handleDownload">导出数据</el-button>
         <el-upload style="display: inline-block;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImportExcel" :on-success="handleImportExcelSuccess">
           <el-button v-if="isWaterImport" v-waves class="filter-item" type="warning" icon="el-icon-upload2" @click="form_search">导入</el-button>
         </el-upload>
@@ -43,6 +44,7 @@
       class="elTable"
       @sort-change="tableSort1"
       @selection-change="handleSelectionChange"
+      :max-height="myHeight"
     >
       <el-table-column type="selection" width="55" />
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -75,7 +77,7 @@
           <span>{{ scope.row.useType }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="当天用水量" sortable prop="waterConsumption" width="80px" align="center">
+      <el-table-column label="当天用水量(吨)" sortable prop="waterConsumption" width="80px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.waterConsumption }}</span>
         </template>
@@ -159,7 +161,7 @@
         </el-row>
         <el-row>
           <el-col :span="8">
-            <el-form-item label="用量:" prop="consumption">
+            <el-form-item label="用量(吨):" prop="consumption">
               <el-input ref="consumption" v-model="temp.consumption" @blur="handleBlurConsumption" />
             </el-form-item>
           </el-col>
@@ -244,7 +246,7 @@
               <span>{{ scope.row.endAmount }}</span>
             </template>
           </el-table-column> -->
-          <el-table-column label="用量" sortable prop="waterConsumption" min-width="110px" align="center">
+          <el-table-column label="用量(吨)" sortable prop="waterConsumption" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.waterConsumption }}</span>
             </template>
@@ -308,6 +310,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       isWaterAdd: [],
       isWaterExport: [],
@@ -465,7 +468,7 @@ export default {
     uploadData() {
       return {
         name: 'insertWatersMeasure',
-        importParams: '牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量,本次值,单价,录入人,备注',
+        importParams: '牧场,表名称,表编号,上次抄表日期,上次值,抄表日期,用量(吨),本次值,单价,录入人,备注',
         sheetname: 'SheetJS'
       }
     },
@@ -528,6 +531,24 @@ export default {
         }
       }, 0)
     },
+    handleDownloadTemp(){
+      import('@/vendor/Export2Excel').then(excel => {
+        const tHeader = [
+          '编号', '牧场', '表名称', '表编号', '抄表日期', '用量(吨)', '单价', '录入人', '备注'
+        ]
+        const filterVal = [
+          '编号', '牧场', '表名称', '表编号', '抄表日期2', '用量', '单价2', '录入人', '备注2'
+        ]
+        const data1 = []
+        excel.export_json_to_excel({
+          header: tHeader,
+          data: data1,
+          filename: '水表',
+          autoWidth: true,
+          bookType: 'xlsx'
+        })
+      })
+    },
     // 导出
     handleDownload() {
       this.$alert('水表正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
@@ -562,7 +583,7 @@ export default {
             }
 
             const tHeader = [
-              '编号', '牧场', '表名称', '表编号', '抄表日期', '用量', '单价', '录入人', '备注'
+              '编号', '牧场', '表名称', '表编号', '抄表日期', '用量(吨)', '单价', '录入人', '备注'
             ]
             const filterVal = [
               '编号', '牧场', '表名称', '表编号', '抄表日期2', '用量', '单价2', '录入人', '备注2'

+ 23 - 21
src/views/custom/allot/index.vue

@@ -36,6 +36,7 @@
       class="elTable"
       @selection-change="change_table_selection"
       @current-change="handleCurrentChange"
+      :max-height="myHeight"
     >
     <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -65,7 +66,7 @@
       </el-table-column>
       <el-table-column label="调拨日期" sortable prop="creatTime" min-width="80px" align="center" />
       <el-table-column label="调拨状态" min-width="80px" align="center" :formatter="statue" />
-      
+
       <el-table-column   prop="sapStatus" label="sap上传状态" min-width="80px" align="center">
               <template slot-scope="scope">
                 <span v-show ="scope.row.sapStatus == 2">上传失败</span>
@@ -437,6 +438,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isSap:1,
       isSrm:1,
       selectList: [],
@@ -559,16 +561,16 @@ export default {
   },
 
   watch: {
- 
+
     listAdd: {
       deep: true,
       handler: function (item) {
           this.listAdd.forEach(function(i){
             if(parseInt(i.amount) > (parseInt(i.reportery) )){
-              i.amount = parseInt(i.reportery) 
+              i.amount = parseInt(i.reportery)
             }
-                
-          })  
+
+          })
       }
     },
   },
@@ -582,12 +584,12 @@ export default {
 
     checkboxInit(row,index){
       // console.log(row)
-      
+
 
         var data1 = new Date(row.creatTime)
         var data2 = new Date('2022-10-25')
         if(data1 > data2){ return 1 } else {return 0}
-  
+
     },
 
     //监听 - 表格 - 勾选
@@ -596,7 +598,7 @@ export default {
       console.log('勾选数据selectList', this.selectList)
     },
     sapUpload(){
-      const that = this 
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
       var send_data = this.selectList
 
@@ -613,7 +615,7 @@ export default {
          that.isSap = 0
          SapTrans(send_data).then(response => {
               console.log('response', response)
-                
+
               if (response.msg !== 'fail') {
                 that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
                 that.selectList = []
@@ -622,8 +624,8 @@ export default {
                   that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
                 }
             })
- 
-            
+
+
       } else {
 
         that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
@@ -634,8 +636,8 @@ export default {
             }, 3000)
 
 
-    
-    
+
+
       //  if(true){
       //sapStatus 0 或没有 未同步,1 同步成功,2同步失败
       // if(this.currentRow.sapStatus){
@@ -647,11 +649,11 @@ export default {
       //     var send_data = {
       //             "code":applyCode,
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
       //       SapTrans(send_data).then(response => {
       //         console.log('response', response)
-                
+
       //         if (response.msg !== 'fail') {
       //           that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
       //           that.get_table_data()
@@ -663,18 +665,18 @@ export default {
       //   //如果有这个值说明已经上传了,不用上传
       // } else {
       //   console.log("currentRow sapStatus没有这个值")
- 
-         
-  
+
+
+
       //     console.log("applyCode",applyCode)
       //       var send_data = {
       //             "code":applyCode,
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
       //       SapTrans(send_data).then(response => {
       //         console.log('response', response)
-                
+
       //         if (response.msg !== 'fail') {
       //           that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
       //           that.get_table_data()
@@ -682,7 +684,7 @@ export default {
       //             that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
       //           }
       //       })
- 
+
       // }
 
     },

+ 4 - 1
src/views/custom/basic/index.vue

@@ -63,6 +63,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @selection-change="handleSelectionChange2"
+          :max-height="myHeight"
         >
           <el-table-column type="selection"  width="55"></el-table-column>
           <el-table-column label="序号" align="center" type="index" width="50px">
@@ -184,6 +185,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @selection-change="handleSelectionChange"
+          :max-height="myHeight"
         >
           <el-table-column type="selection" width="55" />
           <el-table-column label="序号" align="center" type="index" width="50px">
@@ -873,7 +875,8 @@ export default {
           returntype: 'Map',
           parammaps: {}
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 250
       // fileList: [],
       // headers1: {
       //   optname: 'insertcustompic',

+ 10 - 5
src/views/custom/contractManagement/index.vue

@@ -47,6 +47,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -112,6 +113,7 @@
             class="elTable table-fixed"
             @sort-change="tableSort1"
             @selection-change="handleSelectionChange"
+            :max-height="myHeight"
           >
             <el-table-column type="selection"  width="55" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -174,6 +176,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -252,6 +255,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort2"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -1283,7 +1287,8 @@ export default {
           name: 'providerPactListV2', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
           parammaps: {}
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 250
     }
   },
   computed: {
@@ -1876,10 +1881,10 @@ export default {
         "name": "updateBigcontractIsToSap",
                         "type": "e",
                         "parammaps": {
-                            "contractCode": this.contractCodese 
+                            "contractCode": this.contractCodese
                         }
       }
-      
+
         ]
     }
 
@@ -1894,9 +1899,9 @@ export default {
               duration: 2000
             })
           } else {
-     
+
             this.getTab1List2()
-       
+
             this.$notify({
               title: '',
               message: '禁用成功',

+ 6 - 1
src/views/custom/contractManagement/index1.vue

@@ -47,6 +47,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -109,6 +110,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort1"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -170,6 +172,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -248,6 +251,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort2"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -1277,7 +1281,8 @@ export default {
           name: 'providerPactListV2', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
           parammaps: {}
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   computed: {

+ 6 - 1
src/views/custom/contractManagement/index2.vue

@@ -47,6 +47,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -109,6 +110,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort1"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -170,6 +172,7 @@
             :row-style="rowStyle"
             :cell-style="cellStyle"
             class="elTable table-fixed"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -248,6 +251,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort2"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -1277,7 +1281,8 @@ export default {
           name: 'providerPactListV2', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
           parammaps: {}
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   computed: {

+ 31 - 6
src/views/custom/custom/index.vue

@@ -70,6 +70,7 @@
       :cell-class-name="tableCellClassName"
       @cell-click="cellClick"
       @sort-change="tableSort1"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -124,12 +125,12 @@
         <template slot-scope="scope">
           <span>{{ scope.row.daysInStorage }}</span>
         </template>
-      </el-table-column> 
+      </el-table-column>
       <el-table-column label="闲置备件" sortable prop="price" min-width="60px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.xzparts }}</span>
         </template>
-      </el-table-column> 
+      </el-table-column>
       <el-table-column label="最高库存" sortable prop="maxRepertory" min-width="100px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.maxRepertory }}</span>
@@ -164,7 +165,7 @@
       <el-table-column label="操作" align="center" width="200px" class-name="small-padding fixed-width" fixed="right">
         <template slot-scope="{row}">
           <el-button v-if="isCustomSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <el-button type="success" style="width:70px" size="mini" @click="handleChange(row)">库位变更</el-button>
+          <el-button v-if="isCustomChange && (row.pastureId == pastureid || pastureid == 18)" type="success" style="width:70px" size="mini" @click="handleChange(row)">库位变更</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -294,6 +295,7 @@
                 :cell-class-name="tableCellClassName"
                 @cell-click="cellClick"
                 @sort-change="tableSort2"
+                :max-height="myHeight"
               >
                 <el-table-column label="序号" width="100px" align="center" type="index">
                   <template slot-scope="scope">
@@ -334,6 +336,7 @@
                 :cell-class-name="tableCellClassName"
                 @cell-click="cellClick"
                 @sort-change="tableSort2"
+                :max-height="myHeight"
               >
                 <el-table-column label="序号" width="100px" align="center" type="index">
                   <template slot-scope="scope">
@@ -372,6 +375,7 @@
                 :cell-class-name="tableCellClassName"
                 @cell-click="cellClick"
                 @sort-change="tableSort2"
+                :max-height="myHeight"
               >
                 <el-table-column label="序号" width="100px" align="center" type="index">
                   <template slot-scope="scope">
@@ -409,6 +413,7 @@
                 :cell-class-name="tableCellClassName"
                 @cell-click="cellClick"
                 @sort-change="tableSort2"
+                :max-height="myHeight"
               >
                 <el-table-column label="序号" width="100px" align="center" type="index">
                   <template slot-scope="scope">
@@ -446,6 +451,7 @@
                 :cell-class-name="tableCellClassName"
                 @cell-click="cellClick"
                 @sort-change="tableSort2"
+                :max-height="myHeight"
               >
                 <el-table-column label="序号" width="100px" align="center" type="index">
                   <template slot-scope="scope">
@@ -553,6 +559,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      pastureid:Cookies.get('pastureid'),
       disabled: true,
       activeName: 'first',
       color: '#409EFF',
@@ -686,7 +693,7 @@ export default {
       // },
       // ------------------------------------------
       customList: [{ id: 0, name: '全部库存' }, { id: 1, name: '库存不为零' }],
-      isCustomTemplate: [], isCustomImport: [], isCustomExport: [], isCustomSee: [],
+      isCustomTemplate: [], isCustomImport: [], isCustomExport: [], isCustomSee: [],isCustomChange:[],
       findAllProvider: [],
       findAllAssetType: [],
       findAllPasture: [],
@@ -810,7 +817,8 @@ export default {
       },
       nodeKey: 'id',
       defaultCheckedKeys: [],
-      placeholder: '请选择备件类别'
+      placeholder: '请选择备件类别',
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   computed: {
@@ -883,6 +891,11 @@ export default {
       const CustomSee = 'customs:custom:see'
       const isCustomSee = checkButtons(this.$store.state.user.buttons, CustomSee)
       this.isCustomSee = isCustomSee
+      // 库位变更
+      const CustomChange = 'customs:custom:change'
+      const isCustomChange = checkButtons(this.$store.state.user.buttons, CustomChange)
+      this.isCustomChange = isCustomChange
+
     },
     getTypeList() {
       // this.listLoading = true
@@ -897,6 +910,18 @@ export default {
       })
     },
     get_select_list() {
+      let roles = JSON.parse(sessionStorage.getItem('roles'))
+      let is_manage = false
+      for(let i=0;i<roles.length;i++){
+        if(roles[i].id == 11 || roles[i].id == 31){
+          is_manage = true
+        }
+      }
+      if(is_manage == true){
+        this.requestParams[2].parammaps.id = '18'
+      }else{
+        this.requestParams[2].parammaps.id = Cookies.get('pastureid')
+      }
       GetDataByNames(this.requestParams).then(response => {
         this.findAllProvider = response.data.findAllProviderByCt.list
         this.findAllAssetType = response.data.findAllAssetType.list
@@ -1148,7 +1173,7 @@ export default {
             const filterVal = [
               'pastureName', 'partName', 'partCode', 'specification', 'providerName', 'unit', 'brand', 'price', 'reportery', 'daysInStorage','minRepertory', 'maxRepertory', 'location', 'statue', 'isZeroStock']
             const data1 = this.formatJsonTemp(filterVal, list1)
-       
+
             excel.export_json_to_excel({
               header: tHeader,
               data: data1,

+ 2 - 0
src/views/custom/inventory/index.vue

@@ -45,6 +45,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -446,6 +447,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       // 新增
       isCustomAdd: [],
       // 导入

+ 29 - 26
src/views/custom/outStock/index.vue

@@ -65,6 +65,7 @@
           @sort-change="tableSort"
           @selection-change="change_table_selection"
           @current-change="handleCurrentChange"
+          :max-height="myHeight"
         >
         <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
           <el-table-column label="序号" align="center" type="index" width="50px">
@@ -113,7 +114,7 @@
               <template slot-scope="scope">
                 <span v-if="scope.row.ProofCode">已上传</span>
                 <span v-else>未上传</span>
-            
+
               </template>
             </el-table-column>
             <el-table-column   prop="sterilisation" label="冲销状态" min-width="80px" align="center">
@@ -122,7 +123,7 @@
                 <span v-else>未冲销</span>
               </template>
             </el-table-column>
-            
+
           <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
             <template slot-scope="{row}">
               <el-button v-if="isOutStockSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
@@ -181,6 +182,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -928,7 +930,7 @@
             </template>
           </el-table-column>
 
-          
+
           <el-table-column :key="19" label="备注" prop="sumPrice" align="center" min-width="80">
             <template slot-scope="scope">
               <span>{{ scope.row.note }}</span>
@@ -1024,6 +1026,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       isSap:1,
       isSrm:1,
       selectList: [],
@@ -1340,7 +1343,7 @@ export default {
   },
 
   watch: {
- 
+
     listAdd: {
       deep: true,
       handler: function (item) {
@@ -1352,10 +1355,10 @@ export default {
             if(parseInt(i.checkoutNumber) > parseInt(i.reportery)){
               i.checkoutNumber = i.reportery
             }
-                
+
           })
 
-            
+
       }
     },
 
@@ -1390,14 +1393,14 @@ export default {
 
     checkboxInit(row,index){
       // console.log(row)
-      if(row.ProofCode){ 
-        return 0 
+      if(row.ProofCode){
+        return 0
       } else {
 
         var data1 = new Date(row.creatTime)
         var data2 = new Date('2022-10-25')
         if(data1 > data2){ return 1 } else {return 0}
- 
+
       }
     },
 
@@ -1408,7 +1411,7 @@ export default {
     },
 
     sapUpload(){
-      const that = this 
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
       var send_data = this.selectList
 
@@ -1425,18 +1428,18 @@ export default {
          that.isSap = 0
          SapUse(send_data).then(response => {
               console.log('response', response)
-                
+
               if (response.msg !== 'fail') {
                 that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
                 that.selectList = []
                 that.get_table_data()
-                
+
                 } else {
                   that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
                 }
             })
- 
-            
+
+
       } else {
 
         that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
@@ -1448,35 +1451,35 @@ export default {
 
 
 
-      
-    
+
+
       // if(this.currentRow.ProofCode){
       //    console.log("currentRow ProofCode 这个值说明已经上传了,不用上传")
       //   //如果有这个值说明已经上传了,不用上传
       // } else {
       //   console.log("currentRow ProofCode没有这个值")
       //   console.log("currentRow ProofCode",this.currentRow.ProofCode)
-      //     const useForm = this.currentRow.useForm 
-      //     const creatTime = this.currentRow.creatTime 
+      //     const useForm = this.currentRow.useForm
+      //     const creatTime = this.currentRow.creatTime
       //     console.log("useForm",useForm)
       //       var send_data = {
       //             "useForm":useForm,
       //             "receiveTime":creatTime,
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
       //       SapUse(send_data).then(response => {
       //         console.log('response', response)
-                
+
       //         if (response.msg !== 'fail') {
       //           that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
       //           that.get_table_data()
-                
+
       //           } else {
       //             that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
       //           }
       //       })
- 
+
       // }
 
     },
@@ -1882,7 +1885,7 @@ export default {
 
       // this.createTemp.departmentId = item.departmentId
       this.$set(this.createTemp, "departmentId", item.departmentId)
-      
+
       this.createTemp.bid = item.id
       this.createTemp.applicatId = item.empId
       this.orderPart.applyCode = item.applyCode
@@ -2708,12 +2711,12 @@ export default {
 
             if (response.data.list !== null) {
               for (let i = 0; i < response.data.list.length; i++) {
-                
+
                 if(response.data.list[i].sterilisation == 1){
                   this.$set(response.data.list[i], 'sterilisation', "已冲销")
                 } else {
                   this.$set(response.data.list[i], 'sterilisation', "未冲销")
-                } 
+                }
               }
             }
 
@@ -3129,4 +3132,4 @@ export default {
     line-height: 0;
   }
 
-</style>
+</style>

+ 3 - 0
src/views/custom/outStock/index1.vue

@@ -59,6 +59,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -155,6 +156,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -987,6 +989,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       totalImportInfo: 0,
       listLoadingImportInfo: true,
       listImportInfo: [],

+ 6 - 5
src/views/custom/purchase/index.vue

@@ -29,6 +29,7 @@
             class="elTable table-fixed"
             @cell-click="cellClick"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -260,7 +261,7 @@
             class="elTable table-fixed" 
             @sort-change="tableSort"
             @current-change="handleCurrentChange"
-        
+            :max-height="myHeight"
           >
          
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -335,7 +336,6 @@
                 :row-style="rowStyle"
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
-                
               >
              
                 <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -620,6 +620,7 @@
             class="elTable table-fixed"
             @sort-change="tableSort"
             @selection-change="change_table_selection"
+            :max-height="myHeight"
           >
           <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -877,6 +878,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -993,6 +995,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -1099,8 +1102,6 @@
                 </el-row>
               </el-form>
               <el-table
-               
-             
                 element-loading-text="给我一点时间"
                 :data="listSee5"
                 border
@@ -1293,7 +1294,6 @@
         </el-form>
  
          <el-table
-        
           element-loading-text="给我一点时间"
           :data="listAdd5"
           border
@@ -1408,6 +1408,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSap:1,
       isSrm:1,
       selectList: [],

+ 4 - 2
src/views/custom/purchase/index1.vue

@@ -21,6 +21,7 @@
             class="elTable table-fixed"
             @cell-click="cellClick"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -252,7 +253,7 @@
             class="elTable table-fixed" 
             @sort-change="tableSort"
             @current-change="handleCurrentChange"
-        
+            :max-height="myHeight"
           >
          
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -327,7 +328,6 @@
                 :row-style="rowStyle"
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
-                
               >
              
                 <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -868,6 +868,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -986,6 +987,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSap:1,
       isSrm:1,
       selectList: [],

+ 6 - 2
src/views/custom/purchase/index2.vue

@@ -29,6 +29,7 @@
             class="elTable table-fixed"
             @cell-click="cellClick"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -260,7 +261,7 @@
             class="elTable table-fixed" 
             @sort-change="tableSort"
             @current-change="handleCurrentChange"
-        
+            :max-height="myHeight"
           >
          
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -335,7 +336,7 @@
                 :row-style="rowStyle"
                 :cell-style="cellStyle"
                 class="elTable table-fixed"
-                
+                :max-height="myHeight"
               >
              
                 <el-table-column label="序号" align="center" type="index" width="50px" />
@@ -620,6 +621,7 @@
             class="elTable table-fixed"
             @sort-change="tableSort"
             @selection-change="change_table_selection"
+            :max-height="myHeight"
           >
           <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
             <el-table-column label="序号" align="center" type="index" width="50px">
@@ -876,6 +878,7 @@
             :cell-style="cellStyle"
             class="elTable table-fixed"
             @sort-change="tableSort"
+            :max-height="myHeight"
           >
             <el-table-column label="序号" align="center" type="index" width="50px">
               <template slot-scope="scope">
@@ -994,6 +997,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSap:1,
       isSrm:1,
       selectList: [],

+ 11 - 9
src/views/custom/receive/index.vue

@@ -47,6 +47,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -543,6 +544,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       findAllPasture: [], findAllDepart: [], findAllEmploye: [], createDepartList: [], edit: 0,
       requestParams: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
@@ -638,33 +640,33 @@ export default {
   },
 
   watch: {
- 
+
     listAdd: {
       deep: true,
       handler: function (item) {
-          
 
-     
+
+
 
           this.listAdd.forEach(function(i){
 
             if(parseInt(i.amount) > parseFloat(i.reportery)){
               i.amount = i.reportery
             }
-            
+
           })
- 
 
 
-          
 
-         
+
+
+
       }
     },
 
 
-    
- 
+
+
   },
 
   created() {

+ 11 - 9
src/views/custom/receive/index1.vue

@@ -47,6 +47,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -543,6 +544,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       findAllPasture: [], findAllDepart: [], findAllEmploye: [], createDepartList: [], edit: 0,
       requestParams: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
@@ -638,33 +640,33 @@ export default {
   },
 
   watch: {
- 
+
     listAdd: {
       deep: true,
       handler: function (item) {
-          
 
-     
+
+
 
           this.listAdd.forEach(function(i){
 
             if(parseInt(i.amount) > parseFloat(i.reportery)){
               i.amount = i.reportery
             }
-            
+
           })
- 
 
 
-          
 
-         
+
+
+
       }
     },
 
 
-    
- 
+
+
   },
 
   created() {

+ 2 - 0
src/views/custom/refuse/index.vue

@@ -29,6 +29,7 @@
       :cell-style="cellStyle"
       class="elTable"
       @sort-change="tableSort"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -306,6 +307,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isOld: [],
       isOrNo: '0',
       tableKey: 0,

+ 36 - 33
src/views/custom/returngoods/index.vue

@@ -29,7 +29,7 @@
               </el-badge>
               <el-radio-button label="已处理" />
             </el-radio-group>
-            <el-button v-if="isEasSynchronization" class="filter-item" type="primary" style="float: right;" @click="handleEAS">EAS同步</el-button>
+            <el-button v-if="isEasSynchronization" class="filter-item" type="primary"  @click="handleEAS">EAS同步</el-button>
             <el-button v-if="isRetrunsap"  class="filter-item" style="margin-left: 10px;" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
           </div>
         </div>
@@ -48,6 +48,7 @@
           class="elTable table-fixed"
           @selection-change="change_table_selection"
           @current-change="handleCurrentChange"
+          :max-height="myHeight"
         >
         <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
           <el-table-column label="序号" align="center" type="index" width="50px">
@@ -86,7 +87,7 @@
               <template slot-scope="scope">
                 <span v-if="scope.row.ProofCode">已上传</span>
                 <span v-else>未上传</span>
-            
+
               </template>
             </el-table-column>
           <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
@@ -138,6 +139,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -281,11 +283,11 @@
                 <el-radio-group v-model="createTemp.laidType" @change="changeStorageType">
                   <el-radio   v-model="createTemp.laidType" :label="0"  >寄售退货</el-radio>
                   <el-radio   v-model="createTemp.laidType" :label="1"  >自购件退货</el-radio>
-             
+
                 </el-radio-group>
               </el-form-item>
             </el-col>
-            
+
 
           </el-row>
 
@@ -392,7 +394,7 @@
               <span v-show="No2">{{ scope.row.refundNumber }}</span>
             </template>
 
- 
+
           </el-table-column>
           <el-table-column label="单价" min-width="110px" align="center" valign="middle">
             <template slot-scope="scope">
@@ -667,10 +669,11 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       isSap:1,
       isSrm:1,
       selectList: [],
-      isRetrunsap: [], 
+      isRetrunsap: [],
       currentRow:{},
       // 权限
       isReturngoodsAdd: [], isReturngoodsTemplate: [], isReturngoodsImport: [], isReturngoodsExport: [], isReturngoodsSee: [], isReturngoodsDelete: [], isReturngoodsExamineZG: [], isReturngoodsExamineCG: [], isReturngoodsUpdate: [],
@@ -891,22 +894,22 @@ export default {
   },
 
   watch: {
- 
+
     listAdd: {
       deep: true,
       handler: function (item) {
-   
+
           this.listAdd.forEach(function(i){
             if(parseInt(i.refundNumber) > parseInt(i.reportery)){
               i.refundNumber = i.reportery
             }
-               
+
           })
 
-           
+
       }
     },
- 
+
   },
 
 
@@ -925,16 +928,16 @@ export default {
 
     changeStorageType(val) {
       console.log('入库方式', val)
- 
+
       if (val === 0) { // No1寄售备件 No2 采购
         this.No2 = false
         this.No1 = true
-  
+
       } else if (val === 1) {
         this.No2 = true
         this.No1 = false
-    
-      }  
+
+      }
 
       this.listAdd = []
     },
@@ -1021,7 +1024,7 @@ export default {
     get_auto_buttons() {
 
 
-      
+
       const Retrunsap = 'customs:returngoods:sap'
       const isRetrunsap = checkButtons(this.$store.state.user.buttons, Retrunsap)
       this.isRetrunsap = isRetrunsap
@@ -1241,17 +1244,17 @@ export default {
 
     checkboxInit(row,index){
       // console.log(row)
-      if(row.ProofCode){ 
-        return 0 
+      if(row.ProofCode){
+        return 0
       } else {
 
         var data1 = new Date(row.createTime1)
         var data2 = new Date('2022-10-25')
         if(data1 > data2){ return 1 } else {return 0}
- 
+
       }
 
- 
+
     },
 
     //监听 - 表格 - 勾选
@@ -1261,7 +1264,7 @@ export default {
     },
 
     sapUpload(){
-      const that = this 
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
       var send_data = this.selectList
 
@@ -1278,18 +1281,18 @@ export default {
          that.isSap = 0
          SapRef(send_data).then(response => {
               console.log('response', response)
-                
+
               if (response.msg !== 'fail') {
                 that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
                 that.selectList = []
                 that.get_table_data()
-                
+
                 } else {
                   that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
                 }
             })
- 
-            
+
+
       } else {
 
         that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
@@ -1300,7 +1303,7 @@ export default {
             }, 3000)
 
 
-     
+
 
       //  if(true){
       // if(this.currentRow.ProofCode){
@@ -1309,27 +1312,27 @@ export default {
       // } else {
       //   console.log("currentRow ProofCode没有这个值")
       //   console.log("currentRow ProofCode",this.currentRow.ProofCode)
-      //     const id = this.currentRow.id 
- 
+      //     const id = this.currentRow.id
+
       //     console.log("id",id)
       //       var send_data = {
       //             "id":id,
- 
+
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
       //       SapRef(send_data).then(response => {
       //         console.log('response', response)
-                
+
       //         if (response.msg !== 'fail') {
       //           that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
       //           that.get_table_data()
-                
+
       //           } else {
       //             that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
       //           }
       //       })
- 
+
       // }
 
     },

+ 4 - 1
src/views/custom/returngoods/index1.vue

@@ -29,7 +29,7 @@
               </el-badge>
               <el-radio-button label="已处理" />
             </el-radio-group>
-            <el-button v-if="isEasSynchronization" class="filter-item" type="primary" style="float: right;" @click="handleEAS">EAS同步</el-button>
+            <el-button v-if="isEasSynchronization" class="filter-item" type="primary" @click="handleEAS">EAS同步</el-button>
             <el-button v-if="isRetrunsap"  class="filter-item" style="margin-left: 10px;" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
           </div>
         </div>
@@ -48,6 +48,7 @@
           class="elTable table-fixed"
           @selection-change="change_table_selection"
           @current-change="handleCurrentChange"
+          :max-height="myHeight"
         >
         <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
           <el-table-column label="序号" align="center" type="index" width="50px">
@@ -138,6 +139,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -629,6 +631,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSap:1,
       isSrm:1,
       selectList: [],

+ 3 - 2
src/views/custom/saplog/index.vue

@@ -16,14 +16,14 @@
         <el-option v-for="item in types" :key="item.id" :label="item.name" :value="item.id" />
       </el-select>
       <el-button v-if="isPraseTime" class="filter-item" type="success" icon="el-icon-upload2"
-        style="position:absolute ;right:10px" @click="handleDownload">导出</el-button>
+        @click="handleDownload">导出</el-button>
     </div>
     <div v-if="isTitle" style="line-height:50px;height:50px"><b @click="goBackPasture">所有牧场</b>&gt;<span>{{
         seeTemp.pastureName
     }}</span></div>
     <el-table :key="tableKey" v-loading="listLoading" element-loading-text="给我一点时间" :data="list" border fit
       highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="tableCellStyle" class="elTable"
-      @sort-change="tableSort1">
+      @sort-change="tableSort1" :max-height="myHeight">
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
           <span>{{ scope.$index + (pageNum - 1) * pageSize + 1 }}</span>
@@ -91,6 +91,7 @@ export default {
   },
   data () {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       tableKey: 0,

+ 35 - 33
src/views/custom/storage/index.vue

@@ -49,6 +49,7 @@
           class="elTable table-fixed"
           @selection-change="change_table_selection"
           @current-change="handleCurrentChange"
+          :max-height="myHeight"
         >
         <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
 
@@ -98,7 +99,7 @@
               <template slot-scope="scope">
                 <span v-if="scope.row.ProofCode">已上传</span>
                 <span v-else>未上传</span>
-            
+
               </template>
             </el-table-column>
             <el-table-column   prop="sterilisation" label="冲销状态" min-width="80px" align="center">
@@ -145,7 +146,7 @@
           :cell-style="cellStyle"
           class="elTable table-fixed"
           @sort-change="tableSort"
-        
+          :max-height="myHeight"
         >
           <el-table-column label="序号" align="center" type="index" width="50px">
             <template slot-scope="scope">
@@ -449,7 +450,7 @@
               <span  >{{ scope.row.price }}</span>
               <!-- <el-form v-if="isPriceInput" :model="scope.row" :rules="rules">
                 <el-form-item prop="price">
-                   <el-input ref="price" v-model="scope.row.price" :disabled="storage.laidType == 0" style="margin-top:15px" />  
+                   <el-input ref="price" v-model="scope.row.price" :disabled="storage.laidType == 0" style="margin-top:15px" />
                   <el-input ref="price" v-model="scope.row.price" style="margin-top:15px" />
                 </el-form-item>
               </el-form> -->
@@ -727,6 +728,7 @@ export default {
   },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       isSap:1,
       isSrm:1,
       selectList: [],
@@ -985,8 +987,8 @@ export default {
             if(parseInt(i.reportery) > (parseInt(i.amount)-parseInt(i.receiveAmount))){
               i.reportery = parseInt(i.amount)-parseInt(i.receiveAmount)
             }
-                
-          })  
+
+          })
       }
     },
   },
@@ -1013,8 +1015,8 @@ export default {
     get_auto_buttons() {
       // 新增
 
- 
-   
+
+
       const StorageSap = 'customs:storage:sap'
       const isStorageSap = checkButtons(this.$store.state.user.buttons, StorageSap)
       this.isStorageSap = isStorageSap
@@ -1999,33 +2001,33 @@ export default {
 
     checkboxInit(row,index){
       // console.log(row)
-      if(row.ProofCode){ 
-        return 0 
+      if(row.ProofCode){
+        return 0
       } else {
 
         var data1 = new Date(row.creatTime)
         var data2 = new Date('2022-10-25')
         if(data1 > data2){ return 1 } else {return 0}
- 
+
       }
 
- 
+
     },
 
-    
+
 
     //监听 - 表格 - 勾选
     change_table_selection(val) {
       this.selectList = val
       console.log('勾选数据selectList', this.selectList)
     },
-    
+
     sapUpload(){
 
 
-      
 
-      const that = this 
+
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
 
       var send_data = this.selectList
@@ -2042,25 +2044,25 @@ export default {
          that.isSap = 0
          SapLaid(send_data).then(response => {
               console.log('response', response)
-                
+
               if (response.msg !== 'fail') {
                 that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
                 that.selectList = []
                 that.get_table_data()
 
-                
+
                 } else {
                   that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
                 }
 
-               
-              
+
+
             })
 
-           
+
 
             console.log(that.isSap)
-            
+
       } else {
 
         that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击'  , type: 'error', duration: 2000 })
@@ -2075,40 +2077,40 @@ export default {
 
 
 
-     
+
 
       // //  if(true){
       // if(this.currentRow.ProofCode){
       //   //如果有这个值说明已经上传了,不用上传
       //   console.log("currentRow ProofCode 这个值说明已经上传了,不用上传")
- 
+
       // } else {
       //   console.log("currentRow ProofCode没有这个值")
-      //     const laidCode = this.currentRow.laidCode 
-      //     const creatTime = this.currentRow.creatTime 
+      //     const laidCode = this.currentRow.laidCode
+      //     const creatTime = this.currentRow.creatTime
       //     console.log("laidCode",laidCode)
- 
+
       //       console.log("laidCode",laidCode)
       //       var send_data = {
       //             "laidCode":laidCode,
       //             "storageTime":creatTime,
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
 
       //       SapLaid(send_data).then(response => {
       //         console.log('response', response)
-                
+
       //         if (response.msg !== 'fail') {
       //           that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
       //           that.get_table_data()
-                
+
       //           } else {
       //             that.$notify({ title: '失败', message: '上传失败'  , type: 'error', duration: 2000 })
       //           }
-              
+
       //       })
- 
+
       // }
 
     },
@@ -2265,7 +2267,7 @@ export default {
               this.$set(response.data.list[i], 'sterilisation', "已冲销")
             } else {
               this.$set(response.data.list[i], 'sterilisation', "未冲销")
-            } 
+            }
           }
         }
         this.$nextTick(() => {
@@ -2624,4 +2626,4 @@ export default {
   .el-radio{
     margin-right: 5px;
   }
-</style>
+</style>

+ 12 - 10
src/views/custom/subscribe/index.vue

@@ -48,6 +48,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -100,7 +101,7 @@
           <!-- 场长 -->
           <el-button v-if="sdchangzhangshenhe  &&  row.statue == 5" style="display:inline-block" type="success" size="mini" @click="handleExamine33(row)">审核4</el-button>
           <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine33(row)">审核5</el-button>
-          
+
 
 
 
@@ -447,8 +448,8 @@
                 <!-- 采购 -->
                 <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine3(row)">审核5</el-button>
                 <el-button v-else type="success" style="display:none" @click="handleExamine3(row)">审核5</el-button>
- 
-         
+
+
               </el-form-item>
             </el-col>
           </el-row>
@@ -646,7 +647,8 @@ export default {
             empId: Cookies.get('employeid'), pastureId: Cookies.get('pastureid'), deptId: Cookies.get('departmentid')
           }
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 
@@ -1179,7 +1181,7 @@ export default {
       var reason = '未通过原因:' + this.seeTemp.workflowNote
 
 
-     
+
       // if (this.seeTemp.priceClass === 1) {
 
           if (this.seeTemp.statue === 2) {
@@ -1204,14 +1206,14 @@ export default {
             this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }, { title: '场长审核' }, { title: '采购审核' }]
             this.active = 4
 
-          
+
           }  else if (this.seeTemp.statue === 11) {
             this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson   }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核' }]
             this.active = 5
           } else if (this.seeTemp.statue === 12) {
             this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson  }, { title: '场长审核' , date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson, status: 'error', reason: reason }, { title: '采购审核' }]
             this.active = 5
- 
+
           } else if (this.seeTemp.statue === 7) {
             this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson }]
             this.active = 6
@@ -1242,13 +1244,13 @@ export default {
         //     this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },  { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason },   { title: '采购审核' }]
         //     this.active = 4
 
-       
 
 
 
 
 
-            
+
+
         //   } else if (this.seeTemp.statue === 7) {
         //     this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson },   { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson }]
         //     this.active = 6
@@ -1258,7 +1260,7 @@ export default {
         //   }
       // }
 
-      
+
     },
     getSeeList() {
       GetDataByName(this.getdataListSee).then(response => {

+ 2 - 0
src/views/custom/subscribe/index1.vue

@@ -48,6 +48,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -475,6 +476,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSubscribeAdd: [], isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [], isSubscribeExamineZG: [],
       isokDisable: false,
       findAllProvider: [],

+ 2 - 0
src/views/custom/subscribe/index2.vue

@@ -48,6 +48,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -486,6 +487,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSubscribeAdd: [], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [], isSubscribeExamineZG: [],
       isokDisable: false,
       findAllProvider: [],

+ 2 - 0
src/views/custom/subscribe/index3.vue

@@ -48,6 +48,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -507,6 +508,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 150,
       isSubscribeAdd: [], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [], isSubscribeExamineZG: [],
       isokDisable: false,
       findAllProvider: [],

+ 14 - 12
src/views/custom/writeoff/index.vue

@@ -32,6 +32,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -43,7 +44,7 @@
       <el-table-column label="物料凭证年度" min-width="150px" align="center" prop="proofYear" />
       <el-table-column label="凭证中的过账信息" min-width="150px" align="center" prop="chargeDate" />
       <el-table-column label="设备管理平台单号" min-width="150px" align="center" prop="orderNumber" />
- 
+
       <el-table-column label="是否已开票" min-width="150px" align="center" show-overflow-tooltip v-if="table1.getdataListParm.parammaps.writeoffType == '备件入库' || table1.getdataListParm.parammaps.writeoffType == '备件退货'" >
             <template slot-scope="scope">
               <span v-if="scope.row.hasTicket == 1">是</span>
@@ -153,6 +154,7 @@ export default {
   components: { Pagination },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       findAllPasture: [],
       requestParams: [
         { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
@@ -184,7 +186,7 @@ export default {
         getdataListParm: {
           name: 'getLaidProofList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
           parammaps: {
-            
+
             pastureName: Cookies.get('pasturename'),
             writeoffType:'备件入库',
             orderNumber:'',
@@ -343,7 +345,7 @@ export default {
       }, 1000)
 
       // var rowsNumberArr = []
- 
+
 
       // this.create.list.forEach(function(item){
       //   rowsNumberArr.push(item.rowNumber)
@@ -368,7 +370,7 @@ export default {
             NumberType:this.create.temp.NumberType
 
           }
-           
+
 
           if(this.create.temp.rowsNumber.length == 0){
             this.$message({  message: '请选择需要冲销的备件', type: 'warning', duration: 2000 })
@@ -389,27 +391,27 @@ export default {
 
     change_type(item) {
       console.log(item)
-      if(item == "备件入库"){ 
+      if(item == "备件入库"){
         this.table1.getdataListParm.name = 'getLaidProofList'
         this.table1.getdataListParm.parammaps.writeoffType = '备件入库'
        }
       if(item == "备件出库"){ this.table1.getdataListParm.name = 'getReturnProofList'
-      this.table1.getdataListParm.parammaps.writeoffType = '备件出库' 
+      this.table1.getdataListParm.parammaps.writeoffType = '备件出库'
     }
-      if(item == "备件退库"){ this.table1.getdataListParm.name = 'getQuitProofList' 
-      this.table1.getdataListParm.parammaps.writeoffType = '备件退库' 
+      if(item == "备件退库"){ this.table1.getdataListParm.name = 'getQuitProofList'
+      this.table1.getdataListParm.parammaps.writeoffType = '备件退库'
     }
-      if(item == "备件退货"){ this.table1.getdataListParm.name = 'getUseProofList' 
-      this.table1.getdataListParm.parammaps.writeoffType = '备件退货' 
+      if(item == "备件退货"){ this.table1.getdataListParm.name = 'getUseProofList'
+      this.table1.getdataListParm.parammaps.writeoffType = '备件退货'
     }
     },
 
     // 查看
     form_see(row) {
       this.dialogStatus = 'see'
-      
+
       this.create.temp = Object.assign({}, row)
-     
+
       console.log('row',row)
 
 

+ 2 - 0
src/views/custom/writeoff/index1.vue

@@ -29,6 +29,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -148,6 +149,7 @@ export default {
   components: { Pagination },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       requestParams: [
         { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},

+ 2 - 1
src/views/custom/writeoff/index2.vue

@@ -32,6 +32,7 @@ index copy      <el-input v-if="table1.getdataListParm.parammaps.writeoffType ==
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -118,7 +119,6 @@ index copy      <el-input v-if="table1.getdataListParm.parammaps.writeoffType ==
           :row-style="rowStyle"
           :cell-style="cellStyle"
           class="elTable"
-     
           >
       
           <el-table-column label="行号" align="center" prop="rowNumber" width="50px" />
@@ -153,6 +153,7 @@ export default {
   components: { Pagination },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       findAllPasture: [],
       requestParams: [
         { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },

+ 2 - 0
src/views/electro/electroData/index.vue

@@ -74,6 +74,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -402,6 +403,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       tableKey: 0,
       list: null,
       total: 0,

+ 14 - 11
src/views/evaluationVerification/assessment/index.vue

@@ -10,7 +10,7 @@
           <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
         </el-select>
         <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      
+
         <el-select ref="statue" v-model="judgetypeARR" style="width:300px" class="filter-item" clearable  multiple >
              <el-option v-for="item in getAssessmentList" :key="item.statue" :label="item.statue" :value="item.statue" />
         </el-select>
@@ -23,8 +23,8 @@
           style="width: 200px;"
           class="filter-item"
         />
-        
-        
+
+
 
 
         <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
@@ -48,6 +48,7 @@
         :row-style="rowStyle"
         :cell-style="cellStyle"
         class="elTable table-fixed"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -282,7 +283,7 @@
     <div v-if="List2">
       <div class="title2">
         <b class="title2-l">检查标准管理</b>
-        <a class="title2-r" @click="goBack">&lt;返回</a>
+        <a class="title2-l" style="margin-left: 20px;" @click="goBack">&lt;返回</a>
       </div>
       <div class="app-btn">
         <el-button class="filter-item" type="primary" icon="el-icon-edit" @click="form_add2">新增</el-button>
@@ -303,6 +304,7 @@
         :row-style="rowStyle"
         :cell-style="cellStyle"
         class="elTable table-fixed"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -397,6 +399,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       findAllPasture: [],
@@ -1148,7 +1151,7 @@ export default {
         }
         this.percentage = this.percentage
       }, 1000)
-     
+
       var send_data =   {
         name: 'getjudgeListByExcel',   page: 1,  offset: 1,  pagecount: 0,
         returntype: 'Map',
@@ -1159,9 +1162,9 @@ export default {
           startTime:this.getdataListParm.parammaps.startTime,
           stopTime: this.getdataListParm.parammaps.stopTime,
           empName: this.getdataListParm.parammaps.empName,
-    
+
         }
-      } 
+      }
 
       GetAccount(send_data).then(response => {
         this.listSee2 = response.data.list
@@ -1229,16 +1232,16 @@ export default {
           const excelName = '评估验证'
           table2excel(column, data, excelName)
         }
-      
+
       })
-       
 
 
-      
+
+
     },
 
 
-   
+
 
 
     handleInspectionStandard() {

+ 2 - 0
src/views/knowledgeBase/file/index.vue

@@ -62,6 +62,7 @@
         style="width: 100%;"
         class="elTable table-fixed"
         @selection-change="handleSelectionChange"
+        :max-height="myHeight"
       >
         <el-table-column type="selection" width="55" />
         <el-table-column label="序号" align="center" type="index" width="50px">
@@ -133,6 +134,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isDisableAdd: false,
       isDisableImport: true,
       // isDisableDownload: true,

+ 2 - 0
src/views/maintenance/maintain/index.vue

@@ -40,6 +40,7 @@
       :row-style="rowStyle"
       :cell-style="tableCellStyle"
       class="elTable table-fixed"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -942,6 +943,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       active: 0,
       activeList: [],
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },

+ 0 - 2194
src/views/maintenance/maintain/index1.vue

@@ -1,2194 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.upkeepCode" placeholder="保养单号" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 180px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in statues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="tableCellStyle"
-      class="elTable table-fixed"
-    >
-      <el-table-column label="序号" align="center" type="index" width="50px">
-        <template slot-scope="scope">
-          <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养单号" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="责任人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.employeName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepPerson }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养日期" sortable prop="plantime" min-width="80px" align="center" />
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="statue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="80px" align="center" :formatter="SHStatue" />
-		<el-table-column prop="img" label="保养过程" width="180" align="center">
-        <template slot-scope="scope">
-          <!-- <el-link @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }} </el-link> -->
-           <a style="border-bottom: 1px solid #333;" @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }}</a>
-          <el-link  v-if="scope.row.videoTxt == '未录制'">未录制 </el-link>
-          <el-link  v-if="scope.row.videoTxt == '已录制未上传'">已录制未上传 </el-link>
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" align="center" min-width="300" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 保养及领用-->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8 ) && row.LYStatue == '未领用' && row.statue !== 0 && isLingYong && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:80px;display:inline-block" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <!-- 完成保养 -->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8) && row.statue !== 0 && isComplete && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <!-- 保养审核 -->
-          <el-button v-if="(row.SHStatue == 2 ) && isCharge && row.useEmpId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine(row)">保养审核</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine(row)">保养审核</el-button>
-          <!-- 保养审核3 -->
-          <el-button v-if="(row.SHStatue == 5) && isLeaderCharge" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine2(row)">保养审核3</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine2(row)">保养审核3</el-button>
-          <!-- 保养审核2 -->
-          <el-button v-if="(row.SHStatue == 3) && isDepartmentCharge && (row.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine3(row)">保养审核2</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine3(row)">保养审核2</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <!-- 查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false"  v-if ="dialogFormVisible_See" width="90%">
-      <div class="app-see">
-        <div v-if="statue1" class="see">
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养单号:" prop="upkeepCode">
-                  <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="责任人:" prop="employeName">
-                  <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="保养日期:" prop="plantime">
-                  <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.active }}</span>
-              </template>
-            </el-table-column>
-          </el-table>
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in activeList"
-                    :key="index"
-                    :title="item.title"
-                    :status="item.status"
-                  >
-                    <template slot="description">
-                      <div class="step-row">
-                        <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                        <div>{{ item.reason }}</div>
-                        <div>{{ item.scores }}</div>
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <!-- 完成保养 -->
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <!-- 保养审核 -->
-                  <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine()">保养审核</el-button>
-                  <!-- 保养审核3 -->
-                  <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">保养审核3</el-button>
-                  <!-- 保养审核2 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="width:70px;display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                  <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="statue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="保养信息" name="first">
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养单号:" prop="upkeepCode">
-                      <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="责任人:" prop="employeName">
-                      <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养人:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="保养日期:" prop="plantime">
-                      <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="使用人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="12">
-                    <el-form-item label="保养内容:" prop="upNameLevel">
-                      <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingMaintenanceContent"
-                element-loading-text="给我一点时间"
-                :data="listMaintenanceContent"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable table-fixed"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="部位" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="项目" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.program }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="标准" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.standard }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="执行动作" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.active }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <el-form-item label="流程进度" />
-                    <el-steps :active="active" align-center finish-status="success">
-                      <el-step
-                        v-for="(item,index) in activeList"
-                        :key="index"
-                        :title="item.title"
-                        :status="item.status"
-                      >
-                        <template slot="description">
-                          <div class="step-row">
-                            <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <el-form-item label="操作:">
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <!-- 完成保养 -->
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <!-- 保养审核 -->
-                      <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine()">保养审核</el-button>
-                      <!-- 保养审核3 -->
-                      <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine2()">保养审核3</el-button>
-                      <!-- 保养审核2 -->
-                      <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-form ref="collarUseTemp" :rules="rules" :model="collarUseTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="6">
-                    <el-form-item label="领用单号:" prop="applyCode">
-                      <span>{{ collarUseTemp.applyCode }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用部门:" prop="departmentName">
-                      <span>{{ collarUseTemp.departmentName }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用日期:" prop="createDate">
-                      <span>{{ collarUseTemp.createDate }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用状态:" prop="statueName">
-                      <span>{{ collarUseTemp.statueName }}</span>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="reportery" label="库存数" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.reportery }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="amount" label="领用数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.amount }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="用途" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.note }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="acturalAmount" label="录入数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="close_diago()">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养及领用 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ReceivingSpareParts" :close-on-click-modal="false" width="90%">
-      <el-tabs v-model="activeName2">
-        <el-tab-pane label="保养" name="first">
-          <el-form
-            ref="maintainTemp"
-            :rules="rules"
-            :model="maintainTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="employeeId">
-                  <el-select v-model="maintainTemp.employeeId" placeholder="使用人" class="filter-item" style="width: 120px;">
-                    <el-option v-for="item in empdeptList" :key="item.id" :label="item.empname" :value="item.id" />
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="maintainTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.active" class="filter-item" style="width: 80%;">
-                  <el-option v-for="item in getDictByName" :key="item.id" :label="item. label" :value="item.value" />
-                </el-select>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-tab-pane>
-        <el-tab-pane label="备件领用" name="second">
-          <div class="app-receivingSpareParts">
-            <el-form
-              ref="receivingTemp"
-              :rules="rules"
-              :model="receivingTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="领用单号:" prop="applyCode">
-                    <span>{{ receivingTemp.applyCode }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用部门:" prop="departmentName">
-                    <span>{{ receivingTemp.departmentName }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用日期:" prop="createDate">
-                    <span>{{ receivingTemp.createDate }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-form-item label="所需备件:" prop="partCode">
-                  <el-autocomplete
-                    v-model="receivingTemp.partCode"
-                    value-key="name"
-                    class="inline-input"
-                    :fetch-suggestions="sparePartSearch"
-                    placeholder="请输入备件编号或备件名称或备件规格"
-                    style="width:100%"
-                    @select="handleSelectSparePart"
-                  >
-                    <template slot-scope="{ item }">
-                      <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                      |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                      |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    </template>
-                  </el-autocomplete>
-                </el-form-item>
-              </el-row>
-            </el-form>
-            <el-table
-              :key="tableKey"
-              v-loading="listLoadingCollarUse"
-              element-loading-text="给我一点时间"
-              :data="listCollarUse"
-              border
-              fit
-              highlight-current-row
-              style="width: 100%;"
-              :row-style="rowStyle"
-              :cell-style="cellStyle"
-              class="elTable"
-            >
-              <!-- table表格 -->
-              <el-table-column label="序号" align="center" type="index" width="50px">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件编号" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="库存数" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.reportery }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用数量" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="amount">
-                      <el-input ref="amount" v-model="scope.row.amount" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="用途" prop="note" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="note">
-                      <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-                <template slot-scope="{row}">
-                  <a class="del" @click="sparePartsDelete(row)">删除</a>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer" class="dialog-footer" style="bottom: 5px">
-        <el-button v-if="activeName2=='first'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData1()">确认</el-button>
-        <el-button v-if="activeName2=='second'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_ReceivingSpareParts = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 完成保养 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_maintainComplete" :close-on-click-modal="false" width="50%">
-      <div class="maintainComplete">
-        <el-form ref="maintainCompleteTemp" :rules="rules" :model="maintainCompleteTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="maintainCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="maintainCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格 "
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <!-- table表格 -->
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintainComplete'?createMaintainCompleteData():createMaintainCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_maintainComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_examine" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 auto;line-height:50px">请确认保养审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:88%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.isStatue" @change="changeIsStatue">
-                  <el-radio :label="3">通过</el-radio>
-                  <el-radio :label="4">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="isStatueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入保养不通过的原因" />
-            </el-col>
-          </el-row>
-          <el-row v-if="examineTemp.SHStatue == 2 && examineTemp.isStatue == 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
-        <el-button @click="dialogFormVisible_examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 视频 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_video" :close-on-click-modal="false" width="60%">
-      <div class="app-video">
-        <el-form ref="videoTemp" :rules="rules" :model="videoTemp" label-position="right" style="width: 80%;min-height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="" prop="scores">
-                <video :src="videoTemp.videoPath" controls="controls" style="width:90%;height:450px;margin:0 auto;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-// import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import Cookies from 'js-cookie'
-import { MessageBox } from 'element-ui'
-export default {
-  name: 'Maintain',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      active: 0,
-      activeList: [],
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      isokDisable: false,
-      rules: {
-        employeeId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'getDictByName', offset: 0, pagecount: 0, params: ['保养模板执行动作'] }
-      ],
-      getDepartParam: {
-        name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      statues: [{ id: '0', name: '已逾期' }, { id: '1', name: '保养中' }, { id: '2', name: '保养完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      empdeptList: [],
-      getDictByName: [],
-      radio2: '全部',
-      textMap: {
-        see: '查看详情',
-        receivingSpareParts: '保养及领用',
-        maintainComplete: '完成保养',
-        examine: '保养审核',
-        examine2: '保养审核2',
-        examine3: '保养审核3',
-        video: '视频'
-      },
-      dialogStatus: '',
-      radioAll: '全部',
-      getdataListParm: {
-        name: 'getBigupkeepList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      // 查看
-      dialogFormVisible_See: false,
-      seeTemp: {},
-      statue1: false,
-      statue2: false,
-      activeName: 'first',
-      listLoadingMaintenanceContent: false,
-      listMaintenanceContent: [],
-      getMaintenanceContentParm: {
-        name: 'getUpkeepTemplateListbyeqV2',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      Reason: false,
-      // 查看-领用记录
-      getCollarUseParm: {
-        name: 'getPartsapplybyMt',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      collarUseTemp: {},
-      // 查看-领用记录table
-      getCollarUseListParm: {
-        name: 'getpartapplyListBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      // 查看-旧品录入记录table
-      getOldProductsParm: {
-        name: 'getMaintainRefuse',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      // 保养及领用
-      dialogFormVisible_ReceivingSpareParts: false,
-      activeName2: 'first',
-      maintainTemp: {},
-      receivingTemp: {},
-      getEmpdeptParm: {
-        name: 'getEmpdept',
-        returntype: 'Map',
-        parammaps: {
-          deptId: ''
-        }
-      },
-      getAutoCreatCodeParm: {
-        name: 'autoCreatCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-
-      postDataPramas: {},
-      // 完成保养
-      dialogFormVisible_maintainComplete: false,
-      maintainCompleteTemp: {},
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      // 保养审核
-      dialogFormVisible_examine: false,
-      requestParam: {},
-      examineTemp: {
-        isStatue: 3
-      },
-      isStatueReason: false,
-      // 权限按钮
-      isSee: [],
-      isLingYong: [],
-      isComplete: [],
-      isCharge: [],
-      isLeaderCharge: [],
-      isDepartmentCharge: [],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      dialogFormVisible_video: false,
-      videoTemp: {},
-      requestParam2: {}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'sidebar',
-  //     'avatar',
-  //     'employeid',
-  //     'pastureid'
-  //   ])
-  // },
-  computed: {
-    space() {
-      const { isSimple, $parent: { space }} = this
-      return isSimple ? '' : space
-    },
-    style: function() {
-      const style = {}
-      const parent = this.$parent
-      const len = parent.steps.length
-
-      const space =
-        typeof this.space === 'number'
-          ? this.space + 'px'
-          : this.space
-            ? this.space
-            : 100 / (len - (this.isCenter ? 0 : 1)) + '%'
-      style.flexBasis = space
-      if (this.isVertical) return style
-      if (this.isLast) {
-        style.maxWidth = 100 / this.stepsCount + '%'
-      } else {
-        style.marginRight = -this.$parent.stepOffset + 'px'
-      }
-      return style
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'MaintenancePlan') {
-      this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      this.getdataListParm.parammaps.inputDatetime = [this.$route.query.time, this.$route.query.time]
-      this.getdataListParm.parammaps.startTime = this.$route.query.time
-      this.getdataListParm.parammaps.stopTime = this.$route.query.time
-    }
-    this.get_select_list()
-    this.get_table_data()
-    this.getPendingList()
-  },
-  methods: {
-    // handleCheck(row) {
-    //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
-    //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
-    // },
-    tableSort(column) {
-      if (this.activeName == 'second') {
-        sortChange(column, this.listCollarUse)
-      } else if (this.activeName == 'third') {
-        sortChange(column, this.listOldProducts)
-      }
-    },
-    get_auto_buttons() {
-      // 查看
-      const See = 'maintenance:maintain:see'
-      const isSee = checkButtons(JSON.parse(sessionStorage.buttons), See)
-      this.isSee = isSee
-      //  保养及领用
-      const LingYong = 'maintenance:maintain:lingyong'
-      const isLingYong = checkButtons(JSON.parse(sessionStorage.buttons), LingYong)
-      this.isLingYong = isLingYong
-      //  完成保养
-      const Complete = 'maintenance:maintain:complete'
-      const isComplete = checkButtons(JSON.parse(sessionStorage.buttons), Complete)
-      this.isComplete = isComplete
-      //  使用人保养审核
-      const Charge = 'maintenance:maintain:charge'
-      const isCharge = checkButtons(JSON.parse(sessionStorage.buttons), Charge)
-      this.isCharge = isCharge
-      //  主管审核
-      const LeaderCharge = 'maintenance:maintain:leaderCharge'
-      const isLeaderCharge = checkButtons(JSON.parse(sessionStorage.buttons), LeaderCharge)
-      this.isLeaderCharge = isLeaderCharge
-      // 部门审核
-      const DeptCharge = 'maintenance:maintain:deptcharge'
-      const isDepartmentCharge = checkButtons(JSON.parse(sessionStorage.buttons), DeptCharge)
-      this.isDepartmentCharge = isDepartmentCharge
-    },
-    // next() {
-    //   if (this.active++ > 2) this.active = 0
-    //   this.finishStatus = 'error'
-    // },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDictByName = response.data.getDictByName.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-
-    close_diago(){
-      console.log(11111111111111)
-      this.dialogFormVisible_See = false
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps = {
-        inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-        pastureName: this.getdataListParm.parammaps.pastureName,
-        SHStatue: this.getdataListParm.parammaps.SHStatue,
-        upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-        eqName: this.getdataListParm.parammaps.eqName,
-        eqCode: this.getdataListParm.parammaps.eqCode,
-        departmentId: this.getdataListParm.parammaps.departmentId,
-        statue: this.getdataListParm.parammaps.statue,
-        loginId: Cookies.get('employeid'),
-        menu: 'Maintain',
-        logindeptId: Cookies.get('departmentid'),
-        loginpastureId: Cookies.get('pastureid'),
-        empId: Cookies.get('employeid'),
-        pastureId: Cookies.get('pastureid'),
-        deptId: Cookies.get('departmentid')
-      }
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.getdataListParm.parammaps.inputDatetime !== undefined && this.getdataListParm.parammaps.inputDatetime !== '') {
-        this.getdataListParm.parammaps.startTime = this.getdataListParm.parammaps.inputDatetime[0]
-        this.getdataListParm.parammaps.stopTime = this.getdataListParm.parammaps.inputDatetime[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.$set(response.data.list[i], 'img', '视频')
-          }
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        // Just to simulate the time of the request
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    tableCellStyle({ row, column, rowIndex, columnIndex }) {
-      if (row.statue == 0 && columnIndex === 10) {
-        return {
-          background: 'red',
-          color: '#fff'
-        }
-      }
-      return {
-        background: ''
-      }
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getBigupkeepList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getBigupkeepWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getBigupkeepWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '已逾期'
-      } else if (cellValue.statue == 1) {
-        return '保养中'
-      } else if (cellValue.statue == 2) {
-        return '已完成'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 6) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 8) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 5) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 7) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    form_see(row) {
-      this.seeTemp = Object.assign({}, row)
-      console.log('查看', this.seeTemp)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '完成保养' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 0
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 1
-
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        
-      } else if (this.seeTemp.SHStatue === 5) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: '', reason: '' }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 6) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 7) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 4
-      } else if (this.seeTemp.SHStatue === 8) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 4
-      }
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (this.seeTemp.SHStatue !== 1) {
-        // 查看显示类型2
-        this.statue1 = false
-        this.statue2 = true
-        this.getMaintenanceContentList()
-      } else {
-        if (this.seeTemp.SHStatue == 1 && this.seeTemp.LYStatue == '未领用' && this.seeTemp.LRStatue == '未录入') {
-          // 查看显示类型1
-          this.statue1 = true
-          this.statue2 = false
-          this.getMaintenanceContentList()
-        } else {
-          // 查看显示类型2
-          this.statue1 = false
-          this.statue2 = true
-          this.getMaintenanceContentList()
-        }
-      }
-      this.collarUseTemp = {}
-      this.listCollarUse = []
-      this.getCollarUse()
-      this.getOldProductsList()
-    },
-    getMaintenanceContentList() {
-      this.getMaintenanceContentParm.parammaps.id = this.seeTemp.id
-      this.listLoadingMaintenanceContent = false
-      GetDataByName(this.getMaintenanceContentParm).then(response => {
-        console.log('保养内容table数据', response.data.list)
-        this.listMaintenanceContent = response.data.list
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoadingMaintenanceContent = false
-        }, 100)
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: this.collarUseTemp.applyCode }})
-      }
-    },
-    getCollarUse() {
-      this.getCollarUseParm.parammaps.RUCode = this.seeTemp.upkeepCode
-      GetDataByName(this.getCollarUseParm).then(response => {
-        this.collarUseTemp = response.data.list[0]
-        if (response.data.list.length > 0) {
-          console.log('领用记录数据', response.data.list[0])
-          if (response.data.list[0].statue == 0) {
-            this.$set(this.collarUseTemp, 'statueName', '未领用')
-          } else {
-            this.$set(this.collarUseTemp, 'statueName', '已领用')
-          }
-        }
-        this.getCollarUseList()
-      })
-    },
-    getCollarUseList() {
-      this.getCollarUseListParm.parammaps.id = this.collarUseTemp.id
-      this.listLoadingCollarUse = true
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    getOldProductsList() {
-      this.getOldProductsParm.parammaps.repairCode = this.seeTemp.upkeepCode
-      this.listLoadingOldProducts = true
-      GetDataByName(this.getOldProductsParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 保养及领用
-    handleReceivingSpareParts(row) {
-      console.log('点击了保养及领用')
-      if (row == undefined) {
-        this.receivingTemp = this.seeTemp
-      } else {
-        this.receivingTemp = Object.assign({}, row)
-      }
-      this.maintainTemp = this.receivingTemp
-      this.maintainTemp.employeeId = String(this.maintainTemp.useEmpId)
-      this.seeTemp = this.maintainTemp
-      this.listCollarUse = []
-      this.getAutoCreatCode()
-      this.receivingTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.getEmpdeptList()
-      this.getCollarUse()
-      this.getMaintenanceContentList()
-      this.dialogStatus = 'receivingSpareParts'
-      this.dialogFormVisible_ReceivingSpareParts = true
-    },
-    getEmpdeptList() {
-      this.getEmpdeptParm.parammaps.deptId = this.maintainTemp.departmentId
-      GetDataByName(this.getEmpdeptParm).then(response => {
-        console.log('保养使用人', response.data.list)
-        if (response.data.list !== null) {
-          this.empdeptList = response.data.list
-        } else {
-          this.empdeptList = []
-        }
-      })
-    },
-    getAutoCreatCode() {
-      GetDataByName(this.getAutoCreatCodeParm).then(response => {
-        console.log('领用领用单号', response.data.list[0])
-        this.receivingTemp.applyCode = response.data.list[0].orderCode
-        this.$forceUpdate()
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCollarUse.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCollarUse.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此备件已存在,请重新选择备件'
-          })
-        } else {
-          this.listCollarUse.unshift(item)
-        }
-      } else {
-        this.listCollarUse = []
-        this.listCollarUse.unshift(item)
-      }
-    },
-    createReceivingSparePartseData1() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintainTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'updateEquseEmpId', 'type': 'e', 'parammaps': {
-            employeeId: this.maintainTemp.employeeId,
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'deleteutupbyBigid', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listMaintenanceContent }}
-          this.postDataPramas.data[2].children = []
-          this.postDataPramas.data[2].children[0] = { 'name': 'insertutup', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id,
-            positionName: '@insertSpotList.positionName',
-            program: '@insertSpotList.program',
-            standard: '@insertSpotList.standard',
-            active: '@insertSpotList.active'
-          }}
-          ExecDataByConfig(this.postDataPramas).then(response => {
-            console.log('添加领用保存发送参数', this.postDataPramas)
-            if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-            } else {
-              this.dialogFormVisible_ReceivingSpareParts = false
-              this.dialogFormVisible_See = false
-              this.get_table_data()
-              this.getPendingList()
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    createReceivingSparePartseData2() {
-      console.log('点击了保养及领用保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['receivingTemp'].validate(valid => {
-        if (valid) {
-          if (this.listCollarUse.length !== 0) {
-            for (var i = 0; i < this.listCollarUse.length; i++) {
-              console.log(this.listCollarUse[i].amount)
-              if (this.listCollarUse[i].amount !== undefined) {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCollarUse[i].amount)) {
-                  this.$message({ type: 'error', message: '领用数量请输入正数,最多保留两位小数', duration: 2000 })
-                  return false
-                } else if (parseFloat(this.listCollarUse[i].amount) > parseFloat(this.listCollarUse[i].reportery)) {
-                  this.$message({ type: 'error', message: '领用数量不可大于库存数', duration: 2000 })
-                  return false
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-            let mySumPrice = 0
-            for (let i = 0; i < this.listCollarUse.length; i++) {
-              mySumPrice += parseFloat(this.listCollarUse[i].price) * parseFloat(this.listCollarUse[i].amount)
-            }
-            if (mySumPrice > 500) {
-              this.receivingTemp.SHStatus = 2
-            } else {
-              this.receivingTemp.SHStatus = 9
-            }
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-              pastureId: this.$store.state.user.pastureid,
-              applyCode: this.receivingTemp.applyCode,
-              applyType: 2,
-              departmentId: this.receivingTemp.departmentId,
-              empId: this.receivingTemp.upkeepPersonId,
-              applyDate: this.receivingTemp.createDate,
-              RUCode: this.receivingTemp.upkeepCode,
-              SHStatus: this.receivingTemp.SHStatus
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listCollarUse }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-              bigId: '@insertBigpartapply.LastInsertId',
-              pastureId: '@insertSpotList.pastureId',
-              partId: '@insertSpotList.partId',
-              partCode: '@insertSpotList.partCode',
-              partName: '@insertSpotList.partName',
-              specification: '@insertSpotList.specification',
-              brandId: '@insertSpotList.brandId',
-              price: '@insertSpotList.price',
-              amount: '@insertSpotList.amount',
-              eqName: this.receivingTemp.eqName,
-              eqCode: this.receivingTemp.eqCode,
-              providerId: '@insertSpotList.providerId',
-              note: '@insertSpotList.note',
-              reportery: '@insertSpotList.reportery',
-              contractId: '@insertSpotList.contractId',
-              locationId: '@insertSpotList.locationId'
-            }}
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('添加领用保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-              } else {
-                this.dialogFormVisible_ReceivingSpareParts = false
-                this.dialogFormVisible_See = false
-                this.get_table_data()
-                this.getPendingList()
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-            // return true
-          } else {
-            this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    // 完成保养
-    handleCompleteMaintenance(row) {
-      console.log('点击了完成保养', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.maintainCompleteTemp = this.seeTemp
-      } else {
-        this.maintainCompleteTemp = Object.assign({}, row)
-        this.$set(this.maintainCompleteTemp, 'isOldProducts', 0)
-      }
-      this.dialogStatus = 'maintainComplete'
-      this.No2 = false
-      this.dialogFormVisible_maintainComplete = true
-      this.listAdd = []
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps.partCode = queryString
-      this.requestOldProducts.parammaps.RUCode = this.maintainCompleteTemp.upkeepCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.maintainCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此旧品已存在,请重新选择旧品'
-          })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    sparePartsDelete(row) {
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCollarUse.length; i++) {
-          console.log(this.listCollarUse[i])
-          if (this.listCollarUse[i].id === row.id) {
-            var listCollarUseIndex = this.listCollarUse.indexOf(this.listCollarUse[i])
-          }
-          if (listCollarUseIndex > -1) {
-            this.listCollarUse.splice(listCollarUseIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 完成保养-保存
-    createMaintainCompleteData() {
-      console.log('点击了完成保养确认', this.maintainCompleteTemp)
-      console.log('点击了完成保养确认', this.maintainCompleteTemp.laidcou)
-      if (this.maintainCompleteTemp.laidcou == 0) {
-        if (this.maintainCompleteTemp.isOldProducts == 0) {
-          console.log('否')
-          this.requestParam.name = 'completeUpkeep'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.maintainCompleteTemp.id
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-
-
-              //如果有设备记录仪的权限
-              if(this.maintainCompleteTemp.isVideoBtnShow == '1'){
-                // 临时注释
-                  if (this.maintainCompleteTemp.videoTxt == '已录制') {
-                    this.requestParam2.name = 'upkeepChargDone'
-                    this.requestParam2.parammaps = {}
-                    this.requestParam2.parammaps.id = this.maintainCompleteTemp.id
-                    this.requestParam2.parammaps.statue = 7
-                    this.requestParam2.parammaps.orderStatue = 2
-                    this.requestParam2.parammaps.empId = Cookies.get('employeid')
-                    PostDataByName(this.requestParam2).then(response => {
-                      if (response.msg !== 'fail') {
-                        if (this.getdataListParm.parammaps.inputDatetime === null) {
-                          this.getdataListParm.parammaps.inputDatetime = ''
-                        }
-                        this.get_table_data()
-                        this.dialogFormVisible_maintainComplete = false
-                        this.dialogFormVisible_See = false
-                        this.getPendingList()
-                        this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                      } else {
-                        failproccess(response, this.$notify)
-                      }
-                    })
-                  }
-              // 临时注释
-              }else{
-                //正常流程。没有记录仪权限
-
-                 if (this.getdataListParm.parammaps.inputDatetime === null) {
-                    this.getdataListParm.parammaps.inputDatetime = ''
-                  }
-                  this.dialogFormVisible_maintainComplete = false
-                  this.dialogFormVisible_See = false
-                  this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                  this.get_table_data()
-                  this.getPendingList()
-              }
-
-
-              
-
-
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        } else {
-          console.log('是')
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['maintainCompleteTemp'].validate(valid => {
-            if (valid) {
-              if (this.listAdd.length !== 0) {
-                for (var i = 0; i < this.listAdd.length; i++) {
-                  if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                    this.$message({
-                      type: 'warning',
-                      message: '请录入数量是否未填写',
-                      duration: 2000
-                    })
-                    return false
-                  } else {
-                    var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                    if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                      this.$message({
-                        type: 'error',
-                        message: '录入数量请输入正数,最多保留两位小数点',
-                        duration: 2000
-                      })
-                      return false
-                    }
-                  }
-                }
-                this.postDataPramas.common = { 'returnmap': '0' }
-                this.postDataPramas.data = []
-                this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                this.postDataPramas.data[0].children = []
-                this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                  pastureId: Cookies.get('pastureid'),
-                  deptId: this.maintainCompleteTemp.departmentId,
-                  partCode: '@insertSpotList.partCode',
-                  partName: '@insertSpotList.partName',
-                  partId: '@insertSpotList.id',
-                  specification: '@insertSpotList.specification',
-                  unit: '@insertSpotList.unit',
-                  acturalAmount: '@insertSpotList.acturalAmount',
-                  eqId: this.maintainCompleteTemp.eqId,
-                  eqCode: this.maintainCompleteTemp.eqCode,
-                  eqName: this.maintainCompleteTemp.eqName,
-                  repairCode: this.maintainCompleteTemp.upkeepCode,
-                  listType: 1
-                }}
-                this.postDataPramas.data[1] = { 'name': 'completeUpkeep', 'type': 'e', 'parammaps': {
-                  id: this.maintainCompleteTemp.id
-                }}
-                ExecDataByConfig(this.postDataPramas).then(response => {
-                  console.log('完成维修-是-保存发送参数', this.postDataPramas)
-                  if (response.msg === 'fail') {
-                    this.$notify({
-                      title: '保存失败',
-                      message: response.data,
-                      type: 'warning',
-                      duration: 2000
-                    })
-                  } else {
-                    this.dialogFormVisible_maintainComplete = false
-                    this.dialogFormVisible_See = false
-                    this.get_table_data()
-                    this.getPendingList()
-                    this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                  }
-                })
-                return true
-              } else {
-                this.$notify({
-                  title: '',
-                  message: '请完善旧品信息',
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-            }
-          })
-        }
-      } else {
-        this.$notify({ message: '备件未领用不可完成保养', type: 'warning', duration: 2000 })
-      }
-    },
-    // 保养审核
-    handleExamine(row) {
-      console.log('点击了保养审核')
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_examine = true
-    },
-    changeIsStatue(val) {
-      console.log(val)
-      if (val == 4) {
-        this.isStatueReason = true
-      } else {
-        this.isStatueReason = false
-      }
-    },
-    // 保养审核1
-    createExamineData() {
-      console.log('点击了保养审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'upkeepCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.isStatue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('保养审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.dialogFormVisible_examine = false
-              this.dialogFormVisible_See = false
-              this.isStatueReason = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 保养审核2
-    handleExamine2(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine2'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核2-保存
-    createExamineData2() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核2确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 7
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核2确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 8
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 保养审核2
-    handleExamine3(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine3'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核3-保存
-    createExamineData3() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核3确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核3确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    preview(row) {
-      console.log(row, '=====666')
-      this.dialogStatus = 'video'
-      this.dialogFormVisible_video = true
-      // row.videoPath = 'https://sys.mcs8.net:7706' + row.videoPath
-      this.videoTemp = Object.assign({}, row)
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

+ 0 - 2200
src/views/maintenance/maintain/index2.vue

@@ -1,2200 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.upkeepCode" placeholder="保养单号" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 180px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in statues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="tableCellStyle"
-      class="elTable table-fixed"
-    >
-      <el-table-column label="序号" align="center" type="index" width="50px">
-        <template slot-scope="scope">
-          <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养单号" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="责任人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepPerson }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.useEmpName}}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养日期" sortable prop="plantime" min-width="80px" align="center" />
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="statue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="80px" align="center" :formatter="SHStatue" />
-		<el-table-column prop="img" label="保养过程" width="180" align="center">
-        <template slot-scope="scope">
-          <!-- <el-link @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }} </el-link> -->
-           <a style="border-bottom: 1px solid #333;" @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }}</a>
-          <el-link  v-if="scope.row.videoTxt == '未录制'">未录制 </el-link>
-          <el-link  v-if="scope.row.videoTxt == '已录制未上传'">已录制未上传 </el-link>
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" align="center" min-width="300" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 保养及领用-->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8 ) && row.LYStatue == '未领用' && row.statue !== 0 && isLingYong && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:80px;display:inline-block" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <!-- 完成保养 -->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8) && row.statue !== 0 && isComplete && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <!-- 保养审核 -->
-          <el-button v-if="(row.SHStatue == 2 ) && isCharge && row.useEmpId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine(row)">保养审核</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine(row)">保养审核</el-button>
-          <!-- 保养审核3 -->
-          <el-button v-if="(row.SHStatue == 3) && isLeaderCharge" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine2(row)">保养审核3</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine2(row)">保养审核3</el-button>
-          <!-- 保养审核2 -->
-          <!-- <el-button v-if="(row.SHStatue == 3) && isDepartmentCharge && (row.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine3(row)">保养审核2</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine3(row)">保养审核2</el-button> -->
-        </template>
-      </el-table-column>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <!-- 查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false"  v-if ="dialogFormVisible_See" width="90%">
-      <div class="app-see">
-        <div v-if="statue1" class="see">
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养单号:" prop="upkeepCode">
-                  <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="责任人:" prop="employeName">
-                  <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <!-- <el-form-item label="保养人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item> -->
-                <el-form-item label="保养人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="保养日期:" prop="plantime">
-                  <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <!-- <el-form-item label="使用人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item> -->
-                <el-form-item label="使用人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.active }}</span>
-              </template>
-            </el-table-column>
-          </el-table>
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in activeList"
-                    :key="index"
-                    :title="item.title"
-                    :status="item.status"
-                  >
-                    <template slot="description">
-                      <div class="step-row">
-                        <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                        <div>{{ item.reason }}</div>
-                        <div>{{ item.scores }}</div>
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <!-- 完成保养 -->
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <!-- 保养审核 -->
-                  <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine()">保养审核</el-button>
-                  <!-- 保养审核3 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">保养审核3</el-button>
-                  <!-- 保养审核2 -->
-                  <!-- <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="width:70px;display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                  <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button> -->
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="statue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="保养信息" name="first">
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养单号:" prop="upkeepCode">
-                      <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="责任人:" prop="employeName">
-                      <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <!-- <el-form-item label="保养人:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item> -->
-                    <el-form-item label="机修:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="保养日期:" prop="plantime">
-                      <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <!-- <el-form-item label="使用人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item> -->
-                    <el-form-item label="保养人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="12">
-                    <el-form-item label="保养内容:" prop="upNameLevel">
-                      <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingMaintenanceContent"
-                element-loading-text="给我一点时间"
-                :data="listMaintenanceContent"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable table-fixed"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="部位" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="项目" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.program }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="标准" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.standard }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="执行动作" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.active }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <el-form-item label="流程进度" />
-                    <el-steps :active="active" align-center finish-status="success">
-                      <el-step
-                        v-for="(item,index) in activeList"
-                        :key="index"
-                        :title="item.title"
-                        :status="item.status"
-                      >
-                        <template slot="description">
-                          <div class="step-row">
-                            <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <el-form-item label="操作:">
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <!-- 完成保养 -->
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <!-- 保养审核 -->
-                      <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine()">保养审核</el-button>
-                      <!-- 保养审核3 -->
-                      <el-button v-if="(seeTemp.SHStatue == 3) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine2()">保养审核3</el-button>
-                      <!-- 保养审核2 -->
-                      <!-- <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button> -->
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-form ref="collarUseTemp" :rules="rules" :model="collarUseTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="6">
-                    <el-form-item label="领用单号:" prop="applyCode">
-                      <span>{{ collarUseTemp.applyCode }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用部门:" prop="departmentName">
-                      <span>{{ collarUseTemp.departmentName }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用日期:" prop="createDate">
-                      <span>{{ collarUseTemp.createDate }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用状态:" prop="statueName">
-                      <span>{{ collarUseTemp.statueName }}</span>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="reportery" label="库存数" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.reportery }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="amount" label="领用数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.amount }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="用途" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.note }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="acturalAmount" label="录入数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="close_diago()">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养及领用 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ReceivingSpareParts" :close-on-click-modal="false" width="90%">
-      <el-tabs v-model="activeName2">
-        <el-tab-pane label="保养" name="first">
-          <el-form
-            ref="maintainTemp"
-            :rules="rules"
-            :model="maintainTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="employeeId">
-                  <el-select v-model="maintainTemp.employeeId" placeholder="使用人" class="filter-item" style="width: 120px;">
-                    <el-option v-for="item in empdeptList" :key="item.id" :label="item.empname" :value="item.id" />
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="maintainTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.active" class="filter-item" style="width: 80%;">
-                  <el-option v-for="item in getDictByName" :key="item.id" :label="item. label" :value="item.value" />
-                </el-select>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-tab-pane>
-        <el-tab-pane label="备件领用" name="second">
-          <div class="app-receivingSpareParts">
-            <el-form
-              ref="receivingTemp"
-              :rules="rules"
-              :model="receivingTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="领用单号:" prop="applyCode">
-                    <span>{{ receivingTemp.applyCode }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用部门:" prop="departmentName">
-                    <span>{{ receivingTemp.departmentName }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用日期:" prop="createDate">
-                    <span>{{ receivingTemp.createDate }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-form-item label="所需备件:" prop="partCode">
-                  <el-autocomplete
-                    v-model="receivingTemp.partCode"
-                    value-key="name"
-                    class="inline-input"
-                    :fetch-suggestions="sparePartSearch"
-                    placeholder="请输入备件编号或备件名称或备件规格"
-                    style="width:100%"
-                    @select="handleSelectSparePart"
-                  >
-                    <template slot-scope="{ item }">
-                      <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                      |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                      |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    </template>
-                  </el-autocomplete>
-                </el-form-item>
-              </el-row>
-            </el-form>
-            <el-table
-              :key="tableKey"
-              v-loading="listLoadingCollarUse"
-              element-loading-text="给我一点时间"
-              :data="listCollarUse"
-              border
-              fit
-              highlight-current-row
-              style="width: 100%;"
-              :row-style="rowStyle"
-              :cell-style="cellStyle"
-              class="elTable"
-            >
-              <!-- table表格 -->
-              <el-table-column label="序号" align="center" type="index" width="50px">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件编号" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="库存数" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.reportery }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用数量" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="amount">
-                      <el-input ref="amount" v-model="scope.row.amount" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="用途" prop="note" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="note">
-                      <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-                <template slot-scope="{row}">
-                  <a class="del" @click="sparePartsDelete(row)">删除</a>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer" class="dialog-footer" style="bottom: 5px">
-        <el-button v-if="activeName2=='first'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData1()">确认</el-button>
-        <el-button v-if="activeName2=='second'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_ReceivingSpareParts = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 完成保养 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_maintainComplete" :close-on-click-modal="false" width="50%">
-      <div class="maintainComplete">
-        <el-form ref="maintainCompleteTemp" :rules="rules" :model="maintainCompleteTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="maintainCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="maintainCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格 "
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <!-- table表格 -->
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintainComplete'?createMaintainCompleteData():createMaintainCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_maintainComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_examine" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 auto;line-height:50px">请确认保养审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:88%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.isStatue" @change="changeIsStatue">
-                  <el-radio :label="3">通过</el-radio>
-                  <el-radio :label="4">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="isStatueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入保养不通过的原因" />
-            </el-col>
-          </el-row>
-          <el-row v-if="examineTemp.SHStatue == 2 && examineTemp.isStatue == 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
-        <el-button @click="dialogFormVisible_examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 视频 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_video" :close-on-click-modal="false" width="60%">
-      <div class="app-video">
-        <el-form ref="videoTemp" :rules="rules" :model="videoTemp" label-position="right" style="width: 80%;min-height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="" prop="scores">
-                <video :src="videoTemp.videoPath" controls="controls" style="width:90%;height:450px;margin:0 auto;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-// import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import Cookies from 'js-cookie'
-import { MessageBox } from 'element-ui'
-export default {
-  name: 'Maintain',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      active: 0,
-      activeList: [],
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      isokDisable: false,
-      rules: {
-        employeeId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'getDictByName', offset: 0, pagecount: 0, params: ['保养模板执行动作'] }
-      ],
-      getDepartParam: {
-        name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      statues: [{ id: '0', name: '已逾期' }, { id: '1', name: '保养中' }, { id: '2', name: '保养完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      empdeptList: [],
-      getDictByName: [],
-      radio2: '全部',
-      textMap: {
-        see: '查看详情',
-        receivingSpareParts: '保养及领用',
-        maintainComplete: '完成保养',
-        examine: '保养审核',
-        examine2: '保养审核2',
-        examine3: '保养审核3',
-        video: '视频'
-      },
-      dialogStatus: '',
-      radioAll: '全部',
-      getdataListParm: {
-        name: 'getBigupkeepList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      // 查看
-      dialogFormVisible_See: false,
-      seeTemp: {},
-      statue1: false,
-      statue2: false,
-      activeName: 'first',
-      listLoadingMaintenanceContent: false,
-      listMaintenanceContent: [],
-      getMaintenanceContentParm: {
-        name: 'getUpkeepTemplateListbyeqV2',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      Reason: false,
-      // 查看-领用记录
-      getCollarUseParm: {
-        name: 'getPartsapplybyMt',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      collarUseTemp: {},
-      // 查看-领用记录table
-      getCollarUseListParm: {
-        name: 'getpartapplyListBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      // 查看-旧品录入记录table
-      getOldProductsParm: {
-        name: 'getMaintainRefuse',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      // 保养及领用
-      dialogFormVisible_ReceivingSpareParts: false,
-      activeName2: 'first',
-      maintainTemp: {},
-      receivingTemp: {},
-      getEmpdeptParm: {
-        name: 'getEmpdept',
-        returntype: 'Map',
-        parammaps: {
-          deptId: ''
-        }
-      },
-      getAutoCreatCodeParm: {
-        name: 'autoCreatCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-
-      postDataPramas: {},
-      // 完成保养
-      dialogFormVisible_maintainComplete: false,
-      maintainCompleteTemp: {},
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      // 保养审核
-      dialogFormVisible_examine: false,
-      requestParam: {},
-      examineTemp: {
-        isStatue: 3
-      },
-      isStatueReason: false,
-      // 权限按钮
-      isSee: [],
-      isLingYong: [],
-      isComplete: [],
-      isCharge: [],
-      isLeaderCharge: [],
-      isDepartmentCharge: [],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      dialogFormVisible_video: false,
-      videoTemp: {},
-      requestParam2: {}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'sidebar',
-  //     'avatar',
-  //     'employeid',
-  //     'pastureid'
-  //   ])
-  // },
-  computed: {
-    space() {
-      const { isSimple, $parent: { space }} = this
-      return isSimple ? '' : space
-    },
-    style: function() {
-      const style = {}
-      const parent = this.$parent
-      const len = parent.steps.length
-
-      const space =
-        typeof this.space === 'number'
-          ? this.space + 'px'
-          : this.space
-            ? this.space
-            : 100 / (len - (this.isCenter ? 0 : 1)) + '%'
-      style.flexBasis = space
-      if (this.isVertical) return style
-      if (this.isLast) {
-        style.maxWidth = 100 / this.stepsCount + '%'
-      } else {
-        style.marginRight = -this.$parent.stepOffset + 'px'
-      }
-      return style
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'MaintenancePlan') {
-      this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      this.getdataListParm.parammaps.inputDatetime = [this.$route.query.time, this.$route.query.time]
-      this.getdataListParm.parammaps.startTime = this.$route.query.time
-      this.getdataListParm.parammaps.stopTime = this.$route.query.time
-    }
-    this.get_select_list()
-    this.get_table_data()
-    this.getPendingList()
-  },
-  methods: {
-    // handleCheck(row) {
-    //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
-    //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
-    // },
-    tableSort(column) {
-      if (this.activeName == 'second') {
-        sortChange(column, this.listCollarUse)
-      } else if (this.activeName == 'third') {
-        sortChange(column, this.listOldProducts)
-      }
-    },
-    get_auto_buttons() {
-      // 查看
-      const See = 'maintenance:maintain:see'
-      const isSee = checkButtons(JSON.parse(sessionStorage.buttons), See)
-      this.isSee = isSee
-      //  保养及领用
-      const LingYong = 'maintenance:maintain:lingyong'
-      const isLingYong = checkButtons(JSON.parse(sessionStorage.buttons), LingYong)
-      this.isLingYong = isLingYong
-      //  完成保养
-      const Complete = 'maintenance:maintain:complete'
-      const isComplete = checkButtons(JSON.parse(sessionStorage.buttons), Complete)
-      this.isComplete = isComplete
-      //  使用人保养审核
-      const Charge = 'maintenance:maintain:charge'
-      const isCharge = checkButtons(JSON.parse(sessionStorage.buttons), Charge)
-      this.isCharge = isCharge
-      //  主管审核
-      const LeaderCharge = 'maintenance:maintain:leaderCharge'
-      const isLeaderCharge = checkButtons(JSON.parse(sessionStorage.buttons), LeaderCharge)
-      this.isLeaderCharge = isLeaderCharge
-      // 部门审核
-      const DeptCharge = 'maintenance:maintain:deptcharge'
-      const isDepartmentCharge = checkButtons(JSON.parse(sessionStorage.buttons), DeptCharge)
-      this.isDepartmentCharge = isDepartmentCharge
-    },
-    // next() {
-    //   if (this.active++ > 2) this.active = 0
-    //   this.finishStatus = 'error'
-    // },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDictByName = response.data.getDictByName.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-
-    close_diago(){
-      console.log(11111111111111)
-      this.dialogFormVisible_See = false
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps = {
-        inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-        pastureName: this.getdataListParm.parammaps.pastureName,
-        SHStatue: this.getdataListParm.parammaps.SHStatue,
-        upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-        eqName: this.getdataListParm.parammaps.eqName,
-        eqCode: this.getdataListParm.parammaps.eqCode,
-        departmentId: this.getdataListParm.parammaps.departmentId,
-        statue: this.getdataListParm.parammaps.statue,
-        loginId: Cookies.get('employeid'),
-        menu: 'Maintain',
-        logindeptId: Cookies.get('departmentid'),
-        loginpastureId: Cookies.get('pastureid'),
-        empId: Cookies.get('employeid'),
-        pastureId: Cookies.get('pastureid'),
-        deptId: Cookies.get('departmentid')
-      }
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.getdataListParm.parammaps.inputDatetime !== undefined && this.getdataListParm.parammaps.inputDatetime !== '') {
-        this.getdataListParm.parammaps.startTime = this.getdataListParm.parammaps.inputDatetime[0]
-        this.getdataListParm.parammaps.stopTime = this.getdataListParm.parammaps.inputDatetime[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.$set(response.data.list[i], 'img', '视频')
-          }
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        // Just to simulate the time of the request
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    tableCellStyle({ row, column, rowIndex, columnIndex }) {
-      if (row.statue == 0 && columnIndex === 10) {
-        return {
-          background: 'red',
-          color: '#fff'
-        }
-      }
-      return {
-        background: ''
-      }
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getBigupkeepList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getBigupkeepWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getBigupkeepWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '已逾期'
-      } else if (cellValue.statue == 1) {
-        return '保养中'
-      } else if (cellValue.statue == 2) {
-        return '已完成'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
- 
-      } else if (cellValue.SHStatue == 8) {
-        return '未通过'
-    
-      } else if (cellValue.SHStatue == 7) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    form_see(row) {
-      this.seeTemp = Object.assign({}, row)
-      console.log('查看', this.seeTemp)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '保养人审核' }, { title: '机修审核' },   { title: '设备主管审核' }]
-        this.active = 0
-        
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.useEmpName, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核' },  { title: '设备主管审核' }]
-        this.active = 1
-
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 2
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.useEmpName, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },   { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 2
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.useEmpName, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-        
-
-      } else if (this.seeTemp.SHStatue === 7) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.useEmpName, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },  { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 8) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.useEmpName, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },   { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 3
-      }
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (this.seeTemp.SHStatue !== 1) {
-        // 查看显示类型2
-        this.statue1 = false
-        this.statue2 = true
-        this.getMaintenanceContentList()
-      } else {
-        if (this.seeTemp.SHStatue == 1 && this.seeTemp.LYStatue == '未领用' && this.seeTemp.LRStatue == '未录入') {
-          // 查看显示类型1
-          this.statue1 = true
-          this.statue2 = false
-          this.getMaintenanceContentList()
-        } else {
-          // 查看显示类型2
-          this.statue1 = false
-          this.statue2 = true
-          this.getMaintenanceContentList()
-        }
-      }
-      this.collarUseTemp = {}
-      this.listCollarUse = []
-      this.getCollarUse()
-      this.getOldProductsList()
-    },
-    getMaintenanceContentList() {
-      this.getMaintenanceContentParm.parammaps.id = this.seeTemp.id
-      this.listLoadingMaintenanceContent = false
-      GetDataByName(this.getMaintenanceContentParm).then(response => {
-        console.log('保养内容table数据', response.data.list)
-        this.listMaintenanceContent = response.data.list
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoadingMaintenanceContent = false
-        }, 100)
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: this.collarUseTemp.applyCode }})
-      }
-    },
-    getCollarUse() {
-      this.getCollarUseParm.parammaps.RUCode = this.seeTemp.upkeepCode
-      GetDataByName(this.getCollarUseParm).then(response => {
-        this.collarUseTemp = response.data.list[0]
-        if (response.data.list.length > 0) {
-          console.log('领用记录数据', response.data.list[0])
-          if (response.data.list[0].statue == 0) {
-            this.$set(this.collarUseTemp, 'statueName', '未领用')
-          } else {
-            this.$set(this.collarUseTemp, 'statueName', '已领用')
-          }
-        }
-        this.getCollarUseList()
-      })
-    },
-    getCollarUseList() {
-      this.getCollarUseListParm.parammaps.id = this.collarUseTemp.id
-      this.listLoadingCollarUse = true
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    getOldProductsList() {
-      this.getOldProductsParm.parammaps.repairCode = this.seeTemp.upkeepCode
-      this.listLoadingOldProducts = true
-      GetDataByName(this.getOldProductsParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 保养及领用
-    handleReceivingSpareParts(row) {
-      console.log('点击了保养及领用')
-      if (row == undefined) {
-        this.receivingTemp = this.seeTemp
-      } else {
-        this.receivingTemp = Object.assign({}, row)
-      }
-      this.maintainTemp = this.receivingTemp
-      this.maintainTemp.employeeId = String(this.maintainTemp.useEmpId)
-      this.seeTemp = this.maintainTemp
-      this.listCollarUse = []
-      this.getAutoCreatCode()
-      this.receivingTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.getEmpdeptList()
-      this.getCollarUse()
-      this.getMaintenanceContentList()
-      this.dialogStatus = 'receivingSpareParts'
-      this.dialogFormVisible_ReceivingSpareParts = true
-    },
-    getEmpdeptList() {
-      this.getEmpdeptParm.parammaps.deptId = this.maintainTemp.departmentId
-      GetDataByName(this.getEmpdeptParm).then(response => {
-        console.log('保养使用人', response.data.list)
-        if (response.data.list !== null) {
-          this.empdeptList = response.data.list
-        } else {
-          this.empdeptList = []
-        }
-      })
-    },
-    getAutoCreatCode() {
-      GetDataByName(this.getAutoCreatCodeParm).then(response => {
-        console.log('领用领用单号', response.data.list[0])
-        this.receivingTemp.applyCode = response.data.list[0].orderCode
-        this.$forceUpdate()
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCollarUse.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCollarUse.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此备件已存在,请重新选择备件'
-          })
-        } else {
-          this.listCollarUse.unshift(item)
-        }
-      } else {
-        this.listCollarUse = []
-        this.listCollarUse.unshift(item)
-      }
-    },
-    createReceivingSparePartseData1() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintainTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'updateEquseEmpId', 'type': 'e', 'parammaps': {
-            employeeId: this.maintainTemp.employeeId,
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'deleteutupbyBigid', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listMaintenanceContent }}
-          this.postDataPramas.data[2].children = []
-          this.postDataPramas.data[2].children[0] = { 'name': 'insertutup', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id,
-            positionName: '@insertSpotList.positionName',
-            program: '@insertSpotList.program',
-            standard: '@insertSpotList.standard',
-            active: '@insertSpotList.active'
-          }}
-          ExecDataByConfig(this.postDataPramas).then(response => {
-            console.log('添加领用保存发送参数', this.postDataPramas)
-            if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-            } else {
-              this.dialogFormVisible_ReceivingSpareParts = false
-              this.dialogFormVisible_See = false
-              this.get_table_data()
-              this.getPendingList()
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    createReceivingSparePartseData2() {
-      console.log('点击了保养及领用保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['receivingTemp'].validate(valid => {
-        if (valid) {
-          if (this.listCollarUse.length !== 0) {
-            for (var i = 0; i < this.listCollarUse.length; i++) {
-              console.log(this.listCollarUse[i].amount)
-              if (this.listCollarUse[i].amount !== undefined) {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCollarUse[i].amount)) {
-                  this.$message({ type: 'error', message: '领用数量请输入正数,最多保留两位小数', duration: 2000 })
-                  return false
-                } else if (parseFloat(this.listCollarUse[i].amount) > parseFloat(this.listCollarUse[i].reportery)) {
-                  this.$message({ type: 'error', message: '领用数量不可大于库存数', duration: 2000 })
-                  return false
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-            let mySumPrice = 0
-            for (let i = 0; i < this.listCollarUse.length; i++) {
-              mySumPrice += parseFloat(this.listCollarUse[i].price) * parseFloat(this.listCollarUse[i].amount)
-            }
-            if (mySumPrice > 500) {
-              this.receivingTemp.SHStatus = 2
-            } else {
-              this.receivingTemp.SHStatus = 9
-            }
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-              pastureId: this.$store.state.user.pastureid,
-              applyCode: this.receivingTemp.applyCode,
-              applyType: 2,
-              departmentId: this.receivingTemp.departmentId,
-              empId: this.receivingTemp.upkeepPersonId,
-              applyDate: this.receivingTemp.createDate,
-              RUCode: this.receivingTemp.upkeepCode,
-              SHStatus: this.receivingTemp.SHStatus
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listCollarUse }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-              bigId: '@insertBigpartapply.LastInsertId',
-              pastureId: '@insertSpotList.pastureId',
-              partId: '@insertSpotList.partId',
-              partCode: '@insertSpotList.partCode',
-              partName: '@insertSpotList.partName',
-              specification: '@insertSpotList.specification',
-              brandId: '@insertSpotList.brandId',
-              price: '@insertSpotList.price',
-              amount: '@insertSpotList.amount',
-              eqName: this.receivingTemp.eqName,
-              eqCode: this.receivingTemp.eqCode,
-              providerId: '@insertSpotList.providerId',
-              note: '@insertSpotList.note',
-              reportery: '@insertSpotList.reportery',
-              contractId: '@insertSpotList.contractId',
-              locationId: '@insertSpotList.locationId'
-            }}
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('添加领用保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-              } else {
-                this.dialogFormVisible_ReceivingSpareParts = false
-                this.dialogFormVisible_See = false
-                this.get_table_data()
-                this.getPendingList()
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-            // return true
-          } else {
-            this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    // 完成保养
-    handleCompleteMaintenance(row) {
-      console.log('点击了完成保养', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.maintainCompleteTemp = this.seeTemp
-      } else {
-        this.maintainCompleteTemp = Object.assign({}, row)
-        this.$set(this.maintainCompleteTemp, 'isOldProducts', 0)
-      }
-      this.dialogStatus = 'maintainComplete'
-      this.No2 = false
-      this.dialogFormVisible_maintainComplete = true
-      this.listAdd = []
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps.partCode = queryString
-      this.requestOldProducts.parammaps.RUCode = this.maintainCompleteTemp.upkeepCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.maintainCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此旧品已存在,请重新选择旧品'
-          })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    sparePartsDelete(row) {
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCollarUse.length; i++) {
-          console.log(this.listCollarUse[i])
-          if (this.listCollarUse[i].id === row.id) {
-            var listCollarUseIndex = this.listCollarUse.indexOf(this.listCollarUse[i])
-          }
-          if (listCollarUseIndex > -1) {
-            this.listCollarUse.splice(listCollarUseIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 完成保养-保存
-    createMaintainCompleteData() {
-      console.log('点击了完成保养确认', this.maintainCompleteTemp)
-      console.log('点击了完成保养确认', this.maintainCompleteTemp.laidcou)
-      if (this.maintainCompleteTemp.laidcou == 0) {
-        if (this.maintainCompleteTemp.isOldProducts == 0) {
-          console.log('否')
-          this.requestParam.name = 'completeUpkeep'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.maintainCompleteTemp.id
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-
-
-              //如果有设备记录仪的权限
-              if(this.maintainCompleteTemp.isVideoBtnShow == '1'){
-                // 临时注释
-                  if (this.maintainCompleteTemp.videoTxt == '已录制') {
-                    this.requestParam2.name = 'upkeepChargDone'
-                    this.requestParam2.parammaps = {}
-                    this.requestParam2.parammaps.id = this.maintainCompleteTemp.id
-                    this.requestParam2.parammaps.statue = 7
-                    this.requestParam2.parammaps.orderStatue = 2
-                    this.requestParam2.parammaps.empId = Cookies.get('employeid')
-                    PostDataByName(this.requestParam2).then(response => {
-                      if (response.msg !== 'fail') {
-                        if (this.getdataListParm.parammaps.inputDatetime === null) {
-                          this.getdataListParm.parammaps.inputDatetime = ''
-                        }
-                        this.get_table_data()
-                        this.dialogFormVisible_maintainComplete = false
-                        this.dialogFormVisible_See = false
-                        this.getPendingList()
-                        this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                      } else {
-                        failproccess(response, this.$notify)
-                      }
-                    })
-                  }
-              // 临时注释
-              }else{
-                //正常流程。没有记录仪权限
-
-                 if (this.getdataListParm.parammaps.inputDatetime === null) {
-                    this.getdataListParm.parammaps.inputDatetime = ''
-                  }
-                  this.dialogFormVisible_maintainComplete = false
-                  this.dialogFormVisible_See = false
-                  this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                  this.get_table_data()
-                  this.getPendingList()
-              }
-
-
-              
-
-
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        } else {
-          console.log('是')
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['maintainCompleteTemp'].validate(valid => {
-            if (valid) {
-              if (this.listAdd.length !== 0) {
-                for (var i = 0; i < this.listAdd.length; i++) {
-                  if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                    this.$message({
-                      type: 'warning',
-                      message: '请录入数量是否未填写',
-                      duration: 2000
-                    })
-                    return false
-                  } else {
-                    var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                    if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                      this.$message({
-                        type: 'error',
-                        message: '录入数量请输入正数,最多保留两位小数点',
-                        duration: 2000
-                      })
-                      return false
-                    }
-                  }
-                }
-                this.postDataPramas.common = { 'returnmap': '0' }
-                this.postDataPramas.data = []
-                this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                this.postDataPramas.data[0].children = []
-                this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                  pastureId: Cookies.get('pastureid'),
-                  deptId: this.maintainCompleteTemp.departmentId,
-                  partCode: '@insertSpotList.partCode',
-                  partName: '@insertSpotList.partName',
-                  partId: '@insertSpotList.id',
-                  specification: '@insertSpotList.specification',
-                  unit: '@insertSpotList.unit',
-                  acturalAmount: '@insertSpotList.acturalAmount',
-                  eqId: this.maintainCompleteTemp.eqId,
-                  eqCode: this.maintainCompleteTemp.eqCode,
-                  eqName: this.maintainCompleteTemp.eqName,
-                  repairCode: this.maintainCompleteTemp.upkeepCode,
-                  listType: 1
-                }}
-                this.postDataPramas.data[1] = { 'name': 'completeUpkeep', 'type': 'e', 'parammaps': {
-                  id: this.maintainCompleteTemp.id
-                }}
-                ExecDataByConfig(this.postDataPramas).then(response => {
-                  console.log('完成维修-是-保存发送参数', this.postDataPramas)
-                  if (response.msg === 'fail') {
-                    this.$notify({
-                      title: '保存失败',
-                      message: response.data,
-                      type: 'warning',
-                      duration: 2000
-                    })
-                  } else {
-                    this.dialogFormVisible_maintainComplete = false
-                    this.dialogFormVisible_See = false
-                    this.get_table_data()
-                    this.getPendingList()
-                    this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                  }
-                })
-                return true
-              } else {
-                this.$notify({
-                  title: '',
-                  message: '请完善旧品信息',
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-            }
-          })
-        }
-      } else {
-        this.$notify({ message: '备件未领用不可完成保养', type: 'warning', duration: 2000 })
-      }
-    },
-    // 保养审核
-    handleExamine(row) {
-      console.log('点击了保养审核')
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_examine = true
-    },
-    changeIsStatue(val) {
-      console.log(val)
-      if (val == 4) {
-        this.isStatueReason = true
-      } else {
-        this.isStatueReason = false
-      }
-    },
-    // 保养审核1
-    createExamineData() {
-      console.log('点击了保养审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'upkeepCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.isStatue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('保养审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.dialogFormVisible_examine = false
-              this.dialogFormVisible_See = false
-              this.isStatueReason = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 保养审核2
-    handleExamine2(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine2'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核2-保存
-    createExamineData2() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核2确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 7
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核2确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 8
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 保养审核2
-    handleExamine3(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine3'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核3-保存
-    createExamineData3() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核3确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核3确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    preview(row) {
-      console.log(row, '=====666')
-      this.dialogStatus = 'video'
-      this.dialogFormVisible_video = true
-      // row.videoPath = 'https://sys.mcs8.net:7706' + row.videoPath
-      this.videoTemp = Object.assign({}, row)
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

+ 0 - 2172
src/views/maintenance/maintain/index备份.vue

@@ -1,2172 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.upkeepCode" placeholder="保养单号" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 180px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in statues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="tableCellStyle"
-      class="elTable table-fixed"
-    >
-      <el-table-column label="序号" align="center" type="index" width="50px">
-        <template slot-scope="scope">
-          <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养单号" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="责任人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.employeName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepPerson }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养日期" sortable prop="plantime" min-width="80px" align="center" />
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="statue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="80px" align="center" :formatter="SHStatue" />
-      <!-- 临时注释 -->
-      <!-- <el-table-column prop="img" label="保养过程" width="180" align="center">
-        <template slot-scope="scope">
-          <el-link @click="preview(scope.row)">{{ scope.row.videoTxt }} </el-link>
-        </template>
-      </el-table-column> -->
-      <!-- 临时注释 -->
-      <el-table-column label="操作" align="center" min-width="300" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 保养及领用-->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8 ) && row.LYStatue == '未领用' && row.statue !== 0 && isLingYong && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:80px;display:inline-block" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <!-- 完成保养 -->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8) && row.statue !== 0 && isComplete && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <!-- 保养审核 -->
-          <el-button v-if="(row.SHStatue == 2 ) && isCharge && row.useEmpId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine(row)">保养审核</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine(row)">保养审核</el-button>
-          <!-- 保养审核3 -->
-          <el-button v-if="(row.SHStatue == 5) && isLeaderCharge" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine2(row)">保养审核3</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine2(row)">保养审核3</el-button>
-          <!-- 保养审核2 -->
-          <el-button v-if="(row.SHStatue == 3) && isDepartmentCharge && (row.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine3(row)">保养审核2</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine3(row)">保养审核2</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <!-- 查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false" width="90%">
-      <div class="app-see">
-        <div v-if="statue1" class="see">
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养单号:" prop="upkeepCode">
-                  <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="责任人:" prop="employeName">
-                  <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="保养日期:" prop="plantime">
-                  <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoading"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.active }}</span>
-              </template>
-            </el-table-column>
-          </el-table>
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in activeList"
-                    :key="index"
-                    :title="item.title"
-                    :status="item.status"
-                  >
-                    <template slot="description">
-                      <div class="step-row">
-                        <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                        <div>{{ item.reason }}</div>
-                        <div>{{ item.scores }}</div>
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <!-- 完成保养 -->
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <!-- 保养审核 -->
-                  <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine()">保养审核</el-button>
-                  <!-- 保养审核3 -->
-                  <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">保养审核3</el-button>
-                  <!-- 保养审核2 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="width:70px;display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                  <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="statue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="保养信息" name="first">
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养单号:" prop="upkeepCode">
-                      <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="责任人:" prop="employeName">
-                      <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养人:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="保养日期:" prop="plantime">
-                      <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="使用人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="12">
-                    <el-form-item label="保养内容:" prop="upNameLevel">
-                      <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingMaintenanceContent"
-                element-loading-text="给我一点时间"
-                :data="listMaintenanceContent"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable table-fixed"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="部位" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="项目" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.program }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="标准" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.standard }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="执行动作" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.active }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <el-form-item label="流程进度" />
-                    <el-steps :active="active" align-center finish-status="success">
-                      <el-step
-                        v-for="(item,index) in activeList"
-                        :key="index"
-                        :title="item.title"
-                        :status="item.status"
-                      >
-                        <template slot="description">
-                          <div class="step-row">
-                            <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <el-form-item label="操作:">
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <!-- 完成保养 -->
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <!-- 保养审核 -->
-                      <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine()">保养审核</el-button>
-                      <!-- 保养审核3 -->
-                      <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine2()">保养审核3</el-button>
-                      <!-- 保养审核2 -->
-                      <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-form ref="collarUseTemp" :rules="rules" :model="collarUseTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="6">
-                    <el-form-item label="领用单号:" prop="applyCode">
-                      <span>{{ collarUseTemp.applyCode }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用部门:" prop="departmentName">
-                      <span>{{ collarUseTemp.departmentName }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用日期:" prop="createDate">
-                      <span>{{ collarUseTemp.createDate }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用状态:" prop="statueName">
-                      <span>{{ collarUseTemp.statueName }}</span>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="reportery" label="库存数" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.reportery }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="amount" label="领用数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.amount }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="用途" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.note }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="acturalAmount" label="录入数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="dialogFormVisible_See = false;get_table_data();">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养及领用 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ReceivingSpareParts" :close-on-click-modal="false" width="90%">
-      <el-tabs v-model="activeName2">
-        <el-tab-pane label="保养" name="first">
-          <el-form
-            ref="maintainTemp"
-            :rules="rules"
-            :model="maintainTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="employeeId">
-                  <el-select v-model="maintainTemp.employeeId" placeholder="使用人" class="filter-item" style="width: 120px;">
-                    <el-option v-for="item in empdeptList" :key="item.id" :label="item.empname" :value="item.id" />
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="maintainTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.active" class="filter-item" style="width: 80%;">
-                  <el-option v-for="item in getDictByName" :key="item.id" :label="item. label" :value="item.value" />
-                </el-select>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-tab-pane>
-        <el-tab-pane label="备件领用" name="second">
-          <div class="app-receivingSpareParts">
-            <el-form
-              ref="receivingTemp"
-              :rules="rules"
-              :model="receivingTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="领用单号:" prop="applyCode">
-                    <span>{{ receivingTemp.applyCode }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用部门:" prop="departmentName">
-                    <span>{{ receivingTemp.departmentName }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用日期:" prop="createDate">
-                    <span>{{ receivingTemp.createDate }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-form-item label="所需备件:" prop="partCode">
-                  <el-autocomplete
-                    v-model="receivingTemp.partCode"
-                    value-key="name"
-                    class="inline-input"
-                    :fetch-suggestions="sparePartSearch"
-                    placeholder="请输入备件编号或备件名称或备件规格"
-                    style="width:100%"
-                    @select="handleSelectSparePart"
-                  >
-                    <template slot-scope="{ item }">
-                      <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                      |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                      |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    </template>
-                  </el-autocomplete>
-                </el-form-item>
-              </el-row>
-            </el-form>
-            <el-table
-              :key="tableKey"
-              v-loading="listLoadingCollarUse"
-              element-loading-text="给我一点时间"
-              :data="listCollarUse"
-              border
-              fit
-              highlight-current-row
-              style="width: 100%;"
-              :row-style="rowStyle"
-              :cell-style="cellStyle"
-              class="elTable"
-            >
-              <!-- table表格 -->
-              <el-table-column label="序号" align="center" type="index" width="50px">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件编号" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="库存数" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.reportery }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用数量" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="amount">
-                      <el-input ref="amount" v-model="scope.row.amount" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="用途" prop="note" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="note">
-                      <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-                <template slot-scope="{row}">
-                  <a class="del" @click="sparePartsDelete(row)">删除</a>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer" class="dialog-footer" style="bottom: 5px">
-        <el-button v-if="activeName2=='first'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData1()">确认</el-button>
-        <el-button v-if="activeName2=='second'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_ReceivingSpareParts = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 完成保养 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_maintainComplete" :close-on-click-modal="false" width="50%">
-      <div class="maintainComplete">
-        <el-form ref="maintainCompleteTemp" :rules="rules" :model="maintainCompleteTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="maintainCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="maintainCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格 "
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <!-- table表格 -->
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintainComplete'?createMaintainCompleteData():createMaintainCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_maintainComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_examine" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 auto;line-height:50px">请确认保养审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:88%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.isStatue" @change="changeIsStatue">
-                  <el-radio :label="3">通过</el-radio>
-                  <el-radio :label="4">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="isStatueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入保养不通过的原因" />
-            </el-col>
-          </el-row>
-          <el-row v-if="examineTemp.SHStatue == 2 && examineTemp.isStatue == 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
-        <el-button @click="dialogFormVisible_examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 视频 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_video" :close-on-click-modal="false" width="30%">
-      <div class="app-video">
-        <el-form ref="videoTemp" :rules="rules" :model="videoTemp" label-position="right" style="width: 60%;min-height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="视频" prop="scores">
-                <video :src="videoTemp.videoPath" controls="controls" style="width:90%;height:350px;margin:0 auto;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-// import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import Cookies from 'js-cookie'
-import { MessageBox } from 'element-ui'
-export default {
-  name: 'Maintain',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      active: 0,
-      activeList: [],
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      isokDisable: false,
-      rules: {
-        employeeId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'getDictByName', offset: 0, pagecount: 0, params: ['保养模板执行动作'] }
-      ],
-      getDepartParam: {
-        name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      statues: [{ id: '0', name: '已逾期' }, { id: '1', name: '保养中' }, { id: '2', name: '保养完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      empdeptList: [],
-      getDictByName: [],
-      radio2: '全部',
-      textMap: {
-        see: '查看详情',
-        receivingSpareParts: '保养及领用',
-        maintainComplete: '完成保养',
-        examine: '保养审核',
-        examine2: '保养审核2',
-        examine3: '保养审核3',
-        video: '视频'
-      },
-      dialogStatus: '',
-      radioAll: '全部',
-      getdataListParm: {
-        name: 'getBigupkeepList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      // 查看
-      dialogFormVisible_See: false,
-      seeTemp: {},
-      statue1: false,
-      statue2: false,
-      activeName: 'first',
-      listLoadingMaintenanceContent: false,
-      listMaintenanceContent: [],
-      getMaintenanceContentParm: {
-        name: 'getUpkeepTemplateListbyeqV2',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      Reason: false,
-      // 查看-领用记录
-      getCollarUseParm: {
-        name: 'getPartsapplybyMt',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      collarUseTemp: {},
-      // 查看-领用记录table
-      getCollarUseListParm: {
-        name: 'getpartapplyListBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      // 查看-旧品录入记录table
-      getOldProductsParm: {
-        name: 'getMaintainRefuse',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      // 保养及领用
-      dialogFormVisible_ReceivingSpareParts: false,
-      activeName2: 'first',
-      maintainTemp: {},
-      receivingTemp: {},
-      getEmpdeptParm: {
-        name: 'getEmpdept',
-        returntype: 'Map',
-        parammaps: {
-          deptId: ''
-        }
-      },
-      getAutoCreatCodeParm: {
-        name: 'autoCreatCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-
-      postDataPramas: {},
-      // 完成保养
-      dialogFormVisible_maintainComplete: false,
-      maintainCompleteTemp: {},
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      // 保养审核
-      dialogFormVisible_examine: false,
-      requestParam: {},
-      examineTemp: {
-        isStatue: 3
-      },
-      isStatueReason: false,
-      // 权限按钮
-      isSee: [],
-      isLingYong: [],
-      isComplete: [],
-      isCharge: [],
-      isLeaderCharge: [],
-      isDepartmentCharge: [],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      dialogFormVisible_video: false,
-      videoTemp: {},
-      requestParam2: {}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'sidebar',
-  //     'avatar',
-  //     'employeid',
-  //     'pastureid'
-  //   ])
-  // },
-  computed: {
-    space() {
-      const { isSimple, $parent: { space }} = this
-      return isSimple ? '' : space
-    },
-    style: function() {
-      const style = {}
-      const parent = this.$parent
-      const len = parent.steps.length
-
-      const space =
-        typeof this.space === 'number'
-          ? this.space + 'px'
-          : this.space
-            ? this.space
-            : 100 / (len - (this.isCenter ? 0 : 1)) + '%'
-      style.flexBasis = space
-      if (this.isVertical) return style
-      if (this.isLast) {
-        style.maxWidth = 100 / this.stepsCount + '%'
-      } else {
-        style.marginRight = -this.$parent.stepOffset + 'px'
-      }
-      return style
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'MaintenancePlan') {
-      this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      this.getdataListParm.parammaps.inputDatetime = [this.$route.query.time, this.$route.query.time]
-      this.getdataListParm.parammaps.startTime = this.$route.query.time
-      this.getdataListParm.parammaps.stopTime = this.$route.query.time
-    }
-    this.get_select_list()
-    this.get_table_data()
-    this.getPendingList()
-  },
-  methods: {
-    // handleCheck(row) {
-    //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
-    //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
-    // },
-    tableSort(column) {
-      if (this.activeName == 'second') {
-        sortChange(column, this.listCollarUse)
-      } else if (this.activeName == 'third') {
-        sortChange(column, this.listOldProducts)
-      }
-    },
-    get_auto_buttons() {
-      // 查看
-      const See = 'maintenance:maintain:see'
-      const isSee = checkButtons(JSON.parse(sessionStorage.buttons), See)
-      this.isSee = isSee
-      //  保养及领用
-      const LingYong = 'maintenance:maintain:lingyong'
-      const isLingYong = checkButtons(JSON.parse(sessionStorage.buttons), LingYong)
-      this.isLingYong = isLingYong
-      //  完成保养
-      const Complete = 'maintenance:maintain:complete'
-      const isComplete = checkButtons(JSON.parse(sessionStorage.buttons), Complete)
-      this.isComplete = isComplete
-      //  使用人保养审核
-      const Charge = 'maintenance:maintain:charge'
-      const isCharge = checkButtons(JSON.parse(sessionStorage.buttons), Charge)
-      this.isCharge = isCharge
-      //  主管审核
-      const LeaderCharge = 'maintenance:maintain:leaderCharge'
-      const isLeaderCharge = checkButtons(JSON.parse(sessionStorage.buttons), LeaderCharge)
-      this.isLeaderCharge = isLeaderCharge
-      // 部门审核
-      const DeptCharge = 'maintenance:maintain:deptcharge'
-      const isDepartmentCharge = checkButtons(JSON.parse(sessionStorage.buttons), DeptCharge)
-      this.isDepartmentCharge = isDepartmentCharge
-    },
-    // next() {
-    //   if (this.active++ > 2) this.active = 0
-    //   this.finishStatus = 'error'
-    // },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDictByName = response.data.getDictByName.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps = {
-        inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-        pastureName: this.getdataListParm.parammaps.pastureName,
-        SHStatue: this.getdataListParm.parammaps.SHStatue,
-        upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-        eqName: this.getdataListParm.parammaps.eqName,
-        eqCode: this.getdataListParm.parammaps.eqCode,
-        departmentId: this.getdataListParm.parammaps.departmentId,
-        statue: this.getdataListParm.parammaps.statue,
-        loginId: Cookies.get('employeid'),
-        menu: 'Maintain',
-        logindeptId: Cookies.get('departmentid'),
-        loginpastureId: Cookies.get('pastureid'),
-        empId: Cookies.get('employeid'),
-        pastureId: Cookies.get('pastureid'),
-        deptId: Cookies.get('departmentid')
-      }
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.getdataListParm.parammaps.inputDatetime !== undefined && this.getdataListParm.parammaps.inputDatetime !== '') {
-        this.getdataListParm.parammaps.startTime = this.getdataListParm.parammaps.inputDatetime[0]
-        this.getdataListParm.parammaps.stopTime = this.getdataListParm.parammaps.inputDatetime[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.$set(response.data.list[i], 'img', '视频')
-          }
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        // Just to simulate the time of the request
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    tableCellStyle({ row, column, rowIndex, columnIndex }) {
-      if (row.statue == 0 && columnIndex === 10) {
-        return {
-          background: 'red',
-          color: '#fff'
-        }
-      }
-      return {
-        background: ''
-      }
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getBigupkeepList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getBigupkeepWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getBigupkeepWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '已逾期'
-      } else if (cellValue.statue == 1) {
-        return '保养中'
-      } else if (cellValue.statue == 2) {
-        return '已完成'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 6) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 8) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 5) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 7) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    form_see(row) {
-      this.seeTemp = Object.assign({}, row)
-      console.log('查看', this.seeTemp)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '完成保养' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 0
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 1
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 5) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: '', reason: '' }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 6) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 7) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 4
-      } else if (this.seeTemp.SHStatue === 8) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 4
-      }
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (this.seeTemp.SHStatue !== 1) {
-        // 查看显示类型2
-        this.statue1 = false
-        this.statue2 = true
-        this.getMaintenanceContentList()
-      } else {
-        if (this.seeTemp.SHStatue == 1 && this.seeTemp.LYStatue == '未领用' && this.seeTemp.LRStatue == '未录入') {
-          // 查看显示类型1
-          this.statue1 = true
-          this.statue2 = false
-          this.getMaintenanceContentList()
-        } else {
-          // 查看显示类型2
-          this.statue1 = false
-          this.statue2 = true
-          this.getMaintenanceContentList()
-        }
-      }
-      this.collarUseTemp = {}
-      this.listCollarUse = []
-      this.getCollarUse()
-      this.getOldProductsList()
-    },
-    getMaintenanceContentList() {
-      this.getMaintenanceContentParm.parammaps.id = this.seeTemp.id
-      this.listLoadingMaintenanceContent = true
-      GetDataByName(this.getMaintenanceContentParm).then(response => {
-        console.log('保养内容table数据', response.data.list)
-        this.listMaintenanceContent = response.data.list
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoadingMaintenanceContent = false
-        }, 100)
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: this.collarUseTemp.applyCode }})
-      }
-    },
-    getCollarUse() {
-      this.getCollarUseParm.parammaps.RUCode = this.seeTemp.upkeepCode
-      GetDataByName(this.getCollarUseParm).then(response => {
-        this.collarUseTemp = response.data.list[0]
-        if (response.data.list.length > 0) {
-          console.log('领用记录数据', response.data.list[0])
-          if (response.data.list[0].statue == 0) {
-            this.$set(this.collarUseTemp, 'statueName', '未领用')
-          } else {
-            this.$set(this.collarUseTemp, 'statueName', '已领用')
-          }
-        }
-        this.getCollarUseList()
-      })
-    },
-    getCollarUseList() {
-      this.getCollarUseListParm.parammaps.id = this.collarUseTemp.id
-      this.listLoadingCollarUse = true
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    getOldProductsList() {
-      this.getOldProductsParm.parammaps.repairCode = this.seeTemp.upkeepCode
-      this.listLoadingOldProducts = true
-      GetDataByName(this.getOldProductsParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 保养及领用
-    handleReceivingSpareParts(row) {
-      console.log('点击了保养及领用')
-      if (row == undefined) {
-        this.receivingTemp = this.seeTemp
-      } else {
-        this.receivingTemp = Object.assign({}, row)
-      }
-      this.maintainTemp = this.receivingTemp
-      this.maintainTemp.employeeId = String(this.maintainTemp.useEmpId)
-      this.seeTemp = this.maintainTemp
-      this.listCollarUse = []
-      this.getAutoCreatCode()
-      this.receivingTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.getEmpdeptList()
-      this.getCollarUse()
-      this.getMaintenanceContentList()
-      this.dialogStatus = 'receivingSpareParts'
-      this.dialogFormVisible_ReceivingSpareParts = true
-    },
-    getEmpdeptList() {
-      this.getEmpdeptParm.parammaps.deptId = this.maintainTemp.departmentId
-      GetDataByName(this.getEmpdeptParm).then(response => {
-        console.log('保养使用人', response.data.list)
-        if (response.data.list !== null) {
-          this.empdeptList = response.data.list
-        } else {
-          this.empdeptList = []
-        }
-      })
-    },
-    getAutoCreatCode() {
-      GetDataByName(this.getAutoCreatCodeParm).then(response => {
-        console.log('领用领用单号', response.data.list[0])
-        this.receivingTemp.applyCode = response.data.list[0].orderCode
-        this.$forceUpdate()
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCollarUse.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCollarUse.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此备件已存在,请重新选择备件'
-          })
-        } else {
-          this.listCollarUse.unshift(item)
-        }
-      } else {
-        this.listCollarUse = []
-        this.listCollarUse.unshift(item)
-      }
-    },
-    createReceivingSparePartseData1() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintainTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'updateEquseEmpId', 'type': 'e', 'parammaps': {
-            employeeId: this.maintainTemp.employeeId,
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'deleteutupbyBigid', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listMaintenanceContent }}
-          this.postDataPramas.data[2].children = []
-          this.postDataPramas.data[2].children[0] = { 'name': 'insertutup', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id,
-            positionName: '@insertSpotList.positionName',
-            program: '@insertSpotList.program',
-            standard: '@insertSpotList.standard',
-            active: '@insertSpotList.active'
-          }}
-          ExecDataByConfig(this.postDataPramas).then(response => {
-            console.log('添加领用保存发送参数', this.postDataPramas)
-            if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-            } else {
-              this.dialogFormVisible_ReceivingSpareParts = false
-              this.dialogFormVisible_See = false
-              this.get_table_data()
-              this.getPendingList()
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    createReceivingSparePartseData2() {
-      console.log('点击了保养及领用保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['receivingTemp'].validate(valid => {
-        if (valid) {
-          if (this.listCollarUse.length !== 0) {
-            for (var i = 0; i < this.listCollarUse.length; i++) {
-              console.log(this.listCollarUse[i].amount)
-              if (this.listCollarUse[i].amount !== undefined) {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCollarUse[i].amount)) {
-                  this.$message({ type: 'error', message: '领用数量请输入正数,最多保留两位小数', duration: 2000 })
-                  return false
-                } else if (parseFloat(this.listCollarUse[i].amount) > parseFloat(this.listCollarUse[i].reportery)) {
-                  this.$message({ type: 'error', message: '领用数量不可大于库存数', duration: 2000 })
-                  return false
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-            let mySumPrice = 0
-            for (let i = 0; i < this.listCollarUse.length; i++) {
-              mySumPrice += parseFloat(this.listCollarUse[i].price) * parseFloat(this.listCollarUse[i].amount)
-            }
-            if (mySumPrice > 500) {
-              this.receivingTemp.SHStatus = 2
-            } else {
-              this.receivingTemp.SHStatus = 9
-            }
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-              pastureId: this.$store.state.user.pastureid,
-              applyCode: this.receivingTemp.applyCode,
-              applyType: 2,
-              departmentId: this.receivingTemp.departmentId,
-              empId: this.receivingTemp.upkeepPersonId,
-              applyDate: this.receivingTemp.createDate,
-              RUCode: this.receivingTemp.upkeepCode,
-              SHStatus: this.receivingTemp.SHStatus
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listCollarUse }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-              bigId: '@insertBigpartapply.LastInsertId',
-              pastureId: '@insertSpotList.pastureId',
-              partId: '@insertSpotList.partId',
-              partCode: '@insertSpotList.partCode',
-              partName: '@insertSpotList.partName',
-              specification: '@insertSpotList.specification',
-              brandId: '@insertSpotList.brandId',
-              price: '@insertSpotList.price',
-              amount: '@insertSpotList.amount',
-              eqName: this.receivingTemp.eqName,
-              eqCode: this.receivingTemp.eqCode,
-              providerId: '@insertSpotList.providerId',
-              note: '@insertSpotList.note',
-              reportery: '@insertSpotList.reportery',
-              contractId: '@insertSpotList.contractId',
-              locationId: '@insertSpotList.locationId'
-            }}
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('添加领用保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-              } else {
-                this.dialogFormVisible_ReceivingSpareParts = false
-                this.dialogFormVisible_See = false
-                this.get_table_data()
-                this.getPendingList()
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-            // return true
-          } else {
-            this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    // 完成保养
-    handleCompleteMaintenance(row) {
-      console.log('点击了完成保养', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.maintainCompleteTemp = this.seeTemp
-      } else {
-        this.maintainCompleteTemp = Object.assign({}, row)
-        this.$set(this.maintainCompleteTemp, 'isOldProducts', 0)
-      }
-      this.dialogStatus = 'maintainComplete'
-      this.No2 = false
-      this.dialogFormVisible_maintainComplete = true
-      this.listAdd = []
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps.partCode = queryString
-      this.requestOldProducts.parammaps.RUCode = this.maintainCompleteTemp.upkeepCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.maintainCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此旧品已存在,请重新选择旧品'
-          })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    sparePartsDelete(row) {
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCollarUse.length; i++) {
-          console.log(this.listCollarUse[i])
-          if (this.listCollarUse[i].id === row.id) {
-            var listCollarUseIndex = this.listCollarUse.indexOf(this.listCollarUse[i])
-          }
-          if (listCollarUseIndex > -1) {
-            this.listCollarUse.splice(listCollarUseIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 完成保养-保存
-    createMaintainCompleteData() {
-      console.log('点击了完成保养确认', this.maintainCompleteTemp.laidcou)
-      if (this.maintainCompleteTemp.laidcou == 0) {
-        if (this.maintainCompleteTemp.isOldProducts == 0) {
-          console.log('否')
-          this.requestParam.name = 'completeUpkeep'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.maintainCompleteTemp.id
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.dialogFormVisible_maintainComplete = false
-              this.dialogFormVisible_See = false
-              this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-              this.get_table_data()
-              this.getPendingList()
-              // 临时注释
-              // if (this.maintainCompleteTemp.videoTxt == '已录制') {
-              // this.requestParam2.name = 'upkeepChargDone'
-              // this.requestParam2.parammaps = {}
-              // this.requestParam2.parammaps.id = this.maintainCompleteTemp.id
-              // this.requestParam2.parammaps.statue = 7
-              // this.requestParam2.parammaps.orderStatue = 2
-              // this.requestParam2.parammaps.empId = Cookies.get('employeid')
-              // PostDataByName(this.requestParam2).then(response => {
-              //   if (response.msg !== 'fail') {
-              //     if (this.getdataListParm.parammaps.inputDatetime === null) {
-              //       this.getdataListParm.parammaps.inputDatetime = ''
-              //     }
-              //     this.dialogFormVisible_maintainComplete = false
-              //     this.dialogFormVisible_See = false
-              //     this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-              //     this.get_table_data()
-              //     this.getPendingList()
-              //   } else {
-              //     failproccess(response, this.$notify)
-              //   }
-              // })
-              // }
-              // 临时注释
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        } else {
-          console.log('是')
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['maintainCompleteTemp'].validate(valid => {
-            if (valid) {
-              if (this.listAdd.length !== 0) {
-                for (var i = 0; i < this.listAdd.length; i++) {
-                  if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                    this.$message({
-                      type: 'warning',
-                      message: '请录入数量是否未填写',
-                      duration: 2000
-                    })
-                    return false
-                  } else {
-                    var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                    if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                      this.$message({
-                        type: 'error',
-                        message: '录入数量请输入正数,最多保留两位小数点',
-                        duration: 2000
-                      })
-                      return false
-                    }
-                  }
-                }
-                this.postDataPramas.common = { 'returnmap': '0' }
-                this.postDataPramas.data = []
-                this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                this.postDataPramas.data[0].children = []
-                this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                  pastureId: Cookies.get('pastureid'),
-                  deptId: this.maintainCompleteTemp.departmentId,
-                  partCode: '@insertSpotList.partCode',
-                  partName: '@insertSpotList.partName',
-                  partId: '@insertSpotList.id',
-                  specification: '@insertSpotList.specification',
-                  unit: '@insertSpotList.unit',
-                  acturalAmount: '@insertSpotList.acturalAmount',
-                  eqId: this.maintainCompleteTemp.eqId,
-                  eqCode: this.maintainCompleteTemp.eqCode,
-                  eqName: this.maintainCompleteTemp.eqName,
-                  repairCode: this.maintainCompleteTemp.upkeepCode,
-                  listType: 1
-                }}
-                this.postDataPramas.data[1] = { 'name': 'completeUpkeep', 'type': 'e', 'parammaps': {
-                  id: this.maintainCompleteTemp.id
-                }}
-                ExecDataByConfig(this.postDataPramas).then(response => {
-                  console.log('完成维修-是-保存发送参数', this.postDataPramas)
-                  if (response.msg === 'fail') {
-                    this.$notify({
-                      title: '保存失败',
-                      message: response.data,
-                      type: 'warning',
-                      duration: 2000
-                    })
-                  } else {
-                    this.dialogFormVisible_maintainComplete = false
-                    this.dialogFormVisible_See = false
-                    this.get_table_data()
-                    this.getPendingList()
-                    this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                  }
-                })
-                return true
-              } else {
-                this.$notify({
-                  title: '',
-                  message: '请完善旧品信息',
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-            }
-          })
-        }
-      } else {
-        this.$notify({ message: '备件未领用不可完成保养', type: 'warning', duration: 2000 })
-      }
-    },
-    // 保养审核
-    handleExamine(row) {
-      console.log('点击了保养审核')
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_examine = true
-    },
-    changeIsStatue(val) {
-      console.log(val)
-      if (val == 4) {
-        this.isStatueReason = true
-      } else {
-        this.isStatueReason = false
-      }
-    },
-    // 保养审核1
-    createExamineData() {
-      console.log('点击了保养审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'upkeepCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.isStatue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('保养审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.dialogFormVisible_examine = false
-              this.dialogFormVisible_See = false
-              this.isStatueReason = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 保养审核2
-    handleExamine2(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine2'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核2-保存
-    createExamineData2() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核2确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 7
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核2确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 8
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 保养审核2
-    handleExamine3(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine3'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核3-保存
-    createExamineData3() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核3确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核3确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    preview(row) {
-      console.log(row, '=====666')
-      this.dialogStatus = 'video'
-      this.dialogFormVisible_video = true
-      // row.videoPath = 'https://sys.mcs8.net:7706' + row.videoPath
-      this.videoTemp = Object.assign({}, row)
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

+ 0 - 2185
src/views/maintenance/maintain/index改好.vue

@@ -1,2185 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.upkeepCode" placeholder="保养单号" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 180px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in statues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="tableCellStyle"
-      class="elTable table-fixed"
-    >
-      <el-table-column label="序号" align="center" type="index" width="50px">
-        <template slot-scope="scope">
-          <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养单号" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="责任人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.employeName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepPerson }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养日期" sortable prop="plantime" min-width="80px" align="center" />
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="statue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="80px" align="center" :formatter="SHStatue" />
-		<el-table-column prop="img" label="保养过程" width="180" align="center">
-        <template slot-scope="scope">
-          <el-link @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }} </el-link>
-          <el-link  v-if="scope.row.videoTxt == '未录制'">未录制 </el-link>
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" align="center" min-width="300" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 保养及领用-->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8 ) && row.LYStatue == '未领用' && row.statue !== 0 && isLingYong && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:80px;display:inline-block" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <!-- 完成保养 -->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8) && row.statue !== 0 && isComplete && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <!-- 保养审核 -->
-          <el-button v-if="(row.SHStatue == 2 ) && isCharge && row.useEmpId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine(row)">保养审核</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine(row)">保养审核</el-button>
-          <!-- 保养审核3 -->
-          <el-button v-if="(row.SHStatue == 5) && isLeaderCharge" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine2(row)">保养审核3</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine2(row)">保养审核3</el-button>
-          <!-- 保养审核2 -->
-          <el-button v-if="(row.SHStatue == 3) && isDepartmentCharge && (row.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine3(row)">保养审核2</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine3(row)">保养审核2</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <!-- 查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false" width="90%">
-      <div class="app-see">
-        <div v-if="statue1" class="see">
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养单号:" prop="upkeepCode">
-                  <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="责任人:" prop="employeName">
-                  <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="保养日期:" prop="plantime">
-                  <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoading"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.active }}</span>
-              </template>
-            </el-table-column>
-          </el-table>
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in activeList"
-                    :key="index"
-                    :title="item.title"
-                    :status="item.status"
-                  >
-                    <template slot="description">
-                      <div class="step-row">
-                        <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                        <div>{{ item.reason }}</div>
-                        <div>{{ item.scores }}</div>
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <!-- 完成保养 -->
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <!-- 保养审核 -->
-                  <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine()">保养审核</el-button>
-                  <!-- 保养审核3 -->
-                  <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">保养审核3</el-button>
-                  <!-- 保养审核2 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="width:70px;display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                  <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="statue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="保养信息" name="first">
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养单号:" prop="upkeepCode">
-                      <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="责任人:" prop="employeName">
-                      <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养人:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="保养日期:" prop="plantime">
-                      <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="使用人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="12">
-                    <el-form-item label="保养内容:" prop="upNameLevel">
-                      <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingMaintenanceContent"
-                element-loading-text="给我一点时间"
-                :data="listMaintenanceContent"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable table-fixed"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="部位" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="项目" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.program }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="标准" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.standard }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="执行动作" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.active }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <el-form-item label="流程进度" />
-                    <el-steps :active="active" align-center finish-status="success">
-                      <el-step
-                        v-for="(item,index) in activeList"
-                        :key="index"
-                        :title="item.title"
-                        :status="item.status"
-                      >
-                        <template slot="description">
-                          <div class="step-row">
-                            <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <el-form-item label="操作:">
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <!-- 完成保养 -->
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <!-- 保养审核 -->
-                      <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine()">保养审核</el-button>
-                      <!-- 保养审核3 -->
-                      <el-button v-if="(seeTemp.SHStatue == 5) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine2()">保养审核3</el-button>
-                      <!-- 保养审核2 -->
-                      <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-form ref="collarUseTemp" :rules="rules" :model="collarUseTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="6">
-                    <el-form-item label="领用单号:" prop="applyCode">
-                      <span>{{ collarUseTemp.applyCode }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用部门:" prop="departmentName">
-                      <span>{{ collarUseTemp.departmentName }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用日期:" prop="createDate">
-                      <span>{{ collarUseTemp.createDate }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用状态:" prop="statueName">
-                      <span>{{ collarUseTemp.statueName }}</span>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="reportery" label="库存数" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.reportery }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="amount" label="领用数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.amount }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="用途" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.note }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="acturalAmount" label="录入数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="dialogFormVisible_See = false;get_table_data();">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养及领用 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ReceivingSpareParts" :close-on-click-modal="false" width="90%">
-      <el-tabs v-model="activeName2">
-        <el-tab-pane label="保养" name="first">
-          <el-form
-            ref="maintainTemp"
-            :rules="rules"
-            :model="maintainTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="employeeId">
-                  <el-select v-model="maintainTemp.employeeId" placeholder="使用人" class="filter-item" style="width: 120px;">
-                    <el-option v-for="item in empdeptList" :key="item.id" :label="item.empname" :value="item.id" />
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="maintainTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.active" class="filter-item" style="width: 80%;">
-                  <el-option v-for="item in getDictByName" :key="item.id" :label="item. label" :value="item.value" />
-                </el-select>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-tab-pane>
-        <el-tab-pane label="备件领用" name="second">
-          <div class="app-receivingSpareParts">
-            <el-form
-              ref="receivingTemp"
-              :rules="rules"
-              :model="receivingTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="领用单号:" prop="applyCode">
-                    <span>{{ receivingTemp.applyCode }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用部门:" prop="departmentName">
-                    <span>{{ receivingTemp.departmentName }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用日期:" prop="createDate">
-                    <span>{{ receivingTemp.createDate }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-form-item label="所需备件:" prop="partCode">
-                  <el-autocomplete
-                    v-model="receivingTemp.partCode"
-                    value-key="name"
-                    class="inline-input"
-                    :fetch-suggestions="sparePartSearch"
-                    placeholder="请输入备件编号或备件名称或备件规格"
-                    style="width:100%"
-                    @select="handleSelectSparePart"
-                  >
-                    <template slot-scope="{ item }">
-                      <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                      |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                      |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    </template>
-                  </el-autocomplete>
-                </el-form-item>
-              </el-row>
-            </el-form>
-            <el-table
-              :key="tableKey"
-              v-loading="listLoadingCollarUse"
-              element-loading-text="给我一点时间"
-              :data="listCollarUse"
-              border
-              fit
-              highlight-current-row
-              style="width: 100%;"
-              :row-style="rowStyle"
-              :cell-style="cellStyle"
-              class="elTable"
-            >
-              <!-- table表格 -->
-              <el-table-column label="序号" align="center" type="index" width="50px">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件编号" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="库存数" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.reportery }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用数量" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="amount">
-                      <el-input ref="amount" v-model="scope.row.amount" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="用途" prop="note" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="note">
-                      <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-                <template slot-scope="{row}">
-                  <a class="del" @click="sparePartsDelete(row)">删除</a>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer" class="dialog-footer" style="bottom: 5px">
-        <el-button v-if="activeName2=='first'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData1()">确认</el-button>
-        <el-button v-if="activeName2=='second'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_ReceivingSpareParts = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 完成保养 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_maintainComplete" :close-on-click-modal="false" width="50%">
-      <div class="maintainComplete">
-        <el-form ref="maintainCompleteTemp" :rules="rules" :model="maintainCompleteTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="maintainCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="maintainCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格 "
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <!-- table表格 -->
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintainComplete'?createMaintainCompleteData():createMaintainCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_maintainComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_examine" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 auto;line-height:50px">请确认保养审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:88%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.isStatue" @change="changeIsStatue">
-                  <el-radio :label="3">通过</el-radio>
-                  <el-radio :label="4">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="isStatueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入保养不通过的原因" />
-            </el-col>
-          </el-row>
-          <el-row v-if="examineTemp.SHStatue == 2 && examineTemp.isStatue == 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
-        <el-button @click="dialogFormVisible_examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 视频 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_video" :close-on-click-modal="false" width="60%">
-      <div class="app-video">
-        <el-form ref="videoTemp" :rules="rules" :model="videoTemp" label-position="right" style="width: 80%;min-height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="" prop="scores">
-                <video :src="videoTemp.videoPath" controls="controls" style="width:90%;height:450px;margin:0 auto;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-// import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import Cookies from 'js-cookie'
-import { MessageBox } from 'element-ui'
-export default {
-  name: 'Maintain',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      active: 0,
-      activeList: [],
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      isokDisable: false,
-      rules: {
-        employeeId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'getDictByName', offset: 0, pagecount: 0, params: ['保养模板执行动作'] }
-      ],
-      getDepartParam: {
-        name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      statues: [{ id: '0', name: '已逾期' }, { id: '1', name: '保养中' }, { id: '2', name: '保养完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      empdeptList: [],
-      getDictByName: [],
-      radio2: '全部',
-      textMap: {
-        see: '查看详情',
-        receivingSpareParts: '保养及领用',
-        maintainComplete: '完成保养',
-        examine: '保养审核',
-        examine2: '保养审核2',
-        examine3: '保养审核3',
-        video: '视频'
-      },
-      dialogStatus: '',
-      radioAll: '全部',
-      getdataListParm: {
-        name: 'getBigupkeepList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      // 查看
-      dialogFormVisible_See: false,
-      seeTemp: {},
-      statue1: false,
-      statue2: false,
-      activeName: 'first',
-      listLoadingMaintenanceContent: false,
-      listMaintenanceContent: [],
-      getMaintenanceContentParm: {
-        name: 'getUpkeepTemplateListbyeqV2',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      Reason: false,
-      // 查看-领用记录
-      getCollarUseParm: {
-        name: 'getPartsapplybyMt',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      collarUseTemp: {},
-      // 查看-领用记录table
-      getCollarUseListParm: {
-        name: 'getpartapplyListBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      // 查看-旧品录入记录table
-      getOldProductsParm: {
-        name: 'getMaintainRefuse',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      // 保养及领用
-      dialogFormVisible_ReceivingSpareParts: false,
-      activeName2: 'first',
-      maintainTemp: {},
-      receivingTemp: {},
-      getEmpdeptParm: {
-        name: 'getEmpdept',
-        returntype: 'Map',
-        parammaps: {
-          deptId: ''
-        }
-      },
-      getAutoCreatCodeParm: {
-        name: 'autoCreatCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-
-      postDataPramas: {},
-      // 完成保养
-      dialogFormVisible_maintainComplete: false,
-      maintainCompleteTemp: {},
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      // 保养审核
-      dialogFormVisible_examine: false,
-      requestParam: {},
-      examineTemp: {
-        isStatue: 3
-      },
-      isStatueReason: false,
-      // 权限按钮
-      isSee: [],
-      isLingYong: [],
-      isComplete: [],
-      isCharge: [],
-      isLeaderCharge: [],
-      isDepartmentCharge: [],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      dialogFormVisible_video: false,
-      videoTemp: {},
-      requestParam2: {}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'sidebar',
-  //     'avatar',
-  //     'employeid',
-  //     'pastureid'
-  //   ])
-  // },
-  computed: {
-    space() {
-      const { isSimple, $parent: { space }} = this
-      return isSimple ? '' : space
-    },
-    style: function() {
-      const style = {}
-      const parent = this.$parent
-      const len = parent.steps.length
-
-      const space =
-        typeof this.space === 'number'
-          ? this.space + 'px'
-          : this.space
-            ? this.space
-            : 100 / (len - (this.isCenter ? 0 : 1)) + '%'
-      style.flexBasis = space
-      if (this.isVertical) return style
-      if (this.isLast) {
-        style.maxWidth = 100 / this.stepsCount + '%'
-      } else {
-        style.marginRight = -this.$parent.stepOffset + 'px'
-      }
-      return style
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'MaintenancePlan') {
-      this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      this.getdataListParm.parammaps.inputDatetime = [this.$route.query.time, this.$route.query.time]
-      this.getdataListParm.parammaps.startTime = this.$route.query.time
-      this.getdataListParm.parammaps.stopTime = this.$route.query.time
-    }
-    this.get_select_list()
-    this.get_table_data()
-    this.getPendingList()
-  },
-  methods: {
-    // handleCheck(row) {
-    //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
-    //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
-    // },
-    tableSort(column) {
-      if (this.activeName == 'second') {
-        sortChange(column, this.listCollarUse)
-      } else if (this.activeName == 'third') {
-        sortChange(column, this.listOldProducts)
-      }
-    },
-    get_auto_buttons() {
-      // 查看
-      const See = 'maintenance:maintain:see'
-      const isSee = checkButtons(JSON.parse(sessionStorage.buttons), See)
-      this.isSee = isSee
-      //  保养及领用
-      const LingYong = 'maintenance:maintain:lingyong'
-      const isLingYong = checkButtons(JSON.parse(sessionStorage.buttons), LingYong)
-      this.isLingYong = isLingYong
-      //  完成保养
-      const Complete = 'maintenance:maintain:complete'
-      const isComplete = checkButtons(JSON.parse(sessionStorage.buttons), Complete)
-      this.isComplete = isComplete
-      //  使用人保养审核
-      const Charge = 'maintenance:maintain:charge'
-      const isCharge = checkButtons(JSON.parse(sessionStorage.buttons), Charge)
-      this.isCharge = isCharge
-      //  主管审核
-      const LeaderCharge = 'maintenance:maintain:leaderCharge'
-      const isLeaderCharge = checkButtons(JSON.parse(sessionStorage.buttons), LeaderCharge)
-      this.isLeaderCharge = isLeaderCharge
-      // 部门审核
-      const DeptCharge = 'maintenance:maintain:deptcharge'
-      const isDepartmentCharge = checkButtons(JSON.parse(sessionStorage.buttons), DeptCharge)
-      this.isDepartmentCharge = isDepartmentCharge
-    },
-    // next() {
-    //   if (this.active++ > 2) this.active = 0
-    //   this.finishStatus = 'error'
-    // },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDictByName = response.data.getDictByName.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps = {
-        inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-        pastureName: this.getdataListParm.parammaps.pastureName,
-        SHStatue: this.getdataListParm.parammaps.SHStatue,
-        upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-        eqName: this.getdataListParm.parammaps.eqName,
-        eqCode: this.getdataListParm.parammaps.eqCode,
-        departmentId: this.getdataListParm.parammaps.departmentId,
-        statue: this.getdataListParm.parammaps.statue,
-        loginId: Cookies.get('employeid'),
-        menu: 'Maintain',
-        logindeptId: Cookies.get('departmentid'),
-        loginpastureId: Cookies.get('pastureid'),
-        empId: Cookies.get('employeid'),
-        pastureId: Cookies.get('pastureid'),
-        deptId: Cookies.get('departmentid')
-      }
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.getdataListParm.parammaps.inputDatetime !== undefined && this.getdataListParm.parammaps.inputDatetime !== '') {
-        this.getdataListParm.parammaps.startTime = this.getdataListParm.parammaps.inputDatetime[0]
-        this.getdataListParm.parammaps.stopTime = this.getdataListParm.parammaps.inputDatetime[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.$set(response.data.list[i], 'img', '视频')
-          }
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        // Just to simulate the time of the request
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    tableCellStyle({ row, column, rowIndex, columnIndex }) {
-      if (row.statue == 0 && columnIndex === 10) {
-        return {
-          background: 'red',
-          color: '#fff'
-        }
-      }
-      return {
-        background: ''
-      }
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getBigupkeepList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getBigupkeepWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getBigupkeepWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '已逾期'
-      } else if (cellValue.statue == 1) {
-        return '保养中'
-      } else if (cellValue.statue == 2) {
-        return '已完成'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 6) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 8) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 5) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 7) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    form_see(row) {
-      this.seeTemp = Object.assign({}, row)
-      console.log('查看', this.seeTemp)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '完成保养' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 0
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核' }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-        this.active = 1
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 2
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '部门主管审核' }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 5) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: '', reason: '' }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 6) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 7) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 4
-      } else if (this.seeTemp.SHStatue === 8) {
-        this.activeList = [{ title: '完成保养', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores }, { title: '部门主管审核', date: this.seeTemp.deptChargeDate, name: this.seeTemp.deptChargePerson }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 4
-      }
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (this.seeTemp.SHStatue !== 1) {
-        // 查看显示类型2
-        this.statue1 = false
-        this.statue2 = true
-        this.getMaintenanceContentList()
-      } else {
-        if (this.seeTemp.SHStatue == 1 && this.seeTemp.LYStatue == '未领用' && this.seeTemp.LRStatue == '未录入') {
-          // 查看显示类型1
-          this.statue1 = true
-          this.statue2 = false
-          this.getMaintenanceContentList()
-        } else {
-          // 查看显示类型2
-          this.statue1 = false
-          this.statue2 = true
-          this.getMaintenanceContentList()
-        }
-      }
-      this.collarUseTemp = {}
-      this.listCollarUse = []
-      this.getCollarUse()
-      this.getOldProductsList()
-    },
-    getMaintenanceContentList() {
-      this.getMaintenanceContentParm.parammaps.id = this.seeTemp.id
-      this.listLoadingMaintenanceContent = true
-      GetDataByName(this.getMaintenanceContentParm).then(response => {
-        console.log('保养内容table数据', response.data.list)
-        this.listMaintenanceContent = response.data.list
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoadingMaintenanceContent = false
-        }, 100)
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: this.collarUseTemp.applyCode }})
-      }
-    },
-    getCollarUse() {
-      this.getCollarUseParm.parammaps.RUCode = this.seeTemp.upkeepCode
-      GetDataByName(this.getCollarUseParm).then(response => {
-        this.collarUseTemp = response.data.list[0]
-        if (response.data.list.length > 0) {
-          console.log('领用记录数据', response.data.list[0])
-          if (response.data.list[0].statue == 0) {
-            this.$set(this.collarUseTemp, 'statueName', '未领用')
-          } else {
-            this.$set(this.collarUseTemp, 'statueName', '已领用')
-          }
-        }
-        this.getCollarUseList()
-      })
-    },
-    getCollarUseList() {
-      this.getCollarUseListParm.parammaps.id = this.collarUseTemp.id
-      this.listLoadingCollarUse = true
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    getOldProductsList() {
-      this.getOldProductsParm.parammaps.repairCode = this.seeTemp.upkeepCode
-      this.listLoadingOldProducts = true
-      GetDataByName(this.getOldProductsParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 保养及领用
-    handleReceivingSpareParts(row) {
-      console.log('点击了保养及领用')
-      if (row == undefined) {
-        this.receivingTemp = this.seeTemp
-      } else {
-        this.receivingTemp = Object.assign({}, row)
-      }
-      this.maintainTemp = this.receivingTemp
-      this.maintainTemp.employeeId = String(this.maintainTemp.useEmpId)
-      this.seeTemp = this.maintainTemp
-      this.listCollarUse = []
-      this.getAutoCreatCode()
-      this.receivingTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.getEmpdeptList()
-      this.getCollarUse()
-      this.getMaintenanceContentList()
-      this.dialogStatus = 'receivingSpareParts'
-      this.dialogFormVisible_ReceivingSpareParts = true
-    },
-    getEmpdeptList() {
-      this.getEmpdeptParm.parammaps.deptId = this.maintainTemp.departmentId
-      GetDataByName(this.getEmpdeptParm).then(response => {
-        console.log('保养使用人', response.data.list)
-        if (response.data.list !== null) {
-          this.empdeptList = response.data.list
-        } else {
-          this.empdeptList = []
-        }
-      })
-    },
-    getAutoCreatCode() {
-      GetDataByName(this.getAutoCreatCodeParm).then(response => {
-        console.log('领用领用单号', response.data.list[0])
-        this.receivingTemp.applyCode = response.data.list[0].orderCode
-        this.$forceUpdate()
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCollarUse.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCollarUse.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此备件已存在,请重新选择备件'
-          })
-        } else {
-          this.listCollarUse.unshift(item)
-        }
-      } else {
-        this.listCollarUse = []
-        this.listCollarUse.unshift(item)
-      }
-    },
-    createReceivingSparePartseData1() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintainTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'updateEquseEmpId', 'type': 'e', 'parammaps': {
-            employeeId: this.maintainTemp.employeeId,
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'deleteutupbyBigid', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listMaintenanceContent }}
-          this.postDataPramas.data[2].children = []
-          this.postDataPramas.data[2].children[0] = { 'name': 'insertutup', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id,
-            positionName: '@insertSpotList.positionName',
-            program: '@insertSpotList.program',
-            standard: '@insertSpotList.standard',
-            active: '@insertSpotList.active'
-          }}
-          ExecDataByConfig(this.postDataPramas).then(response => {
-            console.log('添加领用保存发送参数', this.postDataPramas)
-            if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-            } else {
-              this.dialogFormVisible_ReceivingSpareParts = false
-              this.dialogFormVisible_See = false
-              this.get_table_data()
-              this.getPendingList()
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    createReceivingSparePartseData2() {
-      console.log('点击了保养及领用保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['receivingTemp'].validate(valid => {
-        if (valid) {
-          if (this.listCollarUse.length !== 0) {
-            for (var i = 0; i < this.listCollarUse.length; i++) {
-              console.log(this.listCollarUse[i].amount)
-              if (this.listCollarUse[i].amount !== undefined) {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCollarUse[i].amount)) {
-                  this.$message({ type: 'error', message: '领用数量请输入正数,最多保留两位小数', duration: 2000 })
-                  return false
-                } else if (parseFloat(this.listCollarUse[i].amount) > parseFloat(this.listCollarUse[i].reportery)) {
-                  this.$message({ type: 'error', message: '领用数量不可大于库存数', duration: 2000 })
-                  return false
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-            let mySumPrice = 0
-            for (let i = 0; i < this.listCollarUse.length; i++) {
-              mySumPrice += parseFloat(this.listCollarUse[i].price) * parseFloat(this.listCollarUse[i].amount)
-            }
-            if (mySumPrice > 500) {
-              this.receivingTemp.SHStatus = 2
-            } else {
-              this.receivingTemp.SHStatus = 9
-            }
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-              pastureId: this.$store.state.user.pastureid,
-              applyCode: this.receivingTemp.applyCode,
-              applyType: 2,
-              departmentId: this.receivingTemp.departmentId,
-              empId: this.receivingTemp.upkeepPersonId,
-              applyDate: this.receivingTemp.createDate,
-              RUCode: this.receivingTemp.upkeepCode,
-              SHStatus: this.receivingTemp.SHStatus
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listCollarUse }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-              bigId: '@insertBigpartapply.LastInsertId',
-              pastureId: '@insertSpotList.pastureId',
-              partId: '@insertSpotList.partId',
-              partCode: '@insertSpotList.partCode',
-              partName: '@insertSpotList.partName',
-              specification: '@insertSpotList.specification',
-              brandId: '@insertSpotList.brandId',
-              price: '@insertSpotList.price',
-              amount: '@insertSpotList.amount',
-              eqName: this.receivingTemp.eqName,
-              eqCode: this.receivingTemp.eqCode,
-              providerId: '@insertSpotList.providerId',
-              note: '@insertSpotList.note',
-              reportery: '@insertSpotList.reportery',
-              contractId: '@insertSpotList.contractId',
-              locationId: '@insertSpotList.locationId'
-            }}
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('添加领用保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-              } else {
-                this.dialogFormVisible_ReceivingSpareParts = false
-                this.dialogFormVisible_See = false
-                this.get_table_data()
-                this.getPendingList()
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-            // return true
-          } else {
-            this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    // 完成保养
-    handleCompleteMaintenance(row) {
-      console.log('点击了完成保养', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.maintainCompleteTemp = this.seeTemp
-      } else {
-        this.maintainCompleteTemp = Object.assign({}, row)
-        this.$set(this.maintainCompleteTemp, 'isOldProducts', 0)
-      }
-      this.dialogStatus = 'maintainComplete'
-      this.No2 = false
-      this.dialogFormVisible_maintainComplete = true
-      this.listAdd = []
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps.partCode = queryString
-      this.requestOldProducts.parammaps.RUCode = this.maintainCompleteTemp.upkeepCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.maintainCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此旧品已存在,请重新选择旧品'
-          })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    sparePartsDelete(row) {
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCollarUse.length; i++) {
-          console.log(this.listCollarUse[i])
-          if (this.listCollarUse[i].id === row.id) {
-            var listCollarUseIndex = this.listCollarUse.indexOf(this.listCollarUse[i])
-          }
-          if (listCollarUseIndex > -1) {
-            this.listCollarUse.splice(listCollarUseIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 完成保养-保存
-    createMaintainCompleteData() {
-      console.log('点击了完成保养确认', this.maintainCompleteTemp)
-      console.log('点击了完成保养确认', this.maintainCompleteTemp.laidcou)
-      if (this.maintainCompleteTemp.laidcou == 0) {
-        if (this.maintainCompleteTemp.isOldProducts == 0) {
-          console.log('否')
-          this.requestParam.name = 'completeUpkeep'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.maintainCompleteTemp.id
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-
-
-              //如果有设备记录仪的权限
-              if(this.maintainCompleteTemp.isVideoBtnShow == '1'){
-                // 临时注释
-                  if (this.maintainCompleteTemp.videoTxt == '已录制') {
-                    this.requestParam2.name = 'upkeepChargDone'
-                    this.requestParam2.parammaps = {}
-                    this.requestParam2.parammaps.id = this.maintainCompleteTemp.id
-                    this.requestParam2.parammaps.statue = 7
-                    this.requestParam2.parammaps.orderStatue = 2
-                    this.requestParam2.parammaps.empId = Cookies.get('employeid')
-                    PostDataByName(this.requestParam2).then(response => {
-                      if (response.msg !== 'fail') {
-                        if (this.getdataListParm.parammaps.inputDatetime === null) {
-                          this.getdataListParm.parammaps.inputDatetime = ''
-                        }
-                        this.get_table_data()
-                        this.dialogFormVisible_maintainComplete = false
-                        this.dialogFormVisible_See = false
-                        this.getPendingList()
-                        this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                      } else {
-                        failproccess(response, this.$notify)
-                      }
-                    })
-                  }
-              // 临时注释
-              }else{
-                //正常流程。没有记录仪权限
-
-                 if (this.getdataListParm.parammaps.inputDatetime === null) {
-                    this.getdataListParm.parammaps.inputDatetime = ''
-                  }
-                  this.dialogFormVisible_maintainComplete = false
-                  this.dialogFormVisible_See = false
-                  this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                  this.get_table_data()
-                  this.getPendingList()
-              }
-
-
-              
-
-
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        } else {
-          console.log('是')
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['maintainCompleteTemp'].validate(valid => {
-            if (valid) {
-              if (this.listAdd.length !== 0) {
-                for (var i = 0; i < this.listAdd.length; i++) {
-                  if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                    this.$message({
-                      type: 'warning',
-                      message: '请录入数量是否未填写',
-                      duration: 2000
-                    })
-                    return false
-                  } else {
-                    var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                    if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                      this.$message({
-                        type: 'error',
-                        message: '录入数量请输入正数,最多保留两位小数点',
-                        duration: 2000
-                      })
-                      return false
-                    }
-                  }
-                }
-                this.postDataPramas.common = { 'returnmap': '0' }
-                this.postDataPramas.data = []
-                this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                this.postDataPramas.data[0].children = []
-                this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                  pastureId: Cookies.get('pastureid'),
-                  deptId: this.maintainCompleteTemp.departmentId,
-                  partCode: '@insertSpotList.partCode',
-                  partName: '@insertSpotList.partName',
-                  partId: '@insertSpotList.id',
-                  specification: '@insertSpotList.specification',
-                  unit: '@insertSpotList.unit',
-                  acturalAmount: '@insertSpotList.acturalAmount',
-                  eqId: this.maintainCompleteTemp.eqId,
-                  eqCode: this.maintainCompleteTemp.eqCode,
-                  eqName: this.maintainCompleteTemp.eqName,
-                  repairCode: this.maintainCompleteTemp.upkeepCode,
-                  listType: 1
-                }}
-                this.postDataPramas.data[1] = { 'name': 'completeUpkeep', 'type': 'e', 'parammaps': {
-                  id: this.maintainCompleteTemp.id
-                }}
-                ExecDataByConfig(this.postDataPramas).then(response => {
-                  console.log('完成维修-是-保存发送参数', this.postDataPramas)
-                  if (response.msg === 'fail') {
-                    this.$notify({
-                      title: '保存失败',
-                      message: response.data,
-                      type: 'warning',
-                      duration: 2000
-                    })
-                  } else {
-                    this.dialogFormVisible_maintainComplete = false
-                    this.dialogFormVisible_See = false
-                    this.get_table_data()
-                    this.getPendingList()
-                    this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                  }
-                })
-                return true
-              } else {
-                this.$notify({
-                  title: '',
-                  message: '请完善旧品信息',
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-            }
-          })
-        }
-      } else {
-        this.$notify({ message: '备件未领用不可完成保养', type: 'warning', duration: 2000 })
-      }
-    },
-    // 保养审核
-    handleExamine(row) {
-      console.log('点击了保养审核')
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_examine = true
-    },
-    changeIsStatue(val) {
-      console.log(val)
-      if (val == 4) {
-        this.isStatueReason = true
-      } else {
-        this.isStatueReason = false
-      }
-    },
-    // 保养审核1
-    createExamineData() {
-      console.log('点击了保养审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'upkeepCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.isStatue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('保养审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.dialogFormVisible_examine = false
-              this.dialogFormVisible_See = false
-              this.isStatueReason = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 保养审核2
-    handleExamine2(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine2'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核2-保存
-    createExamineData2() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核2确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 7
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核2确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 8
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 保养审核2
-    handleExamine3(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine3'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核3-保存
-    createExamineData3() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核3确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核3确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    preview(row) {
-      console.log(row, '=====666')
-      this.dialogStatus = 'video'
-      this.dialogFormVisible_video = true
-      // row.videoPath = 'https://sys.mcs8.net:7706' + row.videoPath
-      this.videoTemp = Object.assign({}, row)
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

+ 0 - 2188
src/views/maintenance/maintain/index流程改了一半.vue

@@ -1,2188 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.upkeepCode" placeholder="保养单号" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 180px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 180px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in statues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker ref="inputDatetime" v-model="getdataListParm.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 250px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="tableCellStyle"
-      class="elTable table-fixed"
-    >
-      <el-table-column label="序号" align="center" type="index" width="50px">
-        <template slot-scope="scope">
-          <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养单号" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" min-width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="责任人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.employeName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.upkeepPerson }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="保养日期" sortable prop="plantime" min-width="80px" align="center" />
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="statue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="80px" align="center" :formatter="SHStatue" />
-		<el-table-column prop="img" label="保养过程" width="180" align="center">
-        <template slot-scope="scope">
-          <!-- <el-link @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }} </el-link> -->
-           <a style="border-bottom: 1px solid #333;" @click="preview(scope.row)" v-if="scope.row.videoTxt == '已录制'">{{ scope.row.videoTxt }}</a>
-          <el-link  v-if="scope.row.videoTxt == '未录制'">未录制 </el-link>
-          <el-link  v-if="scope.row.videoTxt == '已录制未上传'">已录制未上传 </el-link>
-        </template>
-      </el-table-column>
-      <el-table-column label="操作" align="center" min-width="300" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 保养及领用-->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8 ) && row.LYStatue == '未领用' && row.statue !== 0 && isLingYong && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:80px;display:inline-block" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleReceivingSpareParts(row)">保养及领用</el-button>
-          <!-- 完成保养 -->
-          <el-button v-if="(row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6 || row.SHStatue== 8) && row.statue !== 0 && isComplete && row.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleCompleteMaintenance(row)">完成保养</el-button>
-          <!-- 保养审核 -->
-          <el-button v-if="(row.SHStatue == 2 ) && isCharge && row.useEmpId == getdataListParm.parammaps.loginId" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine(row)">保养审核</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine(row)">保养审核</el-button>
-          <!-- 保养审核3 -->
-          <el-button v-if="(row.SHStatue == 3) && isLeaderCharge" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine2(row)">保养审核3</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine2(row)">保养审核3</el-button>
-          <!-- 保养审核2 -->
-          <!-- <el-button v-if="(row.SHStatue == 3) && isDepartmentCharge && (row.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" size="mini" style="width:70px;display:inline-block" @click="handleExamine3(row)">保养审核2</el-button>
-          <el-button v-else type="success" size="mini" style="width:70px;display:none" @click="handleExamine3(row)">保养审核2</el-button> -->
-        </template>
-      </el-table-column>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <!-- 查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false"  v-if ="dialogFormVisible_See" width="90%">
-      <div class="app-see">
-        <div v-if="statue1" class="see">
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养单号:" prop="upkeepCode">
-                  <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="责任人:" prop="employeName">
-                  <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="保养人:" prop="upkeepPerson">
-                  <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="保养日期:" prop="plantime">
-                  <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="useEmpName">
-                  <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.active }}</span>
-              </template>
-            </el-table-column>
-          </el-table>
-          <el-form
-            ref="seeTemp"
-            :rules="rules"
-            :model="seeTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in activeList"
-                    :key="index"
-                    :title="item.title"
-                    :status="item.status"
-                  >
-                    <template slot="description">
-                      <div class="step-row">
-                        <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                        <div>{{ item.reason }}</div>
-                        <div>{{ item.scores }}</div>
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                  <!-- 完成保养 -->
-                  <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                  <!-- 保养审核 -->
-                  <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine()">保养审核</el-button>
-                  <!-- 保养审核3 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">保养审核3</el-button>
-                  <!-- 保养审核2 -->
-                  <!-- <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="width:70px;display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                  <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button> -->
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="statue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="保养信息" name="first">
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养单号:" prop="upkeepCode">
-                      <el-input ref="upkeepCode" v-model="seeTemp.upkeepCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="责任人:" prop="employeName">
-                      <el-input ref="employeName" v-model="seeTemp.employeName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="保养人:" prop="upkeepPerson">
-                      <el-input ref="upkeepPerson" v-model="seeTemp.upkeepPerson" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="保养日期:" prop="plantime">
-                      <el-input ref="plantime" v-model="seeTemp.plantime" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="使用人:" prop="useEmpName">
-                      <el-input ref="useEmpName" v-model="seeTemp.useEmpName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="12">
-                    <el-form-item label="保养内容:" prop="upNameLevel">
-                      <el-input ref="upNameLevel" v-model="seeTemp.upNameLevel" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingMaintenanceContent"
-                element-loading-text="给我一点时间"
-                :data="listMaintenanceContent"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable table-fixed"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="部位" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="项目" min-width="140px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.program }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="标准" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.standard }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="执行动作" min-width="80px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.active }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <el-form-item label="流程进度" />
-                    <el-steps :active="active" align-center finish-status="success">
-                      <el-step
-                        v-for="(item,index) in activeList"
-                        :key="index"
-                        :title="item.title"
-                        :status="item.status"
-                      >
-                        <template slot="description">
-                          <div class="step-row">
-                            <div>{{ item.name }}&nbsp;&nbsp;{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <el-form-item label="操作:">
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.LYStatue == '未领用' && seeTemp.statue !== 0 && isLingYong && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleReceivingSpareParts()">保养及领用</el-button>
-                      <!-- 完成保养 -->
-                      <el-button v-if="(seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6 || seeTemp.SHStatue== 8) && seeTemp.statue !== 0 && isComplete && seeTemp.upkeepPersonId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleCompleteMaintenance()">完成保养</el-button>
-                      <!-- 保养审核 -->
-                      <el-button v-if="seeTemp.SHStatue == 2 && isCharge && seeTemp.useEmpId == getdataListParm.parammaps.loginId" type="success" style="display:inline-block" @click="handleExamine()">保养审核</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine()">保养审核</el-button>
-                      <!-- 保养审核3 -->
-                      <el-button v-if="(seeTemp.SHStatue == 3) && isLeaderCharge" type="success" style="display:inline-block" @click="handleExamine2()">保养审核3</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine2()">保养审核3</el-button>
-                      <!-- 保养审核2 -->
-                      <!-- <el-button v-if="(seeTemp.SHStatue == 3) && isDepartmentCharge && (seeTemp.departmentId ==getdataListParm.parammaps.logindeptId)" type="success" style="display:inline-block" @click="handleExamine3()">保养审核2</el-button>
-                      <el-button v-else type="success" style="width:70px;display:none" @click="handleExamine3()">保养审核2</el-button> -->
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-form ref="collarUseTemp" :rules="rules" :model="collarUseTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="6">
-                    <el-form-item label="领用单号:" prop="applyCode">
-                      <span>{{ collarUseTemp.applyCode }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用部门:" prop="departmentName">
-                      <span>{{ collarUseTemp.departmentName }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用日期:" prop="createDate">
-                      <span>{{ collarUseTemp.createDate }}</span>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="6">
-                    <el-form-item label="领用状态:" prop="statueName">
-                      <span>{{ collarUseTemp.statueName }}</span>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="reportery" label="库存数" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.reportery }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="amount" label="领用数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.amount }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="用途" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.note }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column sortable prop="acturalAmount" label="录入数量" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="close_diago()">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养及领用 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ReceivingSpareParts" :close-on-click-modal="false" width="90%">
-      <el-tabs v-model="activeName2">
-        <el-tab-pane label="保养" name="first">
-          <el-form
-            ref="maintainTemp"
-            :rules="rules"
-            :model="maintainTemp"
-            label-position="right"
-            label-width="120px"
-            style="width: 90%;margin:0 auto;"
-          >
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="使用人:" prop="employeeId">
-                  <el-select v-model="maintainTemp.employeeId" placeholder="使用人" class="filter-item" style="width: 120px;">
-                    <el-option v-for="item in empdeptList" :key="item.id" :label="item.empname" :value="item.id" />
-                  </el-select>
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="12">
-                <el-form-item label="保养内容:" prop="upNameLevel">
-                  <el-input ref="upNameLevel" v-model="maintainTemp.upNameLevel" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-          <el-table
-            :key="tableKey"
-            v-loading="listLoadingMaintenanceContent"
-            element-loading-text="给我一点时间"
-            :data="listMaintenanceContent"
-            border
-            fit
-            highlight-current-row
-            style="width: 90%;margin:0 auto;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable table-fixed"
-          >
-            <el-table-column label="序号" align="center" type="index" width="50px">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="部位" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.positionName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="项目" min-width="140px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.program }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="标准" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span>{{ scope.row.standard }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="执行动作" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.active" class="filter-item" style="width: 80%;">
-                  <el-option v-for="item in getDictByName" :key="item.id" :label="item. label" :value="item.value" />
-                </el-select>
-              </template>
-            </el-table-column>
-          </el-table>
-        </el-tab-pane>
-        <el-tab-pane label="备件领用" name="second">
-          <div class="app-receivingSpareParts">
-            <el-form
-              ref="receivingTemp"
-              :rules="rules"
-              :model="receivingTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="领用单号:" prop="applyCode">
-                    <span>{{ receivingTemp.applyCode }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用部门:" prop="departmentName">
-                    <span>{{ receivingTemp.departmentName }}</span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="领用日期:" prop="createDate">
-                    <span>{{ receivingTemp.createDate }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-form-item label="所需备件:" prop="partCode">
-                  <el-autocomplete
-                    v-model="receivingTemp.partCode"
-                    value-key="name"
-                    class="inline-input"
-                    :fetch-suggestions="sparePartSearch"
-                    placeholder="请输入备件编号或备件名称或备件规格"
-                    style="width:100%"
-                    @select="handleSelectSparePart"
-                  >
-                    <template slot-scope="{ item }">
-                      <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                      |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                      |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    </template>
-                  </el-autocomplete>
-                </el-form-item>
-              </el-row>
-            </el-form>
-            <el-table
-              :key="tableKey"
-              v-loading="listLoadingCollarUse"
-              element-loading-text="给我一点时间"
-              :data="listCollarUse"
-              border
-              fit
-              highlight-current-row
-              style="width: 100%;"
-              :row-style="rowStyle"
-              :cell-style="cellStyle"
-              class="elTable"
-            >
-              <!-- table表格 -->
-              <el-table-column label="序号" align="center" type="index" width="50px">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件编号" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="库存数" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.reportery }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用数量" min-width="110px" align="center">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="amount">
-                      <el-input ref="amount" v-model="scope.row.amount" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="用途" prop="note" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <el-form :model="scope.row">
-                    <el-form-item prop="note">
-                      <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                    </el-form-item>
-                  </el-form>
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-                <template slot-scope="{row}">
-                  <a class="del" @click="sparePartsDelete(row)">删除</a>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer" class="dialog-footer" style="bottom: 5px">
-        <el-button v-if="activeName2=='first'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData1()">确认</el-button>
-        <el-button v-if="activeName2=='second'" type="primary" :disabled="isokDisable" @click="createReceivingSparePartseData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_ReceivingSpareParts = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 完成保养 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_maintainComplete" :close-on-click-modal="false" width="50%">
-      <div class="maintainComplete">
-        <el-form ref="maintainCompleteTemp" :rules="rules" :model="maintainCompleteTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="maintainCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="maintainCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格 "
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <!-- table表格 -->
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintainComplete'?createMaintainCompleteData():createMaintainCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_maintainComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 保养审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_examine" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 auto;line-height:50px">请确认保养审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:88%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.isStatue" @change="changeIsStatue">
-                  <el-radio :label="3">通过</el-radio>
-                  <el-radio :label="4">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="isStatueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入保养不通过的原因" />
-            </el-col>
-          </el-row>
-          <el-row v-if="examineTemp.SHStatue == 2 && examineTemp.isStatue == 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
-        <el-button @click="dialogFormVisible_examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 视频 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_video" :close-on-click-modal="false" width="60%">
-      <div class="app-video">
-        <el-form ref="videoTemp" :rules="rules" :model="videoTemp" label-position="right" style="width: 80%;min-height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="24">
-              <el-form-item label="" prop="scores">
-                <video :src="videoTemp.videoPath" controls="controls" style="width:90%;height:450px;margin:0 auto;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-// import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import Cookies from 'js-cookie'
-import { MessageBox } from 'element-ui'
-export default {
-  name: 'Maintain',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      active: 0,
-      activeList: [],
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      isokDisable: false,
-      rules: {
-        employeeId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'getDictByName', offset: 0, pagecount: 0, params: ['保养模板执行动作'] }
-      ],
-      getDepartParam: {
-        name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      statues: [{ id: '0', name: '已逾期' }, { id: '1', name: '保养中' }, { id: '2', name: '保养完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      empdeptList: [],
-      getDictByName: [],
-      radio2: '全部',
-      textMap: {
-        see: '查看详情',
-        receivingSpareParts: '保养及领用',
-        maintainComplete: '完成保养',
-        examine: '保养审核',
-        examine2: '保养审核2',
-        examine3: '保养审核3',
-        video: '视频'
-      },
-      dialogStatus: '',
-      radioAll: '全部',
-      getdataListParm: {
-        name: 'getBigupkeepList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      // 查看
-      dialogFormVisible_See: false,
-      seeTemp: {},
-      statue1: false,
-      statue2: false,
-      activeName: 'first',
-      listLoadingMaintenanceContent: false,
-      listMaintenanceContent: [],
-      getMaintenanceContentParm: {
-        name: 'getUpkeepTemplateListbyeqV2',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      Reason: false,
-      // 查看-领用记录
-      getCollarUseParm: {
-        name: 'getPartsapplybyMt',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      collarUseTemp: {},
-      // 查看-领用记录table
-      getCollarUseListParm: {
-        name: 'getpartapplyListBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      // 查看-旧品录入记录table
-      getOldProductsParm: {
-        name: 'getMaintainRefuse',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      // 保养及领用
-      dialogFormVisible_ReceivingSpareParts: false,
-      activeName2: 'first',
-      maintainTemp: {},
-      receivingTemp: {},
-      getEmpdeptParm: {
-        name: 'getEmpdept',
-        returntype: 'Map',
-        parammaps: {
-          deptId: ''
-        }
-      },
-      getAutoCreatCodeParm: {
-        name: 'autoCreatCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-
-      postDataPramas: {},
-      // 完成保养
-      dialogFormVisible_maintainComplete: false,
-      maintainCompleteTemp: {},
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      // 保养审核
-      dialogFormVisible_examine: false,
-      requestParam: {},
-      examineTemp: {
-        isStatue: 3
-      },
-      isStatueReason: false,
-      // 权限按钮
-      isSee: [],
-      isLingYong: [],
-      isComplete: [],
-      isCharge: [],
-      isLeaderCharge: [],
-      isDepartmentCharge: [],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      dialogFormVisible_video: false,
-      videoTemp: {},
-      requestParam2: {}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'sidebar',
-  //     'avatar',
-  //     'employeid',
-  //     'pastureid'
-  //   ])
-  // },
-  computed: {
-    space() {
-      const { isSimple, $parent: { space }} = this
-      return isSimple ? '' : space
-    },
-    style: function() {
-      const style = {}
-      const parent = this.$parent
-      const len = parent.steps.length
-
-      const space =
-        typeof this.space === 'number'
-          ? this.space + 'px'
-          : this.space
-            ? this.space
-            : 100 / (len - (this.isCenter ? 0 : 1)) + '%'
-      style.flexBasis = space
-      if (this.isVertical) return style
-      if (this.isLast) {
-        style.maxWidth = 100 / this.stepsCount + '%'
-      } else {
-        style.marginRight = -this.$parent.stepOffset + 'px'
-      }
-      return style
-    }
-  },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'MaintenancePlan') {
-      this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      this.getdataListParm.parammaps.inputDatetime = [this.$route.query.time, this.$route.query.time]
-      this.getdataListParm.parammaps.startTime = this.$route.query.time
-      this.getdataListParm.parammaps.stopTime = this.$route.query.time
-    }
-    this.get_select_list()
-    this.get_table_data()
-    this.getPendingList()
-  },
-  methods: {
-    // handleCheck(row) {
-    //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
-    //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
-    // },
-    tableSort(column) {
-      if (this.activeName == 'second') {
-        sortChange(column, this.listCollarUse)
-      } else if (this.activeName == 'third') {
-        sortChange(column, this.listOldProducts)
-      }
-    },
-    get_auto_buttons() {
-      // 查看
-      const See = 'maintenance:maintain:see'
-      const isSee = checkButtons(JSON.parse(sessionStorage.buttons), See)
-      this.isSee = isSee
-      //  保养及领用
-      const LingYong = 'maintenance:maintain:lingyong'
-      const isLingYong = checkButtons(JSON.parse(sessionStorage.buttons), LingYong)
-      this.isLingYong = isLingYong
-      //  完成保养
-      const Complete = 'maintenance:maintain:complete'
-      const isComplete = checkButtons(JSON.parse(sessionStorage.buttons), Complete)
-      this.isComplete = isComplete
-      //  使用人保养审核
-      const Charge = 'maintenance:maintain:charge'
-      const isCharge = checkButtons(JSON.parse(sessionStorage.buttons), Charge)
-      this.isCharge = isCharge
-      //  主管审核
-      const LeaderCharge = 'maintenance:maintain:leaderCharge'
-      const isLeaderCharge = checkButtons(JSON.parse(sessionStorage.buttons), LeaderCharge)
-      this.isLeaderCharge = isLeaderCharge
-      // 部门审核
-      const DeptCharge = 'maintenance:maintain:deptcharge'
-      const isDepartmentCharge = checkButtons(JSON.parse(sessionStorage.buttons), DeptCharge)
-      this.isDepartmentCharge = isDepartmentCharge
-    },
-    // next() {
-    //   if (this.active++ > 2) this.active = 0
-    //   this.finishStatus = 'error'
-    // },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDictByName = response.data.getDictByName.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-
-    close_diago(){
-      console.log(11111111111111)
-      this.dialogFormVisible_See = false
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps = {
-        inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-        pastureName: this.getdataListParm.parammaps.pastureName,
-        SHStatue: this.getdataListParm.parammaps.SHStatue,
-        upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-        eqName: this.getdataListParm.parammaps.eqName,
-        eqCode: this.getdataListParm.parammaps.eqCode,
-        departmentId: this.getdataListParm.parammaps.departmentId,
-        statue: this.getdataListParm.parammaps.statue,
-        loginId: Cookies.get('employeid'),
-        menu: 'Maintain',
-        logindeptId: Cookies.get('departmentid'),
-        loginpastureId: Cookies.get('pastureid'),
-        empId: Cookies.get('employeid'),
-        pastureId: Cookies.get('pastureid'),
-        deptId: Cookies.get('departmentid')
-      }
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.getdataListParm.parammaps.inputDatetime !== undefined && this.getdataListParm.parammaps.inputDatetime !== '') {
-        this.getdataListParm.parammaps.startTime = this.getdataListParm.parammaps.inputDatetime[0]
-        this.getdataListParm.parammaps.stopTime = this.getdataListParm.parammaps.inputDatetime[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.$set(response.data.list[i], 'img', '视频')
-          }
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        // Just to simulate the time of the request
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    tableCellStyle({ row, column, rowIndex, columnIndex }) {
-      if (row.statue == 0 && columnIndex === 10) {
-        return {
-          background: 'red',
-          color: '#fff'
-        }
-      }
-      return {
-        background: ''
-      }
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getBigupkeepList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: '',
-          upkeepCode: '',
-          eqName: '',
-          eqCode: '',
-          departmentId: '',
-          statue: '',
-          pastureName: Cookies.get('pasturename'),
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          SHStatue: '',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getBigupkeepWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getBigupkeepWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          upkeepCode: this.getdataListParm.parammaps.upkeepCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          statue: this.getdataListParm.parammaps.statue,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Maintain',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '已逾期'
-      } else if (cellValue.statue == 1) {
-        return '保养中'
-      } else if (cellValue.statue == 2) {
-        return '已完成'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
- 
-      } else if (cellValue.SHStatue == 8) {
-        return '未通过'
-    
-      } else if (cellValue.SHStatue == 7) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    form_see(row) {
-      this.seeTemp = Object.assign({}, row)
-      console.log('查看', this.seeTemp)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '保养人审核' }, { title: '机修审核' },   { title: '设备主管审核' }]
-        this.active = 0
-        
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核' },  { title: '设备主管审核' }]
-        this.active = 1
-
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 2
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },   { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 2
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-        
-
-      } else if (this.seeTemp.SHStatue === 7) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },  { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 8) {
-        this.activeList = [{ title: '保养人审核', name: this.seeTemp.upkeepPerson, date: this.seeTemp.finishedTime, status: '', reason: '' }, { title: '机修审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: '', reason: '', scores: scores },   { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 3
-      }
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (this.seeTemp.SHStatue !== 1) {
-        // 查看显示类型2
-        this.statue1 = false
-        this.statue2 = true
-        this.getMaintenanceContentList()
-      } else {
-        if (this.seeTemp.SHStatue == 1 && this.seeTemp.LYStatue == '未领用' && this.seeTemp.LRStatue == '未录入') {
-          // 查看显示类型1
-          this.statue1 = true
-          this.statue2 = false
-          this.getMaintenanceContentList()
-        } else {
-          // 查看显示类型2
-          this.statue1 = false
-          this.statue2 = true
-          this.getMaintenanceContentList()
-        }
-      }
-      this.collarUseTemp = {}
-      this.listCollarUse = []
-      this.getCollarUse()
-      this.getOldProductsList()
-    },
-    getMaintenanceContentList() {
-      this.getMaintenanceContentParm.parammaps.id = this.seeTemp.id
-      this.listLoadingMaintenanceContent = false
-      GetDataByName(this.getMaintenanceContentParm).then(response => {
-        console.log('保养内容table数据', response.data.list)
-        this.listMaintenanceContent = response.data.list
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoadingMaintenanceContent = false
-        }, 100)
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: this.collarUseTemp.applyCode }})
-      }
-    },
-    getCollarUse() {
-      this.getCollarUseParm.parammaps.RUCode = this.seeTemp.upkeepCode
-      GetDataByName(this.getCollarUseParm).then(response => {
-        this.collarUseTemp = response.data.list[0]
-        if (response.data.list.length > 0) {
-          console.log('领用记录数据', response.data.list[0])
-          if (response.data.list[0].statue == 0) {
-            this.$set(this.collarUseTemp, 'statueName', '未领用')
-          } else {
-            this.$set(this.collarUseTemp, 'statueName', '已领用')
-          }
-        }
-        this.getCollarUseList()
-      })
-    },
-    getCollarUseList() {
-      this.getCollarUseListParm.parammaps.id = this.collarUseTemp.id
-      this.listLoadingCollarUse = true
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    getOldProductsList() {
-      this.getOldProductsParm.parammaps.repairCode = this.seeTemp.upkeepCode
-      this.listLoadingOldProducts = true
-      GetDataByName(this.getOldProductsParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 保养及领用
-    handleReceivingSpareParts(row) {
-      console.log('点击了保养及领用')
-      if (row == undefined) {
-        this.receivingTemp = this.seeTemp
-      } else {
-        this.receivingTemp = Object.assign({}, row)
-      }
-      this.maintainTemp = this.receivingTemp
-      this.maintainTemp.employeeId = String(this.maintainTemp.useEmpId)
-      this.seeTemp = this.maintainTemp
-      this.listCollarUse = []
-      this.getAutoCreatCode()
-      this.receivingTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.getEmpdeptList()
-      this.getCollarUse()
-      this.getMaintenanceContentList()
-      this.dialogStatus = 'receivingSpareParts'
-      this.dialogFormVisible_ReceivingSpareParts = true
-    },
-    getEmpdeptList() {
-      this.getEmpdeptParm.parammaps.deptId = this.maintainTemp.departmentId
-      GetDataByName(this.getEmpdeptParm).then(response => {
-        console.log('保养使用人', response.data.list)
-        if (response.data.list !== null) {
-          this.empdeptList = response.data.list
-        } else {
-          this.empdeptList = []
-        }
-      })
-    },
-    getAutoCreatCode() {
-      GetDataByName(this.getAutoCreatCodeParm).then(response => {
-        console.log('领用领用单号', response.data.list[0])
-        this.receivingTemp.applyCode = response.data.list[0].orderCode
-        this.$forceUpdate()
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCollarUse.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCollarUse.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此备件已存在,请重新选择备件'
-          })
-        } else {
-          this.listCollarUse.unshift(item)
-        }
-      } else {
-        this.listCollarUse = []
-        this.listCollarUse.unshift(item)
-      }
-    },
-    createReceivingSparePartseData1() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintainTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'updateEquseEmpId', 'type': 'e', 'parammaps': {
-            employeeId: this.maintainTemp.employeeId,
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'deleteutupbyBigid', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id
-          }}
-          this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listMaintenanceContent }}
-          this.postDataPramas.data[2].children = []
-          this.postDataPramas.data[2].children[0] = { 'name': 'insertutup', 'type': 'e', 'parammaps': {
-            id: this.maintainTemp.id,
-            positionName: '@insertSpotList.positionName',
-            program: '@insertSpotList.program',
-            standard: '@insertSpotList.standard',
-            active: '@insertSpotList.active'
-          }}
-          ExecDataByConfig(this.postDataPramas).then(response => {
-            console.log('添加领用保存发送参数', this.postDataPramas)
-            if (response.msg === 'fail') {
-              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-            } else {
-              this.dialogFormVisible_ReceivingSpareParts = false
-              this.dialogFormVisible_See = false
-              this.get_table_data()
-              this.getPendingList()
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        }
-      })
-    },
-    createReceivingSparePartseData2() {
-      console.log('点击了保养及领用保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['receivingTemp'].validate(valid => {
-        if (valid) {
-          if (this.listCollarUse.length !== 0) {
-            for (var i = 0; i < this.listCollarUse.length; i++) {
-              console.log(this.listCollarUse[i].amount)
-              if (this.listCollarUse[i].amount !== undefined) {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCollarUse[i].amount)) {
-                  this.$message({ type: 'error', message: '领用数量请输入正数,最多保留两位小数', duration: 2000 })
-                  return false
-                } else if (parseFloat(this.listCollarUse[i].amount) > parseFloat(this.listCollarUse[i].reportery)) {
-                  this.$message({ type: 'error', message: '领用数量不可大于库存数', duration: 2000 })
-                  return false
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-            let mySumPrice = 0
-            for (let i = 0; i < this.listCollarUse.length; i++) {
-              mySumPrice += parseFloat(this.listCollarUse[i].price) * parseFloat(this.listCollarUse[i].amount)
-            }
-            if (mySumPrice > 500) {
-              this.receivingTemp.SHStatus = 2
-            } else {
-              this.receivingTemp.SHStatus = 9
-            }
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-              pastureId: this.$store.state.user.pastureid,
-              applyCode: this.receivingTemp.applyCode,
-              applyType: 2,
-              departmentId: this.receivingTemp.departmentId,
-              empId: this.receivingTemp.upkeepPersonId,
-              applyDate: this.receivingTemp.createDate,
-              RUCode: this.receivingTemp.upkeepCode,
-              SHStatus: this.receivingTemp.SHStatus
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listCollarUse }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-              bigId: '@insertBigpartapply.LastInsertId',
-              pastureId: '@insertSpotList.pastureId',
-              partId: '@insertSpotList.partId',
-              partCode: '@insertSpotList.partCode',
-              partName: '@insertSpotList.partName',
-              specification: '@insertSpotList.specification',
-              brandId: '@insertSpotList.brandId',
-              price: '@insertSpotList.price',
-              amount: '@insertSpotList.amount',
-              eqName: this.receivingTemp.eqName,
-              eqCode: this.receivingTemp.eqCode,
-              providerId: '@insertSpotList.providerId',
-              note: '@insertSpotList.note',
-              reportery: '@insertSpotList.reportery',
-              contractId: '@insertSpotList.contractId',
-              locationId: '@insertSpotList.locationId'
-            }}
-            ExecDataByConfig(this.postDataPramas).then(response => {
-              console.log('添加领用保存发送参数', this.postDataPramas)
-              if (response.msg === 'fail') {
-                this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-              } else {
-                this.dialogFormVisible_ReceivingSpareParts = false
-                this.dialogFormVisible_See = false
-                this.get_table_data()
-                this.getPendingList()
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-            // return true
-          } else {
-            this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    // 完成保养
-    handleCompleteMaintenance(row) {
-      console.log('点击了完成保养', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.maintainCompleteTemp = this.seeTemp
-      } else {
-        this.maintainCompleteTemp = Object.assign({}, row)
-        this.$set(this.maintainCompleteTemp, 'isOldProducts', 0)
-      }
-      this.dialogStatus = 'maintainComplete'
-      this.No2 = false
-      this.dialogFormVisible_maintainComplete = true
-      this.listAdd = []
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps.partCode = queryString
-      this.requestOldProducts.parammaps.RUCode = this.maintainCompleteTemp.upkeepCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.maintainCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({
-            type: 'warning',
-            message: '此旧品已存在,请重新选择旧品'
-          })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    sparePartsDelete(row) {
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCollarUse.length; i++) {
-          console.log(this.listCollarUse[i])
-          if (this.listCollarUse[i].id === row.id) {
-            var listCollarUseIndex = this.listCollarUse.indexOf(this.listCollarUse[i])
-          }
-          if (listCollarUseIndex > -1) {
-            this.listCollarUse.splice(listCollarUseIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 完成保养-保存
-    createMaintainCompleteData() {
-      console.log('点击了完成保养确认', this.maintainCompleteTemp)
-      console.log('点击了完成保养确认', this.maintainCompleteTemp.laidcou)
-      if (this.maintainCompleteTemp.laidcou == 0) {
-        if (this.maintainCompleteTemp.isOldProducts == 0) {
-          console.log('否')
-          this.requestParam.name = 'completeUpkeep'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.maintainCompleteTemp.id
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-
-
-              //如果有设备记录仪的权限
-              if(this.maintainCompleteTemp.isVideoBtnShow == '1'){
-                // 临时注释
-                  if (this.maintainCompleteTemp.videoTxt == '已录制') {
-                    this.requestParam2.name = 'upkeepChargDone'
-                    this.requestParam2.parammaps = {}
-                    this.requestParam2.parammaps.id = this.maintainCompleteTemp.id
-                    this.requestParam2.parammaps.statue = 7
-                    this.requestParam2.parammaps.orderStatue = 2
-                    this.requestParam2.parammaps.empId = Cookies.get('employeid')
-                    PostDataByName(this.requestParam2).then(response => {
-                      if (response.msg !== 'fail') {
-                        if (this.getdataListParm.parammaps.inputDatetime === null) {
-                          this.getdataListParm.parammaps.inputDatetime = ''
-                        }
-                        this.get_table_data()
-                        this.dialogFormVisible_maintainComplete = false
-                        this.dialogFormVisible_See = false
-                        this.getPendingList()
-                        this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                      } else {
-                        failproccess(response, this.$notify)
-                      }
-                    })
-                  }
-              // 临时注释
-              }else{
-                //正常流程。没有记录仪权限
-
-                 if (this.getdataListParm.parammaps.inputDatetime === null) {
-                    this.getdataListParm.parammaps.inputDatetime = ''
-                  }
-                  this.dialogFormVisible_maintainComplete = false
-                  this.dialogFormVisible_See = false
-                  this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-                  this.get_table_data()
-                  this.getPendingList()
-              }
-
-
-              
-
-
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        } else {
-          console.log('是')
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['maintainCompleteTemp'].validate(valid => {
-            if (valid) {
-              if (this.listAdd.length !== 0) {
-                for (var i = 0; i < this.listAdd.length; i++) {
-                  if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                    this.$message({
-                      type: 'warning',
-                      message: '请录入数量是否未填写',
-                      duration: 2000
-                    })
-                    return false
-                  } else {
-                    var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                    if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                      this.$message({
-                        type: 'error',
-                        message: '录入数量请输入正数,最多保留两位小数点',
-                        duration: 2000
-                      })
-                      return false
-                    }
-                  }
-                }
-                this.postDataPramas.common = { 'returnmap': '0' }
-                this.postDataPramas.data = []
-                this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                this.postDataPramas.data[0].children = []
-                this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                  pastureId: Cookies.get('pastureid'),
-                  deptId: this.maintainCompleteTemp.departmentId,
-                  partCode: '@insertSpotList.partCode',
-                  partName: '@insertSpotList.partName',
-                  partId: '@insertSpotList.id',
-                  specification: '@insertSpotList.specification',
-                  unit: '@insertSpotList.unit',
-                  acturalAmount: '@insertSpotList.acturalAmount',
-                  eqId: this.maintainCompleteTemp.eqId,
-                  eqCode: this.maintainCompleteTemp.eqCode,
-                  eqName: this.maintainCompleteTemp.eqName,
-                  repairCode: this.maintainCompleteTemp.upkeepCode,
-                  listType: 1
-                }}
-                this.postDataPramas.data[1] = { 'name': 'completeUpkeep', 'type': 'e', 'parammaps': {
-                  id: this.maintainCompleteTemp.id
-                }}
-                ExecDataByConfig(this.postDataPramas).then(response => {
-                  console.log('完成维修-是-保存发送参数', this.postDataPramas)
-                  if (response.msg === 'fail') {
-                    this.$notify({
-                      title: '保存失败',
-                      message: response.data,
-                      type: 'warning',
-                      duration: 2000
-                    })
-                  } else {
-                    this.dialogFormVisible_maintainComplete = false
-                    this.dialogFormVisible_See = false
-                    this.get_table_data()
-                    this.getPendingList()
-                    this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                  }
-                })
-                return true
-              } else {
-                this.$notify({
-                  title: '',
-                  message: '请完善旧品信息',
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-            }
-          })
-        }
-      } else {
-        this.$notify({ message: '备件未领用不可完成保养', type: 'warning', duration: 2000 })
-      }
-    },
-    // 保养审核
-    handleExamine(row) {
-      console.log('点击了保养审核')
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_examine = true
-    },
-    changeIsStatue(val) {
-      console.log(val)
-      if (val == 4) {
-        this.isStatueReason = true
-      } else {
-        this.isStatueReason = false
-      }
-    },
-    // 保养审核1
-    createExamineData() {
-      console.log('点击了保养审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'upkeepCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.isStatue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('保养审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.dialogFormVisible_examine = false
-              this.dialogFormVisible_See = false
-              this.isStatueReason = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 保养审核2
-    handleExamine2(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine2'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核2-保存
-    createExamineData2() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核2确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 7
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核2确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 8
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 保养审核2
-    handleExamine3(row) {
-      console.log('点击了保养审核------', row)
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'isStatue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'isStatue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine3'
-      this.dialogFormVisible_examine = true
-    },
-    // 保养审核3-保存
-    createExamineData3() {
-      if (this.examineTemp.isStatue == 3) {
-        console.log('点击了保养审核3确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.getPendingList()
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了保养审核3确认-不通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'upkeepCharge3'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('保养审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_examine = false
-                this.dialogFormVisible_See = false
-                this.isStatueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    preview(row) {
-      console.log(row, '=====666')
-      this.dialogStatus = 'video'
-      this.dialogFormVisible_video = true
-      // row.videoPath = 'https://sys.mcs8.net:7706' + row.videoPath
-      this.videoTemp = Object.assign({}, row)
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

+ 2 - 0
src/views/maintenance/maintain/index流程改完了3.vue

@@ -40,6 +40,7 @@
       :row-style="rowStyle"
       :cell-style="tableCellStyle"
       class="elTable table-fixed"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -942,6 +943,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 250,
       active: 0,
       activeList: [],
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },

+ 14 - 12
src/views/maintenance/maintenancePlan/index.vue

@@ -4,6 +4,7 @@
       <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
         <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
+      <el-date-picker class="filter-item" v-model="getdataListParm.month" type="month" placeholder="选择日期" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @blur="blurMonth" />
       <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
       <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 140px;" class="filter-item" />
       <tree-select
@@ -37,7 +38,6 @@
         <el-button v-if="isMaintenancePlanUpload" v-waves class="filter-item" type="warning" icon="el-icon-download">导入</el-button>
       </el-upload>
       <el-button v-waves class="filter-item" type="info" icon="el-icon-download" @click="handleDownloadTemp">模板</el-button>
-      <el-date-picker v-model="getdataListParm.month" type="month" placeholder="选择日期" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" style="float: right" @blur="blurMonth" />
     </div>
     <el-table
       height = '590px'
@@ -48,6 +48,7 @@
       :row-style="rowStyle"
       :cell-style="tableCellClassName"
       @cell-click="handleCellClick"
+      :max-height="myHeight"
     >
       <template v-for="(item,index) in tablelist">
         <el-table-column :key="index" show-overflow-tooltip :prop="item.column_name" :label="item.label" :width="item.width" />
@@ -105,7 +106,7 @@
                 </el-select>
               </el-form-item>
             </el-col>
-          </el-row>  
+          </el-row>
         </el-form>
         <div slot="footer" class="dialog-footer" style="bottom:10px">
           <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
@@ -161,6 +162,7 @@ export default {
   data() {
     return {
       // ----------------------------------------------------
+      myHeight:document.documentElement.clientHeight - 85- 250,
       equipmentStatusList: [{ id: 1, name: '正常设备' }, { id: 2, name: '非正常设备' }, { id: '', name: '全部' }],
       visible: false,
       findAllPasture: [],
@@ -401,7 +403,7 @@ export default {
       GetUpkeepPlan(this.getdataListParm).then(response => {
         console.log('table数据', response.data.list)
 
-       
+
 
 
         this.list = response.data.list
@@ -426,7 +428,7 @@ export default {
         this.tablelist = table
 
         this.listTest = {}
-       
+
 
         for (var i = 0; i < this.list.length; i++) {
           this.list[i].i = i + 1
@@ -435,7 +437,7 @@ export default {
           }
           // this.list[i].operation = '操作'
           for (const key in this.list[i]) {
-  
+
             // console.log(key + '---' + this.list[i][key])
             // this.list[i][key] = (this.list[i][key]).split('#')[0]
             var reg = /^(?![^a-zA-Z]+$)(?!\D+$)/
@@ -444,7 +446,7 @@ export default {
             if (reg.test(key)) {
               // console.log(reg.test(key))
               var a = JSON.stringify(i)
-        
+
               if (this.list[i][key] !== undefined) {
                 if ((this.list[i][key]).split('#')[0] == undefined) {
                   this.listTest[key + a] = this.list[i][key]
@@ -456,7 +458,7 @@ export default {
               }
             }
           }
-          
+
         }
         console.log('table数据', this.list)
         console.log('表头数据', this.tablelist)
@@ -497,12 +499,12 @@ export default {
 
       console.log(rowStr )
       var test = this.listTest[this.tablelist[column.index].column_name + rowStr]
-  
+
       if (test !== undefined) {
         if (test.split('#')[2] !== undefined) {
           var colorTest = test.split('#')[2] // 0,1,2
           var colorTest2 = test.split('#')[4] // 0,1,2
-          
+
           if(rowIndex == 1){
 
             if(this.tablelist[column.index].column_name == 'm31'){
@@ -510,7 +512,7 @@ export default {
              console.log('rowIndex',rowIndex,'colorTest',  colorTest )
              console.log('rowIndex',rowIndex,'colorTest2',  colorTest2 )
             }
-            
+
           }
 
 
@@ -603,7 +605,7 @@ export default {
               this.createTemp.id = this.updateValue.split('#')[1]
               this.createTemp.upkeepEmpId = row.upkeepEmpId
               this.createTemp.useEmpId = row.useEmpId
-              
+
               this.createTemp.day = this.tablelist[column.index].label
               console.log('---------------------', row)
             } else {
@@ -1173,7 +1175,7 @@ export default {
           }, 2000)
         }
         console.log('ssssss',this.downLoadList)
-        
+
         var temp = this.getdataListParmSH.month.split('-')
         var year = temp[0]
         var month = temp[1]

+ 7 - 5
src/views/maintenance/maintenancePlan/index1.vue

@@ -4,6 +4,7 @@
       <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
         <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
+      <el-date-picker class="filter-item" v-model="getdataListParm.month" type="month" placeholder="选择日期" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @blur="blurMonth" />
       <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
       <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 140px;" class="filter-item" />
       <tree-select
@@ -37,7 +38,6 @@
         <el-button v-if="isMaintenancePlanUpload" v-waves class="filter-item" type="warning" icon="el-icon-download">导入</el-button>
       </el-upload>
       <el-button v-waves class="filter-item" type="info" icon="el-icon-download" @click="handleDownloadTemp">模板</el-button>
-      <el-date-picker v-model="getdataListParm.month" type="month" placeholder="选择日期" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" style="float: right" @blur="blurMonth" />
     </div>
     <el-table
       slot="reference"
@@ -47,6 +47,7 @@
       :row-style="rowStyle"
       :cell-style="tableCellClassName"
       @cell-click="handleCellClick"
+      :max-height="myHeight"
     >
       <template v-for="(item,index) in tablelist">
         <el-table-column :key="index" show-overflow-tooltip :prop="item.column_name" :label="item.label" :width="item.width" />
@@ -146,6 +147,7 @@ export default {
   data() {
     return {
       // ----------------------------------------------------
+      myHeight:document.documentElement.clientHeight - 85- 250,
       equipmentStatusList: [{ id: 1, name: '正常设备' }, { id: 2, name: '非正常设备' }, { id: '', name: '全部' }],
       visible: false,
       findAllPasture: [],
@@ -465,12 +467,12 @@ export default {
 
       console.log(row, column, rowIndex, columnIndex )
       var test = this.listTest[this.tablelist[column.index].column_name + rowStr]
-  
+
       if (test !== undefined) {
         if (test.split('#')[2] !== undefined) {
           var colorTest = test.split('#')[2] // 0,1,2
           var colorTest2 = test.split('#')[4] // 0,1,2
-          
+
           if(rowIndex == 1){
 
             if(this.tablelist[column.index].column_name == 'm31'){
@@ -478,7 +480,7 @@ export default {
              console.log('rowIndex',rowIndex,'colorTest',  colorTest )
              console.log('rowIndex',rowIndex,'colorTest2',  colorTest2 )
             }
-            
+
           }
 
 
@@ -1133,7 +1135,7 @@ export default {
           }, 2000)
         }
         console.log('ssssss',this.downLoadList)
-        
+
         var temp = this.getdataListParmSH.month.split('-')
         var year = temp[0]
         var month = temp[1]

+ 2 - 2
src/views/maintenance/repair/index.vue

@@ -52,6 +52,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable table-fixed"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -1576,8 +1577,7 @@ export default {
   directives: { waves },
   data() {
     return {
-
-
+      myHeight:document.documentElement.clientHeight - 85- 200,
       dialogFormVisibleCont:false,
 
       createTempCont: {

+ 2 - 0
src/views/maintenance/repair/index1.vue

@@ -52,6 +52,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable table-fixed"
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -1358,6 +1359,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isokDisable: false,
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },

+ 3 - 0
src/views/maintenance/spotCheck/index.vue

@@ -86,6 +86,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
+      :max-height="myHeight"
     >
       <!-- table表格 -->
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -93,6 +94,7 @@
           <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
         </template>
       </el-table-column>
+      <el-table-column label="牧场" align="center" width="150px" prop="pastureName" />
       <el-table-column label="设备内部编号" align="center" width="150px">
         <template slot-scope="scope">
           <span>{{ scope.row.assetNumber }}</span>
@@ -315,6 +317,7 @@ export default {
   directives: { waves },
   data() {
     return {
+      myHeight:document.documentElement.clientHeight - 85- 200,
       isSpotCheckAdd: [],
       isSpotCheckUpdate: [],
       isSpotCheckDelate: [],

+ 2 - 2
src/views/maintenance/subcontractingMainten/tabPage/tab1.vue

@@ -36,7 +36,7 @@
 
 
     <div class="elTable">
-      <el-table  :key="tableObj1.tableKey"  v-loading="tableObj1.listLoading" element-loading-text="给我一点时间"  :data="tableObj1.list" border fit highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="cellStyle" class="elTable table-fixed"   >
+      <el-table :max-height="myHeight" :key="tableObj1.tableKey"  v-loading="tableObj1.listLoading" element-loading-text="给我一点时间"  :data="tableObj1.list" border fit highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="cellStyle" class="elTable table-fixed"   >
 
 
         <el-table-column label="序号" align="center" type="index" width="50px">
@@ -369,7 +369,7 @@ export default {
   inject: ['reload'],
   data() {
     return {
-      
+      myHeight:document.documentElement.clientHeight - 85- 200,
       //多个下拉框 - 请求内容
       send_select_list: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},

+ 3 - 3
src/views/maintenance/subcontractingMainten/tabPage/tab2.vue

@@ -34,7 +34,7 @@
 
 
     <div class="elTable">
-      <el-table  :key="tableObj1.tableKey"  v-loading="tableObj1.listLoading" element-loading-text="给我一点时间"  :data="tableObj1.list" border fit highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="cellStyle" class="elTable table-fixed"   >
+      <el-table :max-height="myHeight"  :key="tableObj1.tableKey"  v-loading="tableObj1.listLoading" element-loading-text="给我一点时间"  :data="tableObj1.list" border fit highlight-current-row style="width: 100%;" :row-style="rowStyle" :cell-style="cellStyle" class="elTable table-fixed"   >
 
 
         <el-table-column label="序号" align="center" type="index" width="50px">
@@ -306,7 +306,7 @@
           <el-table v-if = "createTemp.applyType == 1" 
              key="2"  v-loading="listLoading"  element-loading-text="给我一点时间"
             :data="listAdd2" border fit  highlight-current-row  style="width: 100%;margin-bottom:30px"
-            :row-style="rowStyle"  :cell-style="cellStyle"  class="elTable"  >
+            :row-style="rowStyle"  :cell-style="cellStyle"  class="elTable" >
               <!-- table表格 -->
 
  
@@ -655,7 +655,7 @@ export default {
   inject: ['reload'],
   data() {
     return {
-      
+      myHeight:document.documentElement.clientHeight - 85- 200,
       //多个下拉框 - 请求内容
       send_select_list: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},

+ 101 - 101
src/views/report/cattle/index.vue

@@ -398,20 +398,20 @@ export default {
             type: 'bar',
             data: chart_data1.nowYear,
             emphasis: { label: { show: true, position: 'inside' }},
-            markLine: {//图表标线
-              data: [{
-                lineStyle:{
-                    color:'#FFB800'
-                },
-                label: {
-                    position: 'end', // 表现内容展示的位置
-                    formatter: '标准线',  // 标线展示的内容
-                    color: '#FFB800'  // 展示内容颜色
-                  },
-                yAxis: chart_data1.standard
-
-              }],
-            }
+            // markLine: {//图表标线
+            //   data: [{
+            //     lineStyle:{
+            //         color:'#FFB800'
+            //     },
+            //     label: {
+            //         position: 'end', // 表现内容展示的位置
+            //         formatter: '标准线',  // 标线展示的内容
+            //         color: '#FFB800'  // 展示内容颜色
+            //       },
+            //     yAxis: chart_data1.standard
+
+            //   }],
+            // }
           },
           // {
           //   name: '预算',
@@ -419,12 +419,12 @@ export default {
           //   data: chart_data1.budgetYear,
           //   emphasis: { label: { show: true, position: 'inside' }}
           // },
-          // {
-          //   name: '去年同期',
-          //   type: 'bar',
-          //   data: chart_data1.lastYear,
-          //   emphasis: { label: { show: true, position: 'inside' }}
-          // }
+          {
+            name: '去年同期',
+            type: 'bar',
+            data: chart_data1.lastYear,
+            emphasis: { label: { show: true, position: 'inside' }}
+          }
         ]
       }
       this.barChart1.setOption(option)
@@ -469,32 +469,32 @@ export default {
             type: 'bar',
             data: chart_data2.nowYear,
             emphasis: { label: { show: true, position: 'inside' }},
-            markLine: {//图表标线
-              data: [{
-                lineStyle:{
-                    color:'#FFB800'
-                },
-                label: {
-                    position: 'end', // 表现内容展示的位置
-                    formatter: '标准线',  // 标线展示的内容
-                    color: '#FFB800'  // 展示内容颜色
-                  },
-                yAxis: chart_data2.standard
-              }]
-            }
-          }
+            // markLine: {//图表标线
+            //   data: [{
+            //     lineStyle:{
+            //         color:'#FFB800'
+            //     },
+            //     label: {
+            //         position: 'end', // 表现内容展示的位置
+            //         formatter: '标准线',  // 标线展示的内容
+            //         color: '#FFB800'  // 展示内容颜色
+            //       },
+            //     yAxis: chart_data2.standard
+            //   }]
+            // }
+          },
           // {
           //   name: '预算',
           //   type: 'bar',
           //   data: chart_data2.budgetYear,
           //   emphasis: { label: { show: true, position: 'inside' }}
           // },
-          // {
-          //   name: '去年同期',
-          //   type: 'bar',
-          //   data: chart_data2.lastYear,
-          //   emphasis: { label: { show: true, position: 'inside' }}
-          // }
+          {
+            name: '去年同期',
+            type: 'bar',
+            data: chart_data2.lastYear,
+            emphasis: { label: { show: true, position: 'inside' }}
+          }
 
         ]
       }
@@ -535,32 +535,32 @@ export default {
             type: 'bar',
             data: chart_data3.nowYear,
             emphasis: { label: { show: true, position: 'inside' }},
-            markLine: {//图表标线
-              data: [{
-                lineStyle:{
-                    color:'#FFB800'
-                },
-                label: {
-                    position: 'end', // 表现内容展示的位置
-                    formatter: '标准线',  // 标线展示的内容
-                    color: '#FFB800'  // 展示内容颜色
-                  },
-                yAxis: chart_data3.standard
-              }],
-            }
-          }
+            // markLine: {//图表标线
+            //   data: [{
+            //     lineStyle:{
+            //         color:'#FFB800'
+            //     },
+            //     label: {
+            //         position: 'end', // 表现内容展示的位置
+            //         formatter: '标准线',  // 标线展示的内容
+            //         color: '#FFB800'  // 展示内容颜色
+            //       },
+            //     yAxis: chart_data3.standard
+            //   }],
+            // }
+          },
           // {
           //   name: '预算',
           //   type: 'bar',
           //   data: chart_data3.budgetYear,
           //   emphasis: { label: { show: true, position: 'inside' }}
           // },
-          // {
-          //   name: '去年同期',
-          //   type: 'bar',
-          //   data: chart_data3.lastYear,
-          //   emphasis: { label: { show: true, position: 'inside' }}
-          // }
+          {
+            name: '去年同期',
+            type: 'bar',
+            data: chart_data3.lastYear,
+            emphasis: { label: { show: true, position: 'inside' }}
+          }
 
         ]
       }
@@ -601,33 +601,33 @@ export default {
             type: 'bar',
             data: chart_data4.nowYear,
             emphasis: { label: { show: true, position: 'inside' }},
-            markLine: {//图表标线
-              data: [{
-                lineStyle:{
-                    color:'#FFB800'
-                },
-                label: {
-                    position: 'end', // 表现内容展示的位置
-                    formatter: '标准线',  // 标线展示的内容
-                    color: '#FFB800'  // 展示内容颜色
-                  },
-                yAxis: chart_data4.standard
-
-              }],
-            }
-          }
+            // markLine: {//图表标线
+            //   data: [{
+            //     lineStyle:{
+            //         color:'#FFB800'
+            //     },
+            //     label: {
+            //         position: 'end', // 表现内容展示的位置
+            //         formatter: '标准线',  // 标线展示的内容
+            //         color: '#FFB800'  // 展示内容颜色
+            //       },
+            //     yAxis: chart_data4.standard
+
+            //   }],
+            // }
+          },
           // {
           //   name: '预算',
           //   type: 'bar',
           //   data: chart_data4.budgetYear,
           //   emphasis: { label: { show: true, position: 'inside' }}
           // },
-          // {
-          //   name: '去年同期',
-          //   type: 'bar',
-          //   data: chart_data4.lastYear,
-          //   emphasis: { label: { show: true, position: 'inside' }}
-          // }
+          {
+            name: '去年同期',
+            type: 'bar',
+            data: chart_data4.lastYear,
+            emphasis: { label: { show: true, position: 'inside' }}
+          }
 
         ]
       }
@@ -668,20 +668,20 @@ export default {
             type: 'bar',
             data: chart_data5.nowYear,
             emphasis: { label: { show: true, position: 'inside' }},
-            markLine: {//图表标线
-              data: [{
-                lineStyle:{
-                    color:'#FFB800'
-                },
-                label: {
-                    position: 'end', // 表现内容展示的位置
-                    formatter: '标准线',  // 标线展示的内容
-                    color: '#FFB800'  // 展示内容颜色
-                  },
-                yAxis: chart_data5.standard
-              }],
-            }
-          }
+            // markLine: {//图表标线
+            //   data: [{
+            //     lineStyle:{
+            //         color:'#FFB800'
+            //     },
+            //     label: {
+            //         position: 'end', // 表现内容展示的位置
+            //         formatter: '标准线',  // 标线展示的内容
+            //         color: '#FFB800'  // 展示内容颜色
+            //       },
+            //     yAxis: chart_data5.standard
+            //   }],
+            // }
+          },
 
           // {
           //   name: '预算',
@@ -689,12 +689,12 @@ export default {
           //   data: chart_data5.budgetYear,
           //   emphasis: { label: { show: true, position: 'inside' }}
           // },
-          // {
-          //   name: '去年同期',
-          //   type: 'bar',
-          //   data: chart_data5.lastYear,
-          //   emphasis: { label: { show: true, position: 'inside' }}
-          // }
+          {
+            name: '去年同期',
+            type: 'bar',
+            data: chart_data5.lastYear,
+            emphasis: { label: { show: true, position: 'inside' }}
+          }
 
         ]
       }

+ 4 - 2
src/views/report/completionRateMaintenance/index.vue

@@ -39,7 +39,7 @@
         <el-option v-for="item in eqNameList" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <el-button class="filter-item" type="success" icon="el-icon-upload2" style="position:absolute ;right:10px" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" type="success" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
     </div>
     <div v-if="isTitle" style="line-height:50px;height:50px"><b @click="goFirst">所有牧场</b>&gt;<span>{{ this.pastureName }}</span></div>
     <div v-if="isTitle2" style="line-height:50px;height:50px"><b @click="goFirst">所有牧场</b>&gt;<span @click="goSecond">{{ this.pastureName }}</span>&gt;<span>{{ this.typename }}</span></div>
@@ -55,6 +55,7 @@
       :row-style="rowStyle"
       :cell-style="tableCellStyle"
       class="elTable"
+      :max-height="myHeight"
       @sort-change="tableSort1"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
@@ -163,7 +164,8 @@ export default {
       downLoadParm: {},
       downLoadList: [],
       isPercentage: false,
-      percentage: 1
+      percentage: 1,
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 

+ 3 - 2
src/views/report/energyConsum/index.vue

@@ -40,7 +40,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
- 
+      :max-height="myHeight"
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -497,7 +497,8 @@ export default {
       isPercentage: false,
       percentage: 1,
       dialogFormDelete: false,
-      deleteTemp: {}
+      deleteTemp: {},
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 

+ 15 - 14
src/views/report/equipmentIndex/index.vue

@@ -12,7 +12,7 @@
       <el-select v-model="pastureId" style="width: 140px;margin-top:5px;" placeholder="全部牧场" class="filter-item" @change="changePasture">
         <el-option v-for="item in findAllPasture" :key="item.name" :label="item.name" :value="item.id" />
       </el-select>
-      <el-button class="filter-item" style="position: absolute;right: 0;margin-top:5px;" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" style="" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
     </div>
     <div style="margin-top: 50px;">
       <div>
@@ -29,7 +29,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort1"
         >
           <el-table-column label="设备指标" align="center">
@@ -72,7 +72,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort2"
         >
           <el-table-column label="设备指标" align="center">
@@ -114,7 +114,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort3"
         >
           <el-table-column label="设备指标" align="center">
@@ -156,7 +156,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort4"
         >
           <el-table-column label="设备指标" align="center">
@@ -198,7 +198,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort5"
         >
           <el-table-column label="设备指标" align="center">
@@ -240,7 +240,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort6"
         >
           <el-table-column label="设备指标" align="center">
@@ -282,7 +282,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort7"
         >
           <el-table-column label="设备指标" align="center">
@@ -326,7 +326,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -370,7 +370,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -399,7 +399,7 @@
         </el-table>
       </div>
 
- 
+
 
 
     </div>
@@ -417,6 +417,7 @@
           :row-style="rowStyle"
           :cell-style="cellStyle"
           class="elTable"
+          :max-height="350"
           @sort-change="tableSort9"
         >
           <el-table-column label="设备指标" align="center">
@@ -923,15 +924,15 @@ export default {
           this.bioConsumptionTable.list = []
         }
         setTimeout(() => {
-        
+
           this.bioConsumptionTable.listLoading = false
         }, 100)
       })
     },
 
-    
 
-  
+
+
 
 
 

+ 31 - 27
src/views/report/equipmentIndex/index2.vue → src/views/report/equipmentIndex/index备份.vue

@@ -5,14 +5,14 @@
       <el-progress style="padding-left: 10px;" :text-inside="true" :stroke-width="26" :percentage="percentage" />
     </div>
     <div :style="{position: 'fixed',height:'55px',top: '90px',zIndex: '999',marginBottom: '50px',background:'#f0f2f5',width: myWidth}">
-      <el-date-picker v-model="yearDate" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份" style="width: 250px;" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @change="changeTime" />
+      <el-date-picker v-model="yearDate" type="datetimerange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" style="width: 250px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeTime" />
       <el-select v-model="jump" style="width: 140pxmargin-top:5px;;" placeholder="快捷跳转方式" class="filter-item" @visible-change="changeJump($event,jump)">
         <el-option v-for="item in jumpList" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
       <el-select v-model="pastureId" style="width: 140px;margin-top:5px;" placeholder="全部牧场" class="filter-item" @change="changePasture">
         <el-option v-for="item in findAllPasture" :key="item.name" :label="item.name" :value="item.id" />
       </el-select>
-      <el-button class="filter-item" style="position: absolute;right: 0;margin-top:5px;" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" style="" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
     </div>
     <div style="margin-top: 50px;">
       <div>
@@ -29,7 +29,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort1"
         >
           <el-table-column label="设备指标" align="center">
@@ -72,7 +72,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort2"
         >
           <el-table-column label="设备指标" align="center">
@@ -114,7 +114,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort3"
         >
           <el-table-column label="设备指标" align="center">
@@ -156,7 +156,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort4"
         >
           <el-table-column label="设备指标" align="center">
@@ -198,7 +198,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort5"
         >
           <el-table-column label="设备指标" align="center">
@@ -240,7 +240,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort6"
         >
           <el-table-column label="设备指标" align="center">
@@ -282,7 +282,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort7"
         >
           <el-table-column label="设备指标" align="center">
@@ -326,7 +326,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -370,7 +370,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -399,7 +399,7 @@
         </el-table>
       </div>
 
- 
+
 
 
     </div>
@@ -417,6 +417,7 @@
           :row-style="rowStyle"
           :cell-style="cellStyle"
           class="elTable"
+          :max-height="350"
           @sort-change="tableSort9"
         >
           <el-table-column label="设备指标" align="center">
@@ -469,11 +470,14 @@ export default {
     return {
       jump: '',
       jumpList: [{ name: '设备指标', id: '0' }, { name: '维修费用', id: '4' }, { name: '水费', id: '1' }, { name: '电费', id: '2' }, { name: '柴油费', id: '3' }, { name: '水量', id: '5' }, { name: '电量', id: '6' }, { name: '柴油量', id: '7' }],
-      pastureId: Cookies.get('pasturename'),
+      // pastureId: Cookies.get('pasturename'),
+      pastureId: "现代牧业",
       findAllPasture: [],
       // getPastureParam: { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-      getPastureParam: { name: 'findAllPastureBySbzb', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-      getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
+      getPastureParam: { name: 'findAllPastureBySbzb', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id':  '18'}},
+
+      // getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId':  Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
+      getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': '18', 'eId': Cookies.get('employeid') }},
       departmentId: '',
       findAllDept: [],
       yearDate: [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')],
@@ -740,15 +744,15 @@ export default {
       this.getlistEquipmentIndex()
     },
     changeTime() {
-      if (parseTime(this.yearDate[0], '{y}-{m}') == parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')]
-      } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(this.yearDate[1], '{y}-{m}') + '-00']
-      } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[1], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(new Date(), '{y}-{m}-{d}')]
-      } else {
-        this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(this.yearDate[1], '{y}-{m}') + '-00']
-      }
+      // if (parseTime(this.yearDate[0], '{y}-{m}') == parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+      //   this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')]
+      // } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+      //   this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(this.yearDate[1], '{y}-{m}') + '-00']
+      // } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[1], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+      //   this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(new Date(), '{y}-{m}-{d}')]
+      // } else {
+      //   this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(this.yearDate[1], '{y}-{m}') + '-00']
+      // }
       this.getlistEquipmentIndex()
     },
     // 设备指标
@@ -920,15 +924,15 @@ export default {
           this.bioConsumptionTable.list = []
         }
         setTimeout(() => {
-        
+
           this.bioConsumptionTable.listLoading = false
         }, 100)
       })
     },
 
-    
 
-  
+
+
 
 
 

+ 167 - 88
src/views/report/equipmentIndex/index1.vue → src/views/report/equipmentIndex/index改好.vue

@@ -5,17 +5,22 @@
       <el-progress style="padding-left: 10px;" :text-inside="true" :stroke-width="26" :percentage="percentage" />
     </div>
     <div :style="{position: 'fixed',height:'55px',top: '90px',zIndex: '999',marginBottom: '50px',background:'#f0f2f5',width: myWidth}">
-      <el-date-picker v-model="yearDate" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份" style="width: 250px;" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @change="changeTime" />
+       <el-radio-group v-model="radio" @change="changeRadio">
+          <el-radio :label="1">月</el-radio>
+          <el-radio :label="2">日</el-radio>
+        </el-radio-group>
+      <el-date-picker v-if="radio == 1" v-model="yearDate" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份" style="width: 250px;" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @change="changeTime('1')" />
+      <el-date-picker v-else v-model="yearDate" type="daterange" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" style="width: 250px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :clearable="false" @change="changeTime('2')" />
       <el-select v-model="jump" style="width: 140pxmargin-top:5px;;" placeholder="快捷跳转方式" class="filter-item" @visible-change="changeJump($event,jump)">
         <el-option v-for="item in jumpList" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
       <el-select v-model="pastureId" style="width: 140px;margin-top:5px;" placeholder="全部牧场" class="filter-item" @change="changePasture">
         <el-option v-for="item in findAllPasture" :key="item.name" :label="item.name" :value="item.id" />
       </el-select>
-      <el-button class="filter-item" style="position: absolute;right: 0;margin-top:5px;" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" style="" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
     </div>
     <div style="margin-top: 50px;">
-      <div>
+      <div v-if="radio == 1">
         <h3 id="equipmentIndexCostTable">设备指标</h3>
         <el-table
           :key="equipmentIndexCostTable.tableKey"
@@ -29,7 +34,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort1"
         >
           <el-table-column label="设备指标" align="center">
@@ -42,18 +47,19 @@
           </el-table-column>
           <el-table-column label="总指标(万元)" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <!-- <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标(元)" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" />
+            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
       </div>
@@ -71,7 +77,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort2"
         >
           <el-table-column label="设备指标" align="center">
@@ -84,22 +90,22 @@
           </el-table-column>
           <el-table-column label="总指标(万元)" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标(元)" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
             <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
       </div>
-      <div>
+      <div v-if="radio == 1">
         <h3 id="waterCostTable">水费</h3>
         <el-table
           :key="waterCostTable.tableKey"
@@ -113,7 +119,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort3"
         >
           <el-table-column label="设备指标" align="center">
@@ -126,22 +132,22 @@
           </el-table-column>
           <el-table-column label="总指标(万元)" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标(元)" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
             <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
       </div>
-      <div>
+      <div v-if="radio == 1">
         <h3 id="elecCostTable">电费</h3>
         <el-table
           :key="elecCostTable.tableKey"
@@ -155,7 +161,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort4"
         >
           <el-table-column label="设备指标" align="center">
@@ -168,22 +174,22 @@
           </el-table-column>
           <el-table-column label="总指标(万元)" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标(元)" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
             <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
       </div>
-      <div>
+      <div v-if="radio == 1">
         <h3 id="gasCostTable">柴油费</h3>
         <el-table
           :key="gasCostTable.tableKey"
@@ -197,7 +203,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort5"
         >
           <el-table-column label="设备指标" align="center">
@@ -210,22 +216,53 @@
           </el-table-column>
           <el-table-column label="总指标(万元)" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标(元)" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
             <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
       </div>
       <div>
+        <h3 id="allConsumptionTable">水电柴油用量</h3>
+        <el-table
+          :key="allConsumptionTable.tableKey"
+          v-loading="allConsumptionTable.listLoading"
+          element-loading-text="给我一点时间"
+          :data="allConsumptionTable.list"
+          border
+          fit
+          highlight-current-row
+          style="width: 100%;"
+          :row-style="rowStyle"
+          :cell-style="tableCellStyle"
+          class="elTable"
+          height="350"
+          @sort-change="tableSort10"
+        >
+          <el-table-column label="序号" align="center" type="index" width="50px" />
+          <el-table-column label="牧场" min-width="70px" align="center">
+            <template slot-scope="{row}">
+              <a @click="clickAllConsumption(row)">{{ row.pastureName }}</a>
+            </template>
+          </el-table-column>
+          <el-table-column label="水迄今实际(吨)" sortable min-width="80px" align="center" prop="monthBudget" />
+          <el-table-column label="水单头牛迄今实际(吨)" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
+          <el-table-column label="电迄今实际(度)" sortable min-width="80px" align="center" prop="qmonthBudget" />
+          <el-table-column label="电单头牛迄今实际(度)" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
+          <el-table-column label="柴油迄今实际(升)" sortable min-width="80px" align="center" prop="sumPrice" />
+          <el-table-column label="柴油单头牛迄今实际(升)" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
+        </el-table>
+      </div>
+      <!-- <div>
         <h3 id="waterConsumptionTable">水量(吨)</h3>
         <el-table
           :key="waterConsumptionTable.tableKey"
@@ -239,7 +276,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort6"
         >
           <el-table-column label="设备指标" align="center">
@@ -252,22 +289,17 @@
           </el-table-column>
           <el-table-column label="总指标" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
-            <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
           </el-table-column>
         </el-table>
-      </div>
-      <div>
+      </div> -->
+      <!-- <div>
         <h3 id="elecConsumptionTable">电量(度)</h3>
         <el-table
           :key="elecConsumptionTable.tableKey"
@@ -281,7 +313,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort7"
         >
           <el-table-column label="设备指标" align="center">
@@ -302,16 +334,13 @@
           </el-table-column>
           <el-table-column label="单头牛指标" align="center">
             <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
-            <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
           </el-table-column>
         </el-table>
-      </div>
+      </div> -->
 
 
-      <div>
+      <!-- <div>
         <h3 id="gasConsumptionTable">柴油用量(L)</h3>
         <el-table
           :key="gasConsumptionTable.tableKey"
@@ -325,7 +354,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -338,24 +367,19 @@
           </el-table-column>
           <el-table-column label="总指标" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
-            <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
           </el-table-column>
         </el-table>
-      </div>
+      </div> -->
 
 
-      <div>
+      <!-- <div>
         <h3 id="bioConsumptionTable">燃动用量</h3>
         <el-table
           :key="bioConsumptionTable.tableKey"
@@ -369,7 +393,7 @@
           :row-style="rowStyle"
           :cell-style="tableCellStyle"
           class="elTable"
-          height="650"
+          height="350"
           @sort-change="tableSort8"
         >
           <el-table-column label="设备指标" align="center">
@@ -382,23 +406,18 @@
           </el-table-column>
           <el-table-column label="总指标" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
-            <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
           </el-table-column>
         </el-table>
-      </div>
+      </div> -->
+
 
- 
 
 
     </div>
@@ -416,6 +435,7 @@
           :row-style="rowStyle"
           :cell-style="cellStyle"
           class="elTable"
+          :max-height="350"
           @sort-change="tableSort9"
         >
           <el-table-column label="设备指标" align="center">
@@ -424,18 +444,18 @@
           </el-table-column>
           <el-table-column label="总指标" align="center">
             <el-table-column label="预算" sortable min-width="80px" align="center" prop="monthBudget" />
-            <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" />
-            <el-table-column label="迄今内控" sortable min-width="80px" align="center" prop="qmonthBudget" />
+            <!-- <el-table-column label="内控" sortable min-width="80px" align="center" prop="monthLimit" /> -->
+            <el-table-column label="迄今预算" sortable min-width="80px" align="center" prop="qmonthBudget" />
             <el-table-column label="迄今实际" sortable min-width="80px" align="center" prop="sumPrice" />
             <el-table-column label="实际节约" sortable min-width="80px" align="center" prop="asave" />
             <el-table-column label="实际达成率" :sortable="true" :sort-method="(a,b) => sortMethod(a ,b , 'realReason')" min-width="90px" align="center" prop="realReason" />
           </el-table-column>
           <el-table-column label="单头牛指标" align="center">
-            <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" />
+            <!-- <el-table-column label="单头牛预算" sortable min-width="80px" align="center" prop="oneCowBudget" /> -->
             <!-- <el-table-column label="单头牛内控" sortable min-width="80px" align="center" prop="oneCowLimit" /> -->
-            <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" />
+            <!-- <el-table-column label="单头牛迄今内控" sortable min-width="80px" align="center" prop="oneCowQmonthBudget" /> -->
             <el-table-column label="单头牛迄今实际" sortable min-width="80px" align="center" prop="oneCowSumPrice" />
-            <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" />
+            <!-- <el-table-column label="单头牛实际节约" sortable min-width="80px" align="center" prop="oneCowAsave" /> -->
           </el-table-column>
         </el-table>
         <pagination v-show="dialog.total>=0" :total="dialog.total" :page.sync="dialog.getdataListParm.offset" :limit.sync="dialog.getdataListParm.pagecount" @pagination="get_table_dataDialog" />
@@ -466,13 +486,17 @@ export default {
   },
   data() {
     return {
+      radio:1,
       jump: '',
-      jumpList: [{ name: '设备指标', id: '0' }, { name: '维修费用', id: '4' }, { name: '水费', id: '1' }, { name: '电费', id: '2' }, { name: '柴油费', id: '3' }, { name: '水量', id: '5' }, { name: '电量', id: '6' }, { name: '柴油量', id: '7' }],
-      pastureId: Cookies.get('pasturename'),
+      jumpList: [{ name: '设备指标', id: '0' }, { name: '维修费用', id: '4' }, { name: '水费', id: '1' }, { name: '电费', id: '2' }, { name: '柴油费', id: '3' }, { name: '水电柴油用量', id: '5' }],
+      // pastureId: Cookies.get('pasturename'),
+      pastureId: "现代牧业",
       findAllPasture: [],
       // getPastureParam: { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-      getPastureParam: { name: 'findAllPastureBySbzb', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-      getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
+      getPastureParam: { name: 'findAllPastureBySbzb', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id':  '18'}},
+
+      // getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId':  Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
+      getDepartParam: { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': '18', 'eId': Cookies.get('employeid') }},
       departmentId: '',
       findAllDept: [],
       yearDate: [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')],
@@ -526,6 +550,14 @@ export default {
           parammaps: { startTime: '', endTime: '', pastureId: '', departmentId: '' }
         }
       },
+      // 水电柴油用量
+      allConsumptionTable: {
+        listLoading: true, list: null, tableKey: 0,
+        getdataListParm: {
+          name: 'getChooseMonthWater', page: 1, offset: 1, returntype: 'Map',
+          parammaps: { startTime: '', endTime: '', pastureId: '', departmentId: '' }
+        }
+      },
       // 水量
       waterConsumptionTable: {
         listLoading: true, list: null, tableKey: 0,
@@ -644,6 +676,9 @@ export default {
     tableSort9(column) {
       sortChange(column, this.dialog.list)
     },
+    tableSort10(column) {
+      sortChange(column, this.allConsumptionTable.list)
+    },
     changeJump(callback, jump) {
       if (!callback) {
         if (jump !== '') {
@@ -664,7 +699,9 @@ export default {
             window.scrollTo(0, document.getElementById('elecConsumptionTable').offsetTop - 150)
           } else if (jump == '柴油量') {
             window.scrollTo(0, document.getElementById('gasConsumptionTable').offsetTop - 150)
-          } else {
+          } else if (jump == '水电柴油用量') {
+            window.scrollTo(0, document.getElementById('allConsumptionTable').offsetTop - 150)
+          }else {
             window.scrollTo(0, document.getElementById('equipmentIndexCostTable').offsetTop - 150)
           }
         }
@@ -738,16 +775,28 @@ export default {
       this.departmentId = ''
       this.getlistEquipmentIndex()
     },
-    changeTime() {
-      if (parseTime(this.yearDate[0], '{y}-{m}') == parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')]
-      } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(this.yearDate[1], '{y}-{m}') + '-00']
-      } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[1], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
-        this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(new Date(), '{y}-{m}-{d}')]
-      } else {
-        this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(this.yearDate[1], '{y}-{m}') + '-00']
+    changeRadio(item){
+      this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')]
+      if(item == 1){
+        this.jumpList = [{ name: '设备指标', id: '0' }, { name: '维修费用', id: '4' }, { name: '水费', id: '1' }, { name: '电费', id: '2' }, { name: '柴油费', id: '3' }, { name: '水电柴油用量', id: '5' }]
+      }else{
+        this.jumpList = [{ name: '维修费用', id: '4' },  { name: '水电柴油用量', id: '5' }]
       }
+      this.changeTime(item)
+    },
+    changeTime(item) {
+      if(item == 1){
+        if (parseTime(this.yearDate[0], '{y}-{m}') == parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+          this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(new Date(), '{y}-{m}-{d}')]
+        } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[0], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+          this.yearDate = [parseTime(new Date(), '{y}-{m}-{d}'), parseTime(this.yearDate[1], '{y}-{m}') + '-00']
+        } else if (parseTime(this.yearDate[0], '{y}-{m}') !== parseTime(this.yearDate[1], '{y}-{m}') && parseTime(this.yearDate[1], '{y}-{m}') == parseTime(new Date(), '{y}-{m}')) {
+          this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(new Date(), '{y}-{m}-{d}')]
+        } else {
+          this.yearDate = [parseTime(this.yearDate[0], '{y}-{m}') + '-00', parseTime(this.yearDate[1], '{y}-{m}') + '-00']
+        }
+      }
+      console.log(item,'===',this.yearDate)
       this.getlistEquipmentIndex()
     },
     // 设备指标
@@ -844,7 +893,24 @@ export default {
         }
         setTimeout(() => {
           this.gasCostTable.listLoading = false
-          this.get_table_dataWaterConsumption()
+          this.get_table_dataallConsumption()
+        }, 100)
+      })
+    },
+    get_table_dataallConsumption() {
+      this.allConsumptionTable.listLoading = true
+      this.allConsumptionTable.getdataListParm.parammaps.startTime = this.yearDate[0]
+      this.allConsumptionTable.getdataListParm.parammaps.endTime = this.yearDate[1]
+      this.allConsumptionTable.getdataListParm.parammaps.pastureId = this.pastureId
+      this.allConsumptionTable.getdataListParm.parammaps.departmentId = this.departmentId
+      GetDataByName(this.allConsumptionTable.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.allConsumptionTable.list = response.data.list
+        } else {
+          this.allConsumptionTable.list = []
+        }
+        setTimeout(() => {
+          this.allConsumptionTable.listLoading = false
         }, 100)
       })
     },
@@ -905,6 +971,7 @@ export default {
         }, 100)
       })
     },
+
     //生物质
     get_table_dataBioConsumptionTable() {
       this.bioConsumptionTable.listLoading = true
@@ -919,15 +986,15 @@ export default {
           this.bioConsumptionTable.list = []
         }
         setTimeout(() => {
-        
+
           this.bioConsumptionTable.listLoading = false
         }, 100)
       })
     },
 
-    
 
-  
+
+
 
 
 
@@ -1020,6 +1087,18 @@ export default {
         this.get_table_dataDialog()
       }
     },
+    clickAllConsumption(row) {
+      if (row.pastureName !== '现代牧业') {
+        this.textMap.allConsumption = row.pastureName + this.yearDate[0].substring(0, this.yearDate[0].lastIndexOf('-')) + '-' + this.yearDate[1].substring(0, this.yearDate[1].lastIndexOf('-')) + '水量'
+        this.dialogStatus = 'allConsumption'
+        this.dialog.dialogFormVisible = true
+        this.dialog.getdataListParm.name = 'getChooseMonthWaterDepartment'
+        this.dialog.getdataListParm.parammaps.startTime = this.yearDate[0]
+        this.dialog.getdataListParm.parammaps.endTime = this.yearDate[1]
+        this.dialog.getdataListParm.parammaps.pastureId = row.pastureId
+        this.get_table_dataDialog()
+      }
+    },
     // 水量-点击
     clickWaterConsumption(row) {
       if (row.pastureName !== '现代牧业') {

+ 6 - 4
src/views/report/equipmentOverview/index.vue

@@ -7,13 +7,13 @@
     </div>
     <div class="filter-container" style="position: relative;">
       <div v-show="isPraseTime" class="block">
-        <el-date-picker v-model="praseTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="top:-3px" :clearable="false" />
+        <el-date-picker v-model="praseTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;" :clearable="false" />
       </div>
       <div v-show="isPraseTime" style="position: absolute;top:10px;right:15%;font-size:30px">
         <i class="el-icon-s-data" @click="chartIcon" />
         <i class="el-icon-date" @click="tableIcon" />
       </div>
-      <el-button v-if="isDownLoad" class="filter-item" type="success" icon="el-icon-edit" style="position: absolute;top:10px;right:2%;" @click="handleDownloadAll">导出</el-button>
+      <el-button v-if="isDownLoad" class="filter-item" type="success" icon="el-icon-edit" style="position: absolute;top:0;left:210px;" @click="handleDownloadAll">导出</el-button>
     </div>
 
     <el-row v-show="chartBx">
@@ -28,7 +28,7 @@
     </el-row>
 
     <el-row v-show="tableBx">
-      <el-select v-show="isType" v-model="getDeptListParm.parammaps.type" class="filter-item" style="width: 120px;" @change="changeType">
+      <el-select v-show="isType" v-model="getDeptListParm.parammaps.type" class="filter-item" style="width: 200px;top:-10px;" @change="changeType">
         <el-option
           v-for="item in types"
           :key="item.id"
@@ -52,6 +52,7 @@
         :row-style="rowStyle"
         :cell-style="tableCellStyle"
         class="elTable"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -272,7 +273,8 @@ export default {
           pastureName: '',
           type: 0
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 

+ 4 - 2
src/views/report/inventorySpareParts/index.vue

@@ -10,7 +10,7 @@
       </el-select>
       <el-date-picker v-model="getdataListParm.parammaps.checkDate" type="month" style="width: 250px;top:-3px;" placeholder="选择月份" format="yyyy-MM" value-format="yyyy-MM" />
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <el-button class="filter-item" style="position:absolute;right:10px" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" type="success" icon="el-icon-edit" @click="handleDownload">导出</el-button>
       <el-table
         :key="tableKey"
         v-loading="listLoading"
@@ -24,6 +24,7 @@
         :cell-style="cellStyle"
         class="elTable table-fixed"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -86,7 +87,8 @@ export default {
       downLoadParm: {},
       downLoadList: [],
       isPercentage: false,
-      percentage: 1
+      percentage: 1,
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
   created() {

+ 7 - 4
src/views/report/inventorySummary/index.vue

@@ -6,7 +6,7 @@
     </div>
     <div class="filter-container">
       <el-date-picker v-model="monthDate" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份"  @change="changeTime" />
-      <el-button style="float:right;right:10px" class="filter-item" type="success" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" type="success" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
     </div>
     <div v-if="isTable1" class="table">
       <el-table
@@ -22,6 +22,7 @@
         class="elTable"
         :cell-style="tableCellStyle"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -39,7 +40,7 @@
         <el-table-column label="出库金额" min-width="140px" align="center" sortable prop="ckje" />
         <el-table-column label="期初库存" min-width="140px" align="center" sortable prop="earlymonthje" />
         <el-table-column label="期末库存" min-width="140px" align="center" sortable prop="endofmonthje" />
-        <el-table-column label="库存周转率" min-width="140px" align="center" sortable prop="rateofturnover" />  
+        <el-table-column label="库存周转率" min-width="140px" align="center" sortable prop="rateofturnover" />
       </el-table>
       <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
     </div>
@@ -62,6 +63,7 @@
         style="width: 100%;"
         :row-style="rowStyle"
         class="elTable"
+        :max-height="myHeight"
         @sort-change="tableSort2"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
@@ -85,7 +87,7 @@
         <el-table-column v-if="isPartClass" :key="6" label="备件总库存" min-width="140px" align="center" sortable prop="psCount" />
         <el-table-column v-if="isPartClass" :key="7" label="标准库存差异" min-width="140px" align="center" sortable prop="different" />
         <el-table-column v-if="isPartClass" :key="8" label="总金额" min-width="140px" align="center" sortable prop="psSum" />
-        <el-table-column v-if="isPartClass" :key="9" label="库存周转率" min-width="140px" align="center" sortable prop="periodicity" />  
+        <el-table-column v-if="isPartClass" :key="9" label="库存周转率" min-width="140px" align="center" sortable prop="periodicity" />
         <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right">
           <template slot-scope="{row}">
             <el-button type="primary" size="mini" @click="handleDetailed(row)">明细</el-button>
@@ -169,7 +171,8 @@ export default {
             type: 0
           }
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 

+ 5 - 2
src/views/report/inventorySummary/index1.vue

@@ -11,7 +11,7 @@
       <el-select v-model="getdataListParm.parammaps.type" class="filter-item" style="width: 120px;" @change="changeType">
         <el-option v-for="item in types" :key="item.id" :label="item.name" :value="item.id" />
       </el-select>
-      <el-button style="position:absolute;right:10px" class="filter-item" type="success" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
+      <el-button class="filter-item" type="success" icon="el-icon-upload2" @click="handleDownload">导出</el-button>
     </div>
     <div v-if="isTable1" class="table">
       <el-table
@@ -27,6 +27,7 @@
         class="elTable"
         :cell-style="tableCellStyle"
         @sort-change="tableSort"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -73,6 +74,7 @@
         :row-style="rowStyle"
         class="elTable"
         @sort-change="tableSort2"
+        :max-height="myHeight"
       >
         <el-table-column label="序号" align="center" type="index" width="50px">
           <template slot-scope="scope">
@@ -167,7 +169,8 @@ export default {
             type: 0
           }
         }
-      }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 150
     }
   },
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác