Pārlūkot izejas kodu

系统-所有页面查询页改为50

Shan9312 10 mēneši atpakaļ
vecāks
revīzija
73147e5611
100 mainītis faili ar 7775 papildinājumiem un 10232 dzēšanām
  1. 7 7
      src/layout/components/Sidebar/SidebarItem.vue
  2. 2 2
      src/views/asset/SST/index.vue
  3. 33 33
      src/views/asset/assetDesignee/index.vue
  4. 11 11
      src/views/asset/assetDesignee/index1.vue
  5. 1 1
      src/views/asset/assetinventory/index.vue
  6. 12 12
      src/views/asset/basics/index.vue
  7. 1 1
      src/views/asset/complain/index.vue
  8. 2 2
      src/views/asset/equipmentAllocation/index.vue
  9. 2 2
      src/views/asset/install/index.vue
  10. 1 1
      src/views/asset/installrecord/index.vue
  11. 1 1
      src/views/asset/mailrepair/index.vue
  12. 1 1
      src/views/asset/order/index.vue
  13. 1 1
      src/views/asset/ordersend/index.vue
  14. 1 1
      src/views/asset/service/index.vue
  15. 1 1
      src/views/asset/standardAssetAllocation/index.vue
  16. 1 1
      src/views/asset/telvisit/index.vue
  17. 3 3
      src/views/asset/template/components/baoyang.vue
  18. 1 1
      src/views/asset/template/components/bumeng.vue
  19. 2 2
      src/views/asset/template/components/buwei.vue
  20. 2 2
      src/views/asset/template/components/buwei1.vue
  21. 1 1
      src/views/basic/assetStandardManagement/index.vue
  22. 1 1
      src/views/basic/brand/index.vue
  23. 1 1
      src/views/basic/maintenanceWorkerCategory/index.vue
  24. 6 6
      src/views/basic/otherinfo/index.vue
  25. 3 3
      src/views/basic/product/index.vue
  26. 1 1
      src/views/basic/productclass/index.vue
  27. 1 1
      src/views/basic/standardStock/index.vue
  28. 1 1
      src/views/basic/warehouse/index.vue
  29. 1 1
      src/views/business/visit/index.vue
  30. 1 1
      src/views/console/apisql/index.vue
  31. 1 1
      src/views/console/dict/index.vue
  32. 1 1
      src/views/console/emp/index.vue
  33. 1 1
      src/views/console/feedings/index.vue
  34. 1 1
      src/views/console/ranchManagement/index.vue
  35. 1 1
      src/views/console/role/index.vue
  36. 1 1
      src/views/console/safetyStock/index.vue
  37. 1 1
      src/views/console/user/index.vue
  38. 1 1
      src/views/console/user/index改好.vue
  39. 46 46
      src/views/cost/biomassConsum/index.vue
  40. 1 1
      src/views/cost/budget/index.vue
  41. 47 47
      src/views/cost/coalConsum/index.vue
  42. 46 46
      src/views/cost/coalConsum/index1.vue
  43. 3 3
      src/views/cost/diesel/index.vue
  44. 3 3
      src/views/cost/elec/index.vue
  45. 3 3
      src/views/cost/gas/index.vue
  46. 46 46
      src/views/cost/gasolineConsum/index.vue
  47. 1 1
      src/views/cost/generation/index.vue
  48. 2 2
      src/views/cost/methane/index.vue
  49. 2 2
      src/views/cost/other/index.vue
  50. 3 3
      src/views/cost/steam/index.vue
  51. 3 3
      src/views/cost/water/index.vue
  52. 1 1
      src/views/custom/allot/index.vue
  53. 1 1
      src/views/custom/allot/index1.vue
  54. 5 5
      src/views/custom/basic/index.vue
  55. 6 6
      src/views/custom/contract/index.vue
  56. 2971 2971
      src/views/custom/contractManagement/index.vue
  57. 10 10
      src/views/custom/custom/index.vue
  58. 5 5
      src/views/custom/inventory/index.vue
  59. 1 1
      src/views/custom/outRecord/index.vue
  60. 5 5
      src/views/custom/outStock/index.vue
  61. 5 5
      src/views/custom/outStock/index1.vue
  62. 7 7
      src/views/custom/purchase/index.vue
  63. 3 3
      src/views/custom/receive/index.vue
  64. 3 3
      src/views/custom/receive/index1.vue
  65. 1 1
      src/views/custom/record/index.vue
  66. 1 1
      src/views/custom/refuse/index.vue
  67. 23 23
      src/views/custom/retreat/index.vue
  68. 4 4
      src/views/custom/returngoods/index.vue
  69. 29 29
      src/views/custom/returngoods/index1.vue
  70. 3 3
      src/views/custom/saplog/index.vue
  71. 0 2457
      src/views/custom/storage/index.vue
  72. 4 4
      src/views/custom/subscribe/index.vue
  73. 2 2
      src/views/custom/writeoff/index.vue
  74. 11 11
      src/views/custom/writeoff/index1.vue
  75. 15 15
      src/views/custom/writeoff/index2.vue
  76. 1 1
      src/views/dashboard/editor/index.vue
  77. 1 1
      src/views/electro/electroData/index.vue
  78. 4 4
      src/views/evaluationVerification/assessment/index.vue
  79. 3 3
      src/views/evaluationVerification/assessment/index1.vue
  80. 2 2
      src/views/knowledgeBase/file/index.vue
  81. 24 24
      src/views/maintenance/maintain/index.vue
  82. 1 1
      src/views/maintenance/maintenancePlan/index1.vue
  83. 15 15
      src/views/maintenance/repair/index.vue
  84. 10 10
      src/views/maintenance/repair/index1.vue
  85. 1 1
      src/views/maintenance/spotCheck/index.vue
  86. 1671 1671
      src/views/maintenance/subcontractingMainten/tabPage/tab1.vue
  87. 108 108
      src/views/maintenance/subcontractingMainten/tabPage/tab11.vue
  88. 2414 2414
      src/views/maintenance/subcontractingMainten/tabPage/tab2.vue
  89. 1 1
      src/views/maintenance/upkeep/index.vue
  90. 1 1
      src/views/maintenance/vehicleRecords/index.vue
  91. 3 3
      src/views/news/news.vue
  92. 1 1
      src/views/report/completionRateMaintenance/index.vue
  93. 2 2
      src/views/report/consume/index.vue
  94. 68 68
      src/views/report/energyConsum/index.vue
  95. 1 1
      src/views/report/equipment/index.vue
  96. 2 2
      src/views/report/equipmentIndex/index.vue
  97. 1 1
      src/views/report/equipmentIndex/index备份.vue
  98. 1 1
      src/views/report/equipmentIndex/index改好.vue
  99. 3 3
      src/views/report/equipmentOperation/index.vue
  100. 3 3
      src/views/report/equipmentOverview/index.vue

+ 7 - 7
src/layout/components/Sidebar/SidebarItem.vue

@@ -20,7 +20,7 @@
           :item="child"
           :base-path="resolvePath(child.path)"
           class="nest-menu"
-     
+
         />
       </template>
 
@@ -37,7 +37,7 @@ import FixiOSBug from './FixiOSBug'
 
 
 import { GetDataByName, GetDataByNames, PostDataByName } from '@/api/common'
- 
+
 export default {
   name: 'SidebarItem',
   components: { Item, AppLink },
@@ -68,23 +68,23 @@ export default {
     acconut(e){
       console.log("统计点击量")
       var numId = e.id
-       
+
       console.log(numId)
 
       var send_data =   {
         name: 'addMenuClick',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {menuId:numId}
-      } 
+      }
 
 
          PostDataByName(send_data).then(response => {
-          
+
             if (response.msg !== 'fail') {
-           
+
               //this.$notify({ title: '成功', message: '发送!!', type: 'success', duration: 2000 })
               // this.reload()
             } else {

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

@@ -320,7 +320,7 @@ export default {
         name: 'geteqSTTList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           eqCode: '',
@@ -415,7 +415,7 @@ export default {
         name: 'getAssetSTT1',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetId: '',

+ 33 - 33
src/views/asset/assetDesignee/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="app-container">
     这个页面取消,暂停开发
- 
+
   </div>
 </template>
 
@@ -65,7 +65,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: [],
@@ -76,10 +76,10 @@ export default {
       total: 0,
       listLoading: true,
       getdataListParm: {
-        name: 'getAssetList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getAssetList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: {proId:'',brandId:'', assetCode:'',eqCode: '', eqName: '', departmentId: '', pastureId: Cookies.get('pastureid'), pastureName: Cookies.get('pasturename'), status: '', inputDatetime1: '', startTime: '', stopTime: '', inputDatetime2: '', startTime2: '', stopTime2: '', inputDatetime3: '', startTime3: '', stopTime3: '', warning: '', eqClassId: '' }
       },
-     
+
       textMap: { update: '编辑', create: '新增', card: '查看设备信息', examine: '审核', change: '批量变更' },
       dialogFormVisible: false,
       dialogStatus: '',
@@ -98,14 +98,14 @@ export default {
       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: '' },
       requestParam: { name: 'insertAsset', offset: 0, pagecount: 0, parammaps: {}},
       seeTemp: {},
- 
+
       dialogFormVisible_See: false,
       activeName: 'first',
 
       maintainTypes: [{ id: '0', name: '周保养' }, { id: '1', name: '月保养' }, { id: '2', name: '间隔保养' }],
       changeStates: [{ id: '17', name: '正常' }, { id: '18', name: '闲置' }, { id: '19', name: '报废' }, { id: '20', name: '封存' }],
 
-      getdataEQNumber: { name: 'cerateEQNumber', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}},
+      getdataEQNumber: { name: 'cerateEQNumber', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}},
 
       dialoFormVisible_Examine: false,
       examineTemp: { SHstatue: 1 },
@@ -116,32 +116,32 @@ export default {
       isDisplayRecord: false,
       buttons: [],
       // 查看-点检记录
-      getAssetBigSpotCheckListParm: { name: 'getAssetBigSpotCheck1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeSpotCheck1: '', startTime: '', stopTime: '' }},
+      getAssetBigSpotCheckListParm: { name: 'getAssetBigSpotCheck1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeSpotCheck1: '', startTime: '', stopTime: '' }},
       listLoadingSpotCheck1: false,
       listSpotCheck1: [],
       totalSpotCheck1: 0,
       // 查看-保养记录
-      getBigupkeepbyeqParm: { name: 'getBigupkeepbyeq', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeUpkeepbyeq: '', startTime: '', stopTime: '', upkeepType: '', upkeepCode: '' }},
+      getBigupkeepbyeqParm: { name: 'getBigupkeepbyeq', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeUpkeepbyeq: '', startTime: '', stopTime: '', upkeepType: '', upkeepCode: '' }},
       listLoadingUpkeepbyeq: false,
       listUpkeepbyeq: [],
       totalUpkeepbyeq: 0,
       // 查看-维修记录
-      getAssetMaintainParm: { name: 'getAssetMaintain1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeAssetMaintain: '', startTime: '', stopTime: '', repairCode: '' }},
+      getAssetMaintainParm: { name: 'getAssetMaintain1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeAssetMaintain: '', startTime: '', stopTime: '', repairCode: '' }},
       listLoadingAssetMaintain: false,
       listAssetMaintain: [],
       totalAssetMaintain: 0,
       // 查看-启停记录
-      getAssetSTTParm: { name: 'getAssetSTT1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '' }},
+      getAssetSTTParm: { name: 'getAssetSTT1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '' }},
       listLoadingAssetSTT: false,
       listAssetSTT: [],
       totalAssetSTT: 0,
       // 查看-变更记录
-      getAssetChangeParm: { name: 'getAssetChange1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '', changeStatue: '', inputDatetimeAssetChange: '' }},
+      getAssetChangeParm: { name: 'getAssetChange1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '', changeStatue: '', inputDatetimeAssetChange: '' }},
       listLoadingAssetChange: false,
       listAssetChange: [],
       totalAssetChange: 0,
       // 查看-备件领用记录
-      getAssetPartApplyParm: { name: 'getAssetPartApply', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '', inputDatetimeAssetPartApply: '' }},
+      getAssetPartApplyParm: { name: 'getAssetPartApply', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '', inputDatetimeAssetPartApply: '' }},
       listLoadingAssetPartApply: false,
       listAssetPartApply: [],
       totalAssetPartApply: 0,
@@ -151,7 +151,7 @@ export default {
         name: 'getBrandByPartCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -160,7 +160,7 @@ export default {
         name: 'findAllEmployeV2',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -187,7 +187,7 @@ export default {
         name: 'getEqPartuseDetailList',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           receiveTime: '',
@@ -241,7 +241,7 @@ export default {
         sheetname: 'SheetJS'
       }
     },
-   
+
     // 设置上传地址
     uploadExcelUrl() {
       // process.env.VUE_APP_BASE_API是服务器的路径,也是axios的基本路径
@@ -249,8 +249,8 @@ export default {
     }
   },
   created() {
-     
- 
+
+
   },
   methods: {
      // 导入
@@ -277,7 +277,7 @@ export default {
             duration: 2000
           })
 
-          
+
         }
       } else {
         this.$notify({
@@ -424,7 +424,7 @@ export default {
         console.log('table数据', response.data.list)
         if (response.data.list !== null) {
           this.list = response.data.list
-           
+
           this.pageNum = response.data.pageNum
           this.pageSize = response.data.pageSize
         } else {
@@ -437,7 +437,7 @@ export default {
         this.get_select_list()
       })
     },
-     
+
     SHStatus: function(cellValue) {
       if (cellValue.SHStatus == 0) {
         return '审核中'
@@ -485,7 +485,7 @@ export default {
       this.getdataListParm.offset = 1
       this.get_table_data()
     },
- 
+
     handlePicChange(file, fileList) {
       if (fileList.length > 0) {
         this.$nextTick(() => {
@@ -644,7 +644,7 @@ export default {
       this.createTemp.yearUpkeepCost = ''
       this.createTemp.yearMaintainDost = ''
       this.createTemp.yuanzhi = ''
- 
+
       this.createTemp.baseHours = ''
       this.createTemp.upkeepgrade = 113
       this.createTemp.salvage = ''
@@ -1409,7 +1409,7 @@ export default {
       this.getChartSeeParm.offset = 1
       this.getChartSeeList()
     },
- 
+
     form_delete(row) {
       MessageBox.confirm('确认删除此信息?', {
         confirmButtonText: '确认',
@@ -1424,7 +1424,7 @@ export default {
             this.getdataListParm.parammaps.inputDatetime1 = ''
           }
           this.get_table_data()
-        
+
           this.dialogFormVisible = false
           this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
         })
@@ -1442,17 +1442,17 @@ 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()
-        
+
       })
     },
 
-   
- 
+
+
     changeSHStatue(val) {
       if (val == 2) {
         this.statueReason = true
@@ -1460,10 +1460,10 @@ export default {
         this.statueReason = false
       }
     },
-   
- 
-   
-   
+
+
+
+
     changeBatchDept(item) {
       console.log(item)
       this.batchChange.getdataListParmPerson.parammaps.deptId = item

+ 11 - 11
src/views/asset/assetDesignee/index1.vue

@@ -900,7 +900,7 @@ export default {
       total: 0,
       listLoading: true,
       getdataListParm: {
-        name: 'getAssetList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getAssetList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: {proId:'',brandId:'', assetCode:'',eqCode: '', eqName: '', departmentId: '', pastureId: Cookies.get('pastureid'), pastureName: Cookies.get('pasturename'), status: '', inputDatetime1: '', startTime: '', stopTime: '', inputDatetime2: '', startTime2: '', stopTime2: '', inputDatetime3: '', startTime3: '', stopTime3: '', warning: '', eqClassId: '' }
       },
 
@@ -929,7 +929,7 @@ export default {
       maintainTypes: [{ id: '0', name: '周保养' }, { id: '1', name: '月保养' }, { id: '2', name: '间隔保养' }],
       changeStates: [{ id: '17', name: '正常' }, { id: '18', name: '闲置' }, { id: '19', name: '报废' }, { id: '20', name: '封存' }],
 
-      getdataEQNumber: { name: 'cerateEQNumber', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}},
+      getdataEQNumber: { name: 'cerateEQNumber', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}},
 
       dialoFormVisible_Examine: false,
       examineTemp: { SHstatue: 1 },
@@ -940,32 +940,32 @@ export default {
       isDisplayRecord: false,
       buttons: [],
       // 查看-点检记录
-      getAssetBigSpotCheckListParm: { name: 'getAssetBigSpotCheck1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeSpotCheck1: '', startTime: '', stopTime: '' }},
+      getAssetBigSpotCheckListParm: { name: 'getAssetBigSpotCheck1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeSpotCheck1: '', startTime: '', stopTime: '' }},
       listLoadingSpotCheck1: false,
       listSpotCheck1: [],
       totalSpotCheck1: 0,
       // 查看-保养记录
-      getBigupkeepbyeqParm: { name: 'getBigupkeepbyeq', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeUpkeepbyeq: '', startTime: '', stopTime: '', upkeepType: '', upkeepCode: '' }},
+      getBigupkeepbyeqParm: { name: 'getBigupkeepbyeq', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeUpkeepbyeq: '', startTime: '', stopTime: '', upkeepType: '', upkeepCode: '' }},
       listLoadingUpkeepbyeq: false,
       listUpkeepbyeq: [],
       totalUpkeepbyeq: 0,
       // 查看-维修记录
-      getAssetMaintainParm: { name: 'getAssetMaintain1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { inputDatetimeAssetMaintain: '', startTime: '', stopTime: '', repairCode: '' }},
+      getAssetMaintainParm: { name: 'getAssetMaintain1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { inputDatetimeAssetMaintain: '', startTime: '', stopTime: '', repairCode: '' }},
       listLoadingAssetMaintain: false,
       listAssetMaintain: [],
       totalAssetMaintain: 0,
       // 查看-启停记录
-      getAssetSTTParm: { name: 'getAssetSTT1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '' }},
+      getAssetSTTParm: { name: 'getAssetSTT1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '' }},
       listLoadingAssetSTT: false,
       listAssetSTT: [],
       totalAssetSTT: 0,
       // 查看-变更记录
-      getAssetChangeParm: { name: 'getAssetChange1', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '', changeStatue: '', inputDatetimeAssetChange: '' }},
+      getAssetChangeParm: { name: 'getAssetChange1', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '', changeStatue: '', inputDatetimeAssetChange: '' }},
       listLoadingAssetChange: false,
       listAssetChange: [],
       totalAssetChange: 0,
       // 查看-备件领用记录
-      getAssetPartApplyParm: { name: 'getAssetPartApply', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { startTime: '', stopTime: '', inputDatetimeAssetPartApply: '' }},
+      getAssetPartApplyParm: { name: 'getAssetPartApply', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { startTime: '', stopTime: '', inputDatetimeAssetPartApply: '' }},
       listLoadingAssetPartApply: false,
       listAssetPartApply: [],
       totalAssetPartApply: 0,
@@ -975,7 +975,7 @@ export default {
         name: 'getBrandByPartCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -984,7 +984,7 @@ export default {
         name: 'findAllEmployeV2',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -1011,7 +1011,7 @@ export default {
         name: 'getEqPartuseDetailList',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           receiveTime: '',

+ 1 - 1
src/views/asset/assetinventory/index.vue

@@ -193,7 +193,7 @@ export default {
       total: 0,
       listLoading: true,
       getdataListParm: {
-        name: 'getAssetList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getAssetList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: parseInt(Cookies.get('pastureid')),  inputDatetime: '', startTime: '', stopTime: '', departmentId: '' }
       },
       isAssetinventorySee: [], isBasicsCard: [], isBasicsUpdate: [], isBasicsDel: [], isBasicsDel2: [], isBasic: [], isBasicSH: [], isBasicExamine: [],

+ 12 - 12
src/views/asset/basics/index.vue

@@ -3008,7 +3008,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           proId: '',
@@ -3041,7 +3041,7 @@ export default {
         name: 'getAssetListSH',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           eqCode: '',
@@ -3149,7 +3149,7 @@ export default {
         name: 'cerateEQNumber',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -3167,7 +3167,7 @@ export default {
         name: 'getAssetBigSpotCheck1',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { inputDatetimeSpotCheck1: '', startTime: '', stopTime: '' }
       },
@@ -3179,7 +3179,7 @@ export default {
         name: 'getBigupkeepbyeq',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetimeUpkeepbyeq: '',
@@ -3197,7 +3197,7 @@ export default {
         name: 'getAssetMaintain1',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetimeAssetMaintain: '',
@@ -3214,7 +3214,7 @@ export default {
         name: 'getAssetSTT1',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { startTime: '', stopTime: '' }
       },
@@ -3226,7 +3226,7 @@ export default {
         name: 'getAssetChange1',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           startTime: '',
@@ -3243,7 +3243,7 @@ export default {
         name: 'getAssetPartApply',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           startTime: '',
@@ -3260,7 +3260,7 @@ export default {
         name: 'getBrandByPartCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -3269,7 +3269,7 @@ export default {
         name: 'findAllEmployeV2',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -3296,7 +3296,7 @@ export default {
         name: 'getEqPartuseDetailList',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           receiveTime: '',

+ 1 - 1
src/views/asset/complain/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 2 - 2
src/views/asset/equipmentAllocation/index.vue

@@ -237,7 +237,7 @@ export default {
         name: 'geteqTransferList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -260,7 +260,7 @@ export default {
         name: 'geteqbyNameCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 2 - 2
src/views/asset/install/index.vue

@@ -318,7 +318,7 @@ export default {
         name: 'geteqChangeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetCode: '',
@@ -412,7 +412,7 @@ export default {
         name: 'getAssetchangeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           eqId: '',

+ 1 - 1
src/views/asset/installrecord/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 1 - 1
src/views/asset/mailrepair/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 1 - 1
src/views/asset/order/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 1 - 1
src/views/asset/ordersend/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 1 - 1
src/views/asset/service/index.vue

@@ -246,7 +246,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 1 - 1
src/views/asset/standardAssetAllocation/index.vue

@@ -111,7 +111,7 @@ export default {
       total: 0,
       listLoading: true,
       getdataListParm: {
-        name: 'getEquipmentAndEquipmentStandard', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getEquipmentAndEquipmentStandard', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid'), pastureName: Cookies.get('pasturename'), departmentName: '', eqClassId: '' }
       },
       requestParam: { name: 'insertAsset', offset: 0, pagecount: 0, parammaps: {}}, statueReason: false,

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

@@ -247,7 +247,7 @@ export default {
         name: 'getAssetList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

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

@@ -470,7 +470,7 @@ export default {
         name: 'getPositionPartBypid',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -479,7 +479,7 @@ export default {
         name: 'getPositionByName',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
         }
@@ -498,7 +498,7 @@ export default {
         name: 'getPartsListUpkeep',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 1 - 1
src/views/asset/template/components/bumeng.vue

@@ -81,7 +81,7 @@ export default {
       getdataListParm: {
         name: 'getEmpAll',
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         params: []
       },

+ 2 - 2
src/views/asset/template/components/buwei.vue

@@ -350,7 +350,7 @@ export default {
         name: 'getPartsListBW',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -367,7 +367,7 @@ export default {
         name: 'getPositionPartBypid',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 2 - 2
src/views/asset/template/components/buwei1.vue

@@ -350,7 +350,7 @@ export default {
         name: 'getPartsListBW',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -367,7 +367,7 @@ export default {
         name: 'getPositionPartBypid',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 1 - 1
src/views/basic/assetStandardManagement/index.vue

@@ -118,7 +118,7 @@ export default {
       table: {
         tableKey: 0, list: [], tablelist: [], total: 0, listLoading: true, idsArray: [], deptEnableList: [], deptNameArray: [], propertyArray: [],
         getdataListParm: {
-          deptName: '', eqClassId: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}
+          deptName: '', eqClassId: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}
         }
       },
       postDataParm: {},

+ 1 - 1
src/views/basic/brand/index.vue

@@ -199,7 +199,7 @@ export default {
         name: 'getBrandList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           brandName: ''

+ 1 - 1
src/views/basic/maintenanceWorkerCategory/index.vue

@@ -91,7 +91,7 @@ export default {
       table: {
         tableKey: 0, total: 0, listLoading: true, list: [], pageNum: 0, pageSize: 10,
         getdataListParm: {
-          name: 'getMaintence', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: 'getMaintence', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },

+ 6 - 6
src/views/basic/otherinfo/index.vue

@@ -284,27 +284,27 @@ export default {
       getDeptParm: { name: 'getdeptrecu', idname: 'value', params: [-1] },
       postDataPramas: { },
       getdataListParm: {
-        name: 'getOilcardList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getOilcardList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pname: '', pastureName: Cookies.get('pasturename') }
       },
       requestFilterParams: {
-        name: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: {}
       },
       requestFilterParams2: {
-        name: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: {}
       },
       getchangedataListParm: {
-        name: 'getOilcardHistory', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getOilcardHistory', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { }
       },
       getchangedataListParm2: {
-        // name: 'getOilcardHistory', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        // name: 'getOilcardHistory', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         // parammaps: { }
       },
       getrechargedataListParm: {
-        name: 'getrechargerecordList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getrechargerecordList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { }
       },
       cardTypeList: [{ name: '内部', id: '0' }],

+ 3 - 3
src/views/basic/product/index.vue

@@ -345,7 +345,7 @@ export default {
         name: 'getProviderList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           providerName: ''
@@ -400,7 +400,7 @@ export default {
         name: 'getWarehousimple',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         parammaps: {
           pastureId: Cookies.get('pastureid')
         }
@@ -413,7 +413,7 @@ export default {
         name: 'getWarehouproviderlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 1 - 1
src/views/basic/productclass/index.vue

@@ -120,7 +120,7 @@ export default {
       },
       getdataListParm: { name: 'getPastureList',
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         params: [] },
       rules: {
         productclass: [{ type: 'string', required: true, message: '产品分类名称必填', trigger: 'change' }],

+ 1 - 1
src/views/basic/standardStock/index.vue

@@ -109,7 +109,7 @@ export default {
       table: {
         tableKey: 0, list: [], tablelist: [], total: 0, listLoading: true, idsArray: [],
         getdataListParm: {
-          partClassId: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}
+          partClassId: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}
         }
       },
       createTemp: {},

+ 1 - 1
src/views/basic/warehouse/index.vue

@@ -217,7 +217,7 @@ export default {
         name: 'getWarehouselist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: this.$store.state.user.pastureid,

+ 1 - 1
src/views/business/visit/index.vue

@@ -146,7 +146,7 @@ export default {
       getdataListParm: {
         name: 'getVisitList',
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           customname: '',

+ 1 - 1
src/views/console/apisql/index.vue

@@ -266,7 +266,7 @@ export default {
       },
       getdataListParm: { name: 'getapisqlall',
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         params: ['', '', '', ''] },
       getRecuListParm: { name: 'getMenuRecu' },
       rules: {

+ 1 - 1
src/views/console/dict/index.vue

@@ -200,7 +200,7 @@ export default {
       },
       getdataListParm: { name: 'getDictList',
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         params: [] },
       getRecuListParm: { name: 'getDictclass',
         idname: 'id',

+ 1 - 1
src/views/console/emp/index.vue

@@ -234,7 +234,7 @@ export default {
         name: 'getEmpAllL',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           empname: '',

+ 1 - 1
src/views/console/feedings/index.vue

@@ -203,7 +203,7 @@ export default {
         name: 'getFeedsumlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename')

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

@@ -179,7 +179,7 @@ export default {
           name: 'getPastureInforList',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {}
         }

+ 1 - 1
src/views/console/role/index.vue

@@ -150,7 +150,7 @@ export default {
         id: '', name: '', selectMenus: [], sort: '', enable: '', easInformationReception: ''
       },
       getdataListParm: { name: 'getRoleall',
-        offset: 1, pagecount: 10, returntype: 'Map',
+        offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid') }},
       getMenuParm: { name: 'getMenuandButtonRecuRule', idname: 'id', params: [-1] },
       rules: {

+ 1 - 1
src/views/console/safetyStock/index.vue

@@ -236,7 +236,7 @@ export default {
         name: 'getProviderList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       }

+ 1 - 1
src/views/console/user/index.vue

@@ -227,7 +227,7 @@ export default {
       //   { deviceId: 'apptest2', uId: 'PC', pwd: 'mcs8@666' }
       ],
       getdataListParm: {
-        name: 'getuserallL', offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getuserallL', offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
       },
       updateParam: {

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

@@ -224,7 +224,7 @@ export default {
         { deviceId: 'apptest2', uId: 'PC', pwd: 'mcs8@666' }
       ],
       getdataListParm: {
-        name: 'getuserallL', offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getuserallL', offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid'), empCode: '', empname: '' }
       },
       updateParam: {

+ 46 - 46
src/views/cost/biomassConsum/index.vue

@@ -40,7 +40,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
- 
+
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -62,7 +62,7 @@
           <span>{{ scope.row.dosage }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="单价"  min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.price }}</span>
@@ -83,7 +83,7 @@
           <span>{{ scope.row.date  }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="备注" min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.remarks  }}</span>
@@ -101,9 +101,9 @@
     <!-- 弹出层新增or修改 -->
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
       <el-form ref="temp" :rules="rules1" :model="temp" label-position="right" label-width="110px">
-        
+
         <el-row>
-           
+
           <el-col :span="8">
 
             <el-form-item label="牧场:" prop="pastureId" v-show="dialogStatus==='create'">
@@ -127,11 +127,11 @@
             <el-form-item label="部门:"  prop="departmentId"  v-show="dialogStatus==='update'">
                 <el-input ref="departmentName" v-model="temp.departmentName"  disabled />
             </el-form-item>
-    
+
           </el-col>
- 
 
-           
+
+
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -139,7 +139,7 @@
               <el-input ref="dosage" v-model="temp.dosage"    />
             </el-form-item>
           </el-col>
-         
+
           <el-col :span="8">
             <el-form-item label="单价(元):" prop="price">
               <el-input ref="price" v-model="temp.price"   />
@@ -161,7 +161,7 @@
             <el-form-item label="记录人:"  prop="empname"  v-show="dialogStatus==='update'" >
               <el-input ref="empname" v-model="temp.empname"  disabled />
             </el-form-item>
-           
+
           </el-col>
           <el-col :span="8">
             <el-form-item label="录入日期:" prop="date">
@@ -173,9 +173,9 @@
               <el-input ref="remarks" v-model="temp.remarks"  />
             </el-form-item>
           </el-col>
-          
+
         </el-row>
-         
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="dialogStatus==='create'" ref="createb" type="success" :disabled="isokDisable" @click="add_dialog_save_again()">保存并新增</el-button>
@@ -209,7 +209,7 @@
               <span>{{ scope.$index + (pageNumDosageRecord-1) * pageSizeDosageRecord + 1 }}</span>
             </template>
           </el-table-column>
-  
+
           <el-table-column label="用量"  prop="dosage" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.dosage }}</span>
@@ -235,7 +235,7 @@
               <span>{{ scope.row.date }}</span>
             </template>
           </el-table-column>
-        
+
         </el-table>
         <pagination v-show="totalDosageRecord>=0" :total="totalDosageRecord" :page.sync="getDosageRecordListParm.offset" :limit.sync="getDosageRecordListParm.pagecount" @pagination="get_record_list" />
         <div slot="footer" class="dialog-footer">
@@ -291,8 +291,8 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
- 
-   
+
+
       requestParam: {
         name: 'insertElectricity',
         offset: 0,
@@ -307,7 +307,7 @@ export default {
         name: 'getBiomass',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',  formNumber: '',   formType: '',    pastureName: Cookies.get('pasturename'),  departName: '', date: ''
@@ -328,8 +328,8 @@ export default {
       useTypes: [{ id: 0, name: '1级表' }, { id: 1, name: '2级表' }, { id: 2, name: '3级表' }],
       getDictByName: [],
       findAllAssetType: [],
-     
- 
+
+
       pastureList: [],
       departList1:[],
       departList2:[],
@@ -351,12 +351,12 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
 
-      temp: { 
+      temp: {
         pastureName: '',
         departName: '',
         dosage: '',
@@ -385,7 +385,7 @@ export default {
         name: 'getBiomassList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { "departmentId": ""}
       },
@@ -417,12 +417,12 @@ export default {
         price: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         expense: [{ required: true, message: '必填', trigger: 'blur' }],
-       
-         
+
+
       },
 
       rules2: { },
-    
+
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       buttons: [],
@@ -506,7 +506,7 @@ export default {
         }
       }, 0)
     },
-   
+
     form_export() {
       this.downLoadObj.parammaps = this.tableObj.parammaps
       GetDataByName(this.downLoadObj).then(response => {
@@ -531,7 +531,7 @@ export default {
     },
 
 
-    
+
 
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
@@ -574,10 +574,10 @@ export default {
         this.$notify({ title: '失败', message: '上传失败', type: 'danger', duration: 2000 })
       }
     },
-   
-  
-   
-  
+
+
+
+
     // 1-1: table&搜索
     get_table_data() {
       if(this.tableObj.parammaps.pastureName == '现代牧业'){
@@ -612,7 +612,7 @@ export default {
         this.get_departList2()
       })
     },
-    
+
     change_pasture1(item) {
       this.getDepartParam1.parammaps.pastureId = this.pastureList.find(obj => obj.name == item).id
       this.tableObj.parammaps.departName = ''
@@ -643,7 +643,7 @@ export default {
         this.tableObj.parammaps.date =''
       }
 
-    
+
       this.get_table_data()
     },
 
@@ -653,10 +653,10 @@ export default {
       this.$set(this.temp, 'inputid', item)
       this.$forceUpdate()
     },
-   
+
     form_reset() {
 
-    
+
 
       this.temp.pastureName = ''
       this.temp.departName = ''
@@ -671,20 +671,20 @@ export default {
       this.temp.pastureId = ''
 
 
-      
+
     },
     form_add() {
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-       
+
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })
- 
+
     },
-   
-    
+
+
     add_dialog_save() {
       console.log("this.temp=====>",this.temp)
       this.isokDisable = true
@@ -700,9 +700,9 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
-  
+
             if (response.msg === 'fail') {
               this.$notify({
                 title: '保存失败',
@@ -738,7 +738,7 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             console.log('保存发送参数', this.postDataPramas)
             if (response.msg === 'fail') {
@@ -774,14 +774,14 @@ export default {
     edit_dialog_save() {
       this.$refs['temp'].validate(valid => {
         if (valid) {
-           
+
           var send_data = {
               "name": "updateBiomass",
               "offset": 0,
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             if (response.msg === 'fail') {
               this.$notify({
@@ -812,7 +812,7 @@ export default {
     form_delete_sure() {
       this.$refs['deleteTemp'].validate(valid => {
         if (valid) {
-    
+
           var send_data = {
             "name":"delBiomass","offset":0,"pagecount":0,
             "parammaps":{"date":this.deleteTemp.startTime}

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

@@ -242,7 +242,7 @@ export default {
         name: 'getMonthbudgetlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 47 - 47
src/views/cost/coalConsum/index.vue

@@ -40,7 +40,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
- 
+
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -62,7 +62,7 @@
           <span>{{ scope.row.dosage }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="单价"  min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.price }}</span>
@@ -83,7 +83,7 @@
           <span>{{ scope.row.date  }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="备注" min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.remarks  }}</span>
@@ -101,9 +101,9 @@
     <!-- 弹出层新增or修改 -->
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
       <el-form ref="temp" :rules="rules1" :model="temp" label-position="right" label-width="110px">
-        
+
         <el-row>
-           
+
           <el-col :span="8">
 
             <el-form-item label="牧场:" prop="pastureId" v-show="dialogStatus==='create'">
@@ -127,11 +127,11 @@
             <el-form-item label="部门:"  prop="departmentId"  v-show="dialogStatus==='update'">
                 <el-input ref="departmentName" v-model="temp.departmentName"  disabled />
             </el-form-item>
-    
+
           </el-col>
- 
 
-           
+
+
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -139,7 +139,7 @@
               <el-input ref="dosage" v-model="temp.dosage"    />
             </el-form-item>
           </el-col>
-         
+
           <el-col :span="8">
             <el-form-item label="单价(元):" prop="price">
               <el-input ref="price" v-model="temp.price"   />
@@ -161,7 +161,7 @@
             <el-form-item label="记录人:"  prop="empname"  v-show="dialogStatus==='update'" >
               <el-input ref="empname" v-model="temp.empname"  disabled />
             </el-form-item>
-           
+
           </el-col>
           <el-col :span="8">
             <el-form-item label="录入日期:" prop="date">
@@ -173,9 +173,9 @@
               <el-input ref="remarks" v-model="temp.remarks"  />
             </el-form-item>
           </el-col>
-          
+
         </el-row>
-         
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="dialogStatus==='create'" ref="createb" type="success" :disabled="isokDisable" @click="add_dialog_save_again()">保存并新增</el-button>
@@ -209,7 +209,7 @@
               <span>{{ scope.$index + (pageNumDosageRecord-1) * pageSizeDosageRecord + 1 }}</span>
             </template>
           </el-table-column>
-  
+
           <el-table-column label="用量"  prop="dosage" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.dosage }}</span>
@@ -235,7 +235,7 @@
               <span>{{ scope.row.date }}</span>
             </template>
           </el-table-column>
-        
+
         </el-table>
         <pagination v-show="totalDosageRecord>=0" :total="totalDosageRecord" :page.sync="getDosageRecordListParm.offset" :limit.sync="getDosageRecordListParm.pagecount" @pagination="get_record_list" />
         <div slot="footer" class="dialog-footer">
@@ -291,8 +291,8 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
- 
-   
+
+
       requestParam: {
         name: 'insertElectricity',
         offset: 0,
@@ -307,7 +307,7 @@ export default {
         name: 'getCoal',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',  formNumber: '',   formType: '',    pastureName: Cookies.get('pasturename'),  departName: '', date: ''
@@ -328,8 +328,8 @@ export default {
       useTypes: [{ id: 0, name: '1级表' }, { id: 1, name: '2级表' }, { id: 2, name: '3级表' }],
       getDictByName: [],
       findAllAssetType: [],
-     
- 
+
+
       pastureList: [],
       departList1:[],
       departList2:[],
@@ -351,12 +351,12 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
 
-      temp: { 
+      temp: {
         pastureName: '',
         departName: '',
         dosage: '',
@@ -385,7 +385,7 @@ export default {
         name: 'getCoalList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { "departmentId": ""}
       },
@@ -411,19 +411,19 @@ export default {
         //     }
         //   }, 0)
         // }, trigger: 'blur' }],
-      
+
         pastureId: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         dosage: [{ required: true, message: '必填', trigger: 'blur' }],
         price: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         expense: [{ required: true, message: '必填', trigger: 'blur' }],
-       
-         
+
+
       },
 
       rules2: { },
-    
+
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       buttons: [],
@@ -507,7 +507,7 @@ export default {
         }
       }, 0)
     },
-   
+
     form_export() {
       this.downLoadObj.parammaps = this.tableObj.parammaps
       GetDataByName(this.downLoadObj).then(response => {
@@ -532,7 +532,7 @@ export default {
     },
 
 
-    
+
 
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
@@ -575,10 +575,10 @@ export default {
         this.$notify({ title: '失败', message: '上传失败', type: 'danger', duration: 2000 })
       }
     },
-   
-  
-   
-  
+
+
+
+
     // 1-1: table&搜索
     get_table_data() {
       if(this.tableObj.parammaps.pastureName == '现代牧业'){
@@ -613,7 +613,7 @@ export default {
         this.get_departList2()
       })
     },
-    
+
     change_pasture1(item) {
       this.getDepartParam1.parammaps.pastureId = this.pastureList.find(obj => obj.name == item).id
       this.tableObj.parammaps.departName = ''
@@ -644,7 +644,7 @@ export default {
         this.tableObj.parammaps.date =''
       }
 
-    
+
       this.get_table_data()
     },
 
@@ -654,10 +654,10 @@ export default {
       this.$set(this.temp, 'inputid', item)
       this.$forceUpdate()
     },
-   
+
     form_reset() {
 
-    
+
 
       this.temp.pastureName = ''
       this.temp.departName = ''
@@ -672,20 +672,20 @@ export default {
       this.temp.pastureId = ''
 
 
-      
+
     },
     form_add() {
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-       
+
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })
- 
+
     },
-   
-    
+
+
     add_dialog_save() {
       console.log("this.temp=====>",this.temp)
       this.isokDisable = true
@@ -701,9 +701,9 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
-  
+
             if (response.msg === 'fail') {
               this.$notify({
                 title: '保存失败',
@@ -739,7 +739,7 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             console.log('保存发送参数', this.postDataPramas)
             if (response.msg === 'fail') {
@@ -775,14 +775,14 @@ export default {
     edit_dialog_save() {
       this.$refs['temp'].validate(valid => {
         if (valid) {
-           
+
           var send_data = {
               "name": "updateCoal",
               "offset": 0,
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             if (response.msg === 'fail') {
               this.$notify({
@@ -813,7 +813,7 @@ export default {
     form_delete_sure() {
       this.$refs['deleteTemp'].validate(valid => {
         if (valid) {
-    
+
           var send_data = {
             "name":"delCoal","offset":0,"pagecount":0,
             "parammaps":{"date":this.deleteTemp.startTime}

+ 46 - 46
src/views/cost/coalConsum/index1.vue

@@ -40,7 +40,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
- 
+
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -62,7 +62,7 @@
           <span>{{ scope.row.dosage }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="单价"  min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.price }}</span>
@@ -83,7 +83,7 @@
           <span>{{ scope.row.date  }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="备注" min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.remarks  }}</span>
@@ -101,9 +101,9 @@
     <!-- 弹出层新增or修改 -->
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
       <el-form ref="temp" :rules="rules" :model="temp" label-position="right" label-width="110px">
-        
+
         <el-row>
-           
+
           <el-col :span="8">
 
             <el-form-item label="牧场:" prop="pastureId" v-show="dialogStatus==='create'">
@@ -127,11 +127,11 @@
             <el-form-item label="部门:"  prop="departmentId"  v-show="dialogStatus==='update'">
                 <el-input ref="departmentName" v-model="temp.departmentName"  disabled />
             </el-form-item>
-    
+
           </el-col>
- 
 
-           
+
+
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -139,7 +139,7 @@
               <el-input ref="dosage" v-model="temp.dosage"    />
             </el-form-item>
           </el-col>
-         
+
           <el-col :span="8">
             <el-form-item label="单价(元):" prop="price">
               <el-input ref="price" v-model="temp.price"   />
@@ -161,7 +161,7 @@
             <el-form-item label="记录人:"  prop="empname"  v-show="dialogStatus==='update'" >
               <el-input ref="empname" v-model="temp.empname"  disabled />
             </el-form-item>
-           
+
           </el-col>
           <el-col :span="8">
             <el-form-item label="录入日期:" prop="date">
@@ -173,9 +173,9 @@
               <el-input ref="remarks" v-model="temp.remarks"  />
             </el-form-item>
           </el-col>
-          
+
         </el-row>
-         
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="dialogStatus==='create'" ref="createb" type="success" :disabled="isokDisable" @click="add_dialog_save_again()">保存并新增</el-button>
@@ -186,7 +186,7 @@
     <!-- 用量记录 -->
     <el-dialog  title="用量记录" :visible.sync="dialogFormDosageRecord" :close-on-click-modal="false">
       <div class="dosageRecord">
-        
+
         <el-table
           :key="tableKey"
           v-loading="listLoadingDosageRecord"
@@ -206,7 +206,7 @@
               <span>{{ scope.$index + (pageNumDosageRecord-1) * pageSizeDosageRecord + 1 }}</span>
             </template>
           </el-table-column>
-  
+
           <el-table-column label="用量"  prop="dosage" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.dosage }}</span>
@@ -232,7 +232,7 @@
               <span>{{ scope.row.date }}</span>
             </template>
           </el-table-column>
-        
+
         </el-table>
         <pagination v-show="totalDosageRecord>=0" :total="totalDosageRecord" :page.sync="getDosageRecordListParm.offset" :limit.sync="getDosageRecordListParm.pagecount" @pagination="get_record_list" />
         <div slot="footer" class="dialog-footer">
@@ -288,8 +288,8 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
- 
-   
+
+
       requestParam: {
         name: 'insertElectricity',
         offset: 0,
@@ -304,7 +304,7 @@ export default {
         name: 'getCoal',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',  formNumber: '',   formType: '',    pastureName: Cookies.get('pasturename'),  departName: '', date: ''
@@ -325,8 +325,8 @@ export default {
       useTypes: [{ id: 0, name: '1级表' }, { id: 1, name: '2级表' }, { id: 2, name: '3级表' }],
       getDictByName: [],
       findAllAssetType: [],
-     
- 
+
+
       pastureList: [],
       departList1:[],
       departList2:[],
@@ -348,12 +348,12 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
 
-      temp: { 
+      temp: {
         pastureName: '',
         departName: '',
         dosage: '',
@@ -382,7 +382,7 @@ export default {
         name: 'getCoalList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { "departmentId": ""}
       },
@@ -408,10 +408,10 @@ export default {
         //     }
         //   }, 0)
         // }, trigger: 'blur' }],
-      
+
         // startTime: [{ required: true, message: '必填', trigger: 'blur' }]
       },
-    
+
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       buttons: [],
@@ -495,7 +495,7 @@ export default {
         }
       }, 0)
     },
-   
+
     form_export() {
       this.downLoadObj.parammaps = this.tableObj.parammaps
       GetDataByName(this.downLoadObj).then(response => {
@@ -520,7 +520,7 @@ export default {
     },
 
 
-    
+
 
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
@@ -563,10 +563,10 @@ export default {
         this.$notify({ title: '失败', message: '上传失败', type: 'danger', duration: 2000 })
       }
     },
-   
-  
-   
-  
+
+
+
+
     // 1-1: table&搜索
     get_table_data() {
       if(this.tableObj.parammaps.pastureName == '现代牧业'){
@@ -601,7 +601,7 @@ export default {
         this.get_departList2()
       })
     },
-    
+
     change_pasture1(item) {
       this.getDepartParam1.parammaps.pastureId = this.pastureList.find(obj => obj.name == item).id
       this.tableObj.parammaps.departName = ''
@@ -632,7 +632,7 @@ export default {
         this.tableObj.parammaps.date =''
       }
 
-    
+
       this.get_table_data()
     },
 
@@ -642,10 +642,10 @@ export default {
       this.$set(this.temp, 'inputid', item)
       this.$forceUpdate()
     },
-   
+
     form_reset() {
 
-    
+
 
       this.temp.pastureName = ''
       this.temp.departName = ''
@@ -660,20 +660,20 @@ export default {
       this.temp.pastureId = ''
 
 
-      
+
     },
     form_add() {
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-       
+
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })
- 
+
     },
-   
-    
+
+
     add_dialog_save() {
       console.log("this.temp=====>",this.temp)
       this.isokDisable = true
@@ -689,9 +689,9 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
-  
+
             if (response.msg === 'fail') {
               this.$notify({
                 title: '保存失败',
@@ -727,7 +727,7 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             console.log('保存发送参数', this.postDataPramas)
             if (response.msg === 'fail') {
@@ -763,14 +763,14 @@ export default {
     edit_dialog_save() {
       this.$refs['temp'].validate(valid => {
         if (valid) {
-           
+
           var send_data = {
               "name": "updateCoal",
               "offset": 0,
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             if (response.msg === 'fail') {
               this.$notify({
@@ -801,7 +801,7 @@ export default {
     form_delete_sure() {
       this.$refs['deleteTemp'].validate(valid => {
         if (valid) {
-    
+
           var send_data = {
             "name":"delCoal","offset":0,"pagecount":0,
             "parammaps":{"date":this.deleteTemp.startTime}

+ 3 - 3
src/views/cost/diesel/index.vue

@@ -360,7 +360,7 @@ export default {
         name: 'getDieselList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           selTime: '',
@@ -390,7 +390,7 @@ export default {
         name: 'getWaterList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -427,7 +427,7 @@ export default {
         name: 'getDieselHistory',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/cost/elec/index.vue

@@ -348,7 +348,7 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',
@@ -382,7 +382,7 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
@@ -424,7 +424,7 @@ export default {
         name: 'getAllMeasureTypeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/cost/gas/index.vue

@@ -245,7 +245,7 @@ export default {
       requestParam: { name: 'insertGas', offset: 0, pagecount: 0, parammaps: {}},
       postDataPramas: {},
       getdataListParm: {
-        name: 'getGasList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getGasList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { formName: '', formNumber: '', formType: '', pastureName: Cookies.get('pasturename'), departName: '' }
       },
       tableKey: 0,
@@ -264,7 +264,7 @@ export default {
       getDepartParam: {
         name: 'findAllDepart', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }
       },
-      requestFilterParams: { name: 'getWaterList', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: { }},
+      requestFilterParams: { name: 'getWaterList', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: { }},
 
       temp: { pastureName: '', consumption: '', measureId: '', useType: '', departName: '', aAmount: '', employeName1: '', endAmount: '', employeName: '', price1: '', note: '', formName: '', formNumber: '', inputDatetime: parseTime(new Date(), '{y}-{m}-{d}'), typeName: '', assTypeId: '', employeId: this.$store.state.user.employeid, departmentId: this.$store.state.user.departmentid, pastureId: this.$store.state.user.pastureid },
       dialogFormVisible: false,
@@ -274,7 +274,7 @@ export default {
       totalDosageRecord: 0,
       listDosageRecord: [],
       listLoadingDosageRecord: false,
-      getDosageRecordListParm: { name: 'getAllMeasureTypeList', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}},
+      getDosageRecordListParm: { name: 'getAllMeasureTypeList', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}},
       dosageRecordTemp: {},
       rules: {
         endAmount: [{ type: 'number', required: true, validator: (rule, value, callback) => {

+ 46 - 46
src/views/cost/gasolineConsum/index.vue

@@ -40,7 +40,7 @@
       :row-style="rowStyle"
       :cell-style="cellStyle"
       class="elTable"
- 
+
     >
       <el-table-column label="序号" align="center" type="index" width="50px">
         <template slot-scope="scope">
@@ -62,7 +62,7 @@
           <span>{{ scope.row.dosage }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="单价"  min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.price }}</span>
@@ -83,7 +83,7 @@
           <span>{{ scope.row.date  }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="备注" min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.remarks  }}</span>
@@ -101,9 +101,9 @@
     <!-- 弹出层新增or修改 -->
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
       <el-form ref="temp" :rules="rules1" :model="temp" label-position="right" label-width="110px">
-        
+
         <el-row>
-           
+
           <el-col :span="8">
 
             <el-form-item label="牧场:" prop="pastureId" v-show="dialogStatus==='create'">
@@ -127,11 +127,11 @@
             <el-form-item label="部门:"  prop="departmentId"  v-show="dialogStatus==='update'">
                 <el-input ref="departmentName" v-model="temp.departmentName"  disabled />
             </el-form-item>
-    
+
           </el-col>
- 
 
-           
+
+
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -139,7 +139,7 @@
               <el-input ref="dosage" v-model="temp.dosage"    />
             </el-form-item>
           </el-col>
-         
+
           <el-col :span="8">
             <el-form-item label="单价(元):" prop="price">
               <el-input ref="price" v-model="temp.price"   />
@@ -161,7 +161,7 @@
             <el-form-item label="记录人:"  prop="empname"  v-show="dialogStatus==='update'" >
               <el-input ref="empname" v-model="temp.empname"  disabled />
             </el-form-item>
-           
+
           </el-col>
           <el-col :span="8">
             <el-form-item label="录入日期:" prop="date">
@@ -173,9 +173,9 @@
               <el-input ref="remarks" v-model="temp.remarks"  />
             </el-form-item>
           </el-col>
-          
+
         </el-row>
-         
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="dialogStatus==='create'" ref="createb" type="success" :disabled="isokDisable" @click="add_dialog_save_again()">保存并新增</el-button>
@@ -209,7 +209,7 @@
               <span>{{ scope.$index + (pageNumDosageRecord-1) * pageSizeDosageRecord + 1 }}</span>
             </template>
           </el-table-column>
-  
+
           <el-table-column label="用量"  prop="dosage" min-width="110px" align="center">
             <template slot-scope="scope">
               <span>{{ scope.row.dosage }}</span>
@@ -235,7 +235,7 @@
               <span>{{ scope.row.date }}</span>
             </template>
           </el-table-column>
-        
+
         </el-table>
         <pagination v-show="totalDosageRecord>=0" :total="totalDosageRecord" :page.sync="getDosageRecordListParm.offset" :limit.sync="getDosageRecordListParm.pagecount" @pagination="get_record_list" />
         <div slot="footer" class="dialog-footer">
@@ -291,8 +291,8 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
- 
-   
+
+
       requestParam: {
         name: 'insertElectricity',
         offset: 0,
@@ -307,7 +307,7 @@ export default {
         name: 'getGasoline',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',  formNumber: '',   formType: '',    pastureName: Cookies.get('pasturename'),  departName: '', date: ''
@@ -328,8 +328,8 @@ export default {
       useTypes: [{ id: 0, name: '1级表' }, { id: 1, name: '2级表' }, { id: 2, name: '3级表' }],
       getDictByName: [],
       findAllAssetType: [],
-     
- 
+
+
       pastureList: [],
       departList1:[],
       departList2:[],
@@ -351,12 +351,12 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
 
-      temp: { 
+      temp: {
         pastureName: '',
         departName: '',
         dosage: '',
@@ -385,7 +385,7 @@ export default {
         name: 'getGasolineList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { "departmentId": ""}
       },
@@ -417,12 +417,12 @@ export default {
         price: [{ required: true, message: '必填', trigger: 'blur' }],
         departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
         expense: [{ required: true, message: '必填', trigger: 'blur' }],
-       
-         
+
+
       },
 
       rules2: { },
-    
+
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       buttons: [],
@@ -506,7 +506,7 @@ export default {
         }
       }, 0)
     },
-   
+
     form_export() {
       this.downLoadObj.parammaps = this.tableObj.parammaps
       GetDataByName(this.downLoadObj).then(response => {
@@ -531,7 +531,7 @@ export default {
     },
 
 
-    
+
 
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
@@ -574,10 +574,10 @@ export default {
         this.$notify({ title: '失败', message: '上传失败', type: 'danger', duration: 2000 })
       }
     },
-   
-  
-   
-  
+
+
+
+
     // 1-1: table&搜索
     get_table_data() {
       if(this.tableObj.parammaps.pastureName == '现代牧业'){
@@ -612,7 +612,7 @@ export default {
         this.get_departList2()
       })
     },
-    
+
     change_pasture1(item) {
       this.getDepartParam1.parammaps.pastureId = this.pastureList.find(obj => obj.name == item).id
       this.tableObj.parammaps.departName = ''
@@ -643,7 +643,7 @@ export default {
         this.tableObj.parammaps.date =''
       }
 
-    
+
       this.get_table_data()
     },
 
@@ -653,10 +653,10 @@ export default {
       this.$set(this.temp, 'inputid', item)
       this.$forceUpdate()
     },
-   
+
     form_reset() {
 
-    
+
 
       this.temp.pastureName = ''
       this.temp.departName = ''
@@ -671,20 +671,20 @@ export default {
       this.temp.pastureId = ''
 
 
-      
+
     },
     form_add() {
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-       
+
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })
- 
+
     },
-   
-    
+
+
     add_dialog_save() {
       console.log("this.temp=====>",this.temp)
       this.isokDisable = true
@@ -700,9 +700,9 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
-  
+
             if (response.msg === 'fail') {
               this.$notify({
                 title: '保存失败',
@@ -738,7 +738,7 @@ export default {
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             console.log('保存发送参数', this.postDataPramas)
             if (response.msg === 'fail') {
@@ -774,14 +774,14 @@ export default {
     edit_dialog_save() {
       this.$refs['temp'].validate(valid => {
         if (valid) {
-           
+
           var send_data = {
               "name": "updateGasoline",
               "offset": 0,
               "pagecount": 0,
               "parammaps": this.temp
           }
-          
+
           PostDataByName(send_data).then(response => {
             if (response.msg === 'fail') {
               this.$notify({
@@ -812,7 +812,7 @@ export default {
     form_delete_sure() {
       this.$refs['deleteTemp'].validate(valid => {
         if (valid) {
-    
+
           var send_data = {
             "name":"delGasoline","offset":0,"pagecount":0,
             "parammaps":{"date":this.deleteTemp.startTime}

+ 1 - 1
src/views/cost/generation/index.vue

@@ -147,7 +147,7 @@ export default {
       table: {
         tableKey: 0, list: [], total: 0, listLoading: true,
         getdataListParm: {
-          name: 'getElecList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: 'getElecList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {
             formName: '', formNumber: '', formType: '', pastureName: Cookies.get('pasturename'), departName: ''
           }

+ 2 - 2
src/views/cost/methane/index.vue

@@ -393,7 +393,7 @@ export default {
         name: 'getMethaneList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',
@@ -421,7 +421,7 @@ export default {
         name: 'getMethaneList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },

+ 2 - 2
src/views/cost/other/index.vue

@@ -247,7 +247,7 @@ export default {
         name: 'getImportCostOtherList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -287,7 +287,7 @@ export default {
         name: 'getWaterList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/cost/steam/index.vue

@@ -345,7 +345,7 @@ export default {
         name: 'getSteamList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',
@@ -377,7 +377,7 @@ export default {
         name: 'getSteamList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -419,7 +419,7 @@ export default {
         name: 'getAllMeasureTypeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/cost/water/index.vue

@@ -337,7 +337,7 @@ export default {
         name: 'getWaterList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           formName: '',
@@ -372,7 +372,7 @@ export default {
         name: 'getWaterList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -414,7 +414,7 @@ export default {
         name: 'getAllMeasureTypeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 1 - 1
src/views/custom/allot/index.vue

@@ -477,7 +477,7 @@ export default {
         name: 'getBigPartTransferList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 1 - 1
src/views/custom/allot/index1.vue

@@ -457,7 +457,7 @@ export default {
         name: 'getBigPartTransferList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 5 - 5
src/views/custom/basic/index.vue

@@ -763,7 +763,7 @@ export default {
         name: 'getStockList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           partCode: '',
@@ -806,7 +806,7 @@ export default {
         name: 'getStockdetail',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -824,7 +824,7 @@ export default {
         name: 'getStockListSH',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           partCode: '',
@@ -857,7 +857,7 @@ export default {
       Selection: 0,
       selectionList: [],
       width: 0,
-      createExamineParm: { name: 'getPartCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map', parammaps: {}},
+      createExamineParm: { name: 'getPartCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map', parammaps: {}},
       // EAS同步
       easStatus: {
         easStatusList: [{ name: '同步成功', id: '1' }, { name: '同步失败', id: '0' }],
@@ -871,7 +871,7 @@ export default {
           name: 'getpartsSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {}
         }

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

@@ -1082,7 +1082,7 @@ export default {
         name: 'providerPactList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1103,7 +1103,7 @@ export default {
         name: 'contractDetail',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -1121,7 +1121,7 @@ export default {
         name: 'clearPastureStock',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1130,7 +1130,7 @@ export default {
         returntype: 'Map',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         parammaps: {}
       },
       totalSee: 0,
@@ -1139,7 +1139,7 @@ export default {
         returntype: 'Map',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         parammaps: {}
       },
       listLoadingChange: true,
@@ -1155,7 +1155,7 @@ export default {
         name: 'getBrandByPartCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 2971 - 2971
src/views/custom/contractManagement/index.vue

@@ -1,2971 +1,2971 @@
-<template>
-  <div class="app-container">
-    <div v-if="isPercentage" class="percentage" style="width: 210px;height: 90px;background: #fff;position: fixed;bottom: 0;left: 0;z-index: 9999999999999;">
-      <h4 style="padding-left: 10px;line-height: 0;">导出进度:</h4>
-      <el-progress style="padding-left: 10px;" :text-inside="true" :stroke-width="26" :percentage="percentage" />
-    </div>
-    <el-tabs v-model="activeName" @tab-click="handleClick">
-      <el-tab-pane label="合同管理" name="first">
-        <div v-if="isContractManagement" class="contractManagement">
-          <div class="filter-container">
-            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.pastureName" placeholder="牧场" style="width:120px" class="filter-item">
-              <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-            </el-select>
-            <el-input v-model="tab1.contractManagement.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 140px;" class="filter-item" />
-            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.statue" clearable placeholder="合同状态" class="filter-item" style="width: 120px;">
-              <el-option v-for="item in contractStatusList" :key="item.id" :label="item.name" :value="item.name" />
-            </el-select>
-            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.providerName" filterable clearable style="width: 140px;" placeholder="供应商" class="filter-item">
-              <el-option v-for="item in findAllProvider" :key="item.id" :label="item.name" :value="item.name" />
-            </el-select>
-            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.isZeroStock" clearable placeholder="是否零库存" class="filter-item" style="width: 120px;">
-              <el-option v-for="item in isZeroInventoryList" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-            <el-date-picker ref="tab1InputDatetime1" v-model="tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1" 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-date-picker ref="tab1InputDatetime2" v-model="tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2" 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="handleTab1Filter">搜索</el-button>
-            <div>
-              <el-button v-if="tab1.contractManagement.isContractAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab1Create">新增</el-button>
-              <el-radio-group v-model="tab1.contractManagement.radioAll" style="margin-top:-9px" @change="changeContractManagementAll()">
-                <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="tab1.contractManagement.tableKey"
-            v-loading="tab1.contractManagement.listLoading"
-            element-loading-text="给我一点时间"
-            :data="tab1.contractManagement.list"
-            border
-            fit
-            highlight-current-row
-            style="width: 100%;"
-            :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">
-                <span>{{ scope.$index + (tab1.contractManagement.pageNum-1) * tab1.contractManagement.pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
-            <el-table-column label="合同编号" min-width="120px" align="center" prop="contractCode" />
-            <el-table-column label="合同状态" min-width="110px" align="center" prop="statued" />
-            <el-table-column label="供应商" min-width="120px" align="center" prop="providerName" />
-            <el-table-column label="合同开始日期" sortable min-width="120px" align="center" prop="startTime" />
-            <el-table-column label="合同截止日期" sortable min-width="120px" align="center" prop="stopTime" />
-            <el-table-column label="零库存" min-width="110px" align="center">
-              <template slot-scope="scope">
-                <span v-if="scope.row.isZeroStock == 0">否</span>
-                <span v-if="scope.row.isZeroStock == 1">是</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="录入人" min-width="120px" align="center" prop="creatorMan" />
-            <el-table-column label="录入时间" sortable min-width="120px" align="center" prop="creatorTime" />
-            <el-table-column label="审批时间" sortable min-width="120px" align="center" prop="SHdateTime" />
-            <el-table-column label="操作" align="center" width="350px" class-name="small-padding fixed-width" fixed="right">
-              <template slot-scope="{row}">
-                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" style="width:70px;" size="mini" @click="handleTab1DetailsSpareParts(row)">备件明细</el-button>
-                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" style="width:70px;" size="mini" @click="handleTab1ChangeRecord(row)">变更记录</el-button>
-                <el-button v-if="tab1.contractManagement.isContractChange && (row.statued == '正常' || row.statued == '已过期')" :disabled="parseInt(row.pastureId) == 18 && parseInt(isGroupAdministrator) !== 18" type="warning" size="mini" @click="handleTab1Change(row)">变更</el-button>
-              </template>
-              <!-- //parseInt(row.pastureId) == 18 && parseInt(isGroupAdministrator) == 18 -->
-            </el-table-column>
-          </el-table>
-          <pagination v-show="tab1.contractManagement.total>0" :total="tab1.contractManagement.total" :page.sync="tab1.contractManagement.getdataListParm.offset" :limit.sync="tab1.contractManagement.getdataListParm.pagecount" @pagination="getTab1List" />
-        </div>
-        <div v-if="isDetailsSpareParts" class="DetailsSpareParts">
-          <div class="title" style="height: 30px;">
-            <b style="font-size: 20px;float: left;">备件明细</b>
-            <a style="float: right;font-weight: 600;font-size: 20px;" @click="handleTab1goBack()">&lt;返回</a>
-          </div>
-          <div class="filter-container">
-            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.partCode" placeholder="备件编号" style="width: 140px;" class="filter-item" />
-            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.partName" placeholder="备件名称" style="width: 140px;" class="filter-item" />
-            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.specification" placeholder="备件规格" style="width: 140px;" class="filter-item" />
-            <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleTab1Filter2">搜索</el-button>
-            <!-- <el-button v-waves class="filter-item" type="success" icon="el-icon-edit" @click="change_enabled">启用</el-button> -->
-            <el-button v-if="isContractJinyong"  v-waves class="filter-item" type="danger" icon="el-icon-edit" @click="change_no">禁用</el-button>
-          </div>
-          <div class="filter-container">
-            <el-button v-if="tab1.contractManagement.isContractAdd && parseInt(tab1.detailsSpareParts.detailsList.pastureId) == parseInt(isGroupAdministrator) || parseInt(isEmployeid) == 0" class="filter-item" type="primary" icon="el-icon-edit" :disabled="tab1.detailsSpareParts.detailsList.statued=='终止' || tab1.detailsSpareParts.detailsList.statued=='已过期' || tab1.detailsSpareParts.detailsList.statued=='新增未通过'" @click="handleTab1Create2">新增</el-button>
-            <el-button v-if="tab1.contractManagement.isContractChange && parseInt(tab1.detailsSpareParts.detailsList.pastureId) == parseInt(isGroupAdministrator) || parseInt(isEmployeid) == 0" class="filter-item" type="primary" icon="el-icon-edit" :disabled="tab1.detailsSpareParts.detailsList.statued=='终止' || tab1.detailsSpareParts.detailsList.statued=='已过期' || tab1.detailsSpareParts.detailsList.statued=='新增未通过'" @click="handleTab1Change2">变更</el-button>
-            <el-button v-if="tab1.contractManagement.isContractExport" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab1Export2">导出</el-button>
-            <el-button v-if="tab1.contractManagement.isContractUplaod" class="filter-item" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
-          </div>
-          <el-table
-            :key="tab1.detailsSpareParts.tableKey"
-            v-loading="tab1.detailsSpareParts.listLoading"
-            element-loading-text="给我一点时间"
-            :data="tab1.detailsSpareParts.list"
-            border
-            fit
-            highlight-current-row
-            style="width: 100%;"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            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">
-              <template slot-scope="scope">
-                <span>{{ scope.$index + (tab1.detailsSpareParts.pageNum-1) * tab1.detailsSpareParts.pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="备件编号" min-width="120px" align="center" prop="partCode" />
-            <el-table-column label="备件名称" min-width="120px" align="center" prop="partName" />
-            <el-table-column label="备件规格" min-width="120px" align="center" prop="specification" />
-            <el-table-column label="备件图片" prop="specifications" align="center" min-width="110px">
-              <template slot-scope="scope">
-                <el-popover placement="right" title="" trigger="hover">
-                  <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
-                  <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
-                </el-popover>
-              </template>
-            </el-table-column>
-            <el-table-column label="备件品牌" min-width="120px" align="center" prop="brand" />
-            <el-table-column label="计量单位" min-width="120px" align="center" prop="unit" />
-            <el-table-column label="计划量" sortable min-width="120px" align="center" prop="planAmount" />
-            <el-table-column label="单价" sortable min-width="120px" align="center" prop="price" />
-            <el-table-column label="使用周期" min-width="120px" align="center" prop="lifeCycle" />
-            <el-table-column label="合同差异项" min-width="120px" align="center" prop="contractVarianceItem" />
-            <el-table-column label="备注" sortable min-width="120px" align="center" prop="remark" />
-          </el-table>
-          <pagination v-show="tab1.detailsSpareParts.total>0" :total="tab1.detailsSpareParts.total" :page.sync="tab1.detailsSpareParts.getdataListParm.offset" :limit.sync="tab1.detailsSpareParts.getdataListParm.pagecount" @pagination="getTab1List2" />
-        </div>
-
-        <div v-if="isChangeRecord" class="ChangeRecord">
-          <div class="title" style="height: 30px;">
-            <b style="font-size: 20px;float: left;">变更记录</b>
-            <a style="float: right;font-weight: 600;font-size: 20px;" @click="handleTab1goBack2()">&lt;返回</a>
-          </div>
-          <div class="filter-container">
-            <el-input v-model="tab1.changeRecord.getdataListParm.parammaps.contractCode" placeholder="流水编号" style="width: 140px;" class="filter-item" />
-            <el-select v-model="tab1.changeRecord.getdataListParm.parammaps.SHtype" clearable placeholder="变更类型" class="filter-item" style="width: 120px;">
-              <el-option v-for="item in changeTypeList" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-            <el-select v-model="tab1.changeRecord.getdataListParm.parammaps.stuteSH" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-              <el-option v-for="item in auditStatusList" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-            <el-date-picker ref="tab1InputDatetime3" v-model="tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3" 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="handleTab1Filter3">搜索</el-button>
-          </div>
-          <div class="filter-container">
-            <el-radio-group v-model="tab1.changeRecord.radioAll" style="margin-top:-9px" @change="changeChangeRecordAll()">
-              <el-radio-button label="全部" />
-              <el-radio-button label="待处理" />
-              <el-radio-button label="已处理" />
-            </el-radio-group>
-          </div>
-          <el-table
-            :key="tab1.changeRecord.tableKey"
-            v-loading="tab1.changeRecord.listLoading"
-            element-loading-text="给我一点时间"
-            :data="tab1.changeRecord.list"
-            border
-            fit
-            highlight-current-row
-            style="width: 100%;"
-            :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">
-                <span>{{ scope.$index + (tab1.changeRecord.pageNum-1) * tab1.changeRecord.pageSize + 1 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="流水编号" min-width="120px" align="center" prop="contractCode" />
-            <el-table-column label="变更类型" min-width="110px" align="center">
-              <template slot-scope="scope">
-                <span v-if="scope.row.SHtype == 0">新增合同</span>
-                <span v-if="scope.row.SHtype == 1">新增备件</span>
-                <span v-if="scope.row.SHtype == 2">变更备件</span>
-                <span v-if="scope.row.SHtype == 3">合同变更</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="录入人" min-width="120px" align="center" prop="creatorMan" />
-            <el-table-column label="录入时间" sortable min-width="120px" align="center" prop="creatorTime" />
-            <el-table-column label="审核状态" min-width="110px" align="center">
-              <template slot-scope="scope">
-                <span v-if="scope.row.SHStatus == 2 || scope.row.SHStatus == 3 || scope.row.SHStatus == 5">审核中</span>
-                <span v-if="scope.row.SHStatus == 4 || scope.row.SHStatus == 6 || scope.row.SHStatus == 8">未通过</span>
-                <span v-if="scope.row.SHStatus == 7">通过</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="操作" align="center" width="350px" class-name="small-padding fixed-width" fixed="right">
-              <template slot-scope="{row}">
-                <el-button type="primary" size="mini" @click="handleTab1See3(row)">查看</el-button>
-                <el-button v-if="tab1.changeRecord.isContractDelete && (row.SHStatus == 4 || row.SHStatus == 6 || row.SHStatus == 8)" type="success" size="mini" @click="handleTab1Update3(row)">编辑</el-button>
-                <el-button v-if="tab1.changeRecord.isContractExamineZG && row.SHStatus == 2" type="success" style="display:inline-block" size="mini" @click="handleTab1Examine(row)">审核1</el-button>
-                <el-button v-else type="success" style="display:none" size="mini" @click="handleTab1Examine(row)">审核1</el-button>
-                <!-- 设备助理审核 -->
-                <!-- <el-button v-if="tab1.changeRecord.isContractExamineZL && row.SHStatus == 3" type="success" style="display:inline-block" size="mini" @click="handleExamine2(row)">审核2</el-button>
-                <el-button v-else type="success" style="display:none" size="mini" @click="handleExamine2(row)">审核2</el-button> -->
-                <!-- 设备中心审核 -->
-                <el-button v-if="tab1.changeRecord.isContractExamineZX && row.SHStatus == 5" type="success" style="display:inline-block" size="mini" @click="handleTab1Examine3(row)">审核2</el-button>
-                <el-button v-else type="success" style="display:none" size="mini" @click="handleTab1Examine3(row)">审核2</el-button>
-                <el-button v-if="tab1.changeRecord.isContractDelete && (row.SHStatus == 4 || row.SHStatus == 6 || row.SHStatus == 8) " type="danger" size="mini" @click="handleTab1Delete3(row)">删除</el-button>
-                <el-button v-else style="display:none" type="danger" size="mini" @click="handleTab1Delete3(row)">删除</el-button>
-              </template>
-            </el-table-column>
-          </el-table>
-          <pagination v-show="tab1.changeRecord.total>0" :total="tab1.changeRecord.total" :page.sync="tab1.changeRecord.getdataListParm.offset" :limit.sync="tab1.changeRecord.getdataListParm.pagecount" @pagination="getTab1List3" />
-        </div>
-      </el-tab-pane>
-      <el-tab-pane label="合同明细" name="second">
-        <div class="filter-container">
-          <el-select v-model="tab2.getdataListParm.parammaps.pastureName" placeholder="牧场" style="width:120px" class="filter-item">
-            <el-option v-for="item in findAllPastureList2" :key="item.id" :label="item.name" :value="item.name" />
-          </el-select>
-          <el-input v-model="tab2.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 140px;" class="filter-item" />
-          <el-select v-model="tab2.getdataListParm.parammaps.statue" clearable placeholder="合同状态" class="filter-item" style="width: 120px;">
-            <el-option v-for="item in contractStatusList" :key="item.id" :label="item.name" :value="item.name" />
-          </el-select>
-          <el-select v-model="tab2.getdataListParm.parammaps.isZeroStock" clearable placeholder="是否零库存" class="filter-item" style="width: 120px;">
-              <el-option v-for="item in isZeroInventoryList" :key="item.id" :label="item.name" :value="item.id" />
-            </el-select>
-          <el-input v-model="tab2.getdataListParm.parammaps.partCode" placeholder="备件编号" style="width: 140px;" class="filter-item" />
-          <el-input v-model="tab2.getdataListParm.parammaps.partName" placeholder="备件名称" style="width: 140px;" class="filter-item" />
-          <el-select v-model="tab2.getdataListParm.parammaps.providerName" filterable clearable style="width: 140px;" placeholder="供应商" class="filter-item">
-            <el-option v-for="item in findAllProvider" :key="item.id" :label="item.name" :value="item.name" />
-          </el-select>
-          <el-date-picker ref="inputDatetime" v-model="tab2.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="handleTab2Filter">搜索</el-button>
-          <el-button v-if="tab1.contractManagement.isContractExport" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab2Export">导出</el-button>
-        </div>
-        <el-table
-          :key="tab2.tableKey"
-          v-loading="tab2.listLoading"
-          element-loading-text="给我一点时间"
-          :data="tab2.list"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;"
-          :row-style="rowStyle"
-          :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">
-              <span>{{ scope.$index + (tab2.pageNum-1) * tab2.pageSize + 1 }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="牧场" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.pastureName }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="合同编号" min-width="130px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.contractCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="合同状态" min-width="100px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.statue }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="供应商" min-width="120px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.providerName }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="合同开始日期" sortable prop="startTime" min-width="110px" align="center" />
-          <el-table-column label="合同截止日期" sortable prop="stopTime" min-width="110px" align="center" />
-          <el-table-column label="零库存" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <span v-if="scope.row.isZeroStock == 0">否</span>
-              <span v-if="scope.row.isZeroStock == 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.brand }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="计量单位" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.unit }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="计划量" sortable prop="planAmount" min-width="110px" align="center" />
-          <el-table-column label="单价" sortable prop="price" min-width="110px" align="center" />
-          <el-table-column label="备注" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.remark }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入人" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.creatorMan }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入日期" sortable prop="creatorTime" min-width="110px" align="center" />
-        </el-table>
-        <pagination v-show="tab2.total>0" :total="tab2.total" :page.sync="tab2.getdataListParm.offset" :limit.sync="tab2.getdataListParm.pagecount" @pagination="getTab2List" />
-      </el-tab-pane>
-    </el-tabs>
-    <!-- 合同管理新增/查看/变更 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.contractManagement.create.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <div class="app-add">
-        <el-form ref="createTemp" :rules="rules" :model="tab1.contractManagement.create.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="合同编号:" prop="contractCode">
-                <el-input ref="contractCode" v-model="tab1.contractManagement.create.temp.contractCode" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="牧场:" prop="pastureId">
-                <el-select v-model="tab1.contractManagement.create.temp.pastureId" placeholder="牧场" class="filter-item" style="width:100%;" :disabled="disabled">
-                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="供应商:" prop="providerName">
-                <el-autocomplete v-model="tab1.contractManagement.create.temp.providerName" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" value-key="name" class="inline-input" :fetch-suggestions="providerSearch" placeholder="请输入供应商名称或供应商编号" style="width:100%;" @focus="handleFocusProvider" @blur="handleBlurProvider" @select="handleSelectProvider" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="开始日期:" prop="startTime">
-                <el-date-picker v-model="tab1.contractManagement.create.temp.startTime" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" type="date" placeholder="开始日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeTime" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="截止日期:" prop="stopTime">
-                <el-date-picker v-model="tab1.contractManagement.create.temp.stopTime" style="width:100%;" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled" type="date" :clearable="false" placeholder="截止日期" :picker-options="pickerOptions2" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeTime" />
-              </el-form-item>
-            </el-col>
-            <el-col v-if="dialogStatus=='create'" :span="8">
-              <el-form-item label="合同状态:" prop="statue">
-                <el-select v-model="tab1.contractManagement.create.temp.statue" clearable placeholder="合同状态" class="filter-item" style="width: 100%;" disabled>
-                  <el-option v-for="item in contractStatus2List" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="dialogStatus=='change' || dialogStatus=='see'" :span="8">
-              <el-form-item label="合同状态:" prop="statued">
-                <el-input ref="contractCode" v-model="tab1.contractManagement.create.temp.statued" placeholder="合同状态" disabled />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="零库存:" prop="isZeroStock">
-                <el-radio-group v-model="tab1.contractManagement.create.temp.isZeroStock" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" @change="changeIsZero">
-                  <el-radio v-model="tab1.contractManagement.create.temp.isZeroStock" :label="1">是</el-radio>
-                  <el-radio v-model="tab1.contractManagement.create.temp.isZeroStock" :label="0">否</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="录入人:" prop="creatorId">
-                <el-select ref="creatorId" v-model="tab1.contractManagement.create.temp.creatorId" :disabled="tab1.contractManagement.isDisabled || dialogStatus==='see' || dialogStatus==='change'" placeholder="录入人" class="filter-item" style="width:100%;" @change="changeCreatorMan">
-                  <el-option v-for="item in findAllEmploye" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="录入日期:" prop="creatorTime">
-                <el-date-picker v-model="tab1.contractManagement.create.temp.creatorTime" :disabled="disabled" type="date" :picker-options="pickerOptions3" placeholder="录入日期" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="备注:" prop="remark">
-                <el-input ref="remark" v-model="tab1.contractManagement.create.temp.remark" placeholder="备注" :disabled="tab1.contractManagement.isDisabled || dialogStatus==='see' || dialogStatus==='change'" />
-              </el-form-item>
-            </el-col>
-            <el-col v-if="dialogStatus !== 'see'" :span="8">
-              <el-form-item label="同步牧场:" prop="synchronousPasture">
-                <el-select v-model="tab1.contractManagement.create.temp.synchronousPasture" multiple collapse-tags placeholder="同步牧场" :disabled="isGroupAdministrator !== '18'">
-                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
-                  </el-option>
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col v-else :span="16">
-              <el-form-item label="同步牧场:" prop="pastureName2">
-                <el-input v-model="tab1.contractManagement.create.temp.pastureName2" type="textarea" :rows="2" placeholder="同步牧场" :disabled="dialogStatus=='see'" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <!-- <el-row v-if="dialogStatus == 'see'">
-            <el-col>
-              <el-form-item label="流程进度1" />
-              <el-steps :active="tab1.contractManagement.create.temp.active" align-center finish-status="success">
-                <el-step
-                  v-for="(item,index) in tab1.contractManagement.create.temp.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>
-                  </template>
-                </el-step>
-              </el-steps>
-            </el-col>
-          </el-row> -->
-        </el-form>
-        <div slot="footer" class="dialog-footer" style="bottom:5px">
-          <el-button v-if="dialogStatus =='change'" type="primary" @click="terminationData()">终止合同</el-button>
-          <el-button v-if="dialogStatus !=='see'" type="primary" :disabled="isokDisable" @click="dialogStatus==='create'?add_dialog_save():changeData()">保存并关闭</el-button>
-          <el-button @click="tab1.contractManagement.create.dialogFormVisible = false;getTab1List();tab1.contractManagement.create.temp.providerName=''">取消并关闭</el-button>
-        </div>
-      </div>
-    </el-dialog>
-
-    <!-- 备件明细新增/变更 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.detailsSpareParts.create.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <div v-if="tab1.detailsSpareParts.updateList.SHtype !== 0 && tab1.detailsSpareParts.updateList.SHtype !== 3" class="app-add">
-        <el-form ref="createTemp2" :rules="rules" :model="tab1.detailsSpareParts.create.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="10">
-              <el-form-item label="备件:" prop="partCode">
-                <el-autocomplete v-model="tab1.detailsSpareParts.partCode" value-key="name1" class="inline-input" :fetch-suggestions="sparePartSearch" placeholder="请输入备件编号或备件名称或备件规格" style="width:550px" @select="handleSelectSparePart">
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
-                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
-                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div v-if="dialogStatus=='tab1create2'" class="filter-container" style="float: right;">
-          <el-button v-waves class="filter-item" type="info" icon="el-icon-tickets" @click="handleTab1DownloadTemp2">模板</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-waves :disabled="tab1.detailsSpareParts.isDisabledImport" class="filter-item" type="warning" icon="el-icon-download">导入</el-button>
-          </el-upload>
-        </div>
-        <el-table
-          :key="tab1.detailsSpareParts.tableKeyAdd"
-          v-loading="tab1.detailsSpareParts.listLoadingAdd"
-          element-loading-text="给我一点时间"
-          :data="tab1.detailsSpareParts.listAdd"
-          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" />
-          <el-table-column label="备件编号" min-width="90px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="80px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
-            <template slot-scope="scope">
-              <el-popover placement="right" title="" trigger="hover">
-                <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
-                <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
-              </el-popover>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件品牌" min-width="120px" align="center">
-            <template slot-scope="scope">
-              <el-autocomplete v-model="scope.row.brand" value-key="brandName" class="inline-input" :fetch-suggestions="brandSearch" placeholder="请输入品牌" style="width:100%;" @focus="handleFocusBrand( scope.row)" @blur="handleBlurBrand(scope.row)" @select="(value)=> {handleSelectBrand(value, scope.row)}" />
-            </template>
-          </el-table-column>
-          <el-table-column label="计量单位" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.unit }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="计划量" min-width="70px" align="center" valign="middle">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="planAmount">
-                  <el-input ref="planAmount" v-model="scope.row.planAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="单价" min-width="80px" align="center" valign="middle">
-            <template slot-scope="scope">
-              <el-input v-model="scope.row.price" />
-            </template>
-          </el-table-column>
-          <el-table-column label="使用周期" min-width="110px" align="center" valign="middle">
-              <template slot-scope="scope">
-                <el-input v-model="scope.row.lifeCycle" />
-              </template>
-            </el-table-column>
-            <el-table-column label="合同差异项" min-width="110px" align="center" valign="middle">
-              <template slot-scope="scope">
-                <el-input v-model="scope.row.contractVarianceItem" />
-              </template>
-            </el-table-column>
-          <el-table-column label="备注" min-width="110px" align="center">
-            <template slot-scope="scope">
-              <el-input v-model="scope.row.remark" type="textarea" placeholder="备注" autosize maxlength="100" show-word-limit />
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="100px" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" :disabled="isokDisable" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div v-if="tab1.detailsSpareParts.updateList.SHtype == 0 || tab1.detailsSpareParts.updateList.SHtype == 3" class="app-add">
-        <el-form ref="createTemp2" :rules="rules" :model="tab1.detailsSpareParts.create.temp" label-position="right" label-width="130px" style="width: 90%;margin:0 auto;">
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="牧场:" prop="pastureName">
-                <el-input ref="pastureName" v-model="tab1.detailsSpareParts.create.temp.pastureName" placeholder="牧场" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="合同编号:" prop="contractCode">
-                <el-input ref="contractCode" v-model="tab1.detailsSpareParts.create.temp.contractCode" placeholder="合同编号" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="供应商:" prop="providerName">
-                <el-input ref="providerName" v-model="tab1.detailsSpareParts.create.temp.providerName" placeholder="合同编号" disabled />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="开始日期:" prop="startTime">
-                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.startTime" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3" type="date" placeholder="开始日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
-              </el-form-item>
-            </el-col>
-            <el-col v-if="dialogStatus == 'tab1Update2' && tab1.detailsSpareParts.updateList.SHtype == 0" :span="8">
-              <el-form-item label="截止日期:" prop="stopTime">
-                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTime" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
-              </el-form-item>
-            </el-col>
-            <el-col v-if="dialogStatus == 'tab1Update2' && tab1.detailsSpareParts.updateList.SHtype !== 0" :span="8">
-              <el-form-item label="截止日期后:" prop="stopTimeHis">
-                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTimeHis" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="pickerOptions2" />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="合同状态:" prop="statued">
-                <span>{{ tab1.detailsSpareParts.create.temp.statued }}</span>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="零库存:" prop="isZeroStock">
-                <el-radio-group v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3">
-                  <el-radio v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :label="1">是</el-radio>
-                  <el-radio v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :label="0">否</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="录入人:" prop="creatorMan">
-                <el-input ref="creatorMan" v-model="tab1.detailsSpareParts.create.temp.creatorMan" placeholder="录入人" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="录入日期:" prop="creatorTime">
-                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.creatorTime" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3 || dialogStatus=='tab1Update2' " type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="备注:" prop="remark">
-                <el-input ref="remark" v-model="tab1.detailsSpareParts.create.temp.remark" placeholder="备注" />
-              </el-form-item>
-            </el-col>
-            <el-col v-if="tab1.detailsSpareParts.create.temp.SHtype !== 0 && dialogStatus !=='tab1Update2'" :span="8">
-              <el-form-item label="变更后截止日期:" prop="stopTimeHis">
-                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTimeHis" :disabled="tab1.detailsSpareParts.create.temp.SHtype !== 3" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="pickerOptions2" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom:10px">
-        <el-button v-if="dialogStatus=='tab1create2'" type="primary" :disabled="isokDisable" @click="add_dialog_save2()">保存并关闭</el-button>
-        <el-button v-if="dialogStatus=='tab1change2'" type="primary" :disabled="isokDisable" @click="changeData2()">保存并关闭</el-button>
-        <el-button v-if="dialogStatus=='tab1Update2'" type="primary" :disabled="isokDisable" @click="edit_dialog_save2()">保存并关闭</el-button>
-        <el-button @click="tab1.detailsSpareParts.create.dialogFormVisible = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-
-    <!-- 变更记录查看 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.changeRecord.see.dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <div class="app-see">
-        <div class="app-contentcard">
-          <el-form ref="seeTemp" :rules="rules" :model="tab1.changeRecord.see.temp" label-position="right" label-width="128px" style="width: 90%;margin:0 auto;">
-            <div v-if="tab1.changeRecord.see.temp.SHtype == 0 || tab1.changeRecord.see.temp.SHtype == 3">
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="牧场:" prop="pastureName">
-                    <span> {{ tab1.changeRecord.see.temp.pastureName }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="合同编号:" prop="contractCode">
-                    <span> {{ tab1.changeRecord.see.temp.contractCode }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="供应商:" prop="providerName">
-                    <span> {{ tab1.changeRecord.see.temp.providerName }} </span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="开始日期:" prop="startTime">
-                    <span> {{ tab1.changeRecord.see.temp.startTime }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col v-if="dialogStatus !== 'tab1See2'" :span="8">
-                  <el-form-item label="截止日期:" prop="stopTime">
-                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype !== 3 && tab1.changeRecord.see.temp.SHtype !== 0" :span="8">
-                  <el-form-item label="截止日期:" prop="stopTimeHis">
-                    <span> {{ tab1.changeRecord.see.temp.stopTimeHis }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype == 3" :span="8">
-                  <el-form-item label="截止日期:" prop="stopTime">
-                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype == 0" :span="8">
-                  <el-form-item label="截止日期:" prop="stopTime">
-                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="合同状态:" prop="statued">
-                    <span>{{ tab1.changeRecord.see.temp.statued }}</span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="零库存:" prop="isZeroStock">
-                    <el-radio-group v-model="tab1.changeRecord.see.temp.isZeroStock" disabled>
-                      <el-radio v-model="tab1.changeRecord.see.temp.isZeroStock" :label="1">是</el-radio>
-                      <el-radio v-model="tab1.changeRecord.see.temp.isZeroStock" :label="0">否</el-radio>
-                    </el-radio-group>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="录入人:" prop="creatorMan">
-                    <span> {{ tab1.changeRecord.see.temp.creatorMan }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="录入日期:" prop="creatorTime">
-                    <span> {{ tab1.changeRecord.see.temp.creatorTime }} </span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="备注:" prop="remark">
-                    <span> {{ tab1.changeRecord.see.temp.remark }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="共享牧场:" prop="pastureNamesOld">
-                    <span> {{ tab1.changeRecord.see.temp.pastureNamesOld }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col v-if="tab1.changeRecord.see.temp.SHtype == 3" :span="8">
-                  <el-form-item label="变更后截止日期:" prop="stopTimeHis">
-                    <span> {{ tab1.changeRecord.see.temp.stopTimeHis }} </span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="变更后共享牧场:" prop="pastureNamesNow">
-                    <span> {{ tab1.changeRecord.see.temp.pastureNamesNow }} </span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </div>
-            <div v-if="tab1.changeRecord.see.temp.SHtype == 1 || tab1.changeRecord.see.temp.SHtype == 2">
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="流水编号:" prop="contractCode">
-                    <span> {{ tab1.changeRecord.see.temp.contractCode }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="录入人:" prop="creatorMan">
-                    <span> {{ tab1.changeRecord.see.temp.creatorMan }} </span>
-                  </el-form-item>
-                </el-col>
-                <el-col :span="8">
-                  <el-form-item label="录入日期:" prop="creatorTime">
-                    <span> {{ tab1.changeRecord.see.temp.creatorTime }} </span>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </div>
-          </el-form>
-          <div v-if="tab1.changeRecord.see.temp.SHtype == 1">
-            <el-table
-              :key="tab1.changeRecord.see.tableKey"
-              element-loading-text="给我一点时间"
-              :data="tab1.changeRecord.see.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">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (tab1.changeRecord.see.pageNum-1) * tab1.changeRecord.see.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="130px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
-                <template slot-scope="scope">
-                  <el-popover placement="right" title="" trigger="hover">
-                    <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
-                    <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
-                  </el-popover>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件品牌" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.brand }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="计量单位" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.unit }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="计划量" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.planAmount }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="单价" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.price }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备注" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.remark }}</span>
-                </template>
-              </el-table-column>
-            </el-table>
-            <pagination v-show="tab1.changeRecord.see.total>0" :total="tab1.changeRecord.see.total" :page.sync="tab1.changeRecord.see.getdataListParm.offset" :limit.sync="tab1.changeRecord.see.getdataListParm.pagecount" @pagination="getTab1List3See" />
-          </div>
-          <div v-if="tab1.changeRecord.see.temp.SHtype == 2">
-            <el-table
-              :key="tab1.changeRecord.see.tableKey"
-              element-loading-text="给我一点时间"
-              :data="tab1.changeRecord.see.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">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (tab1.changeRecord.see.pageNum-1) * tab1.changeRecord.see.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="130px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
-                <template slot-scope="scope">
-                  <el-popover placement="right" title="" trigger="hover">
-                    <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
-                    <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
-                  </el-popover>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件品牌" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.brandhis }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="变更后品牌" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.brand }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="计量单位" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.unit }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="计划量" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.planAmounthis }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="变更后计划量" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.planAmount }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="单价" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.pricehis }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="变更后单价" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.price }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备注" min-width="80px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.remark }}</span>
-                </template>
-              </el-table-column>
-            </el-table>
-            <pagination v-show="tab1.changeRecord.see.total>0" :total="tab1.changeRecord.see.total" :page.sync="tab1.changeRecord.see.getdataListParm.offset" :limit.sync="tab1.changeRecord.see.getdataListParm.pagecount" @pagination="getTab1List3See" />
-          </div>
-          <el-form ref="seeTemp" :rules="rules" :model="tab1.changeRecord.see.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
-            <el-row>
-              <el-col>
-                <el-form-item label="流程进度" />
-                <el-steps :active="tab1.changeRecord.see.active" align-center finish-status="success">
-                  <el-step
-                    v-for="(item,index) in tab1.changeRecord.see.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>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <!-- 设备主管审核 -->
-                  <el-button v-if="tab1.changeRecord.isContractExamineZG &&tab1.changeRecord.see.temp.SHStatus == 2" type="success" style="display:inline-block" @click="handleTab1Examine()">审核1</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleTab1Examine()">审核1</el-button>
-                  <!-- 设备助理审核 -->
-                  <!-- <el-button v-if="isContractExamineZL && seeTemp.SHStatus == 3" type="success" style="display:inline-block" @click="handleExamine2()">审核2</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">审核2</el-button> -->
-
-                  <!-- 设备中心审核 -->
-                  <el-button v-if="tab1.changeRecord.isContractExamineZX && tab1.changeRecord.see.temp.SHStatus == 5" type="success" style="display:inline-block" @click="handleTab1Examine3()">审核2</el-button>
-                  <el-button v-else type="success" style="display:none" @click="handleTab1Examine3()">审核2</el-button>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom:10px">
-          <el-button @click="tab1.changeRecord.see.dialogFormVisible = false">关闭</el-button>
-        </div>
-      </div>
-    </el-dialog>
-    <!-- 变更记录审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.changeRecord.examine.dialogFormVisible" :close-on-click-modal="false" width="30%">
-      <div class="app-examine">
-        <h3 style="width: 100%;margin:0 0 0 5%;line-height:50px;">请确认审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="tab1.changeRecord.examine.temp" label-position="right" style="width: 50%;margin:0 auto;">
-          <el-row style="width:88%;height:150px;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="tab1.changeRecord.examine.temp.statueSH" @change="changeExamineStatue">
-                  <el-radio :label="1" checked>通过</el-radio>
-                  <el-radio :label="2">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="tab1.changeRecord.examine.isReason" :span="20">
-              <el-input v-model="tab1.changeRecord.examine.temp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="dialogStatus==='tab1examine'" type="primary" :disabled="isokDisable" @keyup.enter.native="createExamineData()" @click="createExamineData()">确认</el-button>
-        <!-- <el-button v-if="dialogStatus==='tab1examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button> -->
-        <el-button v-if="dialogStatus==='tab1examine3'" type="primary" :disabled="isokDisable" @keyup.enter.native="createExamineData3()" @click="createExamineData3()">确认</el-button>
-        <el-button @click="tab1.changeRecord.examine.dialogFormVisible = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, checkButtons, ExecDataByConfig, UpdateDataRelation, PostDataByName, failproccess,postJson } from '@/api/common'
-import waves from '@/directive/waves'
-import { parseTime, json2excel, sortChange } from '@/utils/index.js'
-import Pagination from '@/components/Pagination'
-import Cookies from 'js-cookie'
-import { getToken } from '@/utils/auth'
-import { MessageBox } from 'element-ui'
-export default {
-  inject: ['reload'],
-  name: 'ContractManagement',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      selectList:[],
-      contractCodese:'',
-      isGroupAdministrator: Cookies.get('pastureid'),
-      isEmployeid: Cookies.get('employeid'),
-      isPercentage: false,
-      percentage: 1,
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      buttons: [],
-      activeName: 'first',
-      contractStatusList: [{ id: '0', name: '正常' }, { id: '1', name: '已过期' }, { id: '2', name: '终止' }, { id: '3', name: '新增未通过' }],
-      contractStatus2List: [{ id: '1', name: '正常' }, { id: '0', name: '终止' }],
-      auditStatusList: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }], // 审核状态
-      changeTypeList: [{ id: '0', name: '新增合同' }, { id: '1', name: '新增备件' }, { id: '2', name: '变更备件' }, { id: '3', name: '合同变更' }],
-      isZeroInventoryList: [{ id: '0', name: '否' }, { id: '1', name: '是' }], // 是否零库存
-      findAllProvider: [], findAllAssetType: [], findAllPasture: [], findAllPastureList2: [], findAllDepart: [], findAllEmploye: [], findAllCategory: [],
-      requestParams: [
-        { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
-        { name: 'findAllAssetType', offset: 0, pagecount: 0, params: [] },
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllPastureForContract', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': 18 }},
-        { name: 'findAllDepart', offset: 0, pagecount: 0, params: [] },
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': 18 }},
-        { name: 'findAllCategory', offset: 0, pagecount: 0, params: [] }
-      ],
-      isokDisable: false,
-      disabled: true,
-      rules: {},
-      textMap: {
-        create: '新增合同',
-        see: '查看详情',
-        change: '变更合同',
-        tab1create2: '新增备件',
-        tab1change2: '变更备件',
-        tab1examine: '审核',
-        tab1examine2: '审核2',
-        tab1examine3: '审核2',
-        tab1See2: '查看',
-        tab1Update2: '编辑'
-      },
-      dialogStatus: '',
-      isContractManagement: true, // 备件合同
-      isDetailsSpareParts: false, // 备件明细
-      isChangeRecord: false, // 变更记录
-      tab1: {
-        // 合同管理1
-        contractManagement: {
-          radioAll: '全部',
-          isContractAdd: [],
-          isContractExport: [],
-          isContractUplaod: [],
-          isContractSee: [],
-          isContractChange: [],
-          isDisabled: false,
-          tableKey: 0,
-          listLoading: false,
-          total: 0,
-          list: [],
-          getdataListParm: {
-            name: 'providerPactListV2',
-            page: 1,
-            offset: 1,
-            pagecount: 10,
-            returntype: 'Map',
-            parammaps: {
-              loginid: Cookies.get('employeid'),
-              pastureName: Cookies.get('pasturename'),
-              contractCode: '',
-              statue: '',
-              stuteSH: '',
-              providerName: '',
-              tab1InputDatetime1: '',
-              startTime: '',
-              stopTime: '',
-              tab1InputDatetime2: '',
-              SHdateTimeF: '',
-              SHdateTimeE: '',
-              SHnums: 2
-            }
-          },
-          getParmCreateNumber: {
-            name: 'autoCreatCode',
-            page: 0,
-            offset: 0,
-            pagecount: 0,
-            returntype: 'Map',
-            parammaps: {
-              pastureId: Cookies.get('pastureid'),
-              codeType: 'HT'
-            }
-          },
-          create: {
-            dialogFormVisible: false,
-            temp: { contractCode: '', pastureId: Cookies.get('pastureid'), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: Cookies.get('employeid'), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), activeList: [], active: 3, workflowNote: '', synchronousPasture: [], synchronousPastureList: [] },
-            changeEchoParm: { name: 'getBigcontractPId', page: 0, offset: 0, pagecount: 0, returntype: 'Map', parammaps: {}}
-          }
-        },
-        // 合同管理-备件明细
-        detailsSpareParts: {
-          tableKey: 1,
-          listLoading: false,
-          total: 0,
-          list: [],
-          getdataListParm: {
-            name: 'getcontratListBybigV2',
-            page: 1,
-            offset: 1,
-            pagecount: 10,
-            returntype: 'Map',
-            parammaps: {
-              specification: '',
-              partName: '',
-              partCode: '',
-              pastureId: '',
-              providerId: '',
-              stopTime: '',
-              flag: '',
-              isZeroStock: '',
-              statue: ''
-            }
-          },
-          partCode: '',
-          requestSparePart: {
-            name: '',
-            page: 1,
-            offset: 1,
-            pagecount: 20,
-            returntype: 'Map',
-            parammaps: {}
-          },
-          detailsList: [],
-          updateList: [],
-          tableKeyAdd: 0,
-          listLoadingAdd: false,
-          listAdd: [],
-          requestBrand: {
-            name: 'getBrandByPartCode',
-            page: 0,
-            offset: 0,
-            pagecount: 10,
-            returntype: 'Map',
-            parammaps: {}
-          },
-          BrandList: [],
-          create: {
-            dialogFormVisible: false,
-            temp: { contractCode: '', pastureId: Cookies.get('pastureid'), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: Cookies.get('employeid'), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), activeList: [], active: 3, workflowNote: '' }
-          },
-          isDisabledImport: true,
-          clearImportExcelParm: {
-            name: 'deletecontract_upload',
-            page: 0,
-            offset: 0,
-            pagecount: '',
-            returntype: 'Map',
-            parammaps: {
-              user: Cookies.get('name')
-            }
-          },
-          importExcelParm: {
-            name: 'getcontract_uploadlist',
-            page: 0,
-            offset: 0,
-            pagecount: '',
-            returntype: 'Map',
-            parammaps: {
-              user: Cookies.get('name')
-            }
-          }
-        },
-        // 变更记录
-        changeRecord: {
-          isContractExamineZG: [],
-          //  isContractExamineZL: [],
-          isContractExamineZX: [],
-          isContractDelete: [],
-          isStatueReason: false,
-          isReason: false,
-          radioAll: '全部',
-          tableKey: 2,
-          listLoading: false,
-          total: 0,
-          list: [],
-          getdataListParm: {
-            name: 'providerPactListSH',
-            page: 1,
-            offset: 1,
-            pagecount: 10,
-            returntype: 'Map',
-            parammaps: {
-              loginid: Cookies.get('employeid'),
-              contractCode: '',
-              tab1InputDatetime3: '',
-              startTime: '',
-              stopTime: '',
-              SHStatus: '',
-              SHtype: '',
-              pastureId: '',
-              providerId: '',
-              stopTime1: '',
-              flag: '',
-              isZeroStock: '',
-              statue: '',
-              SHnums: 2,
-              stuteSH: ''
-            }
-          },
-          see: {
-            dialogFormVisible: false,
-            activeList: [], active: 3,
-            temp: {},
-            tableKey: 0,
-            listLoading: false,
-            total: 0,
-            list: [],
-            getdataListParm: {
-              name: 'getcontratListBybigSH',
-              returntype: 'Map',
-              page: 0,
-              offset: 0,
-              pagecount: 10,
-              parammaps: {}
-            }
-          },
-          examine: {
-            dialogFormVisible: false,
-            temp: {
-              statueSH: 1
-            },
-            isReason: false
-          }
-        }
-      },
-      postDataPramas: {},
-      // 开始日期
-      // pickerOptions1: {
-      //   disabledDate: (time) => {
-      //     if (this.tab1.contractManagement.create.temp.stopTime !== '') {
-      //       return parseTime(time.getTime(), '{y}-{m}-{d}') > parseTime(Date.now(), '{y}-{m}-{d}') || parseTime(time.getTime(), '{y}-{m}-{d}') >= this.tab1.contractManagement.create.temp.stopTime
-      //     } else {
-      //       return time.getTime() > Date.now()
-      //     }
-      //   }
-      // },
-      // 截止日期
-      pickerOptions2: {
-        disabledDate: (time) => {
-          return parseTime(time.getTime(), '{y}-{m}-{d}') <= this.tab1.contractManagement.create.temp.startTime || parseTime(time.getTime(), '{y}-{m}-{d}') < parseTime(Date.now(), '{y}-{m}-{d}')
-        }
-      },
-      pickerOptions3: {
-        disabledDate(time) {
-          return time.getTime() > Date.now()// 当天之前的时间可选
-        }
-      },
-      // 合同明细
-      tab2: {
-        tableKey: 0,
-        listLoading: false,
-        total: 0,
-        getdataListParm: {
-          name: 'contractDetailV2',
-          page: 1,
-          offset: 1,
-          pagecount: 10,
-          returntype: 'Map',
-          parammaps: {
-            inputDatetime: '',
-            providerName: '',
-            contractCode: '',
-            stopTime: '',
-            startTime: '',
-            statue: '',
-            partCode: '',
-            partName: '',
-            isZeroStock: '',
-            // pastureName: Cookies.get('pasturename')
-            pastureName: ''
-          }
-        },
-        list: []
-      },
-      UpdateDataParam: {},
-      UpdateDataParam2: {},
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'providerPactListV2', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      myHeight:document.documentElement.clientHeight - 85- 250
-    }
-  },
-  computed: {
-    // 设置请求头
-    headers() {
-      return {
-        token: getToken()
-      }
-    },
-    uploadData() {
-      return {
-        name: 'insertcontract_upload',
-        importParams: '备件编号,备件名称,规格型号,计量单位,品牌,计划量,单价,备注',
-        sheetname: 'SheetJS'
-      }
-    },
-    // 设置上传地址
-    uploadExcelUrl() {
-      return process.env.VUE_APP_BASE_API + 'authdata/ImportExcel'
-    }
-  },
-  created() {
-    // this.keyupSubmit()
-    console.log(this.$route.query.contractCode)
-    this.get_select_list()
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-
-    this.getTab1List()
-    this.getPendingList()
-    if (this.$route.query.contractCode == undefined) {
-      this.tab1.contractManagement.getdataListParm.parammaps.contractCode = ''
-    } else {
-      this.tab1.contractManagement.getdataListParm.parammaps.contractCode = this.$route.query.contractCode
-    }
-  },
-
-  methods: {
-    tableSort1(column) {
-      sortChange(column, this.tab1.detailsSpareParts.list)
-    },
-    tableSort2(column) {
-      sortChange(column, this.tab2.list)
-    },
-    get_auto_buttons() {
-
-      // 新增
-      const ContractJinyong = 'customs:contract:jinyong'
-      const isContractJinyong = checkButtons(this.$store.state.user.buttons, ContractJinyong)
-      this.isContractJinyong = isContractJinyong
-
-      // 新增
-      const ContractAdd = 'customs:contract:add'
-      const isContractAdd = checkButtons(this.$store.state.user.buttons, ContractAdd)
-      this.tab1.contractManagement.isContractAdd = isContractAdd
-
-      // 查看
-      const ContractSee = 'customs:contract:see'
-      const isContractSee = checkButtons(this.$store.state.user.buttons, ContractSee)
-      this.tab1.contractManagement.isContractSee = isContractSee
-
-      // 办公室主任
-      const ContractExamineZG = 'customs:contract:examineZG'
-      const isContractExamineZG = checkButtons(this.$store.state.user.buttons, ContractExamineZG)
-      this.tab1.changeRecord.isContractExamineZG = isContractExamineZG
-      // 设备中心审核
-      const ContractExamineZX = 'customs:contract:examineZX'
-      const isContractExamineZX = checkButtons(this.$store.state.user.buttons, ContractExamineZX)
-      this.tab1.changeRecord.isContractExamineZX = isContractExamineZX
-      // 审核删除
-      const ContractDelete = 'customs:contract:delete'
-      const isContractDelete = checkButtons(this.$store.state.user.buttons, ContractDelete)
-      this.tab1.changeRecord.isContractDelete = isContractDelete
-      // 导出
-      const ContractExport = 'customs:contract:export'
-      const isContractExport = checkButtons(this.$store.state.user.buttons, ContractExport)
-      this.tab1.contractManagement.isContractExport = isContractExport
-      // SAP上传
-      const ContractUplaod = 'customs:contract:sapupload'
-      const isContractUplaod = checkButtons(this.$store.state.user.buttons, ContractUplaod)
-      this.tab1.contractManagement.isContractUplaod = isContractUplaod
-      // 变更
-      const ContractChange = 'customs:contract:change'
-      const isContractChange = checkButtons(this.$store.state.user.buttons, ContractChange)
-      this.tab1.contractManagement.isContractChange = isContractChange
-    },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllProvider = response.data.findAllProvider.list
-        this.findAllAssetType = response.data.findAllAssetType.list
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllPastureList2 = response.data.findAllPastureForContract.list
-        this.findAllDepart = response.data.findAllDepart.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.findAllCategory = response.data.findAllCategory.list
-      })
-    },
-    handleClick() {
-      if (this.tab1.contractManagement.create.temp.activeName == 'first') {
-        console.log('点击了合同管理')
-        this.getTab1List()
-      } else {
-        console.log('点击了合同明细')
-        this.getTab2List()
-      }
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps.loginid = this.tab1.contractManagement.getdataListParm.parammaps.loginid
-      this.pending.getdataListParm.parammaps.pastureName = this.tab1.contractManagement.getdataListParm.parammaps.pastureName
-      this.pending.getdataListParm.parammaps.contractCode = this.tab1.contractManagement.getdataListParm.parammaps.contractCode
-      this.pending.getdataListParm.parammaps.statue = this.tab1.contractManagement.getdataListParm.parammaps.statue
-      this.pending.getdataListParm.parammaps.stuteSH = this.tab1.contractManagement.getdataListParm.parammaps.stuteSH
-      this.pending.getdataListParm.parammaps.providerName = this.tab1.contractManagement.getdataListParm.parammaps.providerName
-      this.pending.getdataListParm.parammaps.tab1InputDatetime1 = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1
-      this.pending.getdataListParm.parammaps.startTime = this.tab1.contractManagement.getdataListParm.parammaps.startTime
-      this.pending.getdataListParm.parammaps.stopTime = this.tab1.contractManagement.getdataListParm.parammaps.stopTime
-      this.pending.getdataListParm.parammaps.tab1InputDatetime2 = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2
-      this.pending.getdataListParm.parammaps.SHdateTimeF = this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF
-      this.pending.getdataListParm.parammaps.SHdateTimeE = this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE
-      this.pending.getdataListParm.parammaps.SHnums = 0
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    getTab1List() {
-      this.tab1.contractManagement.listLoading = true
-      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 !== '' && this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 !== null) {
-        this.tab1.contractManagement.getdataListParm.parammaps.startTime = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[0]
-        this.tab1.contractManagement.getdataListParm.parammaps.stopTime = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[1]
-      } else {
-        this.tab1.contractManagement.getdataListParm.parammaps.startTime = ''
-        this.tab1.contractManagement.getdataListParm.parammaps.stopTime = ''
-      }
-      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 !== '' && this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 !== null) {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[0]
-        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[1]
-      } else {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF = ''
-        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE = ''
-      }
-      GetDataByName(this.tab1.contractManagement.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          this.tab1.contractManagement.list = response.data.list
-          this.tab1.contractManagement.pageNum = response.data.pageNum
-          this.tab1.contractManagement.pageSize = response.data.pageSize
-        } else {
-          this.tab1.contractManagement.list = []
-        }
-        this.tab1.contractManagement.total = response.data.total
-        setTimeout(() => {
-          this.tab1.contractManagement.listLoading = false
-        }, 300)
-      })
-    },
-    handleTab1Filter() {
-      this.tab1.contractManagement.listLoading = true
-      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 == null) {
-        this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
-      }
-      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 == null) {
-        this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 = ''
-      }
-      this.tab1.contractManagement.getdataListParm.offset = 1
-      this.getTab1List()
-      this.getPendingList()
-      if (this.tab1.contractManagement.radioAll == '全部') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 2
-        this.getTab1List()
-      } else if (this.tab1.contractManagement.radioAll == '待处理') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 0
-        this.getTab1List()
-      } else if (this.tab1.contractManagement.radioAll == '已处理') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 1
-        this.getTab1List()
-      }
-    },
-    changeContractManagementAll() {
-      if (this.tab1.contractManagement.radioAll == '全部') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 2
-      } else if (this.tab1.contractManagement.radioAll == '待处理') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 0
-      } else if (this.tab1.contractManagement.radioAll == '已处理') {
-        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 1
-      }
-      this.tab1.contractManagement.getdataListParm.offset = 1
-      this.getTab1List()
-    },
-    changeTime(val) {
-      if (this.tab1.contractManagement.create.temp.stopTime !== '') {
-        if (this.tab1.contractManagement.create.temp.stopTime <= this.tab1.contractManagement.create.temp.startTime) {
-          this.tab1.contractManagement.create.temp.stopTime = ''
-          this.tab1.contractManagement.create.temp.statue = ''
-          this.tab1.contractManagement.create.temp.statueId = ''
-        } else {
-          if (parseTime(new Date(), '{y}-{m}-{d}') <= this.tab1.contractManagement.create.temp.stopTime) {
-            this.tab1.contractManagement.create.temp.statue = '1'
-            // this.tab1.contractManagement.create.temp.statueId = 1
-          } else {
-            this.tab1.contractManagement.create.temp.statue = '0'
-            // this.tab1.contractManagement.create.temp.statueId = 2
-          }
-        }
-      } else {
-        this.tab1.contractManagement.create.temp.statue = ''
-        this.tab1.contractManagement.create.temp.statueId = ''
-      }
-    },
-    changeIsZero(val) {
-      console.log(val)
-    },
-    providerSearch(queryString, cb) {
-      var returnList = this.findAllProvider
-      var results = queryString ? returnList.filter(this.createFilter(queryString)) : returnList
-      // 调用 callback 返回建议列表的数据
-      cb(results)
-    },
-    createFilter(queryString) {
-      return returnValue => {
-        return (
-          returnValue.name.toLowerCase().indexOf(queryString.toLowerCase()) >= 0
-        )
-      }
-    },
-    handleSelectProvider(item) {
-      this.$set(this.tab1.contractManagement.create.temp, 'providerId', item.id)
-      this.$set(this.tab1.contractManagement.create.temp, 'providerName', item.name)
-    },
-    handleFocusProvider() {
-      this.tab1.contractManagement.create.temp.providerId = ''
-      this.tab1.contractManagement.create.temp.providerName = ''
-    },
-    handleBlurProvider() {
-      if (this.tab1.contractManagement.create.temp.providerId == '') {
-        this.tab1.contractManagement.create.temp.providerId = ''
-        this.tab1.contractManagement.create.temp.providerName = ''
-      }
-    },
-    changeCreatorMan(val) {
-      this.tab1.contractManagement.create.temp.creatorMan = this.findAllEmploye.find(obj => obj.id == val).name
-    },
-    resetCreateTemp() {
-      this.tab1.contractManagement.create.temp.synchronousPastureList = []
-      if (Cookies.get('pastureid') == 18) {
-        for (let i = 0; i < this.findAllPasture.length; i++) {
-          this.tab1.contractManagement.create.temp.synchronousPastureList.push(this.findAllPasture[i].id)
-        }
-      } else {
-        this.tab1.contractManagement.create.temp.synchronousPastureList.push(parseInt(Cookies.get('pastureid')))
-      }
-      this.tab1.contractManagement.create.temp = { contractCode: '', pastureId: parseFloat(Cookies.get('pastureid')), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: parseFloat(Cookies.get('employeid')), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), synchronousPasture: this.tab1.contractManagement.create.temp.synchronousPastureList, synchronousPasture2: [] }
-    },
-    handleTab1Create() {
-      this.resetCreateTemp()
-      this.dialogStatus = 'create'
-      this.tab1.contractManagement.create.dialogFormVisible = true
-      this.getCreateNumber()
-    },
-    getCreateNumber() {
-      GetDataByName(this.tab1.contractManagement.getParmCreateNumber).then(response => {
-        this.$nextTick(() => {
-          console.log('合同编号', response.data.list[0].orderCode)
-          this.tab1.contractManagement.create.temp.contractCode = response.data.list[0].orderCode
-          this.$forceUpdate()
-        })
-      })
-    },
-    add_dialog_save() {
-      console.log('点击了新增保存')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['createTemp'].validate(valid => {
-        if (valid) {
-          if (this.tab1.contractManagement.create.temp.contractCode == '') {
-            GetDataByName(this.getParmCreateNumber).then(response => {
-              this.$nextTick(() => {
-                this.tab1.contractManagement.create.temp.contractCode = response.data.list[0].orderCode
-                this.$forceUpdate()
-                this.saveCreateData()
-              })
-            })
-          } else {
-            this.saveCreateData()
-          }
-        }
-      })
-    },
-    saveCreateData() {
-      this.postDataPramas = {}
-      if (Cookies.get('pastureid') == 18) {
-        if (this.tab1.contractManagement.create.temp.synchronousPasture.indexOf(18) == -1) {
-          this.$message({ type: 'error', message: '当前合同归属于现代牧业,未选中,共享牧场请选中现代牧业!', duration: 2000 })
-          return false
-        }
-      }
-      this.postDataPramas.common = { 'returnmap': '0' }
-      this.postDataPramas.data = []
-      this.postDataPramas.data[0] = { 'name': 'checkbigcontract', 'type': 'v', 'parammaps': {
-        pastureId: this.tab1.contractManagement.create.temp.pastureId,
-        providerId: this.tab1.contractManagement.create.temp.providerId
-      }}
-      this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
-        pastureId: this.tab1.contractManagement.create.temp.pastureId,
-        providerId: this.tab1.contractManagement.create.temp.providerId,
-        providerName: this.tab1.contractManagement.create.temp.providerName,
-        startTime: this.tab1.contractManagement.create.temp.startTime,
-        stopTime: this.tab1.contractManagement.create.temp.stopTime,
-        contractCode: this.tab1.contractManagement.create.temp.contractCode,
-        creatorId: this.tab1.contractManagement.create.temp.creatorId,
-        creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
-        creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
-        isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
-        statue: 1,
-        remark: this.tab1.contractManagement.create.temp.remark,
-        SHtype: 0
-      }}
-      var groupRanchList = []
-      for (let i = 0; i < this.tab1.contractManagement.create.temp.synchronousPasture.length; i++) {
-        var obj = {}
-        obj.pastureId = this.tab1.contractManagement.create.temp.synchronousPasture[i]
-        groupRanchList.push(obj)
-      }
-      if (Cookies.get('pastureid') == 18) {
-        this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': groupRanchList }}
-        this.postDataPramas.data[2].children = []
-        this.postDataPramas.data[2].children[0] = { 'name': 'insertPastureBigcontract', 'type': 'e', 'parammaps': {
-          bigcontractId: '@insertBigContractV2.LastInsertId',
-          pastureId: '@insertSpotList.pastureId'
-        }}
-      }
-      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.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
-          this.getTab1List()
-          this.getPendingList()
-          this.tab1.contractManagement.create.dialogFormVisible = false
-          this.tab1.contractManagement.create.temp.providerName = ''
-          this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-        }
-      })
-    },
-    form_see(row) {
-      console.log('查看', row)
-      row.statue = String(row.statue)
-      row.synchronousPasture2 = []
-      row.synchronousPastureName2 = []
-      row.synchronousPasture = []
-      this.tab1.contractManagement.create.temp = Object.assign({}, row)
-      this.dialogStatus = 'see'
-      this.tab1.contractManagement.create.dialogFormVisible = true
-      var reason = '未通过原因:' + this.tab1.contractManagement.create.temp.workflowNote
-      if (this.tab1.contractManagement.create.temp.SHStatus == 2) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核' }, { title: '设备中心审核' }]
-        this.tab1.contractManagement.create.temp.active = 1
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 3) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.contractManagement.create.temp.active = 2
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 4) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson, status: 'error', reason: reason }, { title: '设备中心审核' }]
-        this.tab1.contractManagement.create.temp.active = 2
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 5) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.contractManagement.create.temp.active = 2
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 6) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.contractManagement.create.temp.active = 3
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 7) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.contractManagement.create.temp.CGChargedate, name: this.tab1.contractManagement.create.temp.CGChargePerson }]
-        this.tab1.contractManagement.create.temp.active = 4
-      } else if (this.tab1.contractManagement.create.temp.SHStatus == 8) {
-        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.contractManagement.create.temp.CGChargedate, name: this.tab1.contractManagement.create.temp.CGChargePerson, status: 'error', reason: reason }]
-        this.tab1.contractManagement.create.temp.active = 4
-      }
-      this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id = row.id
-      GetDataByName(this.tab1.contractManagement.create.changeEchoParm).then(response => {
-        if (response.data.list !== null) {
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.tab1.contractManagement.create.temp.synchronousPasture2.push(response.data.list[i].pasture_id)
-            this.tab1.contractManagement.create.temp.synchronousPasture.push(response.data.list[i].pasture_id)
-            this.tab1.contractManagement.create.temp.synchronousPastureName2.push(this.findAllPasture.find(obj => obj.id == response.data.list[i].pasture_id).name)
-          }
-        } else {
-          this.tab1.contractManagement.create.temp.synchronousPasture = []
-        }
-        console.log(this.tab1.contractManagement.create.temp.synchronousPastureName2, 'synchronousPastureName2')
-      })
-    },
-    handleTab1Change(row) {
-      console.log('变更', row)
-      // row.statue = String(row.statue)
-      this.$set(row, 'mystopTime', row.stopTime)
-      row.synchronousPasture2 = []
-      row.synchronousPastureName2 = []
-      row.synchronousPasture = []
-      this.tab1.contractManagement.create.temp = Object.assign({}, row)
-      this.tab1.contractManagement.create.temp.statue = String(this.tab1.contractManagement.create.temp.statue)
-
-      this.dialogStatus = 'change'
-      this.tab1.contractManagement.create.dialogFormVisible = true
-      this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id = row.id
-      GetDataByName(this.tab1.contractManagement.create.changeEchoParm).then(response => {
-        if (response.data.list !== null) {
-          for (let i = 0; i < response.data.list.length; i++) {
-            this.tab1.contractManagement.create.temp.synchronousPasture2.push(response.data.list[i].pasture_id)
-            this.tab1.contractManagement.create.temp.synchronousPasture.push(response.data.list[i].pasture_id)
-            this.tab1.contractManagement.create.temp.synchronousPastureName2.push(this.findAllPasture.find(obj => obj.id == response.data.list[i].pasture_id).name)
-          }
-        } else {
-          this.tab1.contractManagement.create.temp.synchronousPasture = []
-        }
-        console.log(this.tab1.contractManagement.create.temp.synchronousPastureName2, 'synchronousPastureName2')
-      })
-    },
-
-    terminationData() {
-      var aa = '确认终止合同?'
-      if (this.tab1.contractManagement.create.temp.isZeroStock == 1) {
-        aa = '若此合同库存中有剩余库存,建议先进行退货操作。'
-      } else {
-        aa = '确认终止合同?'
-      }
-      MessageBox.confirm(aa, { confirmButtonText: '确认终止', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.postDataPramas = {}
-        this.postDataPramas.name = 'updatecontractstatuV2'
-        this.postDataPramas.parammaps = {}
-        this.postDataPramas.parammaps = this.tab1.contractManagement.create.temp
-        this.postDataPramas.parammaps.creatorId = Cookies.get('employeid')
-        this.postDataPramas.parammaps.creatorMan = Cookies.get('employename')
-        this.postDataPramas.parammaps.creatorTime = parseTime(new Date(), '{y}-{m}-{d}')
-        PostDataByName(this.postDataPramas).then(response => {
-          console.log('变更保存发送参数', this.postDataPramas)
-          if (response.msg == 'fail') {
-            this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-          } else {
-            this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
-            this.getTab1List()
-            this.getPendingList()
-            this.tab1.contractManagement.create.dialogFormVisible = false
-            this.tab1.contractManagement.create.temp.providerName = ''
-            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-          }
-        })
-      })
-    },
-    changeData() {
-      if (Cookies.get('pastureid') == 18) {
-        this.UpdateDataParam = {}
-        this.UpdateDataParam.name = 'pasture_bigcontract'
-        this.UpdateDataParam.dataname = 'bigcontract_id'
-        this.UpdateDataParam.datavalue = this.tab1.contractManagement.create.temp.id
-        this.UpdateDataParam.valuename = 'pasture_id'
-        this.UpdateDataParam.values = this.tab1.contractManagement.create.temp.synchronousPasture
-        UpdateDataRelation(this.UpdateDataParam).then(response => {
-          if (response.msg !== 'fail') {
-            this.UpdateDataParam2.name = 'updateBigcontractPId'
-            this.UpdateDataParam2.parammaps = {}
-            this.UpdateDataParam2.parammaps.bigcontract_id = this.tab1.contractManagement.create.temp.id
-            this.UpdateDataParam2.parammaps.enable = 0
-            PostDataByName(this.UpdateDataParam2).then(response => {})
-          }
-        })
-      }
-      this.postDataPramas = {}
-      this.postDataPramas.common = { 'returnmap': '0' }
-      this.postDataPramas.data = []
-      this.postDataPramas.data[0] = { 'name': 'checkbigcontractSH', 'type': 'v', 'parammaps': {
-        pastureId: this.tab1.contractManagement.create.temp.pastureId,
-        providerId: this.tab1.contractManagement.create.temp.providerId,
-        stopTime: this.tab1.contractManagement.create.temp.mystopTime,
-        flag: this.tab1.contractManagement.create.temp.flag,
-        isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
-        statue: this.tab1.contractManagement.create.temp.statue
-      }}
-      if (Cookies.get('pastureid') == 18) {
-        var synchronousPastureName = []
-        for (let i = 0; i < this.tab1.contractManagement.create.temp.synchronousPasture.length; i++) {
-          synchronousPastureName.push(this.findAllPasture.find(obj => obj.id == this.tab1.contractManagement.create.temp.synchronousPasture[i]).name)
-        }
-        this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
-          pastureId: this.tab1.contractManagement.create.temp.pastureId,
-          providerId: this.tab1.contractManagement.create.temp.providerId,
-          providerName: this.tab1.contractManagement.create.temp.providerName,
-          startTime: this.tab1.contractManagement.create.temp.startTime,
-          stopTime: this.tab1.contractManagement.create.temp.mystopTime,
-          stopTime1: this.tab1.contractManagement.create.temp.stopTime,
-          contractCode: '',
-          contractCode1: this.tab1.contractManagement.create.temp.contractCode,
-          creatorId: this.tab1.contractManagement.create.temp.creatorId,
-          creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
-          creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
-          isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
-          statue: this.tab1.contractManagement.create.temp.statue,
-          remark: this.tab1.contractManagement.create.temp.remark,
-          flag: this.tab1.contractManagement.create.temp.flag,
-          SHtype: 3,
-          pastureNamesOld: this.tab1.contractManagement.create.temp.synchronousPastureName2.toString(),
-          pastureNamesNow: synchronousPastureName.toString()
-        }}
-      } else {
-        this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
-          pastureId: this.tab1.contractManagement.create.temp.pastureId,
-          providerId: this.tab1.contractManagement.create.temp.providerId,
-          providerName: this.tab1.contractManagement.create.temp.providerName,
-          startTime: this.tab1.contractManagement.create.temp.startTime,
-          stopTime: this.tab1.contractManagement.create.temp.mystopTime,
-          stopTime1: this.tab1.contractManagement.create.temp.stopTime,
-          contractCode: '',
-          contractCode1: this.tab1.contractManagement.create.temp.contractCode,
-          creatorId: this.tab1.contractManagement.create.temp.creatorId,
-          creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
-          creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
-          isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
-          statue: this.tab1.contractManagement.create.temp.statue,
-          remark: this.tab1.contractManagement.create.temp.remark,
-          flag: this.tab1.contractManagement.create.temp.flag,
-          SHtype: 3
-        }}
-      }
-      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.getTab1List()
-          this.getPendingList()
-          this.tab1.contractManagement.create.dialogFormVisible = false
-          this.tab1.contractManagement.create.temp.providerName = ''
-          this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-        }
-      })
-    },
-    // 备件明细
-    handleTab1DetailsSpareParts(row) {
-      console.log('备件明细', row)
-      this.contractCodese = row.contractCode
-      this.tab1.detailsSpareParts.updateList = Object.assign({}, row)
-      this.tab1.detailsSpareParts.detailsList = Object.assign({}, row)
-      this.isContractManagement = false
-      this.isDetailsSpareParts = true
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.pastureId = row.pastureId
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.providerId = row.providerId
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.stopTime = row.stopTime
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.flag = row.flag
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.isZeroStock = row.isZeroStock
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.statue = row.statue
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.partCode = ''
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.partName = ''
-      this.tab1.detailsSpareParts.getdataListParm.parammaps.specification = ''
-      this.getTab1List2()
-    },
-    handleTab1goBack() {
-      // this.reload()
-      this.isContractManagement = true
-      this.isDetailsSpareParts = false
-      this.tab1.detailsSpareParts.total = 0
-      this.getTab1List()
-    },
-
-    change_enabled(){
-
-    },
-    change_no(){
-      console.log("selectList",this.selectList)
-
-
-      var send_data =    {
-        "common": {
-            "returnmap": "0"
-        },
-        "data": [
-            {
-                "name": "insertSpotList",
-                "resultmaps": {
-                    "list":  this.selectList
-                },
-                "children": [
-                    {
-                        "name": "updateContractEnableById",
-                        "type": "e",
-                        "parammaps": {
-                            "id": "@insertSpotList.id"
-                        }
-                    }
-                ]
-            },{
-        "name": "updateBigcontractIsToSap",
-                        "type": "e",
-                        "parammaps": {
-                            "contractCode": this.contractCodese
-                        }
-      }
-
-        ]
-    }
-
-
-      ExecDataByConfig(send_data).then(response => {
-          console.log('发送参数', send_data)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '禁用失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-
-            this.getTab1List2()
-
-            this.$notify({
-              title: '',
-              message: '禁用成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-
-
-    },
-
-    handleSelectionChange(val) {
-      // this.create.temp.rowsNumber = []
-      // for(let i=0;i<val.length;i++){
-      //   this.create.temp.rowsNumber.push(val[i].rowNumber)
-      // }
-      console.log(val)
-      this.selectList = val
-    },
-    getTab1List2() {
-      this.tab1.detailsSpareParts.listLoading = true
-      GetDataByName(this.tab1.detailsSpareParts.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          for (let i = 0; i < response.data.list.length; i++) {
-            if (response.data.list[i].srcpath !== null && response.data.list[i].picpath !== null && response.data.list[i].srcpath !== undefined && response.data.list[i].picpath !== undefined) {
-              const srcpath = process.env.VUE_APP_BASE_API + response.data.list[i].srcpath
-              const picpath = process.env.VUE_APP_BASE_API + response.data.list[i].picpath
-              response.data.list[i].srcpath = srcpath
-              response.data.list[i].picpath = picpath
-            } else {
-              response.data.list[i].srcpath = ''
-              response.data.list[i].picpath = ''
-            }
-          }
-          this.tab1.detailsSpareParts.list = response.data.list
-          this.tab1.detailsSpareParts.pageNum = response.data.pageNum
-          this.tab1.detailsSpareParts.pageSize = response.data.pageSize
-          if (response.data.list !== null) {
-            this.tab1.detailsSpareParts.total = response.data.total
-          } else {
-            this.tab1.detailsSpareParts.total = 0
-          }
-        } else {
-          this.tab1.detailsSpareParts.list = []
-        }
-        setTimeout(() => {
-          this.tab1.detailsSpareParts.listLoading = false
-        }, 300)
-      })
-    },
-    handleTab1Filter2() {
-      this.tab1.detailsSpareParts.listLoading = true
-      this.tab1.detailsSpareParts.getdataListParm.offset = 1
-      this.getTab1List2()
-    },
-    sparePartSearch(queryString, cb) {
-      this.tab1.detailsSpareParts.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.tab1.detailsSpareParts.requestSparePart).then(response => {
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.tab1.detailsSpareParts.listAdd.length > 0) {
-        if (this.tab1.detailsSpareParts.listAdd.find(obj => obj.partCode == item.partCode)) {
-          this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
-        } else {
-          if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
-            this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
-            this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
-          } else {
-            item.srcpath = ''
-            item.picpath = ''
-          }
-          this.$set(item, 'myid', new Date().getTime())
-          this.$set(item, 'taxcode', '')
-          this.tab1.detailsSpareParts.listAdd.unshift(item)
-        }
-      } else {
-        if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
-          this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
-          this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
-        } else {
-          item.srcpath = ''
-          item.picpath = ''
-        }
-        this.$set(item, 'myid', new Date().getTime())
-        this.tab1.detailsSpareParts.listAdd.unshift(item)
-      }
-    },
-    brandSearch(queryString, cb) {
-      this.tab1.detailsSpareParts.requestBrand.parammaps['brandName'] = queryString
-      GetDataByName(this.tab1.detailsSpareParts.requestBrand).then(response => {
-        this.tab1.detailsSpareParts.BrandList = response.data.list
-        cb(this.tab1.detailsSpareParts.BrandList)
-      })
-    },
-    handleSelectBrand(item, row) {
-      this.$set(row, 'brandName', item.brandName)
-      this.$set(row, 'brandId', item.brandId)
-      this.$forceUpdate()
-    },
-    handleFocusBrand(row) {
-      this.$set(row, 'brandName', '')
-      this.$set(row, 'brandId', '')
-    },
-    handleBlurBrand(row) {
-      if (row.brandId == '') {
-        this.$set(row, 'brand', '')
-        this.$set(row, 'brandName', '')
-        this.$set(row, 'brandId', '')
-      }
-    },
-    partDelete(row) {
-      console.log('备件明细-备件删除', row)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        for (var i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
-          console.log(this.tab1.detailsSpareParts.listAdd[i])
-          if (this.tab1.detailsSpareParts.listAdd[i].myid === row.myid) {
-            var listAddIndex = this.tab1.detailsSpareParts.listAdd.indexOf(this.tab1.detailsSpareParts.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.tab1.detailsSpareParts.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    handleTab1DownloadTemp2() {
-      console.log('备件明细-备件模板')
-      import('@/vendor/Export2Excel').then(excel => {
-        const list1 = []
-        const tHeader = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注']
-        const filterVal = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注']
-        const data1 = this.formatJsonTemp(filterVal, list1)
-        excel.export_json_to_excel({ header: tHeader, data: data1, filename: '备件明细模板', autoWidth: true, bookType: 'xlsx' })
-      })
-    },
-    formatJsonTemp(filterVal, jsonData) {
-      return jsonData.map(v =>
-        filterVal.map(j => {
-          if (j === 'timestamp') {
-            return parseTime(v[j])
-          } else {
-            return v[j]
-          }
-        })
-      )
-    },
-    beforeImportExcel(file) {
-      const isLt2M = file.size / 1024 / 1024 < 6
-      if (!isLt2M) {
-        this.$message.error('上传文件大小不能超过 6MB!')
-      }
-      return isLt2M
-    },
-    handleImportExcelSuccess(res, file) {
-      console.log(res)
-      if (res.msg == 'ok') {
-        this.$message({ title: '成功', message: '导入成功:' + res.data.success + '条!', type: 'success', duration: 2000 })
-        if (res.data.err_count > 0) {
-          this.$notify({ title: '失败', message: '导入失败:' + res.data.err_count + '条!', type: 'danger', duration: 2000 })
-           import('@/vendor/Export2Excel').then(excel => {
-             const list1 = res.data.result
-             const tHeader = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注', '报错信息']
-             const filterVal = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注', 'error_msg']
-             const data1 = this.formatJson(filterVal, list1)
-             excel.export_json_to_excel({ header: tHeader, data: data1, filename: '合同报错信息', autoWidth: true, bookType: 'xlsx' })
-           })
-        }
-        this.getImportExcelList()
-      } else {
-        this.$notify({ title: '失败', message: '上传失败,文件格式错误', type: 'danger', duration: 2000 })
-      }
-    },
-    formatJson(filterVal, jsonData) {
-      return jsonData.map(v =>
-        filterVal.map(j => {
-          if (j == 'timestamp') {
-            return parseTime(v[j])
-          } else {
-            return v[j]
-          }
-        })
-      )
-    },
-    getClearImportExcelList() {
-      PostDataByName(this.tab1.detailsSpareParts.clearImportExcelParm).then(response => {
-        console.log(response.msg)
-        if (response.msg == 'ok') {
-          this.tab1.detailsSpareParts.isDisabledImport = false
-        }
-      })
-    },
-    getImportExcelList() {
-      GetDataByName(this.tab1.detailsSpareParts.importExcelParm).then(response => {
-        if (response.data.list !== null) {
-          for (let i = 0; i < response.data.list.length; i++) {
-            if (response.data.list[i].picpath == undefined) {
-              response.data.list[i].picpath = ''
-              response.data.list[i].srcpath = ''
-            } else {
-              this.$set(response.data.list[i], 'srcpath', process.env.VUE_APP_BASE_API + response.data.list[i].srcpath)
-              this.$set(response.data.list[i], 'picpath', process.env.VUE_APP_BASE_API + response.data.list[i].picpath)
-            }
-            response.data.list[i].myid = new Date().getTime() + i
-          }
-          this.tab1.detailsSpareParts.listAdd = response.data.list
-        } else {
-          this.tab1.detailsSpareParts.list = []
-        }
-      })
-    },
-    handleTab1Create2() {
-      console.log('备件明细-新增/变更')
-      this.dialogStatus = 'tab1create2'
-      this.tab1.detailsSpareParts.create.dialogFormVisible = true
-      this.tab1.detailsSpareParts.listAdd = []
-      this.tab1.detailsSpareParts.partCode = ''
-      this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigALLParts'
-      this.tab1.detailsSpareParts.requestSparePart.parammaps = {}
-      this.getClearImportExcelList()
-    },
-    add_dialog_save2() {
-      console.log('备件明细-新增保存')
-      if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
-        for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
-          if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand === '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
-            this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
-            return false
-          } else {
-            var rulesPlanAmount = /^[1-9]\d*$/
-            if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
-              this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
-              return false
-            }
-            var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
-            if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
-              this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
-              return false
-            }
-          }
-        }
-        this.postDataPramas = {}
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
-          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-          flag: this.tab1.detailsSpareParts.detailsList.flag,
-          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
-          providerName: this.tab1.detailsSpareParts.detailsList.providerName,
-          startTime: this.tab1.detailsSpareParts.detailsList.startTime,
-          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
-          contractCode: '',
-          contractCode1: this.tab1.detailsSpareParts.detailsList.contractCode,
-          creatorId: Cookies.get('employeid'),
-          creatorMan: Cookies.get('employename'),
-          creatorTime: parseTime(new Date(), '{y}-{m}-{d}'),
-          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
-          statue: this.tab1.detailsSpareParts.detailsList.statue,
-          remark: this.tab1.detailsSpareParts.detailsList.remark,
-          SHtype: 1
-        }}
-        this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
-        this.postDataPramas.data[1].children = []
-        this.postDataPramas.data[1].children[0] = { 'name': 'checkcontracPartCode', 'type': 'v', 'parammaps': {
-          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
-          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
-          flag: this.tab1.detailsSpareParts.detailsList.flag,
-          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
-          statue: this.tab1.detailsSpareParts.detailsList.statue,
-          partCode: '@insertSpotList.partCode',
-          brandId: '@insertSpotList.brandId'
-        }}
-        this.postDataPramas.data[1].children[1] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
-          bigId: '@insertBigContractV2.LastInsertId',
-          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-          pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
-          partId: '@insertSpotList.id',
-          partName: '@insertSpotList.partName',
-          partCode: '@insertSpotList.partCode',
-          specification: '@insertSpotList.specification',
-          price: '@insertSpotList.price',
-          brandId: '@insertSpotList.brandId',
-          brand: '@insertSpotList.brand',
-          planAmount: '@insertSpotList.planAmount',
-          remark: '@insertSpotList.remark',
-          unit: '@insertSpotList.unit',
-          contractId: '@insertSpotList.contractId',
-          taxcode: '@insertSpotList.taxcode',
-          lifeCycle: '@insertSpotList.lifeCycle',
-          contractVarianceItem: '@insertSpotList.contractVarianceItem',
-        }}
-        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.getTab1List2()
-            this.getPendingList()
-            this.tab1.detailsSpareParts.create.dialogFormVisible = false
-            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-          }
-        })
-      } else {
-        this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-        return false
-      }
-    },
-    handleTab1Change2() {
-      console.log('备件明细-变更')
-      this.dialogStatus = 'tab1change2'
-      this.tab1.detailsSpareParts.create.dialogFormVisible = true
-      this.tab1.detailsSpareParts.listAdd = []
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId = this.tab1.detailsSpareParts.detailsList.pastureId
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId = this.tab1.detailsSpareParts.detailsList.providerId
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime = this.tab1.detailsSpareParts.detailsList.stopTime
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.flag = this.tab1.detailsSpareParts.detailsList.flag
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock = this.tab1.detailsSpareParts.detailsList.isZeroStock
-      this.tab1.detailsSpareParts.requestSparePart.parammaps.statue = this.tab1.detailsSpareParts.detailsList.statue
-      this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigParts'
-    },
-    changeData2() {
-      console.log('备件明细-变更保存')
-      if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
-        for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
-          if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand === '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
-            this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
-            return false
-          } else {
-            var rulesPlanAmount = /^[1-9]\d*$/
-            if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
-              this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
-              return false
-            } else {
-              var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
-              if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
-                this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
-                return false
-              }
-            }
-          }
-        }
-        this.postDataPramas = {}
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
-          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-          flag: this.tab1.detailsSpareParts.detailsList.flag,
-          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
-          providerName: this.tab1.detailsSpareParts.detailsList.providerName,
-          startTime: this.tab1.detailsSpareParts.detailsList.startTime,
-          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
-          contractCode: '',
-          contractCode1: this.tab1.detailsSpareParts.detailsList.contractCode,
-          creatorId: Cookies.get('employeid'),
-          creatorMan: Cookies.get('employename'),
-          creatorTime: parseTime(new Date(), '{y}-{m}-{d}'),
-          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
-          statue: this.tab1.detailsSpareParts.detailsList.statue,
-          remark: this.tab1.detailsSpareParts.detailsList.remark,
-          SHtype: 2
-        }}
-        this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
-        this.postDataPramas.data[1].children = []
-        this.postDataPramas.data[1].children[0] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
-          bigId: '@insertBigContractV2.LastInsertId',
-          pastureId: '@insertSpotList.pastureId',
-          pastureName: '@insertSpotList.pastureName',
-          partId: '@insertSpotList.partId',
-          partName: '@insertSpotList.partName',
-          partCode: '@insertSpotList.partCode',
-          specification: '@insertSpotList.specification',
-          price: '@insertSpotList.price',
-          brandId: '@insertSpotList.brandId',
-          brand: '@insertSpotList.brand',
-          planAmount: '@insertSpotList.planAmount',
-          remark: '@insertSpotList.remark',
-          unit: '@insertSpotList.unit',
-          contractId: '@insertSpotList.contractId',
-          taxcode: '@insertSpotList.taxcode',
-          lifeCycle: '@insertSpotList.lifeCycle',
-          contractVarianceItem: '@insertSpotList.contractVarianceItem',
-        }}
-        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.getTab1List2()
-            this.getPendingList()
-            this.tab1.detailsSpareParts.create.dialogFormVisible = false
-            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-          }
-        })
-      } else {
-        this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-        return false
-      }
-    },
-    handleTab1Export2() {
-      console.log('备件明细-导出')
-      this.$alert('备件明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
-      this.isPercentage = true
-      this.percentage = 1
-      var timer = setInterval(() => {
-        this.percentage += 5
-        if (this.percentage > 95) {
-          this.percentage = 99
-          clearInterval(timer)
-          this.tab1.detailsSpareParts.getdataListParm.pagecount = 10
-        }
-        this.percentage = this.percentage
-      }, 1000)
-      this.tab1.detailsSpareParts.getdataListParm.pagecount = ''
-      GetDataByName(this.tab1.detailsSpareParts.getdataListParm).then(response => {
-        if (response.data.list !== '') {
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        }
-        if (response.data.list !== null) {
-          this.$nextTick(() => {
-            const ExcelDatas = [
-              {
-                tHeader: ['备件编号', '备件名称', '备件规格', '备件品牌', '计量单位', '计划量', '单价', '使用周期', '合同差异项', '备注'],
-                filterVal: ['partCode', 'partName', 'specification', 'brand', 'unit', 'planAmount', 'price','lifeCycle','contractVarianceItem', 'remark'],
-                tableDatas: response.data.list,
-                sheetName: '合同管理-备件明细'
-              }
-            ]
-            json2excel(ExcelDatas, '合同管理-备件明细', true, 'xlsx')
-          })
-        }
-      })
-    },
-
-    // 变更记录
-    handleTab1ChangeRecord(row) {
-      console.log('变更记录')
-      this.tab1.detailsSpareParts.detailsList = Object.assign({}, row)
-      this.contractCodese = row.contractCode
-      this.isContractManagement = false
-      this.isChangeRecord = true
-      this.tab1.changeRecord.getdataListParm.parammaps.pastureId = row.pastureId
-      this.tab1.changeRecord.getdataListParm.parammaps.providerId = row.providerId
-      this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = row.stopTime
-      this.tab1.changeRecord.getdataListParm.parammaps.flag = row.flag
-      this.tab1.changeRecord.getdataListParm.parammaps.isZeroStock = row.isZeroStock
-      this.tab1.changeRecord.getdataListParm.parammaps.statue = row.statue
-      this.tab1.changeRecord.getdataListParm.parammaps.contractCode = ''
-      this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 = ''
-      this.tab1.changeRecord.getdataListParm.parammaps.startTime = ''
-      this.tab1.changeRecord.getdataListParm.parammaps.stopTime = ''
-      this.tab1.changeRecord.getdataListParm.parammaps.SHtype = ''
-      this.tab1.changeRecord.getdataListParm.parammaps.stuteSH = ''
-      this.getTab1List3()
-    },
-    handleTab1goBack2() {
-      // this.reload()
-      this.isContractManagement = true
-      this.isChangeRecord = false
-      this.tab1.changeRecord.total = 0
-      // this.tab1.contractManagement.getdataListParm.offset = 1
-      this.getTab1List()
-    },
-    getTab1List3() {
-      this.tab1.changeRecord.listLoading = true
-      if (this.$refs['tab1InputDatetime3'] !== undefined && this.$refs['tab1InputDatetime3'].value !== null) {
-        this.tab1.changeRecord.getdataListParm.parammaps.startTime = this.$refs['tab1InputDatetime3'].value[0]
-        this.tab1.changeRecord.getdataListParm.parammaps.stopTime = this.$refs['tab1InputDatetime3'].value[1]
-      } else {
-        this.tab1.changeRecord.getdataListParm.parammaps.startTime = ''
-        this.tab1.changeRecord.getdataListParm.parammaps.stopTime = ''
-      }
-      GetDataByName(this.tab1.changeRecord.getdataListParm).then(response => {
-        this.tab1.changeRecord.list = response.data.list
-        this.tab1.changeRecord.pageNum = response.data.pageNum
-        this.tab1.changeRecord.pageSize = response.data.pageSize
-        if (response.data.list !== null) {
-          this.tab1.changeRecord.total = response.data.total
-        } else {
-          this.tab1.changeRecord.total = 0
-        }
-        setTimeout(() => {
-          this.tab1.changeRecord.listLoading = false
-        }, 300)
-      })
-    },
-    handleTab1Filter3() {
-      this.tab1.changeRecord.listLoading = true
-      if (this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 == null) {
-        this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 = ''
-      }
-      this.tab1.changeRecord.getdataListParm.offset = 1
-      if (this.tab1.changeRecord.radioAll == '全部') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 2
-        this.getTab1List3()
-      } else if (this.tab1.changeRecord.radioAll == '待处理') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 0
-        this.getTab1List3()
-      } else if (this.tab1.changeRecord.radioAll == '已处理') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 1
-        this.getTab1List3()
-      }
-    },
-    changeChangeRecordAll() {
-      if (this.tab1.changeRecord.radioAll == '全部') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 2
-        this.getTab1List3()
-      } else if (this.tab1.changeRecord.radioAll == '待处理') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 0
-        this.getTab1List3()
-      } else if (this.tab1.changeRecord.radioAll == '已处理') {
-        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 1
-        this.getTab1List3()
-      }
-    },
-    handleTab1See3(row) {
-      console.log('变更记录-查看')
-      this.tab1.changeRecord.see.temp = Object.assign({}, row)
-      this.dialogStatus = 'tab1See2'
-      this.tab1.changeRecord.see.dialogFormVisible = true
-      if (row.SHtype == 0 || row.SHtype == 1 || row.SHtype == 2) {
-        this.tab1.changeRecord.see.getdataListParm.parammaps.id = row.id
-        this.getTab1List3See()
-      }
-      var reason = '未通过原因:' + this.tab1.changeRecord.see.temp.workflowNote
-      if (this.tab1.changeRecord.see.temp.SHStatus == 2) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核' }, { title: '设备中心审核' }]
-        this.tab1.changeRecord.see.active = 1
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 3) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.changeRecord.see.active = 2
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 4) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson, status: 'error', reason: reason }, { title: '设备中心审核' }]
-        this.tab1.changeRecord.see.active = 2
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 5) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.changeRecord.see.active = 2
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 6) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
-        this.tab1.changeRecord.see.active = 3
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 7) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.changeRecord.see.temp.CGChargedate, name: this.tab1.changeRecord.see.temp.CGChargePerson }]
-        this.tab1.changeRecord.see.active = 4
-      } else if (this.tab1.changeRecord.see.temp.SHStatus == 8) {
-        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.changeRecord.see.temp.CGChargedate, name: this.tab1.changeRecord.see.temp.CGChargePerson, status: 'error', reason: reason }]
-        this.tab1.changeRecord.see.active = 4
-      }
-    },
-    getTab1List3See() {
-      GetDataByName(this.tab1.changeRecord.see.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          this.tab1.changeRecord.see.pageNum = response.data.pageNum
-          this.tab1.changeRecord.see.pageSize = response.data.pageSize
-          if (response.data.total) {
-            this.tab1.changeRecord.see.total = response.data.total
-          }
-          for (let i = 0; i < response.data.list.length; i++) {
-            response.data.list[i].myid = new Date().getTime() + i
-            if (response.data.list[i].srcpath !== null && response.data.list[i].picpath !== null && response.data.list[i].srcpath !== undefined && response.data.list[i].picpath !== undefined) {
-              const srcpath = process.env.VUE_APP_BASE_API + response.data.list[i].srcpath
-              const picpath = process.env.VUE_APP_BASE_API + response.data.list[i].picpath
-              response.data.list[i].srcpath = srcpath
-              response.data.list[i].picpath = picpath
-            } else {
-              response.data.list[i].srcpath = ''
-              response.data.list[i].picpath = ''
-            }
-          }
-          this.tab1.changeRecord.see.list = response.data.list
-          this.tab1.detailsSpareParts.listAdd = response.data.list
-        } else {
-          this.tab1.changeRecord.see.list = []
-          this.tab1.detailsSpareParts.listAdd = []
-        }
-        setTimeout(() => {
-          this.tab1.changeRecord.see.listLoading = false
-        }, 300)
-      })
-    },
-    handleTab1Update3(row) {
-      console.log('变更记录-编辑', row)
-      this.tab1.detailsSpareParts.updateList = Object.assign({}, row)
-      this.tab1.detailsSpareParts.create.temp = Object.assign({}, row)
-      this.dialogStatus = 'tab1Update2'
-      this.tab1.detailsSpareParts.create.dialogFormVisible = true
-      this.tab1.changeRecord.see.getdataListParm.parammaps.id = row.id
-      this.getTab1List3See()
-      if (row.SHtype == 1) {
-        this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigALLParts'
-        this.tab1.detailsSpareParts.requestSparePart.parammaps = {}
-      } else {
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId = this.tab1.detailsSpareParts.detailsList.pastureId
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId = this.tab1.detailsSpareParts.detailsList.providerId
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime = this.tab1.detailsSpareParts.detailsList.stopTime
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.flag = this.tab1.detailsSpareParts.detailsList.flag
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock = this.tab1.detailsSpareParts.detailsList.isZeroStock
-        this.tab1.detailsSpareParts.requestSparePart.parammaps.statue = this.tab1.detailsSpareParts.detailsList.statue
-        this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigParts'
-      }
-    },
-    edit_dialog_save2() {
-      console.log('编辑保存')
-      // 新增合同 || 变更日期
-      if (this.tab1.detailsSpareParts.updateList.SHtype == 0 || this.tab1.detailsSpareParts.updateList.SHtype == 3) {
-        this.postDataPramas = {}
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'updateBigcontractV2', 'type': 'e', 'parammaps': {
-          id: this.tab1.detailsSpareParts.create.temp.id,
-          startTime: this.tab1.detailsSpareParts.create.temp.startTime,
-          stopTime: this.tab1.detailsSpareParts.create.temp.stopTime,
-          isZeroStock: this.tab1.detailsSpareParts.create.temp.isZeroStock,
-          remark: this.tab1.detailsSpareParts.create.temp.remark,
-          stopTimeHis: this.tab1.detailsSpareParts.create.temp.stopTimeHis
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          console.log('新增保存发送参数', this.postDataPramas)
-          if (response.msg == 'fail') {
-            this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-          } else {
-            if (this.tab1.detailsSpareParts.updateList.SHtype == 0) {
-              this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.detailsSpareParts.create.temp.stopTime
-            }
-            this.getTab1List3()
-            this.getPendingList()
-            this.tab1.detailsSpareParts.create.dialogFormVisible = false
-            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-          }
-        })
-      } else {
-        if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
-          for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
-            if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand == '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
-              console.log(this.tab1.detailsSpareParts.listAdd[i])
-              this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
-              return false
-            } else {
-              var rulesPlanAmount = /^[1-9]\d*$/
-              if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
-                this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
-                return false
-              } else {
-                var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
-                if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
-                  this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
-                  return false
-                }
-              }
-            }
-          }
-          this.postDataPramas = {}
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          this.postDataPramas.data[0] = { 'name': 'deleteContract', 'type': 'e', 'parammaps': {
-            bigId: this.tab1.detailsSpareParts.updateList.id
-          }}
-          this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
-          this.postDataPramas.data[1].children = []
-
-          if (this.tab1.detailsSpareParts.updateList.SHtype == 2) {
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
-              bigId: this.tab1.detailsSpareParts.updateList.id,
-              pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-              pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
-              partId: '@insertSpotList.id',
-              partName: '@insertSpotList.partName',
-              partCode: '@insertSpotList.partCode',
-              specification: '@insertSpotList.specification',
-              price: '@insertSpotList.price',
-              brandId: '@insertSpotList.brandId',
-              brand: '@insertSpotList.brand',
-              planAmount: '@insertSpotList.planAmount',
-              remark: '@insertSpotList.remark',
-              unit: '@insertSpotList.unit',
-              contractId: '@insertSpotList.contractId',
-              taxcode: '@insertSpotList.taxcode',
-              lifeCycle: '@insertSpotList.lifeCycle',
-              contractVarianceItem: '@insertSpotList.contractVarianceItem',
-            }}
-          } else {
-            this.postDataPramas.data[1].children[0] = { 'name': 'checkcontracPartCode', 'type': 'v', 'parammaps': { pastureId: this.tab1.detailsSpareParts.detailsList.pastureId, providerId: this.tab1.detailsSpareParts.detailsList.providerId, stopTime: this.tab1.detailsSpareParts.detailsList.stopTime, flag: this.tab1.detailsSpareParts.detailsList.flag, isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock, statue: this.tab1.detailsSpareParts.detailsList.statue, partCode: '@insertSpotList.partCode', brandId: '@insertSpotList.brandId' }}
-            this.postDataPramas.data[1].children[1] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
-              bigId: this.tab1.detailsSpareParts.updateList.id,
-              pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
-              pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
-              partId: '@insertSpotList.id',
-              partName: '@insertSpotList.partName',
-              partCode: '@insertSpotList.partCode',
-              specification: '@insertSpotList.specification',
-              price: '@insertSpotList.price',
-              brandId: '@insertSpotList.brandId',
-              brand: '@insertSpotList.brand',
-              planAmount: '@insertSpotList.planAmount',
-              remark: '@insertSpotList.remark',
-              unit: '@insertSpotList.unit',
-              contractId: '@insertSpotList.contractId',
-              lifeCycle: '@insertSpotList.lifeCycle',
-              contractVarianceItem: '@insertSpotList.contractVarianceItem',
-              // taxcode: '@insertSpotList.taxcode'
-            }}
-          }
-          this.postDataPramas.data[2] = { 'name': 'updateBigcontract', 'type': 'e', 'parammaps': {
-            id: this.tab1.detailsSpareParts.updateList.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.getTab1List3()
-              this.getPendingList()
-              this.tab1.detailsSpareParts.create.dialogFormVisible = false
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-            }
-          })
-        } else {
-          this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
-          return false
-        }
-      }
-    },
-    changeExamineStatue(val) {
-      if (val == 2) {
-        this.tab1.changeRecord.examine.isReason = true
-      } else {
-        this.tab1.changeRecord.examine.isReason = false
-      }
-    },
-    // 审核1
-    handleTab1Examine(row) {
-      console.log('变更记录-审核')
-      this.dialogStatus = 'tab1examine'
-      this.tab1.changeRecord.examine.dialogFormVisible = true
-      this.tab1.changeRecord.examine.temp = Object.assign({}, row)
-      this.tab1.changeRecord.examine.isReason = false
-      if (row == undefined) {
-        this.tab1.changeRecord.examine.temp = this.tab1.changeRecord.see.temp
-        this.$set(this.tab1.changeRecord.see.temp, 'statueSH', 1)
-        this.$set(this.tab1.changeRecord.see.temp, 'workflowNote', '')
-      } else {
-        this.tab1.changeRecord.examine.temp = Object.assign({}, row)
-        this.$set(this.tab1.changeRecord.examine.temp, 'statueSH', 1)
-        this.$set(this.tab1.changeRecord.examine.temp, 'workflowNote', '')
-      }
-      this.keyupSubmit()
-    },
-    keyupSubmit() {
-      if (this.dialogStatus == 'tab1examine' || this.dialogStatus == 'tab1examine2' || this.dialogStatus == 'tab1examine3') {
-        document.onkeydown = e => {
-          const _key = window.event.keyCode
-          if (_key === 13) {
-            if (this.dialogStatus == 'tab1examine') {
-              this.createExamineData()
-            } else {
-              this.createExamineData3()
-            }
-          }
-        }
-      }
-    },
-    createExamineData() {
-      console.log('点击了设备主管审核确认1')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas = {}
-          this.postDataPramas.name = 'contractCharge'
-          this.postDataPramas.parammaps = {}
-          this.postDataPramas.parammaps.id = this.tab1.changeRecord.examine.temp.id
-          if (this.tab1.changeRecord.examine.temp.statueSH === 1) {
-            this.postDataPramas.parammaps.statue = 5
-          } else {
-            this.postDataPramas.parammaps.statue = 4
-          }
-          this.postDataPramas.parammaps.empId	 = Cookies.get('employeid')
-          this.postDataPramas.parammaps.workflowNote = this.tab1.changeRecord.examine.temp.workflowNote
-          PostDataByName(this.postDataPramas).then(response => {
-            console.log('设备主管审核确认发送参数', this.postDataPramas)
-            if (response.msg !== 'fail') {
-              this.tab1.changeRecord.examine.dialogFormVisible = false
-              this.tab1.changeRecord.see.dialogFormVisible = false
-              this.tab1.changeRecord.isStatueReason = false
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              this.getTab1List3()
-              this.getTab1List()
-              this.getPendingList()
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 审核2
-    handleTab1Examine3(row) {
-      console.log(' 变更记录-审核3')
-      if (row == undefined) {
-        this.tab1.changeRecord.examine.temp = this.tab1.changeRecord.see.temp
-        this.$set(this.tab1.changeRecord.see.temp, 'statueSH', 1)
-        this.$set(this.tab1.changeRecord.see.temp, 'workflowNote', '')
-      } else {
-        this.tab1.changeRecord.examine.temp = Object.assign({}, row)
-        this.$set(this.tab1.changeRecord.examine.temp, 'statueSH', 1)
-        this.$set(this.tab1.changeRecord.examine.temp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'tab1examine3'
-      this.tab1.changeRecord.examine.dialogFormVisible = true
-      this.tab1.changeRecord.examine.isReason = false
-      this.keyupSubmit()
-    },
-    createExamineData3() {
-      console.log('点击了设备中心审核确认3')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.postDataPramas = {}
-          this.postDataPramas.common = { 'returnmap': '0' }
-          this.postDataPramas.data = []
-          if (this.tab1.changeRecord.examine.temp.statueSH == 1) {
-            this.postDataPramas.data[0] = { 'name': 'contractCharge1', 'type': 'e', 'parammaps': {
-              statue: 7,
-              empId: Cookies.get('employeid'),
-              workflowNote: this.tab1.changeRecord.examine.temp.workflowNote,
-              id: this.tab1.changeRecord.examine.temp.id
-            }}
-            if (this.tab1.changeRecord.examine.temp.SHtype == 1 || this.tab1.changeRecord.examine.temp.SHtype == 2) {
-              this.postDataPramas.data[1] = { 'name': 'updateContractEnable', 'type': 'e', 'parammaps': {
-                id: this.tab1.changeRecord.examine.temp.id
-              }}
-            } else if (this.tab1.changeRecord.examine.temp.SHtype == 3) {
-              this.postDataPramas.data[1] = { 'name': 'updatecontractdate', 'type': 'e', 'parammaps': {
-                pastureId: this.tab1.changeRecord.examine.temp.pastureId,
-                providerId: this.tab1.changeRecord.examine.temp.providerId,
-                stopTimeHis: this.tab1.changeRecord.examine.temp.stopTimeHis,
-                flag: this.tab1.changeRecord.examine.temp.flag,
-                isZeroStock: this.tab1.changeRecord.examine.temp.isZeroStock,
-                statue: this.tab1.changeRecord.examine.temp.statue,
-                startTime: this.tab1.changeRecord.examine.temp.startTime,
-                stopTime: this.tab1.changeRecord.examine.temp.stopTime,
-                id: this.tab1.changeRecord.examine.temp.id
-              }}
-            }
-            this.postDataPramas.data[2] = {
-                  "name": "updateBigcontractIsToSap",
-                              "type": "e",
-                              "parammaps": {
-                                  "contractCode": this.contractCodese
-                              }
-            }
-
-
-          } else {
-            this.postDataPramas.data[0] = { 'name': 'contractCharge1', 'type': 'e', 'parammaps': {
-              statue: 8,
-              empId: Cookies.get('employeid'),
-              workflowNote: this.tab1.changeRecord.examine.temp.workflowNote,
-              id: this.tab1.changeRecord.examine.temp.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 {
-              if (this.postDataPramas.data[0].parammaps.statue == 7) {
-                if (this.tab1.changeRecord.examine.temp.SHtype == 3) {
-                  this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.changeRecord.examine.temp.stopTimeHis
-                } else {
-                  this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.changeRecord.examine.temp.stopTime
-                }
-              } else {
-                this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.detailsSpareParts.detailsList.stopTime
-              }
-              this.tab1.changeRecord.examine.dialogFormVisible = false
-              this.tab1.changeRecord.see.dialogFormVisible = false
-              this.tab1.changeRecord.examine.isStatueReason = false
-              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              this.getTab1List3()
-              this.getTab1List()
-              this.getPendingList()
-            }
-          })
-        }
-      })
-    },
-    handleTab1Delete3(row) {
-      console.log('变更记录-删除')
-      console.log('点击了删除')
-      MessageBox.confirm('确认删除此条信息?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.postDataPramas = {}
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'deleteBigContract', 'type': 'e', 'parammaps': {
-          id: row.id
-        }}
-        this.postDataPramas.data[1] = { 'name': 'deleteContract', 'type': 'e', 'parammaps': {
-          bigId: row.id
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
-          this.getTab1List3()
-          this.getPendingList()
-        })
-      }).catch(() => {
-        this.$message({ type: 'info', message: '已取消删除' })
-      })
-    },
-
-    // 合同明细
-    getTab2List() {
-      this.tab2.listLoading = true
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.tab2.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
-        this.tab2.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
-      } else {
-        this.tab2.getdataListParm.parammaps.startTime = ''
-        this.tab2.getdataListParm.parammaps.stopTime = ''
-      }
-      GetDataByName(this.tab2.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          this.tab2.list = response.data.list
-          this.tab2.pageNum = response.data.pageNum
-          this.tab2.pageSize = response.data.pageSize
-          if (response.data.total) {
-            this.tab2.total = response.data.total
-          }
-        } else {
-          this.tab2.list = []
-        }
-        setTimeout(() => {
-          this.tab2.listLoading = false
-        }, 300)
-      })
-    },
-    handleTab2Filter() {
-      this.listLoading2 = true
-      if (this.tab2.getdataListParm.parammaps.inputDatetime === null) {
-        this.tab2.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.tab2.getdataListParm.offset = 1
-      this.getTab2List()
-    },
-    handleTab2Export() {
-      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)
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.tab2.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
-        this.tab2.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
-      } else {
-        this.tab2.getdataListParm.parammaps.startTime = ''
-        this.tab2.getdataListParm.parammaps.stopTime = ''
-      }
-      this.tab2.getdataListParm.pagecount = ''
-      GetDataByName(this.tab2.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          for (let i = 0; i < response.data.list.length; i++) {
-            if (response.data.list[i].isZeroStock == 0) {
-              response.data.list[i].isZeroStock = '否'
-            } else {
-              response.data.list[i].isZeroStock = '是'
-            }
-          }
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        } else {
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        }
-        this.tab2.getdataListParm.pagecount = 10
-        this.$nextTick(() => {
-          const ExcelDatas = [
-            {
-              tHeader: ['牧场', '合同编号', '合同状态', '供应商', '合同开始日期', '合同截止日期', '零库存', '备件编号', '备件名称', '规格', '备件品牌', '计量单位', '计划量', '单价', '备注', '录入人', '录入日期'],
-              filterVal: ['pastureName', 'contractCode', 'statue', 'providerName', 'startTime', 'stopTime', 'isZeroStock', 'partCode', 'partName', 'specification', 'brand', 'unit', 'planAmount', 'price', 'remark', 'creatorMan', 'creatorTime'],
-              tableDatas: response.data.list,
-              sheetName: '合同明细'
-            }
-          ]
-          json2excel(ExcelDatas, '合同明细', true, 'xlsx')
-        })
-      })
-    },
-    sapUpload(){
-      if(this.selectList.length == 0){
-        this.$notify({ title: '失败', message: '请勾选数据!'  , type: 'error', duration: 2000 })
-        return false
-      }
-      let url = 'authdata/contract/push'
-      let ids = []
-      this.selectList.forEach((i)=>{
-        ids.push(i.id)
-        console.log(i,'===')
-      })
-      let data = {
-        pastureId:parseInt(Cookies.get('pastureid')),
-        providerId:this.tab1.detailsSpareParts.detailsList.providerId,
-        contractIdList:ids
-      }
-      postJson(url,data).then(response => {
-        if (response.msg !== 'fail') {
-          this.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
-        } else {
-          this.$notify({ title: '上传失败', message: response.data, type: 'warning', duration: 2000 })
-        }
-      })
-    }
-  }
-}
-</script>
-<style lang="scss" scoped>
-  /deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-  .el-notification__content {
-    white-space: pre-line !important;
-  }
-</style>
-<style lang="scss">
-  .el-notification__content {
-      white-space: pre-line !important;
-    }
-</style>
+<template>
+  <div class="app-container">
+    <div v-if="isPercentage" class="percentage" style="width: 210px;height: 90px;background: #fff;position: fixed;bottom: 0;left: 0;z-index: 9999999999999;">
+      <h4 style="padding-left: 10px;line-height: 0;">导出进度:</h4>
+      <el-progress style="padding-left: 10px;" :text-inside="true" :stroke-width="26" :percentage="percentage" />
+    </div>
+    <el-tabs v-model="activeName" @tab-click="handleClick">
+      <el-tab-pane label="合同管理" name="first">
+        <div v-if="isContractManagement" class="contractManagement">
+          <div class="filter-container">
+            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.pastureName" placeholder="牧场" style="width:120px" class="filter-item">
+              <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
+            </el-select>
+            <el-input v-model="tab1.contractManagement.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 140px;" class="filter-item" />
+            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.statue" clearable placeholder="合同状态" class="filter-item" style="width: 120px;">
+              <el-option v-for="item in contractStatusList" :key="item.id" :label="item.name" :value="item.name" />
+            </el-select>
+            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.providerName" filterable clearable style="width: 140px;" placeholder="供应商" class="filter-item">
+              <el-option v-for="item in findAllProvider" :key="item.id" :label="item.name" :value="item.name" />
+            </el-select>
+            <el-select v-model="tab1.contractManagement.getdataListParm.parammaps.isZeroStock" clearable placeholder="是否零库存" class="filter-item" style="width: 120px;">
+              <el-option v-for="item in isZeroInventoryList" :key="item.id" :label="item.name" :value="item.id" />
+            </el-select>
+            <el-date-picker ref="tab1InputDatetime1" v-model="tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1" 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-date-picker ref="tab1InputDatetime2" v-model="tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2" 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="handleTab1Filter">搜索</el-button>
+            <div>
+              <el-button v-if="tab1.contractManagement.isContractAdd" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab1Create">新增</el-button>
+              <el-radio-group v-model="tab1.contractManagement.radioAll" style="margin-top:-9px" @change="changeContractManagementAll()">
+                <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="tab1.contractManagement.tableKey"
+            v-loading="tab1.contractManagement.listLoading"
+            element-loading-text="给我一点时间"
+            :data="tab1.contractManagement.list"
+            border
+            fit
+            highlight-current-row
+            style="width: 100%;"
+            :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">
+                <span>{{ scope.$index + (tab1.contractManagement.pageNum-1) * tab1.contractManagement.pageSize + 1 }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
+            <el-table-column label="合同编号" min-width="120px" align="center" prop="contractCode" />
+            <el-table-column label="合同状态" min-width="110px" align="center" prop="statued" />
+            <el-table-column label="供应商" min-width="120px" align="center" prop="providerName" />
+            <el-table-column label="合同开始日期" sortable min-width="120px" align="center" prop="startTime" />
+            <el-table-column label="合同截止日期" sortable min-width="120px" align="center" prop="stopTime" />
+            <el-table-column label="零库存" min-width="110px" align="center">
+              <template slot-scope="scope">
+                <span v-if="scope.row.isZeroStock == 0">否</span>
+                <span v-if="scope.row.isZeroStock == 1">是</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="录入人" min-width="120px" align="center" prop="creatorMan" />
+            <el-table-column label="录入时间" sortable min-width="120px" align="center" prop="creatorTime" />
+            <el-table-column label="审批时间" sortable min-width="120px" align="center" prop="SHdateTime" />
+            <el-table-column label="操作" align="center" width="350px" class-name="small-padding fixed-width" fixed="right">
+              <template slot-scope="{row}">
+                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
+                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" style="width:70px;" size="mini" @click="handleTab1DetailsSpareParts(row)">备件明细</el-button>
+                <el-button v-if="tab1.contractManagement.isContractSee" type="primary" style="width:70px;" size="mini" @click="handleTab1ChangeRecord(row)">变更记录</el-button>
+                <el-button v-if="tab1.contractManagement.isContractChange && (row.statued == '正常' || row.statued == '已过期')" :disabled="parseInt(row.pastureId) == 18 && parseInt(isGroupAdministrator) !== 18" type="warning" size="mini" @click="handleTab1Change(row)">变更</el-button>
+              </template>
+              <!-- //parseInt(row.pastureId) == 18 && parseInt(isGroupAdministrator) == 18 -->
+            </el-table-column>
+          </el-table>
+          <pagination v-show="tab1.contractManagement.total>0" :total="tab1.contractManagement.total" :page.sync="tab1.contractManagement.getdataListParm.offset" :limit.sync="tab1.contractManagement.getdataListParm.pagecount" @pagination="getTab1List" />
+        </div>
+        <div v-if="isDetailsSpareParts" class="DetailsSpareParts">
+          <div class="title" style="height: 30px;">
+            <b style="font-size: 20px;float: left;">备件明细</b>
+            <a style="float: right;font-weight: 600;font-size: 20px;" @click="handleTab1goBack()">&lt;返回</a>
+          </div>
+          <div class="filter-container">
+            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.partCode" placeholder="备件编号" style="width: 140px;" class="filter-item" />
+            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.partName" placeholder="备件名称" style="width: 140px;" class="filter-item" />
+            <el-input v-model="tab1.detailsSpareParts.getdataListParm.parammaps.specification" placeholder="备件规格" style="width: 140px;" class="filter-item" />
+            <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleTab1Filter2">搜索</el-button>
+            <!-- <el-button v-waves class="filter-item" type="success" icon="el-icon-edit" @click="change_enabled">启用</el-button> -->
+            <el-button v-if="isContractJinyong"  v-waves class="filter-item" type="danger" icon="el-icon-edit" @click="change_no">禁用</el-button>
+          </div>
+          <div class="filter-container">
+            <el-button v-if="tab1.contractManagement.isContractAdd && parseInt(tab1.detailsSpareParts.detailsList.pastureId) == parseInt(isGroupAdministrator) || parseInt(isEmployeid) == 0" class="filter-item" type="primary" icon="el-icon-edit" :disabled="tab1.detailsSpareParts.detailsList.statued=='终止' || tab1.detailsSpareParts.detailsList.statued=='已过期' || tab1.detailsSpareParts.detailsList.statued=='新增未通过'" @click="handleTab1Create2">新增</el-button>
+            <el-button v-if="tab1.contractManagement.isContractChange && parseInt(tab1.detailsSpareParts.detailsList.pastureId) == parseInt(isGroupAdministrator) || parseInt(isEmployeid) == 0" class="filter-item" type="primary" icon="el-icon-edit" :disabled="tab1.detailsSpareParts.detailsList.statued=='终止' || tab1.detailsSpareParts.detailsList.statued=='已过期' || tab1.detailsSpareParts.detailsList.statued=='新增未通过'" @click="handleTab1Change2">变更</el-button>
+            <el-button v-if="tab1.contractManagement.isContractExport" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab1Export2">导出</el-button>
+            <el-button v-if="tab1.contractManagement.isContractUplaod" class="filter-item" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
+          </div>
+          <el-table
+            :key="tab1.detailsSpareParts.tableKey"
+            v-loading="tab1.detailsSpareParts.listLoading"
+            element-loading-text="给我一点时间"
+            :data="tab1.detailsSpareParts.list"
+            border
+            fit
+            highlight-current-row
+            style="width: 100%;"
+            :row-style="rowStyle"
+            :cell-style="cellStyle"
+            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">
+              <template slot-scope="scope">
+                <span>{{ scope.$index + (tab1.detailsSpareParts.pageNum-1) * tab1.detailsSpareParts.pageSize + 1 }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="备件编号" min-width="120px" align="center" prop="partCode" />
+            <el-table-column label="备件名称" min-width="120px" align="center" prop="partName" />
+            <el-table-column label="备件规格" min-width="120px" align="center" prop="specification" />
+            <el-table-column label="备件图片" prop="specifications" align="center" min-width="110px">
+              <template slot-scope="scope">
+                <el-popover placement="right" title="" trigger="hover">
+                  <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
+                  <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
+                </el-popover>
+              </template>
+            </el-table-column>
+            <el-table-column label="备件品牌" min-width="120px" align="center" prop="brand" />
+            <el-table-column label="计量单位" min-width="120px" align="center" prop="unit" />
+            <el-table-column label="计划量" sortable min-width="120px" align="center" prop="planAmount" />
+            <el-table-column label="单价" sortable min-width="120px" align="center" prop="price" />
+            <el-table-column label="使用周期" min-width="120px" align="center" prop="lifeCycle" />
+            <el-table-column label="合同差异项" min-width="120px" align="center" prop="contractVarianceItem" />
+            <el-table-column label="备注" sortable min-width="120px" align="center" prop="remark" />
+          </el-table>
+          <pagination v-show="tab1.detailsSpareParts.total>0" :total="tab1.detailsSpareParts.total" :page.sync="tab1.detailsSpareParts.getdataListParm.offset" :limit.sync="tab1.detailsSpareParts.getdataListParm.pagecount" @pagination="getTab1List2" />
+        </div>
+
+        <div v-if="isChangeRecord" class="ChangeRecord">
+          <div class="title" style="height: 30px;">
+            <b style="font-size: 20px;float: left;">变更记录</b>
+            <a style="float: right;font-weight: 600;font-size: 20px;" @click="handleTab1goBack2()">&lt;返回</a>
+          </div>
+          <div class="filter-container">
+            <el-input v-model="tab1.changeRecord.getdataListParm.parammaps.contractCode" placeholder="流水编号" style="width: 140px;" class="filter-item" />
+            <el-select v-model="tab1.changeRecord.getdataListParm.parammaps.SHtype" clearable placeholder="变更类型" class="filter-item" style="width: 120px;">
+              <el-option v-for="item in changeTypeList" :key="item.id" :label="item.name" :value="item.id" />
+            </el-select>
+            <el-select v-model="tab1.changeRecord.getdataListParm.parammaps.stuteSH" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
+              <el-option v-for="item in auditStatusList" :key="item.id" :label="item.name" :value="item.id" />
+            </el-select>
+            <el-date-picker ref="tab1InputDatetime3" v-model="tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3" 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="handleTab1Filter3">搜索</el-button>
+          </div>
+          <div class="filter-container">
+            <el-radio-group v-model="tab1.changeRecord.radioAll" style="margin-top:-9px" @change="changeChangeRecordAll()">
+              <el-radio-button label="全部" />
+              <el-radio-button label="待处理" />
+              <el-radio-button label="已处理" />
+            </el-radio-group>
+          </div>
+          <el-table
+            :key="tab1.changeRecord.tableKey"
+            v-loading="tab1.changeRecord.listLoading"
+            element-loading-text="给我一点时间"
+            :data="tab1.changeRecord.list"
+            border
+            fit
+            highlight-current-row
+            style="width: 100%;"
+            :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">
+                <span>{{ scope.$index + (tab1.changeRecord.pageNum-1) * tab1.changeRecord.pageSize + 1 }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="流水编号" min-width="120px" align="center" prop="contractCode" />
+            <el-table-column label="变更类型" min-width="110px" align="center">
+              <template slot-scope="scope">
+                <span v-if="scope.row.SHtype == 0">新增合同</span>
+                <span v-if="scope.row.SHtype == 1">新增备件</span>
+                <span v-if="scope.row.SHtype == 2">变更备件</span>
+                <span v-if="scope.row.SHtype == 3">合同变更</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="录入人" min-width="120px" align="center" prop="creatorMan" />
+            <el-table-column label="录入时间" sortable min-width="120px" align="center" prop="creatorTime" />
+            <el-table-column label="审核状态" min-width="110px" align="center">
+              <template slot-scope="scope">
+                <span v-if="scope.row.SHStatus == 2 || scope.row.SHStatus == 3 || scope.row.SHStatus == 5">审核中</span>
+                <span v-if="scope.row.SHStatus == 4 || scope.row.SHStatus == 6 || scope.row.SHStatus == 8">未通过</span>
+                <span v-if="scope.row.SHStatus == 7">通过</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="操作" align="center" width="350px" class-name="small-padding fixed-width" fixed="right">
+              <template slot-scope="{row}">
+                <el-button type="primary" size="mini" @click="handleTab1See3(row)">查看</el-button>
+                <el-button v-if="tab1.changeRecord.isContractDelete && (row.SHStatus == 4 || row.SHStatus == 6 || row.SHStatus == 8)" type="success" size="mini" @click="handleTab1Update3(row)">编辑</el-button>
+                <el-button v-if="tab1.changeRecord.isContractExamineZG && row.SHStatus == 2" type="success" style="display:inline-block" size="mini" @click="handleTab1Examine(row)">审核1</el-button>
+                <el-button v-else type="success" style="display:none" size="mini" @click="handleTab1Examine(row)">审核1</el-button>
+                <!-- 设备助理审核 -->
+                <!-- <el-button v-if="tab1.changeRecord.isContractExamineZL && row.SHStatus == 3" type="success" style="display:inline-block" size="mini" @click="handleExamine2(row)">审核2</el-button>
+                <el-button v-else type="success" style="display:none" size="mini" @click="handleExamine2(row)">审核2</el-button> -->
+                <!-- 设备中心审核 -->
+                <el-button v-if="tab1.changeRecord.isContractExamineZX && row.SHStatus == 5" type="success" style="display:inline-block" size="mini" @click="handleTab1Examine3(row)">审核2</el-button>
+                <el-button v-else type="success" style="display:none" size="mini" @click="handleTab1Examine3(row)">审核2</el-button>
+                <el-button v-if="tab1.changeRecord.isContractDelete && (row.SHStatus == 4 || row.SHStatus == 6 || row.SHStatus == 8) " type="danger" size="mini" @click="handleTab1Delete3(row)">删除</el-button>
+                <el-button v-else style="display:none" type="danger" size="mini" @click="handleTab1Delete3(row)">删除</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+          <pagination v-show="tab1.changeRecord.total>0" :total="tab1.changeRecord.total" :page.sync="tab1.changeRecord.getdataListParm.offset" :limit.sync="tab1.changeRecord.getdataListParm.pagecount" @pagination="getTab1List3" />
+        </div>
+      </el-tab-pane>
+      <el-tab-pane label="合同明细" name="second">
+        <div class="filter-container">
+          <el-select v-model="tab2.getdataListParm.parammaps.pastureName" placeholder="牧场" style="width:120px" class="filter-item">
+            <el-option v-for="item in findAllPastureList2" :key="item.id" :label="item.name" :value="item.name" />
+          </el-select>
+          <el-input v-model="tab2.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 140px;" class="filter-item" />
+          <el-select v-model="tab2.getdataListParm.parammaps.statue" clearable placeholder="合同状态" class="filter-item" style="width: 120px;">
+            <el-option v-for="item in contractStatusList" :key="item.id" :label="item.name" :value="item.name" />
+          </el-select>
+          <el-select v-model="tab2.getdataListParm.parammaps.isZeroStock" clearable placeholder="是否零库存" class="filter-item" style="width: 120px;">
+              <el-option v-for="item in isZeroInventoryList" :key="item.id" :label="item.name" :value="item.id" />
+            </el-select>
+          <el-input v-model="tab2.getdataListParm.parammaps.partCode" placeholder="备件编号" style="width: 140px;" class="filter-item" />
+          <el-input v-model="tab2.getdataListParm.parammaps.partName" placeholder="备件名称" style="width: 140px;" class="filter-item" />
+          <el-select v-model="tab2.getdataListParm.parammaps.providerName" filterable clearable style="width: 140px;" placeholder="供应商" class="filter-item">
+            <el-option v-for="item in findAllProvider" :key="item.id" :label="item.name" :value="item.name" />
+          </el-select>
+          <el-date-picker ref="inputDatetime" v-model="tab2.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="handleTab2Filter">搜索</el-button>
+          <el-button v-if="tab1.contractManagement.isContractExport" class="filter-item" type="primary" icon="el-icon-edit" @click="handleTab2Export">导出</el-button>
+        </div>
+        <el-table
+          :key="tab2.tableKey"
+          v-loading="tab2.listLoading"
+          element-loading-text="给我一点时间"
+          :data="tab2.list"
+          border
+          fit
+          highlight-current-row
+          style="width: 100%;"
+          :row-style="rowStyle"
+          :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">
+              <span>{{ scope.$index + (tab2.pageNum-1) * tab2.pageSize + 1 }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="牧场" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.pastureName }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="合同编号" min-width="130px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.contractCode }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="合同状态" min-width="100px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.statue }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="供应商" min-width="120px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.providerName }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="合同开始日期" sortable prop="startTime" min-width="110px" align="center" />
+          <el-table-column label="合同截止日期" sortable prop="stopTime" min-width="110px" align="center" />
+          <el-table-column label="零库存" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <span v-if="scope.row.isZeroStock == 0">否</span>
+              <span v-if="scope.row.isZeroStock == 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.brand }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="计量单位" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.unit }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="计划量" sortable prop="planAmount" min-width="110px" align="center" />
+          <el-table-column label="单价" sortable prop="price" min-width="110px" align="center" />
+          <el-table-column label="备注" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.remark }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="录入人" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.creatorMan }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="录入日期" sortable prop="creatorTime" min-width="110px" align="center" />
+        </el-table>
+        <pagination v-show="tab2.total>0" :total="tab2.total" :page.sync="tab2.getdataListParm.offset" :limit.sync="tab2.getdataListParm.pagecount" @pagination="getTab2List" />
+      </el-tab-pane>
+    </el-tabs>
+    <!-- 合同管理新增/查看/变更 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.contractManagement.create.dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <div class="app-add">
+        <el-form ref="createTemp" :rules="rules" :model="tab1.contractManagement.create.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="合同编号:" prop="contractCode">
+                <el-input ref="contractCode" v-model="tab1.contractManagement.create.temp.contractCode" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="牧场:" prop="pastureId">
+                <el-select v-model="tab1.contractManagement.create.temp.pastureId" placeholder="牧场" class="filter-item" style="width:100%;" :disabled="disabled">
+                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="供应商:" prop="providerName">
+                <el-autocomplete v-model="tab1.contractManagement.create.temp.providerName" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" value-key="name" class="inline-input" :fetch-suggestions="providerSearch" placeholder="请输入供应商名称或供应商编号" style="width:100%;" @focus="handleFocusProvider" @blur="handleBlurProvider" @select="handleSelectProvider" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="开始日期:" prop="startTime">
+                <el-date-picker v-model="tab1.contractManagement.create.temp.startTime" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" type="date" placeholder="开始日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeTime" />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="截止日期:" prop="stopTime">
+                <el-date-picker v-model="tab1.contractManagement.create.temp.stopTime" style="width:100%;" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled" type="date" :clearable="false" placeholder="截止日期" :picker-options="pickerOptions2" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeTime" />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="dialogStatus=='create'" :span="8">
+              <el-form-item label="合同状态:" prop="statue">
+                <el-select v-model="tab1.contractManagement.create.temp.statue" clearable placeholder="合同状态" class="filter-item" style="width: 100%;" disabled>
+                  <el-option v-for="item in contractStatus2List" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col v-if="dialogStatus=='change' || dialogStatus=='see'" :span="8">
+              <el-form-item label="合同状态:" prop="statued">
+                <el-input ref="contractCode" v-model="tab1.contractManagement.create.temp.statued" placeholder="合同状态" disabled />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="零库存:" prop="isZeroStock">
+                <el-radio-group v-model="tab1.contractManagement.create.temp.isZeroStock" :disabled="dialogStatus==='see' || tab1.contractManagement.isDisabled || dialogStatus==='change'" @change="changeIsZero">
+                  <el-radio v-model="tab1.contractManagement.create.temp.isZeroStock" :label="1">是</el-radio>
+                  <el-radio v-model="tab1.contractManagement.create.temp.isZeroStock" :label="0">否</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="录入人:" prop="creatorId">
+                <el-select ref="creatorId" v-model="tab1.contractManagement.create.temp.creatorId" :disabled="tab1.contractManagement.isDisabled || dialogStatus==='see' || dialogStatus==='change'" placeholder="录入人" class="filter-item" style="width:100%;" @change="changeCreatorMan">
+                  <el-option v-for="item in findAllEmploye" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="录入日期:" prop="creatorTime">
+                <el-date-picker v-model="tab1.contractManagement.create.temp.creatorTime" :disabled="disabled" type="date" :picker-options="pickerOptions3" placeholder="录入日期" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="备注:" prop="remark">
+                <el-input ref="remark" v-model="tab1.contractManagement.create.temp.remark" placeholder="备注" :disabled="tab1.contractManagement.isDisabled || dialogStatus==='see' || dialogStatus==='change'" />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="dialogStatus !== 'see'" :span="8">
+              <el-form-item label="同步牧场:" prop="synchronousPasture">
+                <el-select v-model="tab1.contractManagement.create.temp.synchronousPasture" multiple collapse-tags placeholder="同步牧场" :disabled="isGroupAdministrator !== '18'">
+                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
+                  </el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col v-else :span="16">
+              <el-form-item label="同步牧场:" prop="pastureName2">
+                <el-input v-model="tab1.contractManagement.create.temp.pastureName2" type="textarea" :rows="2" placeholder="同步牧场" :disabled="dialogStatus=='see'" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <!-- <el-row v-if="dialogStatus == 'see'">
+            <el-col>
+              <el-form-item label="流程进度1" />
+              <el-steps :active="tab1.contractManagement.create.temp.active" align-center finish-status="success">
+                <el-step
+                  v-for="(item,index) in tab1.contractManagement.create.temp.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>
+                  </template>
+                </el-step>
+              </el-steps>
+            </el-col>
+          </el-row> -->
+        </el-form>
+        <div slot="footer" class="dialog-footer" style="bottom:5px">
+          <el-button v-if="dialogStatus =='change'" type="primary" @click="terminationData()">终止合同</el-button>
+          <el-button v-if="dialogStatus !=='see'" type="primary" :disabled="isokDisable" @click="dialogStatus==='create'?add_dialog_save():changeData()">保存并关闭</el-button>
+          <el-button @click="tab1.contractManagement.create.dialogFormVisible = false;getTab1List();tab1.contractManagement.create.temp.providerName=''">取消并关闭</el-button>
+        </div>
+      </div>
+    </el-dialog>
+
+    <!-- 备件明细新增/变更 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.detailsSpareParts.create.dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <div v-if="tab1.detailsSpareParts.updateList.SHtype !== 0 && tab1.detailsSpareParts.updateList.SHtype !== 3" class="app-add">
+        <el-form ref="createTemp2" :rules="rules" :model="tab1.detailsSpareParts.create.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
+          <el-row>
+            <el-col :span="10">
+              <el-form-item label="备件:" prop="partCode">
+                <el-autocomplete v-model="tab1.detailsSpareParts.partCode" value-key="name1" class="inline-input" :fetch-suggestions="sparePartSearch" placeholder="请输入备件编号或备件名称或备件规格" style="width:550px" @select="handleSelectSparePart">
+                  <template slot-scope="{ item }">
+                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
+                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
+                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
+                  </template>
+                </el-autocomplete>
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+        <div v-if="dialogStatus=='tab1create2'" class="filter-container" style="float: right;">
+          <el-button v-waves class="filter-item" type="info" icon="el-icon-tickets" @click="handleTab1DownloadTemp2">模板</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-waves :disabled="tab1.detailsSpareParts.isDisabledImport" class="filter-item" type="warning" icon="el-icon-download">导入</el-button>
+          </el-upload>
+        </div>
+        <el-table
+          :key="tab1.detailsSpareParts.tableKeyAdd"
+          v-loading="tab1.detailsSpareParts.listLoadingAdd"
+          element-loading-text="给我一点时间"
+          :data="tab1.detailsSpareParts.listAdd"
+          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" />
+          <el-table-column label="备件编号" min-width="90px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.partCode }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="备件名称" min-width="80px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
+            <template slot-scope="scope">
+              <el-popover placement="right" title="" trigger="hover">
+                <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
+                <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
+              </el-popover>
+            </template>
+          </el-table-column>
+          <el-table-column label="备件品牌" min-width="120px" align="center">
+            <template slot-scope="scope">
+              <el-autocomplete v-model="scope.row.brand" value-key="brandName" class="inline-input" :fetch-suggestions="brandSearch" placeholder="请输入品牌" style="width:100%;" @focus="handleFocusBrand( scope.row)" @blur="handleBlurBrand(scope.row)" @select="(value)=> {handleSelectBrand(value, scope.row)}" />
+            </template>
+          </el-table-column>
+          <el-table-column label="计量单位" min-width="60px" align="center">
+            <template slot-scope="scope">
+              <span>{{ scope.row.unit }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="计划量" min-width="70px" align="center" valign="middle">
+            <template slot-scope="scope">
+              <el-form :model="scope.row" :rules="rules">
+                <el-form-item prop="planAmount">
+                  <el-input ref="planAmount" v-model="scope.row.planAmount" style="margin-top:15px" />
+                </el-form-item>
+              </el-form>
+            </template>
+          </el-table-column>
+          <el-table-column label="单价" min-width="80px" align="center" valign="middle">
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.price" />
+            </template>
+          </el-table-column>
+          <el-table-column label="使用周期" min-width="110px" align="center" valign="middle">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.lifeCycle" />
+              </template>
+            </el-table-column>
+            <el-table-column label="合同差异项" min-width="110px" align="center" valign="middle">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.contractVarianceItem" />
+              </template>
+            </el-table-column>
+          <el-table-column label="备注" min-width="110px" align="center">
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.remark" type="textarea" placeholder="备注" autosize maxlength="100" show-word-limit />
+            </template>
+          </el-table-column>
+          <el-table-column label="操作" align="center" width="100px" class-name="small-padding fixed-width" fixed="right">
+            <template slot-scope="{row}">
+              <a class="del" :disabled="isokDisable" @click="partDelete(row)">删除</a>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+      <div v-if="tab1.detailsSpareParts.updateList.SHtype == 0 || tab1.detailsSpareParts.updateList.SHtype == 3" class="app-add">
+        <el-form ref="createTemp2" :rules="rules" :model="tab1.detailsSpareParts.create.temp" label-position="right" label-width="130px" style="width: 90%;margin:0 auto;">
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="牧场:" prop="pastureName">
+                <el-input ref="pastureName" v-model="tab1.detailsSpareParts.create.temp.pastureName" placeholder="牧场" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="合同编号:" prop="contractCode">
+                <el-input ref="contractCode" v-model="tab1.detailsSpareParts.create.temp.contractCode" placeholder="合同编号" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="供应商:" prop="providerName">
+                <el-input ref="providerName" v-model="tab1.detailsSpareParts.create.temp.providerName" placeholder="合同编号" disabled />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="开始日期:" prop="startTime">
+                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.startTime" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3" type="date" placeholder="开始日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="dialogStatus == 'tab1Update2' && tab1.detailsSpareParts.updateList.SHtype == 0" :span="8">
+              <el-form-item label="截止日期:" prop="stopTime">
+                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTime" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="dialogStatus == 'tab1Update2' && tab1.detailsSpareParts.updateList.SHtype !== 0" :span="8">
+              <el-form-item label="截止日期后:" prop="stopTimeHis">
+                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTimeHis" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="pickerOptions2" />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="合同状态:" prop="statued">
+                <span>{{ tab1.detailsSpareParts.create.temp.statued }}</span>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="零库存:" prop="isZeroStock">
+                <el-radio-group v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3">
+                  <el-radio v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :label="1">是</el-radio>
+                  <el-radio v-model="tab1.detailsSpareParts.create.temp.isZeroStock" :label="0">否</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="录入人:" prop="creatorMan">
+                <el-input ref="creatorMan" v-model="tab1.detailsSpareParts.create.temp.creatorMan" placeholder="录入人" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="录入日期:" prop="creatorTime">
+                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.creatorTime" :disabled="tab1.detailsSpareParts.create.temp.SHtype == 3 || dialogStatus=='tab1Update2' " type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="备注:" prop="remark">
+                <el-input ref="remark" v-model="tab1.detailsSpareParts.create.temp.remark" placeholder="备注" />
+              </el-form-item>
+            </el-col>
+            <el-col v-if="tab1.detailsSpareParts.create.temp.SHtype !== 0 && dialogStatus !=='tab1Update2'" :span="8">
+              <el-form-item label="变更后截止日期:" prop="stopTimeHis">
+                <el-date-picker v-model="tab1.detailsSpareParts.create.temp.stopTimeHis" :disabled="tab1.detailsSpareParts.create.temp.SHtype !== 3" type="date" placeholder="截止日期" :clearable="false" style="width:100%;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="pickerOptions2" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom:10px">
+        <el-button v-if="dialogStatus=='tab1create2'" type="primary" :disabled="isokDisable" @click="add_dialog_save2()">保存并关闭</el-button>
+        <el-button v-if="dialogStatus=='tab1change2'" type="primary" :disabled="isokDisable" @click="changeData2()">保存并关闭</el-button>
+        <el-button v-if="dialogStatus=='tab1Update2'" type="primary" :disabled="isokDisable" @click="edit_dialog_save2()">保存并关闭</el-button>
+        <el-button @click="tab1.detailsSpareParts.create.dialogFormVisible = false;">关闭</el-button>
+      </div>
+    </el-dialog>
+
+    <!-- 变更记录查看 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.changeRecord.see.dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <div class="app-see">
+        <div class="app-contentcard">
+          <el-form ref="seeTemp" :rules="rules" :model="tab1.changeRecord.see.temp" label-position="right" label-width="128px" style="width: 90%;margin:0 auto;">
+            <div v-if="tab1.changeRecord.see.temp.SHtype == 0 || tab1.changeRecord.see.temp.SHtype == 3">
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="牧场:" prop="pastureName">
+                    <span> {{ tab1.changeRecord.see.temp.pastureName }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="合同编号:" prop="contractCode">
+                    <span> {{ tab1.changeRecord.see.temp.contractCode }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="供应商:" prop="providerName">
+                    <span> {{ tab1.changeRecord.see.temp.providerName }} </span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="开始日期:" prop="startTime">
+                    <span> {{ tab1.changeRecord.see.temp.startTime }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col v-if="dialogStatus !== 'tab1See2'" :span="8">
+                  <el-form-item label="截止日期:" prop="stopTime">
+                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype !== 3 && tab1.changeRecord.see.temp.SHtype !== 0" :span="8">
+                  <el-form-item label="截止日期:" prop="stopTimeHis">
+                    <span> {{ tab1.changeRecord.see.temp.stopTimeHis }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype == 3" :span="8">
+                  <el-form-item label="截止日期:" prop="stopTime">
+                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col v-if="dialogStatus == 'tab1See2' && tab1.changeRecord.see.temp.SHtype == 0" :span="8">
+                  <el-form-item label="截止日期:" prop="stopTime">
+                    <span> {{ tab1.changeRecord.see.temp.stopTime }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="合同状态:" prop="statued">
+                    <span>{{ tab1.changeRecord.see.temp.statued }}</span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="零库存:" prop="isZeroStock">
+                    <el-radio-group v-model="tab1.changeRecord.see.temp.isZeroStock" disabled>
+                      <el-radio v-model="tab1.changeRecord.see.temp.isZeroStock" :label="1">是</el-radio>
+                      <el-radio v-model="tab1.changeRecord.see.temp.isZeroStock" :label="0">否</el-radio>
+                    </el-radio-group>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="录入人:" prop="creatorMan">
+                    <span> {{ tab1.changeRecord.see.temp.creatorMan }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="录入日期:" prop="creatorTime">
+                    <span> {{ tab1.changeRecord.see.temp.creatorTime }} </span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="备注:" prop="remark">
+                    <span> {{ tab1.changeRecord.see.temp.remark }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="共享牧场:" prop="pastureNamesOld">
+                    <span> {{ tab1.changeRecord.see.temp.pastureNamesOld }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col v-if="tab1.changeRecord.see.temp.SHtype == 3" :span="8">
+                  <el-form-item label="变更后截止日期:" prop="stopTimeHis">
+                    <span> {{ tab1.changeRecord.see.temp.stopTimeHis }} </span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="变更后共享牧场:" prop="pastureNamesNow">
+                    <span> {{ tab1.changeRecord.see.temp.pastureNamesNow }} </span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+            </div>
+            <div v-if="tab1.changeRecord.see.temp.SHtype == 1 || tab1.changeRecord.see.temp.SHtype == 2">
+              <el-row>
+                <el-col :span="8">
+                  <el-form-item label="流水编号:" prop="contractCode">
+                    <span> {{ tab1.changeRecord.see.temp.contractCode }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="录入人:" prop="creatorMan">
+                    <span> {{ tab1.changeRecord.see.temp.creatorMan }} </span>
+                  </el-form-item>
+                </el-col>
+                <el-col :span="8">
+                  <el-form-item label="录入日期:" prop="creatorTime">
+                    <span> {{ tab1.changeRecord.see.temp.creatorTime }} </span>
+                  </el-form-item>
+                </el-col>
+              </el-row>
+            </div>
+          </el-form>
+          <div v-if="tab1.changeRecord.see.temp.SHtype == 1">
+            <el-table
+              :key="tab1.changeRecord.see.tableKey"
+              element-loading-text="给我一点时间"
+              :data="tab1.changeRecord.see.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">
+                <template slot-scope="scope">
+                  <span>{{ scope.$index + (tab1.changeRecord.see.pageNum-1) * tab1.changeRecord.see.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="130px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
+                <template slot-scope="scope">
+                  <el-popover placement="right" title="" trigger="hover">
+                    <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
+                    <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
+                  </el-popover>
+                </template>
+              </el-table-column>
+              <el-table-column label="备件品牌" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.brand }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="计量单位" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.unit }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="计划量" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.planAmount }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="单价" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.price }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="备注" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.remark }}</span>
+                </template>
+              </el-table-column>
+            </el-table>
+            <pagination v-show="tab1.changeRecord.see.total>0" :total="tab1.changeRecord.see.total" :page.sync="tab1.changeRecord.see.getdataListParm.offset" :limit.sync="tab1.changeRecord.see.getdataListParm.pagecount" @pagination="getTab1List3See" />
+          </div>
+          <div v-if="tab1.changeRecord.see.temp.SHtype == 2">
+            <el-table
+              :key="tab1.changeRecord.see.tableKey"
+              element-loading-text="给我一点时间"
+              :data="tab1.changeRecord.see.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">
+                <template slot-scope="scope">
+                  <span>{{ scope.$index + (tab1.changeRecord.see.pageNum-1) * tab1.changeRecord.see.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="130px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.partName }}</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="备件图片" prop="specifications" align="center" min-width="110px">
+                <template slot-scope="scope">
+                  <el-popover placement="right" title="" trigger="hover">
+                    <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
+                    <img v-if="scope.row.picpath !== ''" slot="reference" :src="scope.row.picpath" :alt="scope.row.srcpath" style="height: 100px;width:100px;">
+                  </el-popover>
+                </template>
+              </el-table-column>
+              <el-table-column label="备件品牌" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.brandhis }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="变更后品牌" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.brand }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="计量单位" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.unit }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="计划量" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.planAmounthis }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="变更后计划量" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.planAmount }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="单价" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.pricehis }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="变更后单价" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.price }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="备注" min-width="80px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.remark }}</span>
+                </template>
+              </el-table-column>
+            </el-table>
+            <pagination v-show="tab1.changeRecord.see.total>0" :total="tab1.changeRecord.see.total" :page.sync="tab1.changeRecord.see.getdataListParm.offset" :limit.sync="tab1.changeRecord.see.getdataListParm.pagecount" @pagination="getTab1List3See" />
+          </div>
+          <el-form ref="seeTemp" :rules="rules" :model="tab1.changeRecord.see.temp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
+            <el-row>
+              <el-col>
+                <el-form-item label="流程进度" />
+                <el-steps :active="tab1.changeRecord.see.active" align-center finish-status="success">
+                  <el-step
+                    v-for="(item,index) in tab1.changeRecord.see.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>
+                    </template>
+                  </el-step>
+                </el-steps>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col>
+                <el-form-item label="操作:">
+                  <!-- 设备主管审核 -->
+                  <el-button v-if="tab1.changeRecord.isContractExamineZG &&tab1.changeRecord.see.temp.SHStatus == 2" type="success" style="display:inline-block" @click="handleTab1Examine()">审核1</el-button>
+                  <el-button v-else type="success" style="display:none" @click="handleTab1Examine()">审核1</el-button>
+                  <!-- 设备助理审核 -->
+                  <!-- <el-button v-if="isContractExamineZL && seeTemp.SHStatus == 3" type="success" style="display:inline-block" @click="handleExamine2()">审核2</el-button>
+                  <el-button v-else type="success" style="display:none" @click="handleExamine2()">审核2</el-button> -->
+
+                  <!-- 设备中心审核 -->
+                  <el-button v-if="tab1.changeRecord.isContractExamineZX && tab1.changeRecord.see.temp.SHStatus == 5" type="success" style="display:inline-block" @click="handleTab1Examine3()">审核2</el-button>
+                  <el-button v-else type="success" style="display:none" @click="handleTab1Examine3()">审核2</el-button>
+                </el-form-item>
+              </el-col>
+            </el-row>
+          </el-form>
+        </div>
+        <div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom:10px">
+          <el-button @click="tab1.changeRecord.see.dialogFormVisible = false">关闭</el-button>
+        </div>
+      </div>
+    </el-dialog>
+    <!-- 变更记录审核 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="tab1.changeRecord.examine.dialogFormVisible" :close-on-click-modal="false" width="30%">
+      <div class="app-examine">
+        <h3 style="width: 100%;margin:0 0 0 5%;line-height:50px;">请确认审核结果:</h3>
+        <el-form ref="examineTemp" :rules="rules" :model="tab1.changeRecord.examine.temp" label-position="right" style="width: 50%;margin:0 auto;">
+          <el-row style="width:88%;height:150px;margin:0 auto;">
+            <el-col :span="20">
+              <el-form-item>
+                <el-radio-group v-model="tab1.changeRecord.examine.temp.statueSH" @change="changeExamineStatue">
+                  <el-radio :label="1" checked>通过</el-radio>
+                  <el-radio :label="2">不通过</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col v-if="tab1.changeRecord.examine.isReason" :span="20">
+              <el-input v-model="tab1.changeRecord.examine.temp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <div slot="footer" class="dialog-footer">
+        <el-button v-if="dialogStatus==='tab1examine'" type="primary" :disabled="isokDisable" @keyup.enter.native="createExamineData()" @click="createExamineData()">确认</el-button>
+        <!-- <el-button v-if="dialogStatus==='tab1examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button> -->
+        <el-button v-if="dialogStatus==='tab1examine3'" type="primary" :disabled="isokDisable" @keyup.enter.native="createExamineData3()" @click="createExamineData3()">确认</el-button>
+        <el-button @click="tab1.changeRecord.examine.dialogFormVisible = false;">关闭</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+// 引入
+import { GetDataByName, GetDataByNames, checkButtons, ExecDataByConfig, UpdateDataRelation, PostDataByName, failproccess,postJson } from '@/api/common'
+import waves from '@/directive/waves'
+import { parseTime, json2excel, sortChange } from '@/utils/index.js'
+import Pagination from '@/components/Pagination'
+import Cookies from 'js-cookie'
+import { getToken } from '@/utils/auth'
+import { MessageBox } from 'element-ui'
+export default {
+  inject: ['reload'],
+  name: 'ContractManagement',
+  components: { Pagination },
+  directives: { waves },
+  data() {
+    return {
+      selectList:[],
+      contractCodese:'',
+      isGroupAdministrator: Cookies.get('pastureid'),
+      isEmployeid: Cookies.get('employeid'),
+      isPercentage: false,
+      percentage: 1,
+      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
+      cellStyle: { padding: 0 + 'px' },
+      buttons: [],
+      activeName: 'first',
+      contractStatusList: [{ id: '0', name: '正常' }, { id: '1', name: '已过期' }, { id: '2', name: '终止' }, { id: '3', name: '新增未通过' }],
+      contractStatus2List: [{ id: '1', name: '正常' }, { id: '0', name: '终止' }],
+      auditStatusList: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }], // 审核状态
+      changeTypeList: [{ id: '0', name: '新增合同' }, { id: '1', name: '新增备件' }, { id: '2', name: '变更备件' }, { id: '3', name: '合同变更' }],
+      isZeroInventoryList: [{ id: '0', name: '否' }, { id: '1', name: '是' }], // 是否零库存
+      findAllProvider: [], findAllAssetType: [], findAllPasture: [], findAllPastureList2: [], findAllDepart: [], findAllEmploye: [], findAllCategory: [],
+      requestParams: [
+        { name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
+        { name: 'findAllAssetType', offset: 0, pagecount: 0, params: [] },
+        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
+        { name: 'findAllPastureForContract', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': 18 }},
+        { name: 'findAllDepart', offset: 0, pagecount: 0, params: [] },
+        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': 18 }},
+        { name: 'findAllCategory', offset: 0, pagecount: 0, params: [] }
+      ],
+      isokDisable: false,
+      disabled: true,
+      rules: {},
+      textMap: {
+        create: '新增合同',
+        see: '查看详情',
+        change: '变更合同',
+        tab1create2: '新增备件',
+        tab1change2: '变更备件',
+        tab1examine: '审核',
+        tab1examine2: '审核2',
+        tab1examine3: '审核2',
+        tab1See2: '查看',
+        tab1Update2: '编辑'
+      },
+      dialogStatus: '',
+      isContractManagement: true, // 备件合同
+      isDetailsSpareParts: false, // 备件明细
+      isChangeRecord: false, // 变更记录
+      tab1: {
+        // 合同管理1
+        contractManagement: {
+          radioAll: '全部',
+          isContractAdd: [],
+          isContractExport: [],
+          isContractUplaod: [],
+          isContractSee: [],
+          isContractChange: [],
+          isDisabled: false,
+          tableKey: 0,
+          listLoading: false,
+          total: 0,
+          list: [],
+          getdataListParm: {
+            name: 'providerPactListV2',
+            page: 1,
+            offset: 1,
+            pagecount: 50,
+            returntype: 'Map',
+            parammaps: {
+              loginid: Cookies.get('employeid'),
+              pastureName: Cookies.get('pasturename'),
+              contractCode: '',
+              statue: '',
+              stuteSH: '',
+              providerName: '',
+              tab1InputDatetime1: '',
+              startTime: '',
+              stopTime: '',
+              tab1InputDatetime2: '',
+              SHdateTimeF: '',
+              SHdateTimeE: '',
+              SHnums: 2
+            }
+          },
+          getParmCreateNumber: {
+            name: 'autoCreatCode',
+            page: 0,
+            offset: 0,
+            pagecount: 0,
+            returntype: 'Map',
+            parammaps: {
+              pastureId: Cookies.get('pastureid'),
+              codeType: 'HT'
+            }
+          },
+          create: {
+            dialogFormVisible: false,
+            temp: { contractCode: '', pastureId: Cookies.get('pastureid'), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: Cookies.get('employeid'), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), activeList: [], active: 3, workflowNote: '', synchronousPasture: [], synchronousPastureList: [] },
+            changeEchoParm: { name: 'getBigcontractPId', page: 0, offset: 0, pagecount: 0, returntype: 'Map', parammaps: {}}
+          }
+        },
+        // 合同管理-备件明细
+        detailsSpareParts: {
+          tableKey: 1,
+          listLoading: false,
+          total: 0,
+          list: [],
+          getdataListParm: {
+            name: 'getcontratListBybigV2',
+            page: 1,
+            offset: 1,
+            pagecount: 50,
+            returntype: 'Map',
+            parammaps: {
+              specification: '',
+              partName: '',
+              partCode: '',
+              pastureId: '',
+              providerId: '',
+              stopTime: '',
+              flag: '',
+              isZeroStock: '',
+              statue: ''
+            }
+          },
+          partCode: '',
+          requestSparePart: {
+            name: '',
+            page: 1,
+            offset: 1,
+            pagecount: 20,
+            returntype: 'Map',
+            parammaps: {}
+          },
+          detailsList: [],
+          updateList: [],
+          tableKeyAdd: 0,
+          listLoadingAdd: false,
+          listAdd: [],
+          requestBrand: {
+            name: 'getBrandByPartCode',
+            page: 0,
+            offset: 0,
+            pagecount: 50,
+            returntype: 'Map',
+            parammaps: {}
+          },
+          BrandList: [],
+          create: {
+            dialogFormVisible: false,
+            temp: { contractCode: '', pastureId: Cookies.get('pastureid'), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: Cookies.get('employeid'), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), activeList: [], active: 3, workflowNote: '' }
+          },
+          isDisabledImport: true,
+          clearImportExcelParm: {
+            name: 'deletecontract_upload',
+            page: 0,
+            offset: 0,
+            pagecount: '',
+            returntype: 'Map',
+            parammaps: {
+              user: Cookies.get('name')
+            }
+          },
+          importExcelParm: {
+            name: 'getcontract_uploadlist',
+            page: 0,
+            offset: 0,
+            pagecount: '',
+            returntype: 'Map',
+            parammaps: {
+              user: Cookies.get('name')
+            }
+          }
+        },
+        // 变更记录
+        changeRecord: {
+          isContractExamineZG: [],
+          //  isContractExamineZL: [],
+          isContractExamineZX: [],
+          isContractDelete: [],
+          isStatueReason: false,
+          isReason: false,
+          radioAll: '全部',
+          tableKey: 2,
+          listLoading: false,
+          total: 0,
+          list: [],
+          getdataListParm: {
+            name: 'providerPactListSH',
+            page: 1,
+            offset: 1,
+            pagecount: 50,
+            returntype: 'Map',
+            parammaps: {
+              loginid: Cookies.get('employeid'),
+              contractCode: '',
+              tab1InputDatetime3: '',
+              startTime: '',
+              stopTime: '',
+              SHStatus: '',
+              SHtype: '',
+              pastureId: '',
+              providerId: '',
+              stopTime1: '',
+              flag: '',
+              isZeroStock: '',
+              statue: '',
+              SHnums: 2,
+              stuteSH: ''
+            }
+          },
+          see: {
+            dialogFormVisible: false,
+            activeList: [], active: 3,
+            temp: {},
+            tableKey: 0,
+            listLoading: false,
+            total: 0,
+            list: [],
+            getdataListParm: {
+              name: 'getcontratListBybigSH',
+              returntype: 'Map',
+              page: 0,
+              offset: 0,
+              pagecount: 50,
+              parammaps: {}
+            }
+          },
+          examine: {
+            dialogFormVisible: false,
+            temp: {
+              statueSH: 1
+            },
+            isReason: false
+          }
+        }
+      },
+      postDataPramas: {},
+      // 开始日期
+      // pickerOptions1: {
+      //   disabledDate: (time) => {
+      //     if (this.tab1.contractManagement.create.temp.stopTime !== '') {
+      //       return parseTime(time.getTime(), '{y}-{m}-{d}') > parseTime(Date.now(), '{y}-{m}-{d}') || parseTime(time.getTime(), '{y}-{m}-{d}') >= this.tab1.contractManagement.create.temp.stopTime
+      //     } else {
+      //       return time.getTime() > Date.now()
+      //     }
+      //   }
+      // },
+      // 截止日期
+      pickerOptions2: {
+        disabledDate: (time) => {
+          return parseTime(time.getTime(), '{y}-{m}-{d}') <= this.tab1.contractManagement.create.temp.startTime || parseTime(time.getTime(), '{y}-{m}-{d}') < parseTime(Date.now(), '{y}-{m}-{d}')
+        }
+      },
+      pickerOptions3: {
+        disabledDate(time) {
+          return time.getTime() > Date.now()// 当天之前的时间可选
+        }
+      },
+      // 合同明细
+      tab2: {
+        tableKey: 0,
+        listLoading: false,
+        total: 0,
+        getdataListParm: {
+          name: 'contractDetailV2',
+          page: 1,
+          offset: 1,
+          pagecount: 50,
+          returntype: 'Map',
+          parammaps: {
+            inputDatetime: '',
+            providerName: '',
+            contractCode: '',
+            stopTime: '',
+            startTime: '',
+            statue: '',
+            partCode: '',
+            partName: '',
+            isZeroStock: '',
+            // pastureName: Cookies.get('pasturename')
+            pastureName: ''
+          }
+        },
+        list: []
+      },
+      UpdateDataParam: {},
+      UpdateDataParam2: {},
+      pending: {
+        total: 0,
+        getdataListParm: {
+          name: 'providerPactListV2', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
+          parammaps: {}
+        }
+      },
+      myHeight:document.documentElement.clientHeight - 85- 250
+    }
+  },
+  computed: {
+    // 设置请求头
+    headers() {
+      return {
+        token: getToken()
+      }
+    },
+    uploadData() {
+      return {
+        name: 'insertcontract_upload',
+        importParams: '备件编号,备件名称,规格型号,计量单位,品牌,计划量,单价,备注',
+        sheetname: 'SheetJS'
+      }
+    },
+    // 设置上传地址
+    uploadExcelUrl() {
+      return process.env.VUE_APP_BASE_API + 'authdata/ImportExcel'
+    }
+  },
+  created() {
+    // this.keyupSubmit()
+    console.log(this.$route.query.contractCode)
+    this.get_select_list()
+    const that = this
+    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
+      that.buttons = response.data.list
+      that.get_auto_buttons()
+    })
+
+    this.getTab1List()
+    this.getPendingList()
+    if (this.$route.query.contractCode == undefined) {
+      this.tab1.contractManagement.getdataListParm.parammaps.contractCode = ''
+    } else {
+      this.tab1.contractManagement.getdataListParm.parammaps.contractCode = this.$route.query.contractCode
+    }
+  },
+
+  methods: {
+    tableSort1(column) {
+      sortChange(column, this.tab1.detailsSpareParts.list)
+    },
+    tableSort2(column) {
+      sortChange(column, this.tab2.list)
+    },
+    get_auto_buttons() {
+
+      // 新增
+      const ContractJinyong = 'customs:contract:jinyong'
+      const isContractJinyong = checkButtons(this.$store.state.user.buttons, ContractJinyong)
+      this.isContractJinyong = isContractJinyong
+
+      // 新增
+      const ContractAdd = 'customs:contract:add'
+      const isContractAdd = checkButtons(this.$store.state.user.buttons, ContractAdd)
+      this.tab1.contractManagement.isContractAdd = isContractAdd
+
+      // 查看
+      const ContractSee = 'customs:contract:see'
+      const isContractSee = checkButtons(this.$store.state.user.buttons, ContractSee)
+      this.tab1.contractManagement.isContractSee = isContractSee
+
+      // 办公室主任
+      const ContractExamineZG = 'customs:contract:examineZG'
+      const isContractExamineZG = checkButtons(this.$store.state.user.buttons, ContractExamineZG)
+      this.tab1.changeRecord.isContractExamineZG = isContractExamineZG
+      // 设备中心审核
+      const ContractExamineZX = 'customs:contract:examineZX'
+      const isContractExamineZX = checkButtons(this.$store.state.user.buttons, ContractExamineZX)
+      this.tab1.changeRecord.isContractExamineZX = isContractExamineZX
+      // 审核删除
+      const ContractDelete = 'customs:contract:delete'
+      const isContractDelete = checkButtons(this.$store.state.user.buttons, ContractDelete)
+      this.tab1.changeRecord.isContractDelete = isContractDelete
+      // 导出
+      const ContractExport = 'customs:contract:export'
+      const isContractExport = checkButtons(this.$store.state.user.buttons, ContractExport)
+      this.tab1.contractManagement.isContractExport = isContractExport
+      // SAP上传
+      const ContractUplaod = 'customs:contract:sapupload'
+      const isContractUplaod = checkButtons(this.$store.state.user.buttons, ContractUplaod)
+      this.tab1.contractManagement.isContractUplaod = isContractUplaod
+      // 变更
+      const ContractChange = 'customs:contract:change'
+      const isContractChange = checkButtons(this.$store.state.user.buttons, ContractChange)
+      this.tab1.contractManagement.isContractChange = isContractChange
+    },
+    get_select_list() {
+      GetDataByNames(this.requestParams).then(response => {
+        this.findAllProvider = response.data.findAllProvider.list
+        this.findAllAssetType = response.data.findAllAssetType.list
+        this.findAllPasture = response.data.findAllPasture.list
+        this.findAllPastureList2 = response.data.findAllPastureForContract.list
+        this.findAllDepart = response.data.findAllDepart.list
+        this.findAllEmploye = response.data.findAllEmploye.list
+        this.findAllCategory = response.data.findAllCategory.list
+      })
+    },
+    handleClick() {
+      if (this.tab1.contractManagement.create.temp.activeName == 'first') {
+        console.log('点击了合同管理')
+        this.getTab1List()
+      } else {
+        console.log('点击了合同明细')
+        this.getTab2List()
+      }
+    },
+    getPendingList() {
+      this.pending.getdataListParm.parammaps.loginid = this.tab1.contractManagement.getdataListParm.parammaps.loginid
+      this.pending.getdataListParm.parammaps.pastureName = this.tab1.contractManagement.getdataListParm.parammaps.pastureName
+      this.pending.getdataListParm.parammaps.contractCode = this.tab1.contractManagement.getdataListParm.parammaps.contractCode
+      this.pending.getdataListParm.parammaps.statue = this.tab1.contractManagement.getdataListParm.parammaps.statue
+      this.pending.getdataListParm.parammaps.stuteSH = this.tab1.contractManagement.getdataListParm.parammaps.stuteSH
+      this.pending.getdataListParm.parammaps.providerName = this.tab1.contractManagement.getdataListParm.parammaps.providerName
+      this.pending.getdataListParm.parammaps.tab1InputDatetime1 = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1
+      this.pending.getdataListParm.parammaps.startTime = this.tab1.contractManagement.getdataListParm.parammaps.startTime
+      this.pending.getdataListParm.parammaps.stopTime = this.tab1.contractManagement.getdataListParm.parammaps.stopTime
+      this.pending.getdataListParm.parammaps.tab1InputDatetime2 = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2
+      this.pending.getdataListParm.parammaps.SHdateTimeF = this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF
+      this.pending.getdataListParm.parammaps.SHdateTimeE = this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE
+      this.pending.getdataListParm.parammaps.SHnums = 0
+      GetDataByName(this.pending.getdataListParm).then(response => {
+        this.pending.total = response.data.total3
+      })
+    },
+    getTab1List() {
+      this.tab1.contractManagement.listLoading = true
+      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 !== '' && this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 !== null) {
+        this.tab1.contractManagement.getdataListParm.parammaps.startTime = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[0]
+        this.tab1.contractManagement.getdataListParm.parammaps.stopTime = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1[1]
+      } else {
+        this.tab1.contractManagement.getdataListParm.parammaps.startTime = ''
+        this.tab1.contractManagement.getdataListParm.parammaps.stopTime = ''
+      }
+      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 !== '' && this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 !== null) {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[0]
+        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE = this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2[1]
+      } else {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeF = ''
+        this.tab1.contractManagement.getdataListParm.parammaps.SHdateTimeE = ''
+      }
+      GetDataByName(this.tab1.contractManagement.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.tab1.contractManagement.list = response.data.list
+          this.tab1.contractManagement.pageNum = response.data.pageNum
+          this.tab1.contractManagement.pageSize = response.data.pageSize
+        } else {
+          this.tab1.contractManagement.list = []
+        }
+        this.tab1.contractManagement.total = response.data.total
+        setTimeout(() => {
+          this.tab1.contractManagement.listLoading = false
+        }, 300)
+      })
+    },
+    handleTab1Filter() {
+      this.tab1.contractManagement.listLoading = true
+      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 == null) {
+        this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
+      }
+      if (this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 == null) {
+        this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime2 = ''
+      }
+      this.tab1.contractManagement.getdataListParm.offset = 1
+      this.getTab1List()
+      this.getPendingList()
+      if (this.tab1.contractManagement.radioAll == '全部') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 2
+        this.getTab1List()
+      } else if (this.tab1.contractManagement.radioAll == '待处理') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 0
+        this.getTab1List()
+      } else if (this.tab1.contractManagement.radioAll == '已处理') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 1
+        this.getTab1List()
+      }
+    },
+    changeContractManagementAll() {
+      if (this.tab1.contractManagement.radioAll == '全部') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 2
+      } else if (this.tab1.contractManagement.radioAll == '待处理') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 0
+      } else if (this.tab1.contractManagement.radioAll == '已处理') {
+        this.tab1.contractManagement.getdataListParm.parammaps.SHnums = 1
+      }
+      this.tab1.contractManagement.getdataListParm.offset = 1
+      this.getTab1List()
+    },
+    changeTime(val) {
+      if (this.tab1.contractManagement.create.temp.stopTime !== '') {
+        if (this.tab1.contractManagement.create.temp.stopTime <= this.tab1.contractManagement.create.temp.startTime) {
+          this.tab1.contractManagement.create.temp.stopTime = ''
+          this.tab1.contractManagement.create.temp.statue = ''
+          this.tab1.contractManagement.create.temp.statueId = ''
+        } else {
+          if (parseTime(new Date(), '{y}-{m}-{d}') <= this.tab1.contractManagement.create.temp.stopTime) {
+            this.tab1.contractManagement.create.temp.statue = '1'
+            // this.tab1.contractManagement.create.temp.statueId = 1
+          } else {
+            this.tab1.contractManagement.create.temp.statue = '0'
+            // this.tab1.contractManagement.create.temp.statueId = 2
+          }
+        }
+      } else {
+        this.tab1.contractManagement.create.temp.statue = ''
+        this.tab1.contractManagement.create.temp.statueId = ''
+      }
+    },
+    changeIsZero(val) {
+      console.log(val)
+    },
+    providerSearch(queryString, cb) {
+      var returnList = this.findAllProvider
+      var results = queryString ? returnList.filter(this.createFilter(queryString)) : returnList
+      // 调用 callback 返回建议列表的数据
+      cb(results)
+    },
+    createFilter(queryString) {
+      return returnValue => {
+        return (
+          returnValue.name.toLowerCase().indexOf(queryString.toLowerCase()) >= 0
+        )
+      }
+    },
+    handleSelectProvider(item) {
+      this.$set(this.tab1.contractManagement.create.temp, 'providerId', item.id)
+      this.$set(this.tab1.contractManagement.create.temp, 'providerName', item.name)
+    },
+    handleFocusProvider() {
+      this.tab1.contractManagement.create.temp.providerId = ''
+      this.tab1.contractManagement.create.temp.providerName = ''
+    },
+    handleBlurProvider() {
+      if (this.tab1.contractManagement.create.temp.providerId == '') {
+        this.tab1.contractManagement.create.temp.providerId = ''
+        this.tab1.contractManagement.create.temp.providerName = ''
+      }
+    },
+    changeCreatorMan(val) {
+      this.tab1.contractManagement.create.temp.creatorMan = this.findAllEmploye.find(obj => obj.id == val).name
+    },
+    resetCreateTemp() {
+      this.tab1.contractManagement.create.temp.synchronousPastureList = []
+      if (Cookies.get('pastureid') == 18) {
+        for (let i = 0; i < this.findAllPasture.length; i++) {
+          this.tab1.contractManagement.create.temp.synchronousPastureList.push(this.findAllPasture[i].id)
+        }
+      } else {
+        this.tab1.contractManagement.create.temp.synchronousPastureList.push(parseInt(Cookies.get('pastureid')))
+      }
+      this.tab1.contractManagement.create.temp = { contractCode: '', pastureId: parseFloat(Cookies.get('pastureid')), providerName: '', startTime: '', stopTime: '', statue: '', isZeroStock: 0, creatorId: parseFloat(Cookies.get('employeid')), creatorMan: Cookies.get('employename'), creatorTime: parseTime(new Date(), '{y}-{m}-{d}'), synchronousPasture: this.tab1.contractManagement.create.temp.synchronousPastureList, synchronousPasture2: [] }
+    },
+    handleTab1Create() {
+      this.resetCreateTemp()
+      this.dialogStatus = 'create'
+      this.tab1.contractManagement.create.dialogFormVisible = true
+      this.getCreateNumber()
+    },
+    getCreateNumber() {
+      GetDataByName(this.tab1.contractManagement.getParmCreateNumber).then(response => {
+        this.$nextTick(() => {
+          console.log('合同编号', response.data.list[0].orderCode)
+          this.tab1.contractManagement.create.temp.contractCode = response.data.list[0].orderCode
+          this.$forceUpdate()
+        })
+      })
+    },
+    add_dialog_save() {
+      console.log('点击了新增保存')
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['createTemp'].validate(valid => {
+        if (valid) {
+          if (this.tab1.contractManagement.create.temp.contractCode == '') {
+            GetDataByName(this.getParmCreateNumber).then(response => {
+              this.$nextTick(() => {
+                this.tab1.contractManagement.create.temp.contractCode = response.data.list[0].orderCode
+                this.$forceUpdate()
+                this.saveCreateData()
+              })
+            })
+          } else {
+            this.saveCreateData()
+          }
+        }
+      })
+    },
+    saveCreateData() {
+      this.postDataPramas = {}
+      if (Cookies.get('pastureid') == 18) {
+        if (this.tab1.contractManagement.create.temp.synchronousPasture.indexOf(18) == -1) {
+          this.$message({ type: 'error', message: '当前合同归属于现代牧业,未选中,共享牧场请选中现代牧业!', duration: 2000 })
+          return false
+        }
+      }
+      this.postDataPramas.common = { 'returnmap': '0' }
+      this.postDataPramas.data = []
+      this.postDataPramas.data[0] = { 'name': 'checkbigcontract', 'type': 'v', 'parammaps': {
+        pastureId: this.tab1.contractManagement.create.temp.pastureId,
+        providerId: this.tab1.contractManagement.create.temp.providerId
+      }}
+      this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
+        pastureId: this.tab1.contractManagement.create.temp.pastureId,
+        providerId: this.tab1.contractManagement.create.temp.providerId,
+        providerName: this.tab1.contractManagement.create.temp.providerName,
+        startTime: this.tab1.contractManagement.create.temp.startTime,
+        stopTime: this.tab1.contractManagement.create.temp.stopTime,
+        contractCode: this.tab1.contractManagement.create.temp.contractCode,
+        creatorId: this.tab1.contractManagement.create.temp.creatorId,
+        creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
+        creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
+        isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
+        statue: 1,
+        remark: this.tab1.contractManagement.create.temp.remark,
+        SHtype: 0
+      }}
+      var groupRanchList = []
+      for (let i = 0; i < this.tab1.contractManagement.create.temp.synchronousPasture.length; i++) {
+        var obj = {}
+        obj.pastureId = this.tab1.contractManagement.create.temp.synchronousPasture[i]
+        groupRanchList.push(obj)
+      }
+      if (Cookies.get('pastureid') == 18) {
+        this.postDataPramas.data[2] = { 'name': 'insertSpotList', 'resultmaps': { 'list': groupRanchList }}
+        this.postDataPramas.data[2].children = []
+        this.postDataPramas.data[2].children[0] = { 'name': 'insertPastureBigcontract', 'type': 'e', 'parammaps': {
+          bigcontractId: '@insertBigContractV2.LastInsertId',
+          pastureId: '@insertSpotList.pastureId'
+        }}
+      }
+      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.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
+          this.getTab1List()
+          this.getPendingList()
+          this.tab1.contractManagement.create.dialogFormVisible = false
+          this.tab1.contractManagement.create.temp.providerName = ''
+          this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+        }
+      })
+    },
+    form_see(row) {
+      console.log('查看', row)
+      row.statue = String(row.statue)
+      row.synchronousPasture2 = []
+      row.synchronousPastureName2 = []
+      row.synchronousPasture = []
+      this.tab1.contractManagement.create.temp = Object.assign({}, row)
+      this.dialogStatus = 'see'
+      this.tab1.contractManagement.create.dialogFormVisible = true
+      var reason = '未通过原因:' + this.tab1.contractManagement.create.temp.workflowNote
+      if (this.tab1.contractManagement.create.temp.SHStatus == 2) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核' }, { title: '设备中心审核' }]
+        this.tab1.contractManagement.create.temp.active = 1
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 3) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.contractManagement.create.temp.active = 2
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 4) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson, status: 'error', reason: reason }, { title: '设备中心审核' }]
+        this.tab1.contractManagement.create.temp.active = 2
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 5) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.contractManagement.create.temp.active = 2
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 6) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.contractManagement.create.temp.active = 3
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 7) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.contractManagement.create.temp.CGChargedate, name: this.tab1.contractManagement.create.temp.CGChargePerson }]
+        this.tab1.contractManagement.create.temp.active = 4
+      } else if (this.tab1.contractManagement.create.temp.SHStatus == 8) {
+        this.tab1.contractManagement.create.temp.activeList = [{ title: '合同录入', date: this.tab1.contractManagement.create.temp.creatorTime, name: this.tab1.contractManagement.create.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.contractManagement.create.temp.chargeDate, name: this.tab1.contractManagement.create.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.contractManagement.create.temp.CGChargedate, name: this.tab1.contractManagement.create.temp.CGChargePerson, status: 'error', reason: reason }]
+        this.tab1.contractManagement.create.temp.active = 4
+      }
+      this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id = row.id
+      GetDataByName(this.tab1.contractManagement.create.changeEchoParm).then(response => {
+        if (response.data.list !== null) {
+          for (let i = 0; i < response.data.list.length; i++) {
+            this.tab1.contractManagement.create.temp.synchronousPasture2.push(response.data.list[i].pasture_id)
+            this.tab1.contractManagement.create.temp.synchronousPasture.push(response.data.list[i].pasture_id)
+            this.tab1.contractManagement.create.temp.synchronousPastureName2.push(this.findAllPasture.find(obj => obj.id == response.data.list[i].pasture_id).name)
+          }
+        } else {
+          this.tab1.contractManagement.create.temp.synchronousPasture = []
+        }
+        console.log(this.tab1.contractManagement.create.temp.synchronousPastureName2, 'synchronousPastureName2')
+      })
+    },
+    handleTab1Change(row) {
+      console.log('变更', row)
+      // row.statue = String(row.statue)
+      this.$set(row, 'mystopTime', row.stopTime)
+      row.synchronousPasture2 = []
+      row.synchronousPastureName2 = []
+      row.synchronousPasture = []
+      this.tab1.contractManagement.create.temp = Object.assign({}, row)
+      this.tab1.contractManagement.create.temp.statue = String(this.tab1.contractManagement.create.temp.statue)
+
+      this.dialogStatus = 'change'
+      this.tab1.contractManagement.create.dialogFormVisible = true
+      this.tab1.contractManagement.create.changeEchoParm.parammaps.bigcontract_id = row.id
+      GetDataByName(this.tab1.contractManagement.create.changeEchoParm).then(response => {
+        if (response.data.list !== null) {
+          for (let i = 0; i < response.data.list.length; i++) {
+            this.tab1.contractManagement.create.temp.synchronousPasture2.push(response.data.list[i].pasture_id)
+            this.tab1.contractManagement.create.temp.synchronousPasture.push(response.data.list[i].pasture_id)
+            this.tab1.contractManagement.create.temp.synchronousPastureName2.push(this.findAllPasture.find(obj => obj.id == response.data.list[i].pasture_id).name)
+          }
+        } else {
+          this.tab1.contractManagement.create.temp.synchronousPasture = []
+        }
+        console.log(this.tab1.contractManagement.create.temp.synchronousPastureName2, 'synchronousPastureName2')
+      })
+    },
+
+    terminationData() {
+      var aa = '确认终止合同?'
+      if (this.tab1.contractManagement.create.temp.isZeroStock == 1) {
+        aa = '若此合同库存中有剩余库存,建议先进行退货操作。'
+      } else {
+        aa = '确认终止合同?'
+      }
+      MessageBox.confirm(aa, { confirmButtonText: '确认终止', cancelButtonText: '取消', type: 'warning'
+      }).then(() => {
+        this.postDataPramas = {}
+        this.postDataPramas.name = 'updatecontractstatuV2'
+        this.postDataPramas.parammaps = {}
+        this.postDataPramas.parammaps = this.tab1.contractManagement.create.temp
+        this.postDataPramas.parammaps.creatorId = Cookies.get('employeid')
+        this.postDataPramas.parammaps.creatorMan = Cookies.get('employename')
+        this.postDataPramas.parammaps.creatorTime = parseTime(new Date(), '{y}-{m}-{d}')
+        PostDataByName(this.postDataPramas).then(response => {
+          console.log('变更保存发送参数', this.postDataPramas)
+          if (response.msg == 'fail') {
+            this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+          } else {
+            this.tab1.contractManagement.getdataListParm.parammaps.tab1InputDatetime1 = ''
+            this.getTab1List()
+            this.getPendingList()
+            this.tab1.contractManagement.create.dialogFormVisible = false
+            this.tab1.contractManagement.create.temp.providerName = ''
+            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+          }
+        })
+      })
+    },
+    changeData() {
+      if (Cookies.get('pastureid') == 18) {
+        this.UpdateDataParam = {}
+        this.UpdateDataParam.name = 'pasture_bigcontract'
+        this.UpdateDataParam.dataname = 'bigcontract_id'
+        this.UpdateDataParam.datavalue = this.tab1.contractManagement.create.temp.id
+        this.UpdateDataParam.valuename = 'pasture_id'
+        this.UpdateDataParam.values = this.tab1.contractManagement.create.temp.synchronousPasture
+        UpdateDataRelation(this.UpdateDataParam).then(response => {
+          if (response.msg !== 'fail') {
+            this.UpdateDataParam2.name = 'updateBigcontractPId'
+            this.UpdateDataParam2.parammaps = {}
+            this.UpdateDataParam2.parammaps.bigcontract_id = this.tab1.contractManagement.create.temp.id
+            this.UpdateDataParam2.parammaps.enable = 0
+            PostDataByName(this.UpdateDataParam2).then(response => {})
+          }
+        })
+      }
+      this.postDataPramas = {}
+      this.postDataPramas.common = { 'returnmap': '0' }
+      this.postDataPramas.data = []
+      this.postDataPramas.data[0] = { 'name': 'checkbigcontractSH', 'type': 'v', 'parammaps': {
+        pastureId: this.tab1.contractManagement.create.temp.pastureId,
+        providerId: this.tab1.contractManagement.create.temp.providerId,
+        stopTime: this.tab1.contractManagement.create.temp.mystopTime,
+        flag: this.tab1.contractManagement.create.temp.flag,
+        isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
+        statue: this.tab1.contractManagement.create.temp.statue
+      }}
+      if (Cookies.get('pastureid') == 18) {
+        var synchronousPastureName = []
+        for (let i = 0; i < this.tab1.contractManagement.create.temp.synchronousPasture.length; i++) {
+          synchronousPastureName.push(this.findAllPasture.find(obj => obj.id == this.tab1.contractManagement.create.temp.synchronousPasture[i]).name)
+        }
+        this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
+          pastureId: this.tab1.contractManagement.create.temp.pastureId,
+          providerId: this.tab1.contractManagement.create.temp.providerId,
+          providerName: this.tab1.contractManagement.create.temp.providerName,
+          startTime: this.tab1.contractManagement.create.temp.startTime,
+          stopTime: this.tab1.contractManagement.create.temp.mystopTime,
+          stopTime1: this.tab1.contractManagement.create.temp.stopTime,
+          contractCode: '',
+          contractCode1: this.tab1.contractManagement.create.temp.contractCode,
+          creatorId: this.tab1.contractManagement.create.temp.creatorId,
+          creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
+          creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
+          isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
+          statue: this.tab1.contractManagement.create.temp.statue,
+          remark: this.tab1.contractManagement.create.temp.remark,
+          flag: this.tab1.contractManagement.create.temp.flag,
+          SHtype: 3,
+          pastureNamesOld: this.tab1.contractManagement.create.temp.synchronousPastureName2.toString(),
+          pastureNamesNow: synchronousPastureName.toString()
+        }}
+      } else {
+        this.postDataPramas.data[1] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
+          pastureId: this.tab1.contractManagement.create.temp.pastureId,
+          providerId: this.tab1.contractManagement.create.temp.providerId,
+          providerName: this.tab1.contractManagement.create.temp.providerName,
+          startTime: this.tab1.contractManagement.create.temp.startTime,
+          stopTime: this.tab1.contractManagement.create.temp.mystopTime,
+          stopTime1: this.tab1.contractManagement.create.temp.stopTime,
+          contractCode: '',
+          contractCode1: this.tab1.contractManagement.create.temp.contractCode,
+          creatorId: this.tab1.contractManagement.create.temp.creatorId,
+          creatorMan: this.tab1.contractManagement.create.temp.creatorMan,
+          creatorTime: this.tab1.contractManagement.create.temp.creatorTime,
+          isZeroStock: this.tab1.contractManagement.create.temp.isZeroStock,
+          statue: this.tab1.contractManagement.create.temp.statue,
+          remark: this.tab1.contractManagement.create.temp.remark,
+          flag: this.tab1.contractManagement.create.temp.flag,
+          SHtype: 3
+        }}
+      }
+      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.getTab1List()
+          this.getPendingList()
+          this.tab1.contractManagement.create.dialogFormVisible = false
+          this.tab1.contractManagement.create.temp.providerName = ''
+          this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+        }
+      })
+    },
+    // 备件明细
+    handleTab1DetailsSpareParts(row) {
+      console.log('备件明细', row)
+      this.contractCodese = row.contractCode
+      this.tab1.detailsSpareParts.updateList = Object.assign({}, row)
+      this.tab1.detailsSpareParts.detailsList = Object.assign({}, row)
+      this.isContractManagement = false
+      this.isDetailsSpareParts = true
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.pastureId = row.pastureId
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.providerId = row.providerId
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.stopTime = row.stopTime
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.flag = row.flag
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.isZeroStock = row.isZeroStock
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.statue = row.statue
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.partCode = ''
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.partName = ''
+      this.tab1.detailsSpareParts.getdataListParm.parammaps.specification = ''
+      this.getTab1List2()
+    },
+    handleTab1goBack() {
+      // this.reload()
+      this.isContractManagement = true
+      this.isDetailsSpareParts = false
+      this.tab1.detailsSpareParts.total = 0
+      this.getTab1List()
+    },
+
+    change_enabled(){
+
+    },
+    change_no(){
+      console.log("selectList",this.selectList)
+
+
+      var send_data =    {
+        "common": {
+            "returnmap": "0"
+        },
+        "data": [
+            {
+                "name": "insertSpotList",
+                "resultmaps": {
+                    "list":  this.selectList
+                },
+                "children": [
+                    {
+                        "name": "updateContractEnableById",
+                        "type": "e",
+                        "parammaps": {
+                            "id": "@insertSpotList.id"
+                        }
+                    }
+                ]
+            },{
+        "name": "updateBigcontractIsToSap",
+                        "type": "e",
+                        "parammaps": {
+                            "contractCode": this.contractCodese
+                        }
+      }
+
+        ]
+    }
+
+
+      ExecDataByConfig(send_data).then(response => {
+          console.log('发送参数', send_data)
+          if (response.msg === 'fail') {
+            this.$notify({
+              title: '禁用失败',
+              message: response.data,
+              type: 'warning',
+              duration: 2000
+            })
+          } else {
+
+            this.getTab1List2()
+
+            this.$notify({
+              title: '',
+              message: '禁用成功',
+              type: 'success',
+              duration: 2000
+            })
+          }
+        })
+
+
+    },
+
+    handleSelectionChange(val) {
+      // this.create.temp.rowsNumber = []
+      // for(let i=0;i<val.length;i++){
+      //   this.create.temp.rowsNumber.push(val[i].rowNumber)
+      // }
+      console.log(val)
+      this.selectList = val
+    },
+    getTab1List2() {
+      this.tab1.detailsSpareParts.listLoading = true
+      GetDataByName(this.tab1.detailsSpareParts.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          for (let i = 0; i < response.data.list.length; i++) {
+            if (response.data.list[i].srcpath !== null && response.data.list[i].picpath !== null && response.data.list[i].srcpath !== undefined && response.data.list[i].picpath !== undefined) {
+              const srcpath = process.env.VUE_APP_BASE_API + response.data.list[i].srcpath
+              const picpath = process.env.VUE_APP_BASE_API + response.data.list[i].picpath
+              response.data.list[i].srcpath = srcpath
+              response.data.list[i].picpath = picpath
+            } else {
+              response.data.list[i].srcpath = ''
+              response.data.list[i].picpath = ''
+            }
+          }
+          this.tab1.detailsSpareParts.list = response.data.list
+          this.tab1.detailsSpareParts.pageNum = response.data.pageNum
+          this.tab1.detailsSpareParts.pageSize = response.data.pageSize
+          if (response.data.list !== null) {
+            this.tab1.detailsSpareParts.total = response.data.total
+          } else {
+            this.tab1.detailsSpareParts.total = 0
+          }
+        } else {
+          this.tab1.detailsSpareParts.list = []
+        }
+        setTimeout(() => {
+          this.tab1.detailsSpareParts.listLoading = false
+        }, 300)
+      })
+    },
+    handleTab1Filter2() {
+      this.tab1.detailsSpareParts.listLoading = true
+      this.tab1.detailsSpareParts.getdataListParm.offset = 1
+      this.getTab1List2()
+    },
+    sparePartSearch(queryString, cb) {
+      this.tab1.detailsSpareParts.requestSparePart.parammaps['partCode'] = queryString
+      GetDataByName(this.tab1.detailsSpareParts.requestSparePart).then(response => {
+        if (response.data.list == null) {
+          cb([])
+        } else {
+          cb(response.data.list)
+        }
+      })
+    },
+    handleSelectSparePart(item) {
+      console.log('备件模糊查询选中值', item)
+      if (this.tab1.detailsSpareParts.listAdd.length > 0) {
+        if (this.tab1.detailsSpareParts.listAdd.find(obj => obj.partCode == item.partCode)) {
+          this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
+        } else {
+          if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
+            this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
+            this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
+          } else {
+            item.srcpath = ''
+            item.picpath = ''
+          }
+          this.$set(item, 'myid', new Date().getTime())
+          this.$set(item, 'taxcode', '')
+          this.tab1.detailsSpareParts.listAdd.unshift(item)
+        }
+      } else {
+        if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
+          this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
+          this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
+        } else {
+          item.srcpath = ''
+          item.picpath = ''
+        }
+        this.$set(item, 'myid', new Date().getTime())
+        this.tab1.detailsSpareParts.listAdd.unshift(item)
+      }
+    },
+    brandSearch(queryString, cb) {
+      this.tab1.detailsSpareParts.requestBrand.parammaps['brandName'] = queryString
+      GetDataByName(this.tab1.detailsSpareParts.requestBrand).then(response => {
+        this.tab1.detailsSpareParts.BrandList = response.data.list
+        cb(this.tab1.detailsSpareParts.BrandList)
+      })
+    },
+    handleSelectBrand(item, row) {
+      this.$set(row, 'brandName', item.brandName)
+      this.$set(row, 'brandId', item.brandId)
+      this.$forceUpdate()
+    },
+    handleFocusBrand(row) {
+      this.$set(row, 'brandName', '')
+      this.$set(row, 'brandId', '')
+    },
+    handleBlurBrand(row) {
+      if (row.brandId == '') {
+        this.$set(row, 'brand', '')
+        this.$set(row, 'brandName', '')
+        this.$set(row, 'brandId', '')
+      }
+    },
+    partDelete(row) {
+      console.log('备件明细-备件删除', row)
+      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+      }).then(() => {
+        for (var i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
+          console.log(this.tab1.detailsSpareParts.listAdd[i])
+          if (this.tab1.detailsSpareParts.listAdd[i].myid === row.myid) {
+            var listAddIndex = this.tab1.detailsSpareParts.listAdd.indexOf(this.tab1.detailsSpareParts.listAdd[i])
+          }
+          if (listAddIndex > -1) {
+            this.tab1.detailsSpareParts.listAdd.splice(listAddIndex, 1)
+            return
+          }
+        }
+      })
+    },
+    handleTab1DownloadTemp2() {
+      console.log('备件明细-备件模板')
+      import('@/vendor/Export2Excel').then(excel => {
+        const list1 = []
+        const tHeader = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注']
+        const filterVal = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注']
+        const data1 = this.formatJsonTemp(filterVal, list1)
+        excel.export_json_to_excel({ header: tHeader, data: data1, filename: '备件明细模板', autoWidth: true, bookType: 'xlsx' })
+      })
+    },
+    formatJsonTemp(filterVal, jsonData) {
+      return jsonData.map(v =>
+        filterVal.map(j => {
+          if (j === 'timestamp') {
+            return parseTime(v[j])
+          } else {
+            return v[j]
+          }
+        })
+      )
+    },
+    beforeImportExcel(file) {
+      const isLt2M = file.size / 1024 / 1024 < 6
+      if (!isLt2M) {
+        this.$message.error('上传文件大小不能超过 6MB!')
+      }
+      return isLt2M
+    },
+    handleImportExcelSuccess(res, file) {
+      console.log(res)
+      if (res.msg == 'ok') {
+        this.$message({ title: '成功', message: '导入成功:' + res.data.success + '条!', type: 'success', duration: 2000 })
+        if (res.data.err_count > 0) {
+          this.$notify({ title: '失败', message: '导入失败:' + res.data.err_count + '条!', type: 'danger', duration: 2000 })
+           import('@/vendor/Export2Excel').then(excel => {
+             const list1 = res.data.result
+             const tHeader = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注', '报错信息']
+             const filterVal = ['备件编号', '备件名称', '规格型号', '计量单位', '品牌', '计划量', '单价', '备注', 'error_msg']
+             const data1 = this.formatJson(filterVal, list1)
+             excel.export_json_to_excel({ header: tHeader, data: data1, filename: '合同报错信息', autoWidth: true, bookType: 'xlsx' })
+           })
+        }
+        this.getImportExcelList()
+      } else {
+        this.$notify({ title: '失败', message: '上传失败,文件格式错误', type: 'danger', duration: 2000 })
+      }
+    },
+    formatJson(filterVal, jsonData) {
+      return jsonData.map(v =>
+        filterVal.map(j => {
+          if (j == 'timestamp') {
+            return parseTime(v[j])
+          } else {
+            return v[j]
+          }
+        })
+      )
+    },
+    getClearImportExcelList() {
+      PostDataByName(this.tab1.detailsSpareParts.clearImportExcelParm).then(response => {
+        console.log(response.msg)
+        if (response.msg == 'ok') {
+          this.tab1.detailsSpareParts.isDisabledImport = false
+        }
+      })
+    },
+    getImportExcelList() {
+      GetDataByName(this.tab1.detailsSpareParts.importExcelParm).then(response => {
+        if (response.data.list !== null) {
+          for (let i = 0; i < response.data.list.length; i++) {
+            if (response.data.list[i].picpath == undefined) {
+              response.data.list[i].picpath = ''
+              response.data.list[i].srcpath = ''
+            } else {
+              this.$set(response.data.list[i], 'srcpath', process.env.VUE_APP_BASE_API + response.data.list[i].srcpath)
+              this.$set(response.data.list[i], 'picpath', process.env.VUE_APP_BASE_API + response.data.list[i].picpath)
+            }
+            response.data.list[i].myid = new Date().getTime() + i
+          }
+          this.tab1.detailsSpareParts.listAdd = response.data.list
+        } else {
+          this.tab1.detailsSpareParts.list = []
+        }
+      })
+    },
+    handleTab1Create2() {
+      console.log('备件明细-新增/变更')
+      this.dialogStatus = 'tab1create2'
+      this.tab1.detailsSpareParts.create.dialogFormVisible = true
+      this.tab1.detailsSpareParts.listAdd = []
+      this.tab1.detailsSpareParts.partCode = ''
+      this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigALLParts'
+      this.tab1.detailsSpareParts.requestSparePart.parammaps = {}
+      this.getClearImportExcelList()
+    },
+    add_dialog_save2() {
+      console.log('备件明细-新增保存')
+      if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
+        for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
+          if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand === '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
+            this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
+            return false
+          } else {
+            var rulesPlanAmount = /^[1-9]\d*$/
+            if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
+              this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
+              return false
+            }
+            var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
+            if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
+              this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
+              return false
+            }
+          }
+        }
+        this.postDataPramas = {}
+        this.postDataPramas.common = { 'returnmap': '0' }
+        this.postDataPramas.data = []
+        this.postDataPramas.data[0] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
+          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+          flag: this.tab1.detailsSpareParts.detailsList.flag,
+          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
+          providerName: this.tab1.detailsSpareParts.detailsList.providerName,
+          startTime: this.tab1.detailsSpareParts.detailsList.startTime,
+          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
+          contractCode: '',
+          contractCode1: this.tab1.detailsSpareParts.detailsList.contractCode,
+          creatorId: Cookies.get('employeid'),
+          creatorMan: Cookies.get('employename'),
+          creatorTime: parseTime(new Date(), '{y}-{m}-{d}'),
+          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
+          statue: this.tab1.detailsSpareParts.detailsList.statue,
+          remark: this.tab1.detailsSpareParts.detailsList.remark,
+          SHtype: 1
+        }}
+        this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
+        this.postDataPramas.data[1].children = []
+        this.postDataPramas.data[1].children[0] = { 'name': 'checkcontracPartCode', 'type': 'v', 'parammaps': {
+          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
+          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
+          flag: this.tab1.detailsSpareParts.detailsList.flag,
+          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
+          statue: this.tab1.detailsSpareParts.detailsList.statue,
+          partCode: '@insertSpotList.partCode',
+          brandId: '@insertSpotList.brandId'
+        }}
+        this.postDataPramas.data[1].children[1] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
+          bigId: '@insertBigContractV2.LastInsertId',
+          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+          pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
+          partId: '@insertSpotList.id',
+          partName: '@insertSpotList.partName',
+          partCode: '@insertSpotList.partCode',
+          specification: '@insertSpotList.specification',
+          price: '@insertSpotList.price',
+          brandId: '@insertSpotList.brandId',
+          brand: '@insertSpotList.brand',
+          planAmount: '@insertSpotList.planAmount',
+          remark: '@insertSpotList.remark',
+          unit: '@insertSpotList.unit',
+          contractId: '@insertSpotList.contractId',
+          taxcode: '@insertSpotList.taxcode',
+          lifeCycle: '@insertSpotList.lifeCycle',
+          contractVarianceItem: '@insertSpotList.contractVarianceItem',
+        }}
+        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.getTab1List2()
+            this.getPendingList()
+            this.tab1.detailsSpareParts.create.dialogFormVisible = false
+            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+          }
+        })
+      } else {
+        this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
+        return false
+      }
+    },
+    handleTab1Change2() {
+      console.log('备件明细-变更')
+      this.dialogStatus = 'tab1change2'
+      this.tab1.detailsSpareParts.create.dialogFormVisible = true
+      this.tab1.detailsSpareParts.listAdd = []
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId = this.tab1.detailsSpareParts.detailsList.pastureId
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId = this.tab1.detailsSpareParts.detailsList.providerId
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime = this.tab1.detailsSpareParts.detailsList.stopTime
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.flag = this.tab1.detailsSpareParts.detailsList.flag
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock = this.tab1.detailsSpareParts.detailsList.isZeroStock
+      this.tab1.detailsSpareParts.requestSparePart.parammaps.statue = this.tab1.detailsSpareParts.detailsList.statue
+      this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigParts'
+    },
+    changeData2() {
+      console.log('备件明细-变更保存')
+      if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
+        for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
+          if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand === '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
+            this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
+            return false
+          } else {
+            var rulesPlanAmount = /^[1-9]\d*$/
+            if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
+              this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
+              return false
+            } else {
+              var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
+              if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
+                this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
+                return false
+              }
+            }
+          }
+        }
+        this.postDataPramas = {}
+        this.postDataPramas.common = { 'returnmap': '0' }
+        this.postDataPramas.data = []
+        this.postDataPramas.data[0] = { 'name': 'insertBigContractV2', 'type': 'e', 'parammaps': {
+          pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+          flag: this.tab1.detailsSpareParts.detailsList.flag,
+          providerId: this.tab1.detailsSpareParts.detailsList.providerId,
+          providerName: this.tab1.detailsSpareParts.detailsList.providerName,
+          startTime: this.tab1.detailsSpareParts.detailsList.startTime,
+          stopTime: this.tab1.detailsSpareParts.detailsList.stopTime,
+          contractCode: '',
+          contractCode1: this.tab1.detailsSpareParts.detailsList.contractCode,
+          creatorId: Cookies.get('employeid'),
+          creatorMan: Cookies.get('employename'),
+          creatorTime: parseTime(new Date(), '{y}-{m}-{d}'),
+          isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock,
+          statue: this.tab1.detailsSpareParts.detailsList.statue,
+          remark: this.tab1.detailsSpareParts.detailsList.remark,
+          SHtype: 2
+        }}
+        this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
+        this.postDataPramas.data[1].children = []
+        this.postDataPramas.data[1].children[0] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
+          bigId: '@insertBigContractV2.LastInsertId',
+          pastureId: '@insertSpotList.pastureId',
+          pastureName: '@insertSpotList.pastureName',
+          partId: '@insertSpotList.partId',
+          partName: '@insertSpotList.partName',
+          partCode: '@insertSpotList.partCode',
+          specification: '@insertSpotList.specification',
+          price: '@insertSpotList.price',
+          brandId: '@insertSpotList.brandId',
+          brand: '@insertSpotList.brand',
+          planAmount: '@insertSpotList.planAmount',
+          remark: '@insertSpotList.remark',
+          unit: '@insertSpotList.unit',
+          contractId: '@insertSpotList.contractId',
+          taxcode: '@insertSpotList.taxcode',
+          lifeCycle: '@insertSpotList.lifeCycle',
+          contractVarianceItem: '@insertSpotList.contractVarianceItem',
+        }}
+        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.getTab1List2()
+            this.getPendingList()
+            this.tab1.detailsSpareParts.create.dialogFormVisible = false
+            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+          }
+        })
+      } else {
+        this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
+        return false
+      }
+    },
+    handleTab1Export2() {
+      console.log('备件明细-导出')
+      this.$alert('备件明细正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
+      this.isPercentage = true
+      this.percentage = 1
+      var timer = setInterval(() => {
+        this.percentage += 5
+        if (this.percentage > 95) {
+          this.percentage = 99
+          clearInterval(timer)
+          this.tab1.detailsSpareParts.getdataListParm.pagecount = 10
+        }
+        this.percentage = this.percentage
+      }, 1000)
+      this.tab1.detailsSpareParts.getdataListParm.pagecount = ''
+      GetDataByName(this.tab1.detailsSpareParts.getdataListParm).then(response => {
+        if (response.data.list !== '') {
+          this.percentage = 99
+          setTimeout(() => {
+            this.isPercentage = false
+          }, 2000)
+        }
+        if (response.data.list !== null) {
+          this.$nextTick(() => {
+            const ExcelDatas = [
+              {
+                tHeader: ['备件编号', '备件名称', '备件规格', '备件品牌', '计量单位', '计划量', '单价', '使用周期', '合同差异项', '备注'],
+                filterVal: ['partCode', 'partName', 'specification', 'brand', 'unit', 'planAmount', 'price','lifeCycle','contractVarianceItem', 'remark'],
+                tableDatas: response.data.list,
+                sheetName: '合同管理-备件明细'
+              }
+            ]
+            json2excel(ExcelDatas, '合同管理-备件明细', true, 'xlsx')
+          })
+        }
+      })
+    },
+
+    // 变更记录
+    handleTab1ChangeRecord(row) {
+      console.log('变更记录')
+      this.tab1.detailsSpareParts.detailsList = Object.assign({}, row)
+      this.contractCodese = row.contractCode
+      this.isContractManagement = false
+      this.isChangeRecord = true
+      this.tab1.changeRecord.getdataListParm.parammaps.pastureId = row.pastureId
+      this.tab1.changeRecord.getdataListParm.parammaps.providerId = row.providerId
+      this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = row.stopTime
+      this.tab1.changeRecord.getdataListParm.parammaps.flag = row.flag
+      this.tab1.changeRecord.getdataListParm.parammaps.isZeroStock = row.isZeroStock
+      this.tab1.changeRecord.getdataListParm.parammaps.statue = row.statue
+      this.tab1.changeRecord.getdataListParm.parammaps.contractCode = ''
+      this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 = ''
+      this.tab1.changeRecord.getdataListParm.parammaps.startTime = ''
+      this.tab1.changeRecord.getdataListParm.parammaps.stopTime = ''
+      this.tab1.changeRecord.getdataListParm.parammaps.SHtype = ''
+      this.tab1.changeRecord.getdataListParm.parammaps.stuteSH = ''
+      this.getTab1List3()
+    },
+    handleTab1goBack2() {
+      // this.reload()
+      this.isContractManagement = true
+      this.isChangeRecord = false
+      this.tab1.changeRecord.total = 0
+      // this.tab1.contractManagement.getdataListParm.offset = 1
+      this.getTab1List()
+    },
+    getTab1List3() {
+      this.tab1.changeRecord.listLoading = true
+      if (this.$refs['tab1InputDatetime3'] !== undefined && this.$refs['tab1InputDatetime3'].value !== null) {
+        this.tab1.changeRecord.getdataListParm.parammaps.startTime = this.$refs['tab1InputDatetime3'].value[0]
+        this.tab1.changeRecord.getdataListParm.parammaps.stopTime = this.$refs['tab1InputDatetime3'].value[1]
+      } else {
+        this.tab1.changeRecord.getdataListParm.parammaps.startTime = ''
+        this.tab1.changeRecord.getdataListParm.parammaps.stopTime = ''
+      }
+      GetDataByName(this.tab1.changeRecord.getdataListParm).then(response => {
+        this.tab1.changeRecord.list = response.data.list
+        this.tab1.changeRecord.pageNum = response.data.pageNum
+        this.tab1.changeRecord.pageSize = response.data.pageSize
+        if (response.data.list !== null) {
+          this.tab1.changeRecord.total = response.data.total
+        } else {
+          this.tab1.changeRecord.total = 0
+        }
+        setTimeout(() => {
+          this.tab1.changeRecord.listLoading = false
+        }, 300)
+      })
+    },
+    handleTab1Filter3() {
+      this.tab1.changeRecord.listLoading = true
+      if (this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 == null) {
+        this.tab1.changeRecord.getdataListParm.parammaps.tab1InputDatetime3 = ''
+      }
+      this.tab1.changeRecord.getdataListParm.offset = 1
+      if (this.tab1.changeRecord.radioAll == '全部') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 2
+        this.getTab1List3()
+      } else if (this.tab1.changeRecord.radioAll == '待处理') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 0
+        this.getTab1List3()
+      } else if (this.tab1.changeRecord.radioAll == '已处理') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 1
+        this.getTab1List3()
+      }
+    },
+    changeChangeRecordAll() {
+      if (this.tab1.changeRecord.radioAll == '全部') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 2
+        this.getTab1List3()
+      } else if (this.tab1.changeRecord.radioAll == '待处理') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 0
+        this.getTab1List3()
+      } else if (this.tab1.changeRecord.radioAll == '已处理') {
+        this.tab1.changeRecord.getdataListParm.parammaps.SHnums = 1
+        this.getTab1List3()
+      }
+    },
+    handleTab1See3(row) {
+      console.log('变更记录-查看')
+      this.tab1.changeRecord.see.temp = Object.assign({}, row)
+      this.dialogStatus = 'tab1See2'
+      this.tab1.changeRecord.see.dialogFormVisible = true
+      if (row.SHtype == 0 || row.SHtype == 1 || row.SHtype == 2) {
+        this.tab1.changeRecord.see.getdataListParm.parammaps.id = row.id
+        this.getTab1List3See()
+      }
+      var reason = '未通过原因:' + this.tab1.changeRecord.see.temp.workflowNote
+      if (this.tab1.changeRecord.see.temp.SHStatus == 2) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核' }, { title: '设备中心审核' }]
+        this.tab1.changeRecord.see.active = 1
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 3) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.changeRecord.see.active = 2
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 4) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson, status: 'error', reason: reason }, { title: '设备中心审核' }]
+        this.tab1.changeRecord.see.active = 2
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 5) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.changeRecord.see.active = 2
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 6) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核' }]
+        this.tab1.changeRecord.see.active = 3
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 7) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.changeRecord.see.temp.CGChargedate, name: this.tab1.changeRecord.see.temp.CGChargePerson }]
+        this.tab1.changeRecord.see.active = 4
+      } else if (this.tab1.changeRecord.see.temp.SHStatus == 8) {
+        this.tab1.changeRecord.see.activeList = [{ title: '合同录入', date: this.tab1.changeRecord.see.temp.creatorTime, name: this.tab1.changeRecord.see.temp.creatorMan }, { title: '供应主管审核', date: this.tab1.changeRecord.see.temp.chargeDate, name: this.tab1.changeRecord.see.temp.chargePerson }, { title: '设备中心审核', date: this.tab1.changeRecord.see.temp.CGChargedate, name: this.tab1.changeRecord.see.temp.CGChargePerson, status: 'error', reason: reason }]
+        this.tab1.changeRecord.see.active = 4
+      }
+    },
+    getTab1List3See() {
+      GetDataByName(this.tab1.changeRecord.see.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.tab1.changeRecord.see.pageNum = response.data.pageNum
+          this.tab1.changeRecord.see.pageSize = response.data.pageSize
+          if (response.data.total) {
+            this.tab1.changeRecord.see.total = response.data.total
+          }
+          for (let i = 0; i < response.data.list.length; i++) {
+            response.data.list[i].myid = new Date().getTime() + i
+            if (response.data.list[i].srcpath !== null && response.data.list[i].picpath !== null && response.data.list[i].srcpath !== undefined && response.data.list[i].picpath !== undefined) {
+              const srcpath = process.env.VUE_APP_BASE_API + response.data.list[i].srcpath
+              const picpath = process.env.VUE_APP_BASE_API + response.data.list[i].picpath
+              response.data.list[i].srcpath = srcpath
+              response.data.list[i].picpath = picpath
+            } else {
+              response.data.list[i].srcpath = ''
+              response.data.list[i].picpath = ''
+            }
+          }
+          this.tab1.changeRecord.see.list = response.data.list
+          this.tab1.detailsSpareParts.listAdd = response.data.list
+        } else {
+          this.tab1.changeRecord.see.list = []
+          this.tab1.detailsSpareParts.listAdd = []
+        }
+        setTimeout(() => {
+          this.tab1.changeRecord.see.listLoading = false
+        }, 300)
+      })
+    },
+    handleTab1Update3(row) {
+      console.log('变更记录-编辑', row)
+      this.tab1.detailsSpareParts.updateList = Object.assign({}, row)
+      this.tab1.detailsSpareParts.create.temp = Object.assign({}, row)
+      this.dialogStatus = 'tab1Update2'
+      this.tab1.detailsSpareParts.create.dialogFormVisible = true
+      this.tab1.changeRecord.see.getdataListParm.parammaps.id = row.id
+      this.getTab1List3See()
+      if (row.SHtype == 1) {
+        this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigALLParts'
+        this.tab1.detailsSpareParts.requestSparePart.parammaps = {}
+      } else {
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.pastureId = this.tab1.detailsSpareParts.detailsList.pastureId
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.providerId = this.tab1.detailsSpareParts.detailsList.providerId
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.stopTime = this.tab1.detailsSpareParts.detailsList.stopTime
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.flag = this.tab1.detailsSpareParts.detailsList.flag
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.isZeroStock = this.tab1.detailsSpareParts.detailsList.isZeroStock
+        this.tab1.detailsSpareParts.requestSparePart.parammaps.statue = this.tab1.detailsSpareParts.detailsList.statue
+        this.tab1.detailsSpareParts.requestSparePart.name = 'getcontratListBybigParts'
+      }
+    },
+    edit_dialog_save2() {
+      console.log('编辑保存')
+      // 新增合同 || 变更日期
+      if (this.tab1.detailsSpareParts.updateList.SHtype == 0 || this.tab1.detailsSpareParts.updateList.SHtype == 3) {
+        this.postDataPramas = {}
+        this.postDataPramas.common = { 'returnmap': '0' }
+        this.postDataPramas.data = []
+        this.postDataPramas.data[0] = { 'name': 'updateBigcontractV2', 'type': 'e', 'parammaps': {
+          id: this.tab1.detailsSpareParts.create.temp.id,
+          startTime: this.tab1.detailsSpareParts.create.temp.startTime,
+          stopTime: this.tab1.detailsSpareParts.create.temp.stopTime,
+          isZeroStock: this.tab1.detailsSpareParts.create.temp.isZeroStock,
+          remark: this.tab1.detailsSpareParts.create.temp.remark,
+          stopTimeHis: this.tab1.detailsSpareParts.create.temp.stopTimeHis
+        }}
+        ExecDataByConfig(this.postDataPramas).then(response => {
+          console.log('新增保存发送参数', this.postDataPramas)
+          if (response.msg == 'fail') {
+            this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+          } else {
+            if (this.tab1.detailsSpareParts.updateList.SHtype == 0) {
+              this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.detailsSpareParts.create.temp.stopTime
+            }
+            this.getTab1List3()
+            this.getPendingList()
+            this.tab1.detailsSpareParts.create.dialogFormVisible = false
+            this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+          }
+        })
+      } else {
+        if (this.tab1.detailsSpareParts.listAdd.length !== 0) {
+          for (let i = 0; i < this.tab1.detailsSpareParts.listAdd.length; i++) {
+            if (this.tab1.detailsSpareParts.listAdd[i].planAmount == null || this.tab1.detailsSpareParts.listAdd[i].brand == null || this.tab1.detailsSpareParts.listAdd[i].price == null || this.tab1.detailsSpareParts.listAdd[i].planAmount == '' || this.tab1.detailsSpareParts.listAdd[i].brand == '' || this.tab1.detailsSpareParts.listAdd[i].brandId === '' || this.tab1.detailsSpareParts.listAdd[i].price == '' || this.tab1.detailsSpareParts.listAdd[i].brand == undefined || this.tab1.detailsSpareParts.listAdd[i].brandId == undefined) {
+              console.log(this.tab1.detailsSpareParts.listAdd[i])
+              this.$message({ type: 'warning', message: '请检查备件品牌或计划量或单价是否为空', duration: 2000 })
+              return false
+            } else {
+              var rulesPlanAmount = /^[1-9]\d*$/
+              if (!rulesPlanAmount.test(parseFloat(this.tab1.detailsSpareParts.listAdd[i].planAmount))) {
+                this.$message({ type: 'error', message: '计划量请输入正整数', duration: 2000 })
+                return false
+              } else {
+                var rulesPrice = /^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
+                if (rulesPrice.test(this.tab1.detailsSpareParts.listAdd[i].price) == false) {
+                  this.$message({ type: 'error', message: '价格请输入正数,最多保留小数点后两位', duration: 2000 })
+                  return false
+                }
+              }
+            }
+          }
+          this.postDataPramas = {}
+          this.postDataPramas.common = { 'returnmap': '0' }
+          this.postDataPramas.data = []
+          this.postDataPramas.data[0] = { 'name': 'deleteContract', 'type': 'e', 'parammaps': {
+            bigId: this.tab1.detailsSpareParts.updateList.id
+          }}
+          this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.tab1.detailsSpareParts.listAdd }}
+          this.postDataPramas.data[1].children = []
+
+          if (this.tab1.detailsSpareParts.updateList.SHtype == 2) {
+            this.postDataPramas.data[1].children[0] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
+              bigId: this.tab1.detailsSpareParts.updateList.id,
+              pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+              pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
+              partId: '@insertSpotList.id',
+              partName: '@insertSpotList.partName',
+              partCode: '@insertSpotList.partCode',
+              specification: '@insertSpotList.specification',
+              price: '@insertSpotList.price',
+              brandId: '@insertSpotList.brandId',
+              brand: '@insertSpotList.brand',
+              planAmount: '@insertSpotList.planAmount',
+              remark: '@insertSpotList.remark',
+              unit: '@insertSpotList.unit',
+              contractId: '@insertSpotList.contractId',
+              taxcode: '@insertSpotList.taxcode',
+              lifeCycle: '@insertSpotList.lifeCycle',
+              contractVarianceItem: '@insertSpotList.contractVarianceItem',
+            }}
+          } else {
+            this.postDataPramas.data[1].children[0] = { 'name': 'checkcontracPartCode', 'type': 'v', 'parammaps': { pastureId: this.tab1.detailsSpareParts.detailsList.pastureId, providerId: this.tab1.detailsSpareParts.detailsList.providerId, stopTime: this.tab1.detailsSpareParts.detailsList.stopTime, flag: this.tab1.detailsSpareParts.detailsList.flag, isZeroStock: this.tab1.detailsSpareParts.detailsList.isZeroStock, statue: this.tab1.detailsSpareParts.detailsList.statue, partCode: '@insertSpotList.partCode', brandId: '@insertSpotList.brandId' }}
+            this.postDataPramas.data[1].children[1] = { 'name': 'insertContractV2', 'type': 'e', 'parammaps': {
+              bigId: this.tab1.detailsSpareParts.updateList.id,
+              pastureId: this.tab1.detailsSpareParts.detailsList.pastureId,
+              pastureName: this.tab1.detailsSpareParts.detailsList.pastureName,
+              partId: '@insertSpotList.id',
+              partName: '@insertSpotList.partName',
+              partCode: '@insertSpotList.partCode',
+              specification: '@insertSpotList.specification',
+              price: '@insertSpotList.price',
+              brandId: '@insertSpotList.brandId',
+              brand: '@insertSpotList.brand',
+              planAmount: '@insertSpotList.planAmount',
+              remark: '@insertSpotList.remark',
+              unit: '@insertSpotList.unit',
+              contractId: '@insertSpotList.contractId',
+              lifeCycle: '@insertSpotList.lifeCycle',
+              contractVarianceItem: '@insertSpotList.contractVarianceItem',
+              // taxcode: '@insertSpotList.taxcode'
+            }}
+          }
+          this.postDataPramas.data[2] = { 'name': 'updateBigcontract', 'type': 'e', 'parammaps': {
+            id: this.tab1.detailsSpareParts.updateList.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.getTab1List3()
+              this.getPendingList()
+              this.tab1.detailsSpareParts.create.dialogFormVisible = false
+              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+            }
+          })
+        } else {
+          this.$notify({ title: '', message: '请选择备件', type: 'warning', duration: 2000 })
+          return false
+        }
+      }
+    },
+    changeExamineStatue(val) {
+      if (val == 2) {
+        this.tab1.changeRecord.examine.isReason = true
+      } else {
+        this.tab1.changeRecord.examine.isReason = false
+      }
+    },
+    // 审核1
+    handleTab1Examine(row) {
+      console.log('变更记录-审核')
+      this.dialogStatus = 'tab1examine'
+      this.tab1.changeRecord.examine.dialogFormVisible = true
+      this.tab1.changeRecord.examine.temp = Object.assign({}, row)
+      this.tab1.changeRecord.examine.isReason = false
+      if (row == undefined) {
+        this.tab1.changeRecord.examine.temp = this.tab1.changeRecord.see.temp
+        this.$set(this.tab1.changeRecord.see.temp, 'statueSH', 1)
+        this.$set(this.tab1.changeRecord.see.temp, 'workflowNote', '')
+      } else {
+        this.tab1.changeRecord.examine.temp = Object.assign({}, row)
+        this.$set(this.tab1.changeRecord.examine.temp, 'statueSH', 1)
+        this.$set(this.tab1.changeRecord.examine.temp, 'workflowNote', '')
+      }
+      this.keyupSubmit()
+    },
+    keyupSubmit() {
+      if (this.dialogStatus == 'tab1examine' || this.dialogStatus == 'tab1examine2' || this.dialogStatus == 'tab1examine3') {
+        document.onkeydown = e => {
+          const _key = window.event.keyCode
+          if (_key === 13) {
+            if (this.dialogStatus == 'tab1examine') {
+              this.createExamineData()
+            } else {
+              this.createExamineData3()
+            }
+          }
+        }
+      }
+    },
+    createExamineData() {
+      console.log('点击了设备主管审核确认1')
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+          this.postDataPramas = {}
+          this.postDataPramas.name = 'contractCharge'
+          this.postDataPramas.parammaps = {}
+          this.postDataPramas.parammaps.id = this.tab1.changeRecord.examine.temp.id
+          if (this.tab1.changeRecord.examine.temp.statueSH === 1) {
+            this.postDataPramas.parammaps.statue = 5
+          } else {
+            this.postDataPramas.parammaps.statue = 4
+          }
+          this.postDataPramas.parammaps.empId	 = Cookies.get('employeid')
+          this.postDataPramas.parammaps.workflowNote = this.tab1.changeRecord.examine.temp.workflowNote
+          PostDataByName(this.postDataPramas).then(response => {
+            console.log('设备主管审核确认发送参数', this.postDataPramas)
+            if (response.msg !== 'fail') {
+              this.tab1.changeRecord.examine.dialogFormVisible = false
+              this.tab1.changeRecord.see.dialogFormVisible = false
+              this.tab1.changeRecord.isStatueReason = false
+              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
+              this.getTab1List3()
+              this.getTab1List()
+              this.getPendingList()
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+    // 审核2
+    handleTab1Examine3(row) {
+      console.log(' 变更记录-审核3')
+      if (row == undefined) {
+        this.tab1.changeRecord.examine.temp = this.tab1.changeRecord.see.temp
+        this.$set(this.tab1.changeRecord.see.temp, 'statueSH', 1)
+        this.$set(this.tab1.changeRecord.see.temp, 'workflowNote', '')
+      } else {
+        this.tab1.changeRecord.examine.temp = Object.assign({}, row)
+        this.$set(this.tab1.changeRecord.examine.temp, 'statueSH', 1)
+        this.$set(this.tab1.changeRecord.examine.temp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'tab1examine3'
+      this.tab1.changeRecord.examine.dialogFormVisible = true
+      this.tab1.changeRecord.examine.isReason = false
+      this.keyupSubmit()
+    },
+    createExamineData3() {
+      console.log('点击了设备中心审核确认3')
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+          this.postDataPramas = {}
+          this.postDataPramas.common = { 'returnmap': '0' }
+          this.postDataPramas.data = []
+          if (this.tab1.changeRecord.examine.temp.statueSH == 1) {
+            this.postDataPramas.data[0] = { 'name': 'contractCharge1', 'type': 'e', 'parammaps': {
+              statue: 7,
+              empId: Cookies.get('employeid'),
+              workflowNote: this.tab1.changeRecord.examine.temp.workflowNote,
+              id: this.tab1.changeRecord.examine.temp.id
+            }}
+            if (this.tab1.changeRecord.examine.temp.SHtype == 1 || this.tab1.changeRecord.examine.temp.SHtype == 2) {
+              this.postDataPramas.data[1] = { 'name': 'updateContractEnable', 'type': 'e', 'parammaps': {
+                id: this.tab1.changeRecord.examine.temp.id
+              }}
+            } else if (this.tab1.changeRecord.examine.temp.SHtype == 3) {
+              this.postDataPramas.data[1] = { 'name': 'updatecontractdate', 'type': 'e', 'parammaps': {
+                pastureId: this.tab1.changeRecord.examine.temp.pastureId,
+                providerId: this.tab1.changeRecord.examine.temp.providerId,
+                stopTimeHis: this.tab1.changeRecord.examine.temp.stopTimeHis,
+                flag: this.tab1.changeRecord.examine.temp.flag,
+                isZeroStock: this.tab1.changeRecord.examine.temp.isZeroStock,
+                statue: this.tab1.changeRecord.examine.temp.statue,
+                startTime: this.tab1.changeRecord.examine.temp.startTime,
+                stopTime: this.tab1.changeRecord.examine.temp.stopTime,
+                id: this.tab1.changeRecord.examine.temp.id
+              }}
+            }
+            this.postDataPramas.data[2] = {
+                  "name": "updateBigcontractIsToSap",
+                              "type": "e",
+                              "parammaps": {
+                                  "contractCode": this.contractCodese
+                              }
+            }
+
+
+          } else {
+            this.postDataPramas.data[0] = { 'name': 'contractCharge1', 'type': 'e', 'parammaps': {
+              statue: 8,
+              empId: Cookies.get('employeid'),
+              workflowNote: this.tab1.changeRecord.examine.temp.workflowNote,
+              id: this.tab1.changeRecord.examine.temp.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 {
+              if (this.postDataPramas.data[0].parammaps.statue == 7) {
+                if (this.tab1.changeRecord.examine.temp.SHtype == 3) {
+                  this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.changeRecord.examine.temp.stopTimeHis
+                } else {
+                  this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.changeRecord.examine.temp.stopTime
+                }
+              } else {
+                this.tab1.changeRecord.getdataListParm.parammaps.stopTime1 = this.tab1.detailsSpareParts.detailsList.stopTime
+              }
+              this.tab1.changeRecord.examine.dialogFormVisible = false
+              this.tab1.changeRecord.see.dialogFormVisible = false
+              this.tab1.changeRecord.examine.isStatueReason = false
+              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+              this.getTab1List3()
+              this.getTab1List()
+              this.getPendingList()
+            }
+          })
+        }
+      })
+    },
+    handleTab1Delete3(row) {
+      console.log('变更记录-删除')
+      console.log('点击了删除')
+      MessageBox.confirm('确认删除此条信息?', {
+        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
+      }).then(() => {
+        this.postDataPramas = {}
+        this.postDataPramas.common = { 'returnmap': '0' }
+        this.postDataPramas.data = []
+        this.postDataPramas.data[0] = { 'name': 'deleteBigContract', 'type': 'e', 'parammaps': {
+          id: row.id
+        }}
+        this.postDataPramas.data[1] = { 'name': 'deleteContract', 'type': 'e', 'parammaps': {
+          bigId: row.id
+        }}
+        ExecDataByConfig(this.postDataPramas).then(response => {
+          this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
+          this.getTab1List3()
+          this.getPendingList()
+        })
+      }).catch(() => {
+        this.$message({ type: 'info', message: '已取消删除' })
+      })
+    },
+
+    // 合同明细
+    getTab2List() {
+      this.tab2.listLoading = true
+      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
+        this.tab2.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
+        this.tab2.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
+      } else {
+        this.tab2.getdataListParm.parammaps.startTime = ''
+        this.tab2.getdataListParm.parammaps.stopTime = ''
+      }
+      GetDataByName(this.tab2.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.tab2.list = response.data.list
+          this.tab2.pageNum = response.data.pageNum
+          this.tab2.pageSize = response.data.pageSize
+          if (response.data.total) {
+            this.tab2.total = response.data.total
+          }
+        } else {
+          this.tab2.list = []
+        }
+        setTimeout(() => {
+          this.tab2.listLoading = false
+        }, 300)
+      })
+    },
+    handleTab2Filter() {
+      this.listLoading2 = true
+      if (this.tab2.getdataListParm.parammaps.inputDatetime === null) {
+        this.tab2.getdataListParm.parammaps.inputDatetime = ''
+      }
+      this.tab2.getdataListParm.offset = 1
+      this.getTab2List()
+    },
+    handleTab2Export() {
+      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)
+      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
+        this.tab2.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
+        this.tab2.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
+      } else {
+        this.tab2.getdataListParm.parammaps.startTime = ''
+        this.tab2.getdataListParm.parammaps.stopTime = ''
+      }
+      this.tab2.getdataListParm.pagecount = ''
+      GetDataByName(this.tab2.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          for (let i = 0; i < response.data.list.length; i++) {
+            if (response.data.list[i].isZeroStock == 0) {
+              response.data.list[i].isZeroStock = '否'
+            } else {
+              response.data.list[i].isZeroStock = '是'
+            }
+          }
+          this.percentage = 99
+          setTimeout(() => {
+            this.isPercentage = false
+          }, 2000)
+        } else {
+          this.percentage = 99
+          setTimeout(() => {
+            this.isPercentage = false
+          }, 2000)
+        }
+        this.tab2.getdataListParm.pagecount = 10
+        this.$nextTick(() => {
+          const ExcelDatas = [
+            {
+              tHeader: ['牧场', '合同编号', '合同状态', '供应商', '合同开始日期', '合同截止日期', '零库存', '备件编号', '备件名称', '规格', '备件品牌', '计量单位', '计划量', '单价', '备注', '录入人', '录入日期'],
+              filterVal: ['pastureName', 'contractCode', 'statue', 'providerName', 'startTime', 'stopTime', 'isZeroStock', 'partCode', 'partName', 'specification', 'brand', 'unit', 'planAmount', 'price', 'remark', 'creatorMan', 'creatorTime'],
+              tableDatas: response.data.list,
+              sheetName: '合同明细'
+            }
+          ]
+          json2excel(ExcelDatas, '合同明细', true, 'xlsx')
+        })
+      })
+    },
+    sapUpload(){
+      if(this.selectList.length == 0){
+        this.$notify({ title: '失败', message: '请勾选数据!'  , type: 'error', duration: 2000 })
+        return false
+      }
+      let url = 'authdata/contract/push'
+      let ids = []
+      this.selectList.forEach((i)=>{
+        ids.push(i.id)
+        console.log(i,'===')
+      })
+      let data = {
+        pastureId:parseInt(Cookies.get('pastureid')),
+        providerId:this.tab1.detailsSpareParts.detailsList.providerId,
+        contractIdList:ids
+      }
+      postJson(url,data).then(response => {
+        if (response.msg !== 'fail') {
+          this.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
+        } else {
+          this.$notify({ title: '上传失败', message: response.data, type: 'warning', duration: 2000 })
+        }
+      })
+    }
+  }
+}
+</script>
+<style lang="scss" scoped>
+  /deep/ .el-badge__content.is-fixed{
+    z-index: 1;
+  }
+  .el-notification__content {
+    white-space: pre-line !important;
+  }
+</style>
+<style lang="scss">
+  .el-notification__content {
+      white-space: pre-line !important;
+    }
+</style>

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

@@ -625,7 +625,7 @@ export default {
         name: 'getWarehouseListByProvider',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: '',
@@ -663,7 +663,7 @@ export default {
         name: 'getPartquitRecord',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           useForm: '',
@@ -678,7 +678,7 @@ export default {
         name: 'getPartrefundRecord',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           useForm: '',
@@ -693,7 +693,7 @@ export default {
         name: 'getCheckpartRecord',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           oddCode: '',
@@ -704,7 +704,7 @@ export default {
       //   name: 'getStockPastureList',
       //   page: 0,
       //   offset: 0,
-      //   pagecount: 10,
+      //   pagecount: 50,
       //   returntype: 'Map',
       //   parammaps: {
       //     pastureId: Cookies.get('pastureid')
@@ -733,7 +733,7 @@ export default {
         name: 'getBrandList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -741,7 +741,7 @@ export default {
         name: 'getProviderList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -753,7 +753,7 @@ export default {
         name: 'getStockPastureList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -797,7 +797,7 @@ export default {
         name: 'getPartLaidRecord',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           partCode: '',
@@ -815,7 +815,7 @@ export default {
         name: 'getPartUseRecord',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           useForm: '',

+ 5 - 5
src/views/custom/inventory/index.vue

@@ -509,7 +509,7 @@ export default {
         name: 'getBigcheckpartList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           oddCode: '',
@@ -524,7 +524,7 @@ export default {
         name: 'getStockList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         params: []
       },
@@ -546,7 +546,7 @@ export default {
         name: 'getPartRepertoryList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         total: 0,
         parammaps: {
           pastureId: this.$store.state.user.pastureid
@@ -557,7 +557,7 @@ export default {
         name: 'getcheckpartbyBig',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         parammaps: {
           id: '',
           partCode: '',
@@ -571,7 +571,7 @@ export default {
         name: 'getcheckpartbyBig',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         parammaps: {
           id: '',
           partCode: '',

+ 1 - 1
src/views/custom/outRecord/index.vue

@@ -328,7 +328,7 @@ export default {
         name: 'getImportStockUseList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 5 - 5
src/views/custom/outStock/index.vue

@@ -1150,7 +1150,7 @@ export default {
         name: 'getImportStockLaidList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: '',
@@ -1247,7 +1247,7 @@ export default {
         name: 'getBigPartuseList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1269,7 +1269,7 @@ export default {
         name: 'getPartuseDetailList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -1350,7 +1350,7 @@ export default {
         name: 'geteqbyNameCode',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -1402,7 +1402,7 @@ export default {
           name: 'getbigpartuseSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             pastureid: Cookies.get('pastureid')

+ 5 - 5
src/views/custom/outStock/index1.vue

@@ -1011,7 +1011,7 @@ export default {
         name: 'getImportStockLaidList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: '',
@@ -1107,7 +1107,7 @@ export default {
         name: 'getBigPartuseList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1128,7 +1128,7 @@ export default {
         name: 'getPartuseDetailList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -1206,7 +1206,7 @@ export default {
         name: 'geteqbyNameCode',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -1257,7 +1257,7 @@ export default {
           name: 'getbigpartuseSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             pastureid: Cookies.get('pastureid')

+ 7 - 7
src/views/custom/purchase/index.vue

@@ -1460,7 +1460,7 @@ export default {
         name: 'getProviderList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1511,7 +1511,7 @@ export default {
         name: 'getbuydetailParts',
         page: 1,
         // offset: 1,
-        // pagecount: 10,
+        // pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid'),
@@ -1522,7 +1522,7 @@ export default {
         name: 'getpartpurchasebg',
         page: 1,
         // offset: 1,
-        // pagecount: 10,
+        // pagecount: 50,
         returntype: 'Map',
         parammaps: {
           id: Cookies.get('pastureid'),
@@ -1551,7 +1551,7 @@ export default {
         name: 'getBigbuydetailList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           providerName: '',
@@ -1573,7 +1573,7 @@ export default {
         name: 'getbuydetailList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1625,7 +1625,7 @@ export default {
         name: 'getbigpartdeallist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1659,7 +1659,7 @@ export default {
         name: 'getBigRefunddetailList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 3 - 3
src/views/custom/receive/index.vue

@@ -574,7 +574,7 @@ export default {
       collarType: [{ id: '0', name: '非维保' }, { id: '1', name: '维修' }, { id: '2', name: '保养' },{ id: '3', name: '委外维修' }],
       radioAll: '全部',
       getdataListParm: {
-        name: 'getBigpartapplyList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getBigpartapplyList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureName: Cookies.get('pasturename'), applyCode: this.$route.query.applyCode, applyType: '', statue: '', departmentId: '', inputDatetime: '', startTime: '', stopTime: '', loginId: Cookies.get('employeid'), menu: 'Receive', logindeptId: Cookies.get('departmentid'), loginpastureId: Cookies.get('pastureid') }
       },
       tableKey: 0,
@@ -613,7 +613,7 @@ export default {
       listAdd: [],
       EqNameList: [],
       requestEqName: {
-        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid') }
       },
       EqCodeList: [],
@@ -632,7 +632,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getPartapplyWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getPartapplyWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },

+ 3 - 3
src/views/custom/receive/index1.vue

@@ -573,7 +573,7 @@ export default {
       collarType: [{ id: '0', name: '非维保' }, { id: '1', name: '维修' }, { id: '2', name: '保养' }],
       radioAll: '全部',
       getdataListParm: {
-        name: 'getBigpartapplyList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'getBigpartapplyList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureName: Cookies.get('pasturename'), applyCode: this.$route.query.applyCode, applyType: '', statue: '', departmentId: '', inputDatetime: '', startTime: '', stopTime: '', loginId: Cookies.get('employeid'), menu: 'Receive', logindeptId: Cookies.get('departmentid'), loginpastureId: Cookies.get('pastureid') }
       },
       tableKey: 0,
@@ -612,7 +612,7 @@ export default {
       listAdd: [],
       EqNameList: [],
       requestEqName: {
-        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid') }
       },
       EqCodeList: [],
@@ -631,7 +631,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getPartapplyWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getPartapplyWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },

+ 1 - 1
src/views/custom/record/index.vue

@@ -272,7 +272,7 @@ export default {
         name: 'getImportStockLaidList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

+ 1 - 1
src/views/custom/refuse/index.vue

@@ -327,7 +327,7 @@ export default {
         name: 'getRefuseList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: new Date(),

+ 23 - 23
src/views/custom/retreat/index.vue

@@ -80,7 +80,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">
@@ -655,7 +655,7 @@ export default {
         name: 'getBigPartquitlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -680,7 +680,7 @@ export default {
         name: 'getPartquitDetaillist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -734,7 +734,7 @@ export default {
         name: 'getBigpartusecode',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureId: Cookies.get('pastureid')
@@ -769,7 +769,7 @@ export default {
           name: 'getbigpartquitSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             pastureid: Cookies.get('pastureid')
@@ -790,8 +790,8 @@ export default {
             if(parseInt(i.quitNumber) > (parseInt(i.checkoutNumber)-parseInt(i.quitNumberC))){
               i.quitNumber = parseInt(i.checkoutNumber)-parseInt(i.quitNumberC)
             }
-                
-          })  
+
+          })
       }
     },
   },
@@ -984,17 +984,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.creatTime)
         var data2 = new Date('2022-10-25')
         if(data1 > data2){ return 1 } else {return 0}
- 
+
       }
 
- 
+
     },
     //监听 - 表格 - 勾选
     change_table_selection(val) {
@@ -1003,7 +1003,7 @@ export default {
     },
 
     sapUpload(){
-      const that = this 
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
       var send_data = this.selectList
 
@@ -1018,21 +1018,21 @@ export default {
       if(that.isSap == 1){
 
          that.isSap = 0
-      
+
          SapQuit(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 })
@@ -1043,7 +1043,7 @@ export default {
             }, 3000)
 
 
-      
+
       //  if(true){
       // if(this.currentRow.ProofCode){
       //    console.log("currentRow ProofCode 这个值说明已经上传了,不用上传")
@@ -1051,28 +1051,28 @@ export default {
       // } 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,
       //             "quitDate":creatTime,
       //             "pastureid":Cookies.get('pastureid')
-              
+
       //       }
       //       SapQuit(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 - 4
src/views/custom/returngoods/index.vue

@@ -715,7 +715,7 @@ export default {
         name: 'getBigPartrefundlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -741,7 +741,7 @@ export default {
         name: 'getPartrefundDetaillist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -851,7 +851,7 @@ export default {
           name: 'getbigpartrefundSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             pastureid: Cookies.get('pastureid')
@@ -861,7 +861,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getBigPartrefundWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getBigPartrefundWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {pastureId: Cookies.get('pastureid')}
         }
       },

+ 29 - 29
src/views/custom/returngoods/index1.vue

@@ -87,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">
@@ -635,7 +635,7 @@ export default {
       isSap:1,
       isSrm:1,
       selectList: [],
-      isRetrunsap: [], 
+      isRetrunsap: [],
       currentRow:{},
       // 权限
       isReturngoodsAdd: [], isReturngoodsTemplate: [], isReturngoodsImport: [], isReturngoodsExport: [], isReturngoodsSee: [], isReturngoodsDelete: [], isReturngoodsExamineZG: [], isReturngoodsExamineCG: [], isReturngoodsUpdate: [],
@@ -676,7 +676,7 @@ export default {
         name: 'getBigPartrefundlist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -702,7 +702,7 @@ export default {
         name: 'getPartrefundDetaillist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -810,7 +810,7 @@ export default {
           name: 'getbigpartrefundSync',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             pastureid: Cookies.get('pastureid')
@@ -820,7 +820,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getBigPartrefundWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getBigPartrefundWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {pastureId: Cookies.get('pastureid')}
         }
       }
@@ -832,22 +832,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
             }
-               
+
           })
 
-           
+
       }
     },
- 
+
   },
 
 
@@ -873,7 +873,7 @@ export default {
     get_auto_buttons() {
 
 
-      
+
       const Retrunsap = 'customs:returngoods:sap'
       const isRetrunsap = checkButtons(this.$store.state.user.buttons, Retrunsap)
       this.isRetrunsap = isRetrunsap
@@ -1093,17 +1093,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}
- 
+
       }
 
- 
+
     },
 
     //监听 - 表格 - 勾选
@@ -1113,7 +1113,7 @@ export default {
     },
 
     sapUpload(){
-      const that = this 
+      const that = this
       console.log("currentRow ProofCode",this.currentRow.ProofCode)
       var send_data = this.selectList
 
@@ -1130,18 +1130,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 })
@@ -1152,7 +1152,7 @@ export default {
             }, 3000)
 
 
-     
+
 
       //  if(true){
       // if(this.currentRow.ProofCode){
@@ -1161,27 +1161,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 })
       //           }
       //       })
- 
+
       // }
 
     },

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

@@ -102,7 +102,7 @@ export default {
         name: 'getSapLog',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           praseTime: parseTime(new Date().getTime(), '{y}-{m}-{d}')
@@ -125,7 +125,7 @@ export default {
         name: 'getEqRunstatueListDept',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           type: 0
@@ -137,7 +137,7 @@ export default {
         name: 'getEqRunstatueListEqclass',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 2457
src/views/custom/storage/index.vue


+ 4 - 4
src/views/custom/subscribe/index.vue

@@ -2624,7 +2624,7 @@ export default {
         name: 'getpartpurchaseList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -2726,7 +2726,7 @@ export default {
           page: 1,
           offset: 1,
           getTotal: 'total3',
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             loginId: Cookies.get('employeid'),
@@ -2749,7 +2749,7 @@ export default {
         getdataListParm: {
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           name: 'getIdleSpareParts',
           parammaps: {
             partName: ''
@@ -2769,7 +2769,7 @@ export default {
         name: 'getBrandByPartCode',
         page: 0,
         offset: 0,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 2 - 2
src/views/custom/writeoff/index.vue

@@ -173,7 +173,7 @@ export default {
       materialVoucherNoList:[{id:0,name:'11111'},{id:1,name:'2222'}],//物料凭证号
       // table1:{
       //   getdataListParm: {
-      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
       //     parammaps: {
       //       pastureName: Cookies.get('pasturename'),
       //       writeoffType:'',
@@ -184,7 +184,7 @@ export default {
       // },
       table1:{
         getdataListParm: {
-          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {
 
             pastureName: Cookies.get('pasturename'),

+ 11 - 11
src/views/custom/writeoff/index1.vue

@@ -40,7 +40,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>
@@ -162,7 +162,7 @@ export default {
       materialVoucherNoList:[{id:0,name:'11111'},{id:1,name:'2222'}],//物料凭证号
       // table1:{
       //   getdataListParm: {
-      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
       //     parammaps: {
       //       pastureName: Cookies.get('pasturename'),
       //       writeoffType:'',
@@ -173,7 +173,7 @@ export default {
       // },
       table1:{
         getdataListParm: {
-          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {
             pastureName: Cookies.get('pasturename'),
             writeoffType:'备件入库',
@@ -365,27 +365,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)
 
 

+ 15 - 15
src/views/custom/writeoff/index2.vue

@@ -44,7 +44,7 @@ index copy      <el-input v-if="table1.getdataListParm.parammaps.writeoffType ==
       <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>
@@ -120,7 +120,7 @@ index copy      <el-input v-if="table1.getdataListParm.parammaps.writeoffType ==
           :cell-style="cellStyle"
           class="elTable"
           >
-      
+
           <el-table-column label="行号" align="center" prop="rowNumber" width="50px" />
           <el-table-column label="备件编号" prop="partCode" align="center" min-width="90" />
           <el-table-column label="备件名称" prop="partName" align="center" min-width="90" />
@@ -172,7 +172,7 @@ export default {
       materialVoucherNoList:[{id:0,name:'11111'},{id:1,name:'2222'}],//物料凭证号
       // table1:{
       //   getdataListParm: {
-      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+      //     name: 'getBigPartTransferList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
       //     parammaps: {
       //       pastureName: Cookies.get('pasturename'),
       //       writeoffType:'',
@@ -183,9 +183,9 @@ export default {
       // },
       table1:{
         getdataListParm: {
-          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: 'getLaidProofList', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {
-            
+
             pastureName: Cookies.get('pasturename'),
             writeoffType:'备件入库',
             orderNumber:'',
@@ -330,7 +330,7 @@ export default {
         // this.$message({ title: '', message: re, type: 'warning', duration: 2000 })
       })
     },
-   
+
     add_dialog_save() {
       this.isokDisable = true
       setTimeout(() => {
@@ -338,7 +338,7 @@ export default {
       }, 1000)
 
       var rowsNumberArr = []
- 
+
 
       this.create.list.forEach(function(item){
         rowsNumberArr.push(item.rowNumber)
@@ -382,27 +382,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)
 
 

+ 1 - 1
src/views/dashboard/editor/index.vue

@@ -220,7 +220,7 @@ export default {
               name: 'homepageRate',
               page: 1,
               offset: 1,
-              pagecount: 10,
+              pagecount: 50,
               returntype: 'Map',
               parammaps: {
                 pastureName: ''

+ 1 - 1
src/views/electro/electroData/index.vue

@@ -419,7 +419,7 @@ export default {
         name: 'getUseElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           assetNumber: '',

+ 4 - 4
src/views/evaluationVerification/assessment/index.vue

@@ -422,7 +422,7 @@ export default {
         name: 'getbigjudgeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -444,7 +444,7 @@ export default {
         name: 'getjudgeListBybig',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -485,7 +485,7 @@ export default {
         name: 'getAssessmentList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -494,7 +494,7 @@ export default {
         name: 'getAssessmentList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/evaluationVerification/assessment/index1.vue

@@ -397,7 +397,7 @@ export default {
         name: 'getbigjudgeList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -416,7 +416,7 @@ export default {
         name: 'getjudgeListBybig',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -456,7 +456,7 @@ export default {
         name: 'getAssessmentList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

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

@@ -175,7 +175,7 @@ export default {
         name: 'getFilelist',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           id: '',
@@ -186,7 +186,7 @@ export default {
         name: 'searchFileList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           docname: ''

+ 24 - 24
src/views/maintenance/maintain/index.vue

@@ -422,7 +422,7 @@
                   </template>
                 </el-table-column>
               </el-table>
-             
+
               <el-form
                 ref="seeTemp"
                 :rules="rules"
@@ -468,11 +468,11 @@
                       </el-upload>
                     </el-form-item>
                      </el-col>
-                  <!-- <el-col :span="24" style="margin-left:120px;"> 
+                  <!-- <el-col :span="24" style="margin-left:120px;">
                     <el-button type="primary" plain @click="handleSaveImg">确认上传图片</el-button>
                   </el-col> -->
                 </el-row>
-             
+
                </div>
                 <el-row>
                   <el-col>
@@ -639,7 +639,7 @@
           </el-tabs>
         </div>
 
-      
+
       </div>
       <div slot="footer" class="dialog-footer" style="bottom:5px;">
         <el-button @click="close_diago()">关闭</el-button>
@@ -1009,7 +1009,7 @@ export default {
       dialogVisibleImg: false,
       // width:'40%',
 
-     
+
       myHeight: document.documentElement.clientHeight - 85- 250,
       active: 0,
       activeList: [],
@@ -1051,7 +1051,7 @@ export default {
         name: 'getBigupkeepList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',
@@ -1098,7 +1098,7 @@ export default {
         parammaps: {}
       },
       collarUseTemp: {
-   
+
       },
       // 查看-领用记录table
       getCollarUseListParm: {
@@ -1155,7 +1155,7 @@ export default {
         name: 'getAllPartsListWB',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1179,7 +1179,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getBigupkeepWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },
@@ -1240,7 +1240,7 @@ export default {
     this.getPendingList()
   },
   methods: {
-  
+
     onLoad(e) {
       const img = e.target
       let width = 0
@@ -1261,7 +1261,7 @@ export default {
 
       console.log(data, '图片确认发布到保养中')
     },
-  
+
     handlePicChange(file, fileList) {
       //  this.handlePicSuccess()
       // console.log(this.seeTemp)
@@ -1270,7 +1270,7 @@ export default {
       console.log('文件上传成功时的钩子response', response, )
       console.log('文件上传成功时的钩子file', file)
       console.log('fileList', fileList)
-  
+
       //3张图片时,关闭新增的按钮
       if (fileList.length == 3) {
         document.getElementById('uploadPic').lastChild.style.display = "none"
@@ -1296,7 +1296,7 @@ export default {
     handlePicRemove(file, fileList) {
       console.log(file, '文件列表移除文件时的钩子file---')
       console.log(fileList, '文件列表移除文件时的钩子fileList--')
-    
+
       this.seeTemp.scenePhoto1 = '-1';
       this.seeTemp.scenePhoto2 = '-1';
       this.seeTemp.scenePhoto3 = '-1';
@@ -1310,7 +1310,7 @@ export default {
         this.seeTemp.scenePhoto2 = (fileList[1].response && fileList[1].response.execresult.LastInsertId.toString()) || fileList[1].imgId
       } else if (fileList.length == 1) {
         this.seeTemp.scenePhoto1 = (fileList[0].response && fileList[0].response.execresult.LastInsertId.toString()) || fileList[0].imgId
-      } 
+      }
 
       //3张图片时,关闭新增的按钮
        if (fileList.length == 3) {
@@ -1328,7 +1328,7 @@ export default {
       this.dialogImageUrl = file.url
       this.dialogVisibleImg = true
     },
-  
+
     // handleCheck(row) {
     //   this.playvideo = row.hotVideoPath // 存储用户点击的视频播放链接
     //   this.playvideoName = row.hotVideoPath // 存储用户点击的视频播放链接
@@ -1569,7 +1569,7 @@ export default {
         if( row.picId1 !== '-1' && row.picId1 !== '') {
           this.seeTemp.scenePhoto1 = row.picId1
           this.$set(this.fileList, 0, { name: "picImg1", url: process.env.VUE_APP_BASE_API + row.picpath1 , imgId : row.picId1 }
-          ) 
+          )
         }
          if( row.picId2 !== '-1' && row.picId2 !== '') {
           this.seeTemp.scenePhoto2 = row.picId2
@@ -1580,8 +1580,8 @@ export default {
           this.seeTemp.scenePhoto3 = row.picId3
           this.$set(this.fileList, 2, { name: "picImg3", url: process.env.VUE_APP_BASE_API + row.picpath3, imgId : row.picId3 }
           )
-        }  
-        
+        }
+
         console.log('查看-------图片2', this.fileList)
       // 流程图
       var reason = '未通过原因:' + this.seeTemp.workflowNote
@@ -1630,7 +1630,7 @@ export default {
       this.collarUseTemp = {}
       this.listCollarUse = []
       this.getCollarUse()
-      this.getOldProductsList()     
+      this.getOldProductsList()
 
       this.$nextTick(()=>{
         if(this.seeTemp.SHStatue !== 2 ||  this.fileList.length >= 3){
@@ -2121,7 +2121,7 @@ export default {
                     this.dialogFormVisible_See = false
                     this.get_table_data()
                     this.getPendingList()
-                   
+
                     this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
                   }
                 })
@@ -2145,7 +2145,7 @@ export default {
     // 保养审核
     handleExamine(row) {
       console.log('点击了保养审核', row, this.seeTemp, this.fileList)
-     
+
       if (row == undefined) {
         console.log('里面审核')
         this.examineTemp = this.seeTemp
@@ -2224,7 +2224,7 @@ export default {
     // 保养审核2
     handleExamine2(row) {
       console.log('点击了保养审核------99')
-    
+
       if (row == undefined) {
         this.examineTemp = this.seeTemp
         this.$set(this.seeTemp, 'isStatue', 3)
@@ -2233,7 +2233,7 @@ export default {
         this.examineTemp = Object.assign({}, row)
         this.$set(this.examineTemp, 'isStatue', 3)
         this.$set(this.examineTemp, 'workflowNote', '')
-       
+
       }
       this.dialogStatus = 'examine2'
       this.dialogFormVisible_examine = true
@@ -2405,7 +2405,7 @@ export default {
     z-index: 1;
   }
 </style>
-<style lang="scss" scoped>  
+<style lang="scss" scoped>
 ::v-deep .child-dialog{
  z-index: 3000 !important; /* 手动提升 z-index 层级 */
 }

+ 1 - 1
src/views/maintenance/maintenancePlan/index1.vue

@@ -198,7 +198,7 @@ export default {
         name: 'geteqList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),

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

@@ -414,7 +414,7 @@
                 </el-select>
               </el-form-item>
             </el-col> -->
-        
+
             <el-col :span="8">
               <el-form-item label="维修人:" prop="pickId">
 
@@ -1681,7 +1681,7 @@ export default {
         name: 'getRepirsList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1778,7 +1778,7 @@ export default {
         name: 'getmaintainappearance',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1795,7 +1795,7 @@ export default {
         name: 'getPartsapplybyMt_m',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1805,7 +1805,7 @@ export default {
         name: 'getMaintainRefuse',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1860,7 +1860,7 @@ export default {
         name: 'getAllPartsListWB',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1999,7 +1999,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getRepirsWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getRepirsWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },
@@ -2034,7 +2034,7 @@ export default {
       this.dialogFormVisible_Create = false
       this.get_table_data()
     }
-  
+
   },
     roleSet1(row){
       var result = true
@@ -2786,7 +2786,7 @@ export default {
       this.$nextTick(() => {
         this.$refs['createTempCont'].clearValidate()
       })
-      
+
        //新增生成单号
       this.get_create_num()
     },
@@ -2824,7 +2824,7 @@ export default {
 
       this.createTempCont.description = ''
 
-     
+
 
 
       // this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
@@ -3392,7 +3392,7 @@ export default {
         })
       })
     },
-    
+
     // TODO:
     // 点击完成之前需要去查下 当前报修单号下的委外维修订单状态是否已 验收-审核通过状态
     // 审核通知-可以完成维修
@@ -3446,15 +3446,15 @@ export default {
               this.listLoading = false
             }, 100)
           })
-    
+
         //
         }
       })
-      
+
     },
     // 完成维修
     // handleRepairComplete(row) {
-      
+
     //     if (row == undefined) {
     //       this.$set(this.seeTemp, 'isOldProducts', 0)
     //       this.repairCompleteTemp = this.seeTemp
@@ -3482,7 +3482,7 @@ export default {
     //         this.listLoading = false
     //       }, 100)
     //     })
-    
+
     //   },
     changeIsOldProducts(val) {
       console.log(val)

+ 10 - 10
src/views/maintenance/repair/index1.vue

@@ -149,8 +149,8 @@
     </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_Create" :close-on-click-modal="false" width="90%">
       <div class="app-create">
         <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
@@ -209,7 +209,7 @@
                 <el-select v-model="createTemp.pickId" placeholder="故障情况" filterable class="filter-item" style="width:100%" @change="changePickId">
                   <el-option v-for="item in maintainers" :key="item.id" :label="item.empNameAndmt" :value="item.id" />
                 </el-select>
-                
+
               </el-form-item> -->
 
 
@@ -1391,7 +1391,7 @@ export default {
         name: 'getRepirsList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: Cookies.get('pasturename'),
@@ -1477,7 +1477,7 @@ export default {
         name: 'getmaintainappearance',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1494,7 +1494,7 @@ export default {
         name: 'getPartsapplybyMt_m',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1504,7 +1504,7 @@ export default {
         name: 'getMaintainRefuse',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1543,7 +1543,7 @@ export default {
         name: 'getAllPartsListWB',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },
@@ -1662,7 +1662,7 @@ export default {
       pending: {
         total: 0,
         getdataListParm: {
-          name: 'getRepirsWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
+          name: 'getRepirsWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 50, returntype: 'Map',
           parammaps: {}
         }
       },
@@ -1930,7 +1930,7 @@ export default {
         details : this.createTemp.details,
         requestTime : parseTime(new Date(), '{y}-{m}-{d}')
       }
-      
+
     },
     getRepairNumber() {
       GetDataByName(this.getRepairNumberParm).then(response => {

+ 1 - 1
src/views/maintenance/spotCheck/index.vue

@@ -363,7 +363,7 @@ export default {
         name: 'getBigSpotcheckList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           inputDatetime: '',

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

@@ -1,1671 +1,1671 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.pastureName" style="width: 140px;" placeholder="牧场" class="filter-item" @change="change_pasture1">
-        <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.departmentId" clearable style="width: 140px;" placeholder="部门" class="filter-item">
-        <el-option v-for="item in departNameList1" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.outsourcingCode" placeholder="委外维修单号" style="width: 200px;" class="filter-item" />
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.status" style="width: 140px;" clearable placeholder="审核状态" class="filter-item">
-        <el-option v-for="item in statuesNameList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <!-- todo -->
-      <el-select v-model="tableObj1.getdataListParm.parammaps.reject" style="width: 140px;" clearable placeholder="单据状态" class="filter-item">
-        <el-option v-for="item in rejectList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 200px;" class="filter-item" />
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 200px;" class="filter-item" />
-
-      <el-date-picker ref="inputDatetime" v-model="tableObj1.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  class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-
-      <el-button v-if="istab1Add" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
-
-
-
-    </div>
-
-
-    <div class="elTable">
-      <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">
-          <template slot-scope="scope">
-            <span>{{ scope.$index + (tableObj1.pageNum-1) * tableObj1.pageSize + 1 }}</span>
-          </template>
-        </el-table-column>
-
-        <el-table-column label="委外单号" min-width="120px" align="center" prop="outsourcingCode" />
-        <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
-        <el-table-column label="责任部门 " min-width="120px" align="center" prop="departmentName" />
-        <el-table-column label="合同" min-width="150px" align="center">
-          <template slot-scope="scope">
-            <span v-if="scope.row.contract ==1 ">有</span>
-            <span v-else>无</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="申请人" min-width="120px" align="center" prop="applicantName" />
-        <el-table-column label="日期" min-width="120px" align="center" prop="date" />
-        <el-table-column label="审核状态" min-width="150px" align="center">
-          <template slot-scope="scope">
-            <span v-if="scope.row.status == 0 ">审核中</span>
-            <span v-else-if="scope.row.status == 1 ">审核通过</span>
-            <span v-else>审核未通过</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="单据状态" min-width="150px" align="center">
-          <template slot-scope="scope">
-            <span v-if="scope.row.reject == 0 ">正常</span>
-            <span v-if="scope.row.reject == 1 ">已关单</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="操作" align="center" width="260" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button   type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <el-button v-if="istab1Edit && (row.status !== 0) && (row.status !== 1) "  type="success" size="mini" @click="form_edit(row)">编辑</el-button>
-          <el-button v-if="istab1Del && (row.status !== 1) "  type="danger" size="mini" @click="form_delete(row)">删除</el-button>
-          <el-button  v-if="row.status !== 0  && row.status !== 1"  style="display:inline-block" type="success" size="mini" @click="form_submit(row)">提交</el-button>
-          <!-- <el-button  v-if="row.isAcceptance == 0"  style="display:inline-block" type="warning" size="mini" @click="form_closeSubmit(row)">关单</el-button> -->
-
-          <el-button  v-if="istab1Shenhe1 && (row.status== 0) && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
-
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
-
-          <el-button   v-if="istab1Shenhe2 && (row.status== 0) && (row.flowCompeleted == 2 )" style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
-
-          <el-button   v-if="istab1Shenhe3 && (row.status== 0) && (row.flowCompeleted == 4)" style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
-
-          <el-button   v-if="istab1Shenhe4 && (row.status== 0) && (row.flowCompeleted == 6)  && (row.isAudit == 1)" style="display:inline-block" type="success" size="mini" @click="form_examine4(row)">审核4</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine4(row)">审核4</el-button>
-        </template>
-      </el-table-column>
-
-      </el-table>
-
-      <pagination v-show="tableObj1.total>0" :total="tableObj1.total" :page.sync="tableObj1.getdataListParm.offset" :limit.sync="tableObj1.getdataListParm.pagecount" @pagination="get_table_data1()" />
-    </div>
-
-
-    <!-- 弹出层新增or修改 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <div >
-        <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="100px" style="width: 100%;">
-          <el-row :gutter="20">
-            <el-col :span="8">
-              <el-form-item label="委外维修单号:" prop="outsourcingCode">
-                <el-input ref="outsourcingCode" v-model="createTemp.outsourcingCode" disabled   />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="牧场:" prop="pastureId" >
-                <el-select v-model="createTemp.pastureId" placeholder="牧场" class="filter-item" style="width:100%" :disabled=" dialogStatus==='see'" @change="change_pasture2" >
-                  <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-
-            <el-col :span="8">
-              <el-form-item label="责任部门:" prop="departmentId">
-                <el-select v-model="createTemp.departmentId" placeholder="责任部门" class="filter-item" style="width:100%" :disabled=" dialogStatus==='see'"  @change="change_depart2">
-                  <el-option v-for="item in departNameList2" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row :gutter="20">
-
-            <el-col :span="8">
-              <el-form-item label="合同:" prop="contract">
-                <el-radio-group v-model="createTemp.contract" :disabled="dialogStatus==='see'"  @change="change_contract" >
-                  <el-radio   :label="0" :checked="createTemp.contract == 0">无合同</el-radio>
-                  <el-radio   :label="1" :checked="createTemp.contract == 1">有合同</el-radio>
-
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-
-            <el-col :span="8">
-              <el-form-item label="申请人:" prop="applicant">
-                <el-select v-model="createTemp.applicant" placeholder="申请人" class="filter-item" style="width:100%" :disabled="dialogStatus==='see'"  >
-                  <el-option v-for="item in employeNameList" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="日期:" prop="date">
-                <el-date-picker v-model="createTemp.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
-              </el-form-item>
-            </el-col>
-
-
-          </el-row>
-          <el-row :gutter="20">
-            <el-col :span="16">
-              <el-form-item label="故障描述:" prop="description">
-                <el-input   v-model="createTemp.description" type="textarea" autosize :disabled="dialogStatus==='see'"  />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="报修单号:" prop="RUCode">
-                <el-input ref="RUCode" v-model="createTemp.RUCode" disabled   />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-
-
-
-          <el-table
-            :key="tableKey"
-            v-loading="listLoading"
-            element-loading-text="给我一点时间"
-            :data="listAddCont"
-            border
-            fit
-            highlight-current-row
-            style="width: 100%;margin-bottom:30px"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable"
-          >
-            <!-- table表格 -->
-            <el-table-column :key="1" label="序号" align="center" type="index" width="50px" />
-            <el-table-column :key="2" label="供应商" prop="providerName" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <el-select v-model="scope.row.providerName" filterable placeholder="供应商" class="filter-item" style="width: 120px; margin-top:10px" v-if="dialogStatus ==='create'||dialogStatus ==='update'"  >
-                  <el-option v-for="item in providerNameList" :key="item.name" :label="item.name" :value="item.name" />
-                </el-select>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.providerName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column :key="3" v-if="createTemp.contract==0" label="金额" prop="amount" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.amount" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
-              </template>
-            </el-table-column>
-              <el-table-column  :key="4" label="设备名称" prop="eqName" align="center" min-width="250">
-                <template slot-scope="scope">
-                  <el-autocomplete     style="margin-top:10px"  :disabled="dialogStatus ==='see'"
-                    v-model="scope.row.eqName"
-                    class="inline-input"
-                    :fetch-suggestions="querySearchEqNameCont"
-                    value-key="eqName"
-                    placeholder="设备名称"
-                    @select="(value)=>
-                    {handleSelectEqNameCont(value, scope.row)}"
-                    @blur="(value)=>
-                    {blurSelectEqNameCont(value, scope.row)}"
-                  >
-                    <template slot-scope="{ item }">
-                      <span class="addr">{{ item.eqName }}</span>
-                      |<span class="addr">{{ item.eqCode }}</span>
-                    </template>
-                  </el-autocomplete>
-
-                </template>
-              </el-table-column>
-              <el-table-column  :key="5" label="设备内部编号" prop="eqCode" align="center" min-width="150">
-                <template slot-scope="scope">
-
-
-                  <el-autocomplete  style="margin-top:10px"
-                    v-model="scope.row.eqCode" :disabled="dialogStatus ==='see'"
-                    class="inline-input"
-                    :fetch-suggestions="querySearchCodeCont"
-                    value-key="eqCode"
-                    placeholder="设备内部编号"
-                    @select="(value)=>
-                    {handleSelectEqCodeCont(value, scope.row)}"
-                    @blur="(value)=>
-                    {blurSelectEqCodeCont(value, scope.row)}"
-                  />
-
-                </template>
-              </el-table-column>
-
-
-            <!-- <el-table-column label="设备名称" prop="eqName" min-width="80px" align="center">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.eqName" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.eqName }}</span>
-              </template>
-            </el-table-column>
-
-
-            <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.eqCode" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.eqCode }}</span>
-              </template>
-            </el-table-column> -->
-            <el-table-column :key="6" label="费用类型" prop="typea" align="center" min-width="80px">
-              <template slot-scope="scope">
-
-                <el-select v-model="scope.row.typea" placeholder="费用类型" class="filter-item" style="width: 120px; margin-top:10px " v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-option v-for="item in costTypeList" :key="item.id" :label="item.name" :value="item.name" />
-                </el-select>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.typea }}</span>
-              </template>
-            </el-table-column>
-            <!-- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-
-                  <el-date-picker v-model="scope.row.date"   style="margin-top:10px"   type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd"   />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.date }}</span>
-              </template>
-            </el-table-column> -->
-            <el-table-column :key="7" v-if="createTemp.contract == 1" label="合同编号" prop="contractCode" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.contractCode" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.contractCode }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column :key="8" label="备注" prop="remark" align="center" min-width="180px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.remark" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.remark }}</span>
-              </template>
-            </el-table-column>
-
-
-
-          </el-table>
-
-
-          <el-row :gutter="10" v-if="dialogStatus ==='see'  ">
-
-            <el-col>
-              <h3>流程进度</h3>
-              <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>
-                  </template>
-                </el-step>
-              </el-steps>
-            </el-col>
-          </el-row>
-
-
-
-
-        <div slot="footer" class="dialog-footer" style="bottom:10px">
-          <el-button type="primary" :disabled="isokDisable" v-if="dialogStatus !=='see'" @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
-          <el-button @click="dialogFormVisible = false;get_table_data1()">取消并关闭</el-button>
-        </div>
-      </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 0 0 5%;line-height:50px;">请确认审核结果:</h3>
-        <el-form ref="examineTemp" :model="examineTemp" label-position="right" style="width: 50%;margin:0 auto;">
-          <el-row style="width:88%;height:150px;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.status" @change="change_statue">
-                  <el-radio :label="1" checked>通过</el-radio>
-                  <el-radio :label="2">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="statueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button v-if="istab1Shenhe1 && (examineTemp.flowCompeleted == 1) "  type="primary" :disabled="isokDisable" @click="form_examine_save()">确认1</el-button>
-        <el-button v-if="istab1Shenhe2 && (examineTemp.flowCompeleted == 2)"  type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认2</el-button>
-        <el-button v-if="istab1Shenhe3 && (examineTemp.flowCompeleted == 4)"  type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认3</el-button>
-        <el-button v-if="istab1Shenhe4 && (examineTemp.flowCompeleted == 6)"  type="primary" :disabled="isokDisable" @click="form_examine_save4()">确认4</el-button>
-        <!-- <el-button v-if="dialogStatus==='examine22'" type="primary" :disabled="isokDisable" @click="form_examine_save22()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine33'" type="primary" :disabled="isokDisable" @click="form_examine_save33()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button> -->
-        <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-
-
-  </div>
-</template>
-
-<script>
-import echarts from 'echarts'
-require('echarts/theme/macarons')
-import { GetDataByNames, GetReportform, GetDataByName, PostDataByName, checkButtons, ExecDataByConfig} from '@/api/common'
-import Cookies from 'js-cookie'
-import { parseTime, json2excel } from '@/utils/index.js'
-import { MessageBox } from 'element-ui'
-import Pagination from '@/components/Pagination'
-export default {
-  name: 'Tab1',
-  components: { Pagination },
-  inject: ['reload'],
-  data() {
-    return {
-      // todo
-      rejectList: [{ id: '0', name: '正常' }, { id: '1', name: '已关单' }],  // TODO: 已关单状态
-      myHeight:document.documentElement.clientHeight - 85- 200,
-      //多个下拉框 - 请求内容
-      send_select_list: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-        { name: 'findAllProviderByCt', offset: 0, pagecount: 0, parammaps: { 'id': Cookies.get('pastureid') }},
-
-      ],
-
-
-      //  下拉框 - 牧场
-      pastureNameList: [
-        // {id: "犊牛1", name: "犊牛1"},
-        // {id: "犊牛2", name: "犊牛2"},
-        // {id: "犊牛3", name: "犊牛3"}
-      ],
-
-      getDepartParam1: {
-        name: 'findAllDepart', offset: 0, pagecount: 0,
-        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      employeNameList: [],
-      departNameList1: [],
-      getDepartParam2: {
-        name: 'findAllDepart', offset: 0, pagecount: 0,
-        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      departNameList2: [],
-
-      statuesNameList: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      isokDisable: false,
-
-
-      tableObj1: {
-        getdataListParm: {
-          name: 'getBigoutsourcingList',
-          //请求的 page 无用参数  offset 第几页  pagecount 每页多少条
-          page: 1, offset: 1,pagecount: 10,returntype: 'Map',
-          parammaps: { pastureName: Cookies.get('pasturename'), outsourcingCode: '',departmentName: '',status: "",eqName: "",eqCode: "",contractCode: "",inputDatetime:"",startdate: "",enddate: ""}
-        },
-        tableKey: 0,listLoading: false,
-        //返回的 pageNum 第几页  pageSize 每页多少条 total 总条数
-        pageNum:'',pageSize:'',total: 0,
-        list: [
-
-        ]
-      },
-
-      getAddContListParam:  {
-        name: "getOutsourcingList",
-        page: 1,offset: 1,pagecount: 20,returntype: "Map",
-        parammaps: {"bigId": ""}
-      },
-
-      pickerOptions: {
-        disabledDate(time) {
-          return time.getTime() > Date.now()// 当天之前的时间可选
-        }
-      },
-
-      rules: {
-        outsourcingCode: [{ required: true, message: '必填', trigger: 'blur' }],
-        equipmentName: [{ required: true, message: '必填', trigger: 'blur' }],
-        departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
-        contract: [{ required: true, message: '必填', trigger: 'blur' }],
-        description: [{ required: true, message: '必填', trigger: 'blur' }],
-        // equipmentName: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-
-      tableKey: 0,
-      listLoading: true,
-      total: 0,
-      list: [],
-      dialogStatus: '',
-      dialogFormVisible: false,
-      dialogFormVisibleSee: false,
-      listLoadingSee: true,
-      listSee: [],
-      totalSee: 0,
-      seeTemp: {},
-      getdataListSee: {
-        name: 'getpartpurchaseBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      createTemp: {
-        pastureId: this.$store.state.user.pastureid,
-        departmentId: this.$store.state.user.departmentid,
-        employeId: this.$store.state.user.employeid,
-        date: parseTime(new Date(), '{y}-{m}-{d}'),
-        outsourcingCode: '',
-        applicant: '',
-        RUCode: '',
-        providerId: '',
-        departmentName: '',
-        description: '',
-        contract:1,
-      },
-
-      costTypeList:[
-        {id:'保养',name:'保养'},
-        {id:'维修',name:'维修'},
-        {id:'物耗',name:'物耗'},
-        {id:'土建',name:'土建'},
-        {id:'安全',name:'安全'},
-      ],
-
-      providerNameList:[
-
-      ],
-
-
-      getParmCreateNumber: {
-        name: 'autoCreatCode',
-        page: 0,
-        offset: 0,
-        pagecount: 0,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'WW'
-        }
-      },
-
-      listAddCont:[
-         {providerName:"",providerId: "0",eqId: "0",contractId: "0",}
-      ],
-      activeList: [],
-      active: 1,
-
-
-
-      EqNameList: [],
-      requestEqName: {
-        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
-        parammaps: { pastureId: Cookies.get('pastureid') }
-      },
-      EqCodeList: [],
-
-      dialogFormVisible_Examine: false,
-      examineTemp: {
-            "status": 1,
-            "empid": "",
-            "flowCompeleted":"",
-            "workflowNote": "",
-            "id": ""
-      },
-      statueReason: false,
-      rowStyle: { maxHeight: 50 + 'px', height: 35 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      textMap: {
-        update: '编辑',
-        create: '新增',
-        see: '查看',
-        examine: '审核1',
-        examine22: '审核2',
-        examine2: '审核3',
-        examine33: '审核4',
-        examine3: '审核5'
-      },
-
-      istab1Add:[],
-      istab1Edit:[],
-      istab1Del:[],
-      istab1Shenhe1:[],
-      istab1Shenhe2:[],
-      istab1Shenhe4:[],
-      getParmCreateNumber2: {
-        name: 'autoCreatCode',
-        page: 0, offset: 0,  pagecount: 0,  returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'WY'
-        }
-      },
-
-    }
-  },
-  created() {
-
-
-    this.get_select_list()
-    this.get_table_data1()
-    this.get_auto_buttons()
-  },
-  methods: {
-    // 提交按钮
-    form_submit(row) {
-      MessageBox.confirm('确认提交此条信息?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        var send_data2 = {
-         "common": { "returnmap": "0" },
-        "data": [
-            {
-              "name": "editBigoutsourcingSubmit", "type": "e",
-              "parammaps": { "id":row.id }
-            }
-          ]
-        }
-          this.save_submit(send_data2)
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消提交'
-        })
-      })
-    },
-    save_submit(send_data) {
-      ExecDataByConfig(send_data).then(response => {
-        if (response.msg !== 'fail') {
-          this.$notify({ title: '成功', message: '提交成功', type: 'success', duration: 2000 })
-          this.get_table_data1()
-        }
-      })
-    },
-    //获取按钮权限
-    get_auto_buttons() {
-      const istab1Add = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:add')
-      this.istab1Add = istab1Add
-
-      const istab1Edit = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:edit')
-      this.istab1Edit = istab1Edit
-
-      const istab1Del = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:del')
-      this.istab1Del = istab1Del
-
-      const istab1Shenhe1 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe1')
-      this.istab1Shenhe1 = istab1Shenhe1
-
-      const istab1Shenhe2 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe2')
-      this.istab1Shenhe2 = istab1Shenhe2
-
-      const istab1Shenhe3 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe3')
-      this.istab1Shenhe3 = istab1Shenhe3
-
-      const istab1Shenhe4 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe4')
-      this.istab1Shenhe4 = istab1Shenhe4
-
-    },
-
-    querySearchEqNameCont(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqName'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        console.log('备件名称模糊查询搜索data', response.data.list)
-        this.EqNameList = response.data.list
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqNameCont(item, row) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item.eqName)
-      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
-      this.$set(row, 'eqCode', item.eqCode)
-      this.$forceUpdate()
-    },
-    querySearchCodeCont(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqCode'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        console.log('备件名称模糊查询搜索data', response.data.list)
-        this.EqNameList = response.data.list
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqCodeCont(item, row) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item)
-      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
-      this.$set(row, 'eqName', item.eqName)
-      this.$forceUpdate()
-    },
-    blurSelectEqNameCont(item, row) {
-      this.$set(row, 'eqName', '')
-      this.$set(row, 'eqCode', '')
-    },
-    blurSelectEqCodeCont(item, row) {
-      this.$set(row, 'eqName', '')
-      this.$set(row, 'eqCode', '')
-    },
-
-
-    get_select_list() {
-      GetDataByNames(this.send_select_list).then(response => {
-        this.pastureNameList = response.data.findAllPasture.list
-        console.log("牧场下拉框", this.pastureNameList)
-        this.employeNameList = response.data.findAllEmploye.list
-        console.log("申请人下拉框", this.employeNameList)
-        this.providerNameList = response.data.findAllProviderByCt.list
-
-        this.get_depart_list1()
-      })
-    },
-    change_pasture1(item) {
-      this.getDepartParam1.parammaps.pastureId = this.pastureNameList.find(obj => obj.name == item).id
-      this.tableObj1.getdataListParm.parammaps.departmentId = ''
-      this.get_depart_list1()
-    },
-    //部门List
-    get_depart_list1() {
-      GetDataByName(this.getDepartParam1).then(response => {
-        this.departNameList1 = response.data.list
-      })
-    },
-
-
-    change_pasture2(item) {
-      this.getDepartParam2.parammaps.pastureId = item
-      this.get_depart_list2()
-    },
-
-    get_depart_list2() {
-      GetDataByName(this.getDepartParam2).then(response => {
-        this.departNameList2 = response.data.list
-      })
-    },
-
-    change_depart2(item) {
-      this.createTemp.departmentName = this.departNameList2.find(obj => obj.id == item).name
-    },
-
-
-    get_table_data1() {
-      this.tableObj1.listLoading = false
-
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.tableObj1.getdataListParm.parammaps.startdate = this.$refs['inputDatetime'].value[0]
-        this.tableObj1.getdataListParm.parammaps.enddate = this.$refs['inputDatetime'].value[1]
-
-
-      } else {
-        this.tableObj1.getdataListParm.parammaps.inputDatetime = ''
-        this.tableObj1.getdataListParm.parammaps.startdate = ''
-        this.tableObj1.getdataListParm.parammaps.enddate = ''
-      }
-
-      GetDataByName(this.tableObj1.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          this.tableObj1.list = response.data.list
-          this.tableObj1.pageNum = response.data.pageNum
-          this.tableObj1.pageSize = response.data.pageSize
-          this.tableObj1.total = response.data.total
-        } else {
-          this.tableObj1.list = [ ]
-        }
-
-        setTimeout(() => {
-          this.tableObj1.listLoading = false
-        }, 100)
-      })
-    },
-    form_search() {
-      console.log('查询')
-
-
-      this.get_table_data1()
-
-    },
-    change_contract(val) {
-      console.log(val)
-      if(val ==1){
-        this.createTemp.contract = 1
-      } else {
-        this.createTemp.contract = 0
-      }
-
-    },
-    form_add() {
-      this.reset_create()
-      this.getDepartParam2.parammaps.pastureId = this.createTemp.pastureId
-      this.get_depart_list2()
-      this.dialogStatus = 'create'
-      this.dialogFormVisible = true
-      this.listLoading = false
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-       //新增生成单号
-      this.get_create_num()
-    },
-
-    reset_create() {
-      this.createTemp.pastureId =  parseInt(Cookies.get('pastureid'))
-     this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
-
-
-     if(parseInt(Cookies.get('pastureid')) == 18){
-      this.createTemp.departmentId = ""
-     }
-     this.createTemp.departmentName = Cookies.get('departmentname')
-      this.createTemp.employeId = parseInt(Cookies.get('employeid'))
-      this.createTemp.date = parseTime(new Date(), '{y}-{m}-{d}')
-
-      this.createTemp.outsourcingCode = ''
-      this.createTemp.applicant = parseInt(Cookies.get('employeid'))
-      this.createTemp.providerId = ''
-      this.createTemp.contract = 1
-
-      this.createTemp.description = ''
-
-
-
-
-
-      this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
-
-    },
-
-    get_create_num() {
-      GetDataByName(this.getParmCreateNumber).then(response => {
-        this.$nextTick(() => {
-          console.log('新增单号', response.data.list[0].orderCode)
-          this.createTemp.outsourcingCode = response.data.list[0].orderCode
-          this.$forceUpdate()
-        })
-      })
-    },
-
-    add_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['createTemp'].validate(valid => {
-        if (valid) {
-          console.log(this.listAddCont)
-          if (this.createTemp.outsourcingCode == '' || this.createTemp.outsourcingCode == null || this.createTemp.outsourcingCode == undefined) {
-            GetDataByName(this.getParmCreateNumber2).then(response => {
-              this.$nextTick(() => {
-                console.log('新增单号', response.data.list[0].orderCode)
-                this.createTemp.outsourcingCode = response.data.list[0].orderCode
-                this.$forceUpdate()
-                this.add_dialog_saveSave()
-              })
-            })
-          } else {
-            this.add_dialog_saveSave()
-          }
-        }
-      })
-    },
-
-
-    add_dialog_saveSave() {
-
-        for (var j = 0; j < this.listAddCont.length; j++) {
-          console.log(this.listAddCont[j].amount)
-          if(this.createTemp.contract == 1){
-            if(this.listAddCont[j].providerName == ''){
-              this.$message({ type: 'warning', message: '请检查供应商是否未填写', duration: 2000 })
-              return false
-            }
-          }
-          if(this.listAddCont[j].eqName == ''){
-            this.$message({ type: 'warning', message: '请检查设备名称是否未填写', duration: 2000 })
-            return false
-          }
-          if(this.listAddCont[j].eqCode == ''){
-            this.$message({ type: 'warning', message: '请检查设备内部编号是否未填写', duration: 2000 })
-            return false
-          }
-          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
-            // this.$message({ type: 'warning', message: '请检查金额是否未填写', duration: 2000 })
-            // return false
-          } else {
-            // var rulesAmount = /^[1-9]\d*$/
-            // if (!rulesAmount.test(this.listAddCont[j].amount)) {
-            //   this.$message({ type: 'error', message: '申购数量请输入正整数', duration: 2000 })
-            //   return false
-            // }
-          }
-
-          if (this.createTemp.contract == 1){
-            if (this.listAddCont[j].contractCode == null || this.listAddCont[j].contractCode === '') {
-              this.$message({ type: 'warning', message: '请检查合同编号是否未填写', duration: 2000 })
-              return false
-            }
-          }
-
-
-
-
-        }
-        var amount = 0
-        if(this.createTemp.contract==0){
-          amount = "@insertSpotList.amount"
-        }else{
-          amount = 0
-        }
-        if(this.createTemp.contract == 0){
-          // 无合同
-          this.$set(this.createTemp,'status',0)
-        }else{
-          // 有合同
-          this.$set(this.createTemp,'status',1)
-        }
-        var send_data = {
-          "common": {  "returnmap": "0" },
-          "data": [
-            {
-              "name": "addBigoutsourcing", "type": "e",
-              "parammaps": this.createTemp
-            },
-            {
-              "name": "insertSpotList",
-              "resultmaps": {  "list": this.listAddCont },
-
-              "children": [
-                {
-                    "name": "addOutsourcing",  "type": "e",
-                    "parammaps": {
-                      "bigId": "@addBigoutsourcing.LastInsertId",
-                      "providerId": "@insertSpotList.providerId",
-                      "amount": amount,
-                      "eqId": "@insertSpotList.eqId",
-                      "eqCode": "@insertSpotList.eqCode",
-                      "eqName": "@insertSpotList.eqName",
-                      "typea": "@insertSpotList.typea",
-                      "date": "@insertSpotList.date",
-                      "contractId": "@insertSpotList.contractId",
-                      "providerName": "@insertSpotList.providerName",
-                      "contractCode": "@insertSpotList.contractCode",
-                      "remark": "@insertSpotList.remark",
-                      "status":this.createTemp.status
-                      }
-                  }
-              ]
-              }
-            ]
-        }
-        ExecDataByConfig(send_data).then(response => {
-          console.log('新增保存发送参数', send_data)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            if(this.createTemp.contract==1){
-              this.add_dialog_saveSave2()
-            }
-            this.dialogFormVisible = false
-
-            this.get_table_data1()
-
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-        return true
-
-    },
-
-
-
-
-
-    form_see(row){
-      console.log('查看======》',row)
-      this.getDepartParam2.parammaps.pastureId = row.pastureId
-      this.get_depart_list2()
-      this.createTemp = Object.assign({}, row)
-      this.dialogStatus = 'see'
-      this.dialogFormVisible = true
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-
-
-      //总价大于等于10000,有高级设备工程师
-      if(row.isAudit == 1) {
-        if (row.flowCompeleted == 1) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人' },
-              { title: '财务负责人' },
-              { title: '场长' },
-              { title: '运营支持部高级工程师' },
-            ]
-            this.active = 1
-          } else if (row.flowCompeleted == 2) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人' },
-              { title: '场长' },
-              { title: '运营支持部高级工程师' },
-            ]
-            this.active = 2
-          } else if (row.flowCompeleted === 3) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName,status: 'error', reason: row.workflowNote },
-              { title: '财务负责人' },
-              { title: '场长' },
-              { title: '运营支持部高级工程师' }
-            ]
-            this.active = 2
-          } else if (row.flowCompeleted === 4) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长' },
-              { title: '运营支持部高级工程师' }
-            ]
-            this.active = 3
-          } else if (row.flowCompeleted === 5) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName,status: 'error', reason: row.workflowNote },
-              { title: '场长' },
-              { title: '运营支持部高级工程师' }
-            ]
-            this.active = 3
-          } else if (row.flowCompeleted === 6) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName },
-              { title: '运营支持部高级工程师' }
-            ]
-            this.active = 4
-          } else if (row.flowCompeleted === 7) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName,status: 'error', reason: row.workflowNote },
-              { title: '运营支持部高级工程师' }
-            ]
-            this.active = 4
-          }else if (row.flowCompeleted === 8) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName },
-              { title: '运营支持部高级工程师',date: row.advanceddate, name: row.advancedName }
-            ]
-            this.active = 5
-          }else if (row.flowCompeleted === 9) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName},
-              { title: '运营支持部高级工程师',date: row.advanceddate, name: row.advancedName,status: 'error', reason: row.workflowNote  }
-            ]
-            this.active = 5
-          }
-
-
-
-      //总价小于10000 没有高级设备工程师,直接场长审核
-      } else {
-        if (row.flowCompeleted == 1) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人' },
-              { title: '财务负责人' },
-              { title: '场长' }
-            ]
-            this.active = 1
-          } else if (row.flowCompeleted == 2) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人' },
-              { title: '场长' }
-            ]
-            this.active = 2
-          } else if (row.flowCompeleted === 3) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName,status: 'error', reason: row.workflowNote },
-              { title: '财务负责人' },
-              { title: '场长' }
-            ]
-            this.active = 2
-          } else if (row.flowCompeleted === 4) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长' },
-            ]
-            this.active = 3
-          } else if (row.flowCompeleted === 5) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName,status: 'error', reason: row.workflowNote },
-              { title: '场长' }
-            ]
-            this.active = 3
-          } else if (row.flowCompeleted === 6) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName },
-            ]
-            this.active = 4
-          } else if (row.flowCompeleted === 7) {
-            this.activeList = [
-              { title: '设备处长', date: row.createTime, name: row.applicantName },
-              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
-              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
-              { title: '场长',date: row.fielddate, name: row.fieldName,status: 'error', reason: row.workflowNote }
-            ]
-            this.active = 4
-          }
-      }
-      if(row.contract == 1){
-        this.activeList = [
-          { title: '设备处长', date: row.createTime, name: row.applicantName }
-        ]
-        this.active = 1
-      }
-          this.getAddContListParam.parammaps.bigId = row.id
-         this.getAddContList()
-    },
-
-    getAddContList() {
-      GetDataByName(this.getAddContListParam).then(response => {
-        this.listAddCont = response.data.list
-        this.listLoading = false
-      })
-    },
-
-
-
-    form_edit(row) {
-      this.reset_create()
-      console.log('编辑',row)
-      this.getDepartParam2.parammaps.pastureId = row.pastureId
-      this.get_depart_list2()
-      if (row.providerId == undefined) {
-        row.providerId = ''
-        row.providerName = ''
-      }
-      this.createTemp = Object.assign({}, row) // copy obj
-      this.dialogStatus = 'update'
-      this.dialogFormVisible = true
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-      this.getAddContListParam.parammaps.bigId = row.id
-      this.getAddContList()
-    },
-    edit_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['createTemp'].validate(valid => {
-        if (valid) {
-          this.edit_dialog_saveSave()
-        }
-      })
-    },
-    edit_dialog_saveSave() {
-
-        for (var j = 0; j < this.listAddCont.length; j++) {
-          console.log(this.listAddCont[j].amount)
-          // eslint-disable-next-line use-isnan
-          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
-            this.$message({ type: 'warning', message: '请检查申购数量是否未填写', duration: 2000 })
-            return false
-          }
-
-        }
-
-        this.listAddCont[0].providerId = "0"
-        this.listAddCont[0].eqId = "0"
-        this.listAddCont[0].contractId = "0"
-
-        var amount = 0
-        if(this.createTemp.contract==0){
-          amount = "@insertSpotList.amount"
-        }else{
-          amount = 0
-        }
-        var send_data = {
-          "common": {  "returnmap": "0" },
-          "data": [
-            {
-              "name": "editBigoutsourcing", "type": "e",
-              "parammaps": this.createTemp
-            },
-            {
-              "name": "insertSpotList",
-              "resultmaps": {  "list": this.listAddCont },
-              "children": [
-                {
-                    "name": "editOutsourcing",  "type": "e",
-                    "parammaps": {
-                      "bigId": "@insertSpotList.LastInsertId",
-                      "providerId": "@insertSpotList.providerId",
-                      "amount": amount,
-                      "eqId": "@insertSpotList.eqId",
-                      "eqCode": "@insertSpotList.eqCode",
-                      "eqName": "@insertSpotList.eqName",
-                      "typea": "@insertSpotList.typea",
-                      "date": "@insertSpotList.date",
-                      "contractId": "@insertSpotList.contractId",
-                      "id": "@insertSpotList.id",
-                      "providerName": "@insertSpotList.providerName",
-                      "contractCode": "@insertSpotList.contractCode"
-                      }
-                  }
-              ]
-            },
-            {
-              "name": "updateBigoutsourcingFlowCompeleted", "type": "e",
-              "parammaps":{
-                id:this.createTemp.id
-              }
-            },
-            ]
-        }
-
-        ExecDataByConfig(send_data).then(response => {
-          console.log('新增保存发送参数', send_data)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            this.dialogFormVisible = false
-
-            this.get_table_data1()
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-
-    },
-
-    form_delete(row) {
-      console.log('点击了删除',row)
-      MessageBox.confirm('确认删除此条信息?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        var send_data = {
-        "common": { "returnmap": "0" },
-        "data": [
-          {
-            "name": "deleteBigoutsourcing", "type": "e",
-            "parammaps": { "id":row.id }
-           }
-          ]
-        }
-
-        ExecDataByConfig(send_data).then(response => {
-          this.get_table_data1()
-          this.$notify({
-            title: '成功',
-            message: '删除成功',
-            type: 'success',
-            duration: 2000
-          })
-        })
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消删除'
-        })
-      })
-    },
-
-
-    change_statue(val) {
-      if (val == 2) {
-        this.statueReason = true
-      } else {
-        this.statueReason = false
-      }
-    },
-
-    form_examine(row) {
-      console.log('点击了设备处长审核',row)
-      if (row == undefined) {
-        this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save() {
-      console.log('点击了设备处长审核', this.examineTemp)
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "3"
-          } else {
-            this.examineTemp.status = 0
-            this.examineTemp.flowCompeleted = "2"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  // {
-                  //     "name": "editBigoutsourcingEquipment",  "type": "e",
-                  //     "parammaps": this.examineTemp
-                  // },
-                  {
-                      "name": "editBigoutsourcingDepartment",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          console.log(send_data,'审核1保存')
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-
-    form_examine2(row) {
-      console.log('点击了场长审核',row)
-      this.examineTemp = Object.assign({}, row)
-      if (row == undefined) {
-        // this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.statueReason = false
-      this.dialogFormVisible_Examine = true
-      // GetDataByName(this.getParmCreateNumber).then(response => {
-      //   this.$nextTick(() => {
-      //     console.log('新增单号', response.data.list[0].orderCode)
-      //     this.examineTemp.acceptanceCode = response.data.list[0].orderCode
-      //     this.$set(this.examineTemp,'acceptanceCode',response.data.list[0].orderCode)
-      //     this.$forceUpdate()
-      //   })
-      // })
-    },
-    add_dialog_saveSave2() {
-      console.log(this.examineTemp,'=====---hss')
-      // this.examineTemp.iscontract =
-
-        //牧场
-        var mydata = {
-          // acceptanceCode:this.createTemp.acceptanceCode,
-          pastureId:  this.createTemp.pastureId,
-          departmentId: this.createTemp.departmentId,
-          applicant:Cookies.get('employeid'),
-          outsourcingCode:this.examineTemp.outsourcingCode,
-          applyType:0,
-          date:parseTime(new Date(), '{y}-{m}-{d}'),
-          status:1
-        }
-        if(this.examineTemp.contract == 0){
-          mydata.iscontract = 1
-        }else{
-          mydata.iscontract = 0
-        }
-        var send_data = {
-          "common": {  "returnmap": "0" },
-          "data": [
-            {
-              "name": "insertBigacceptance",
-              "type": "e",
-              "parammaps": mydata
-            }
-          ]
-        }
-        ExecDataByConfig(send_data).then(response => {
-          console.log('新增保存发送参数', send_data)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            // this.$notify({
-            //   title: '',
-            //   message: '保存成功',
-            //   type: 'success',
-            //   duration: 2000
-            // })
-          }
-        })
-
-
-    },
-
-    form_examine_save2() {
-      console.log('点击了场长审核', this.examineTemp)
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      // this.examineTemp.acceptanceCode = this.createTemp.acceptanceCode
-
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "5"
-          } else {
-
-
-           // //总价大于等于10000 有高级设备工程师审核
-           //  if(this.examineTemp.isAudit == 1){
-           //     this.examineTemp.status = 0
-           // //总价小于10000 没有高级设备工程师,直接场长审核
-           //  } else {
-           //     this.examineTemp.status = 1
-           //  }
-           this.examineTemp.status = 0
-            this.examineTemp.flowCompeleted = "4"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  // {
-                  //     "name": "editBigoutsourcingField",  "type": "e",
-                  //     "parammaps": this.examineTemp
-                  // },
-                  {
-                      "name": "editBigoutsourcingEquipment",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          console.log(send_data,'审核2保存')
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              if(this.examineTemp.status == 1){
-                this.add_dialog_saveSave2()
-              }
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-
-    form_examine3(row) {
-      console.log('点击了高级工程师  审核',row)
-      this.examineTemp = Object.assign({}, row)
-      if (row == undefined) {
-        //this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save3() {
-      console.log('点击了高级工程师审核',this.examineTemp )
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "7"
-          } else {
-            //总价大于等于10000 有高级设备工程师审核
-             if(this.examineTemp.isAudit == 1){
-                this.examineTemp.status = 0
-            //总价小于10000 没有高级设备工程师,直接场长审核
-             } else {
-                this.examineTemp.status = 1
-             }
-            this.examineTemp.flowCompeleted = "6"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  // {
-                  //     "name": "editBigoutsourcingAdvanceddate",  "type": "e",
-                  //     "parammaps": this.examineTemp
-                  // },
-                  {
-                      "name": "editBigoutsourcingField",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          console.log(send_data,'审核3保存',this.examineTemp)
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              if(this.examineTemp.status == 1){
-                this.add_dialog_saveSave2()
-              }
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    form_examine4(row) {
-      console.log('点击了高级工程师  审核',row)
-      this.examineTemp = Object.assign({}, row)
-      if (row == undefined) {
-        //this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save4() {
-      console.log('点击了高级工程师审核',this.examineTemp )
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "9"
-          } else {
-            this.examineTemp.status = 1
-            this.examineTemp.flowCompeleted = "8"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  // {
-                  //     "name": "editBigoutsourcingAdvanceddate",  "type": "e",
-                  //     "parammaps": this.examineTemp
-                  // },
-                  {
-                      "name": "editBigoutsourcingAdvanceddate",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          console.log(send_data,'审核4保存')
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              if(this.examineTemp.status == 1){
-                this.add_dialog_saveSave2()
-              }
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-
-
-  }
-}
-</script>
-<style lang="scss" scoped>
-
-  // .content{
-  //   padding: 20px 20px;
-  //   .title{
-  //     text-align: center;
-  //     font-weight: 700;
-  //   }
-  //   .title2{
-  //     float: left;
-  //     font-weight: 700;
-  //     padding: 10px 0;
-  //   }
-  // }
-
-</style>
+<template>
+  <div class="app-container">
+    <div class="filter-container">
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.pastureName" style="width: 140px;" placeholder="牧场" class="filter-item" @change="change_pasture1">
+        <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.departmentId" clearable style="width: 140px;" placeholder="部门" class="filter-item">
+        <el-option v-for="item in departNameList1" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.outsourcingCode" placeholder="委外维修单号" style="width: 200px;" class="filter-item" />
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.status" style="width: 140px;" clearable placeholder="审核状态" class="filter-item">
+        <el-option v-for="item in statuesNameList" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+      <!-- todo -->
+      <el-select v-model="tableObj1.getdataListParm.parammaps.reject" style="width: 140px;" clearable placeholder="单据状态" class="filter-item">
+        <el-option v-for="item in rejectList" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 200px;" class="filter-item" />
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 200px;" class="filter-item" />
+
+      <el-date-picker ref="inputDatetime" v-model="tableObj1.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  class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
+
+      <el-button v-if="istab1Add" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
+
+
+
+    </div>
+
+
+    <div class="elTable">
+      <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">
+          <template slot-scope="scope">
+            <span>{{ scope.$index + (tableObj1.pageNum-1) * tableObj1.pageSize + 1 }}</span>
+          </template>
+        </el-table-column>
+
+        <el-table-column label="委外单号" min-width="120px" align="center" prop="outsourcingCode" />
+        <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
+        <el-table-column label="责任部门 " min-width="120px" align="center" prop="departmentName" />
+        <el-table-column label="合同" min-width="150px" align="center">
+          <template slot-scope="scope">
+            <span v-if="scope.row.contract ==1 ">有</span>
+            <span v-else>无</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="申请人" min-width="120px" align="center" prop="applicantName" />
+        <el-table-column label="日期" min-width="120px" align="center" prop="date" />
+        <el-table-column label="审核状态" min-width="150px" align="center">
+          <template slot-scope="scope">
+            <span v-if="scope.row.status == 0 ">审核中</span>
+            <span v-else-if="scope.row.status == 1 ">审核通过</span>
+            <span v-else>审核未通过</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="单据状态" min-width="150px" align="center">
+          <template slot-scope="scope">
+            <span v-if="scope.row.reject == 0 ">正常</span>
+            <span v-if="scope.row.reject == 1 ">已关单</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="操作" align="center" width="260" class-name="small-padding fixed-width" fixed="right">
+        <template slot-scope="{row}">
+          <el-button   type="primary" size="mini" @click="form_see(row)">查看</el-button>
+          <el-button v-if="istab1Edit && (row.status !== 0) && (row.status !== 1) "  type="success" size="mini" @click="form_edit(row)">编辑</el-button>
+          <el-button v-if="istab1Del && (row.status !== 1) "  type="danger" size="mini" @click="form_delete(row)">删除</el-button>
+          <el-button  v-if="row.status !== 0  && row.status !== 1"  style="display:inline-block" type="success" size="mini" @click="form_submit(row)">提交</el-button>
+          <!-- <el-button  v-if="row.isAcceptance == 0"  style="display:inline-block" type="warning" size="mini" @click="form_closeSubmit(row)">关单</el-button> -->
+
+          <el-button  v-if="istab1Shenhe1 && (row.status== 0) && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
+
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
+
+          <el-button   v-if="istab1Shenhe2 && (row.status== 0) && (row.flowCompeleted == 2 )" style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
+
+          <el-button   v-if="istab1Shenhe3 && (row.status== 0) && (row.flowCompeleted == 4)" style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
+
+          <el-button   v-if="istab1Shenhe4 && (row.status== 0) && (row.flowCompeleted == 6)  && (row.isAudit == 1)" style="display:inline-block" type="success" size="mini" @click="form_examine4(row)">审核4</el-button>
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine4(row)">审核4</el-button>
+        </template>
+      </el-table-column>
+
+      </el-table>
+
+      <pagination v-show="tableObj1.total>0" :total="tableObj1.total" :page.sync="tableObj1.getdataListParm.offset" :limit.sync="tableObj1.getdataListParm.pagecount" @pagination="get_table_data1()" />
+    </div>
+
+
+    <!-- 弹出层新增or修改 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <div >
+        <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="100px" style="width: 100%;">
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="委外维修单号:" prop="outsourcingCode">
+                <el-input ref="outsourcingCode" v-model="createTemp.outsourcingCode" disabled   />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="牧场:" prop="pastureId" >
+                <el-select v-model="createTemp.pastureId" placeholder="牧场" class="filter-item" style="width:100%" :disabled=" dialogStatus==='see'" @change="change_pasture2" >
+                  <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+
+            <el-col :span="8">
+              <el-form-item label="责任部门:" prop="departmentId">
+                <el-select v-model="createTemp.departmentId" placeholder="责任部门" class="filter-item" style="width:100%" :disabled=" dialogStatus==='see'"  @change="change_depart2">
+                  <el-option v-for="item in departNameList2" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row :gutter="20">
+
+            <el-col :span="8">
+              <el-form-item label="合同:" prop="contract">
+                <el-radio-group v-model="createTemp.contract" :disabled="dialogStatus==='see'"  @change="change_contract" >
+                  <el-radio   :label="0" :checked="createTemp.contract == 0">无合同</el-radio>
+                  <el-radio   :label="1" :checked="createTemp.contract == 1">有合同</el-radio>
+
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+
+            <el-col :span="8">
+              <el-form-item label="申请人:" prop="applicant">
+                <el-select v-model="createTemp.applicant" placeholder="申请人" class="filter-item" style="width:100%" :disabled="dialogStatus==='see'"  >
+                  <el-option v-for="item in employeNameList" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="日期:" prop="date">
+                <el-date-picker v-model="createTemp.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
+              </el-form-item>
+            </el-col>
+
+
+          </el-row>
+          <el-row :gutter="20">
+            <el-col :span="16">
+              <el-form-item label="故障描述:" prop="description">
+                <el-input   v-model="createTemp.description" type="textarea" autosize :disabled="dialogStatus==='see'"  />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="报修单号:" prop="RUCode">
+                <el-input ref="RUCode" v-model="createTemp.RUCode" disabled   />
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-form>
+
+
+
+          <el-table
+            :key="tableKey"
+            v-loading="listLoading"
+            element-loading-text="给我一点时间"
+            :data="listAddCont"
+            border
+            fit
+            highlight-current-row
+            style="width: 100%;margin-bottom:30px"
+            :row-style="rowStyle"
+            :cell-style="cellStyle"
+            class="elTable"
+          >
+            <!-- table表格 -->
+            <el-table-column :key="1" label="序号" align="center" type="index" width="50px" />
+            <el-table-column :key="2" label="供应商" prop="providerName" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <el-select v-model="scope.row.providerName" filterable placeholder="供应商" class="filter-item" style="width: 120px; margin-top:10px" v-if="dialogStatus ==='create'||dialogStatus ==='update'"  >
+                  <el-option v-for="item in providerNameList" :key="item.name" :label="item.name" :value="item.name" />
+                </el-select>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.providerName }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column :key="3" v-if="createTemp.contract==0" label="金额" prop="amount" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.amount" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
+              </template>
+            </el-table-column>
+              <el-table-column  :key="4" label="设备名称" prop="eqName" align="center" min-width="250">
+                <template slot-scope="scope">
+                  <el-autocomplete     style="margin-top:10px"  :disabled="dialogStatus ==='see'"
+                    v-model="scope.row.eqName"
+                    class="inline-input"
+                    :fetch-suggestions="querySearchEqNameCont"
+                    value-key="eqName"
+                    placeholder="设备名称"
+                    @select="(value)=>
+                    {handleSelectEqNameCont(value, scope.row)}"
+                    @blur="(value)=>
+                    {blurSelectEqNameCont(value, scope.row)}"
+                  >
+                    <template slot-scope="{ item }">
+                      <span class="addr">{{ item.eqName }}</span>
+                      |<span class="addr">{{ item.eqCode }}</span>
+                    </template>
+                  </el-autocomplete>
+
+                </template>
+              </el-table-column>
+              <el-table-column  :key="5" label="设备内部编号" prop="eqCode" align="center" min-width="150">
+                <template slot-scope="scope">
+
+
+                  <el-autocomplete  style="margin-top:10px"
+                    v-model="scope.row.eqCode" :disabled="dialogStatus ==='see'"
+                    class="inline-input"
+                    :fetch-suggestions="querySearchCodeCont"
+                    value-key="eqCode"
+                    placeholder="设备内部编号"
+                    @select="(value)=>
+                    {handleSelectEqCodeCont(value, scope.row)}"
+                    @blur="(value)=>
+                    {blurSelectEqCodeCont(value, scope.row)}"
+                  />
+
+                </template>
+              </el-table-column>
+
+
+            <!-- <el-table-column label="设备名称" prop="eqName" min-width="80px" align="center">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.eqName" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.eqName }}</span>
+              </template>
+            </el-table-column>
+
+
+            <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.eqCode" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.eqCode }}</span>
+              </template>
+            </el-table-column> -->
+            <el-table-column :key="6" label="费用类型" prop="typea" align="center" min-width="80px">
+              <template slot-scope="scope">
+
+                <el-select v-model="scope.row.typea" placeholder="费用类型" class="filter-item" style="width: 120px; margin-top:10px " v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-option v-for="item in costTypeList" :key="item.id" :label="item.name" :value="item.name" />
+                </el-select>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.typea }}</span>
+              </template>
+            </el-table-column>
+            <!-- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+
+                  <el-date-picker v-model="scope.row.date"   style="margin-top:10px"   type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd"   />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.date }}</span>
+              </template>
+            </el-table-column> -->
+            <el-table-column :key="7" v-if="createTemp.contract == 1" label="合同编号" prop="contractCode" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.contractCode" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.contractCode }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column :key="8" label="备注" prop="remark" align="center" min-width="180px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.remark" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.remark }}</span>
+              </template>
+            </el-table-column>
+
+
+
+          </el-table>
+
+
+          <el-row :gutter="10" v-if="dialogStatus ==='see'  ">
+
+            <el-col>
+              <h3>流程进度</h3>
+              <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>
+                  </template>
+                </el-step>
+              </el-steps>
+            </el-col>
+          </el-row>
+
+
+
+
+        <div slot="footer" class="dialog-footer" style="bottom:10px">
+          <el-button type="primary" :disabled="isokDisable" v-if="dialogStatus !=='see'" @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
+          <el-button @click="dialogFormVisible = false;get_table_data1()">取消并关闭</el-button>
+        </div>
+      </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 0 0 5%;line-height:50px;">请确认审核结果:</h3>
+        <el-form ref="examineTemp" :model="examineTemp" label-position="right" style="width: 50%;margin:0 auto;">
+          <el-row style="width:88%;height:150px;margin:0 auto;">
+            <el-col :span="20">
+              <el-form-item>
+                <el-radio-group v-model="examineTemp.status" @change="change_statue">
+                  <el-radio :label="1" checked>通过</el-radio>
+                  <el-radio :label="2">不通过</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col v-if="statueReason" :span="20">
+              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <div slot="footer" class="dialog-footer">
+        <el-button v-if="istab1Shenhe1 && (examineTemp.flowCompeleted == 1) "  type="primary" :disabled="isokDisable" @click="form_examine_save()">确认1</el-button>
+        <el-button v-if="istab1Shenhe2 && (examineTemp.flowCompeleted == 2)"  type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认2</el-button>
+        <el-button v-if="istab1Shenhe3 && (examineTemp.flowCompeleted == 4)"  type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认3</el-button>
+        <el-button v-if="istab1Shenhe4 && (examineTemp.flowCompeleted == 6)"  type="primary" :disabled="isokDisable" @click="form_examine_save4()">确认4</el-button>
+        <!-- <el-button v-if="dialogStatus==='examine22'" type="primary" :disabled="isokDisable" @click="form_examine_save22()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine33'" type="primary" :disabled="isokDisable" @click="form_examine_save33()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button> -->
+        <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
+      </div>
+    </el-dialog>
+
+
+  </div>
+</template>
+
+<script>
+import echarts from 'echarts'
+require('echarts/theme/macarons')
+import { GetDataByNames, GetReportform, GetDataByName, PostDataByName, checkButtons, ExecDataByConfig} from '@/api/common'
+import Cookies from 'js-cookie'
+import { parseTime, json2excel } from '@/utils/index.js'
+import { MessageBox } from 'element-ui'
+import Pagination from '@/components/Pagination'
+export default {
+  name: 'Tab1',
+  components: { Pagination },
+  inject: ['reload'],
+  data() {
+    return {
+      // todo
+      rejectList: [{ id: '0', name: '正常' }, { id: '1', name: '已关单' }],  // TODO: 已关单状态
+      myHeight:document.documentElement.clientHeight - 85- 200,
+      //多个下拉框 - 请求内容
+      send_select_list: [
+        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
+        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
+        { name: 'findAllProviderByCt', offset: 0, pagecount: 0, parammaps: { 'id': Cookies.get('pastureid') }},
+
+      ],
+
+
+      //  下拉框 - 牧场
+      pastureNameList: [
+        // {id: "犊牛1", name: "犊牛1"},
+        // {id: "犊牛2", name: "犊牛2"},
+        // {id: "犊牛3", name: "犊牛3"}
+      ],
+
+      getDepartParam1: {
+        name: 'findAllDepart', offset: 0, pagecount: 0,
+        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
+      },
+      employeNameList: [],
+      departNameList1: [],
+      getDepartParam2: {
+        name: 'findAllDepart', offset: 0, pagecount: 0,
+        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
+      },
+      departNameList2: [],
+
+      statuesNameList: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
+      isokDisable: false,
+
+
+      tableObj1: {
+        getdataListParm: {
+          name: 'getBigoutsourcingList',
+          //请求的 page 无用参数  offset 第几页  pagecount 每页多少条
+          page: 1, offset: 1,pagecount: 50,returntype: 'Map',
+          parammaps: { pastureName: Cookies.get('pasturename'), outsourcingCode: '',departmentName: '',status: "",eqName: "",eqCode: "",contractCode: "",inputDatetime:"",startdate: "",enddate: ""}
+        },
+        tableKey: 0,listLoading: false,
+        //返回的 pageNum 第几页  pageSize 每页多少条 total 总条数
+        pageNum:'',pageSize:'',total: 0,
+        list: [
+
+        ]
+      },
+
+      getAddContListParam:  {
+        name: "getOutsourcingList",
+        page: 1,offset: 1,pagecount: 20,returntype: "Map",
+        parammaps: {"bigId": ""}
+      },
+
+      pickerOptions: {
+        disabledDate(time) {
+          return time.getTime() > Date.now()// 当天之前的时间可选
+        }
+      },
+
+      rules: {
+        outsourcingCode: [{ required: true, message: '必填', trigger: 'blur' }],
+        equipmentName: [{ required: true, message: '必填', trigger: 'blur' }],
+        departmentId: [{ required: true, message: '必填', trigger: 'blur' }],
+        contract: [{ required: true, message: '必填', trigger: 'blur' }],
+        description: [{ required: true, message: '必填', trigger: 'blur' }],
+        // equipmentName: [{ required: true, message: '必填', trigger: 'blur' }]
+      },
+
+      tableKey: 0,
+      listLoading: true,
+      total: 0,
+      list: [],
+      dialogStatus: '',
+      dialogFormVisible: false,
+      dialogFormVisibleSee: false,
+      listLoadingSee: true,
+      listSee: [],
+      totalSee: 0,
+      seeTemp: {},
+      getdataListSee: {
+        name: 'getpartpurchaseBybig',
+        returntype: 'Map',
+        parammaps: {}
+      },
+      createTemp: {
+        pastureId: this.$store.state.user.pastureid,
+        departmentId: this.$store.state.user.departmentid,
+        employeId: this.$store.state.user.employeid,
+        date: parseTime(new Date(), '{y}-{m}-{d}'),
+        outsourcingCode: '',
+        applicant: '',
+        RUCode: '',
+        providerId: '',
+        departmentName: '',
+        description: '',
+        contract:1,
+      },
+
+      costTypeList:[
+        {id:'保养',name:'保养'},
+        {id:'维修',name:'维修'},
+        {id:'物耗',name:'物耗'},
+        {id:'土建',name:'土建'},
+        {id:'安全',name:'安全'},
+      ],
+
+      providerNameList:[
+
+      ],
+
+
+      getParmCreateNumber: {
+        name: 'autoCreatCode',
+        page: 0,
+        offset: 0,
+        pagecount: 0,
+        returntype: 'Map',
+        parammaps: {
+          pastureId: Cookies.get('pastureid'),
+          codeType: 'WW'
+        }
+      },
+
+      listAddCont:[
+         {providerName:"",providerId: "0",eqId: "0",contractId: "0",}
+      ],
+      activeList: [],
+      active: 1,
+
+
+
+      EqNameList: [],
+      requestEqName: {
+        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
+        parammaps: { pastureId: Cookies.get('pastureid') }
+      },
+      EqCodeList: [],
+
+      dialogFormVisible_Examine: false,
+      examineTemp: {
+            "status": 1,
+            "empid": "",
+            "flowCompeleted":"",
+            "workflowNote": "",
+            "id": ""
+      },
+      statueReason: false,
+      rowStyle: { maxHeight: 50 + 'px', height: 35 + 'px' },
+      cellStyle: { padding: 0 + 'px' },
+      textMap: {
+        update: '编辑',
+        create: '新增',
+        see: '查看',
+        examine: '审核1',
+        examine22: '审核2',
+        examine2: '审核3',
+        examine33: '审核4',
+        examine3: '审核5'
+      },
+
+      istab1Add:[],
+      istab1Edit:[],
+      istab1Del:[],
+      istab1Shenhe1:[],
+      istab1Shenhe2:[],
+      istab1Shenhe4:[],
+      getParmCreateNumber2: {
+        name: 'autoCreatCode',
+        page: 0, offset: 0,  pagecount: 0,  returntype: 'Map',
+        parammaps: {
+          pastureId: Cookies.get('pastureid'),
+          codeType: 'WY'
+        }
+      },
+
+    }
+  },
+  created() {
+
+
+    this.get_select_list()
+    this.get_table_data1()
+    this.get_auto_buttons()
+  },
+  methods: {
+    // 提交按钮
+    form_submit(row) {
+      MessageBox.confirm('确认提交此条信息?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        var send_data2 = {
+         "common": { "returnmap": "0" },
+        "data": [
+            {
+              "name": "editBigoutsourcingSubmit", "type": "e",
+              "parammaps": { "id":row.id }
+            }
+          ]
+        }
+          this.save_submit(send_data2)
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消提交'
+        })
+      })
+    },
+    save_submit(send_data) {
+      ExecDataByConfig(send_data).then(response => {
+        if (response.msg !== 'fail') {
+          this.$notify({ title: '成功', message: '提交成功', type: 'success', duration: 2000 })
+          this.get_table_data1()
+        }
+      })
+    },
+    //获取按钮权限
+    get_auto_buttons() {
+      const istab1Add = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:add')
+      this.istab1Add = istab1Add
+
+      const istab1Edit = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:edit')
+      this.istab1Edit = istab1Edit
+
+      const istab1Del = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:del')
+      this.istab1Del = istab1Del
+
+      const istab1Shenhe1 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe1')
+      this.istab1Shenhe1 = istab1Shenhe1
+
+      const istab1Shenhe2 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe2')
+      this.istab1Shenhe2 = istab1Shenhe2
+
+      const istab1Shenhe3 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe3')
+      this.istab1Shenhe3 = istab1Shenhe3
+
+      const istab1Shenhe4 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:shenhe4')
+      this.istab1Shenhe4 = istab1Shenhe4
+
+    },
+
+    querySearchEqNameCont(queryString, cb) {
+      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
+      this.requestEqName.parammaps['eqName'] = queryString
+      GetDataByName(this.requestEqName).then(response => {
+        console.log('备件名称模糊查询搜索data', response.data.list)
+        this.EqNameList = response.data.list
+        cb(this.EqNameList)
+      })
+    },
+    handleSelectEqNameCont(item, row) {
+      console.log('备件名称/设备内部编号模糊查询选中值', item.eqName)
+      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
+      this.$set(row, 'eqCode', item.eqCode)
+      this.$forceUpdate()
+    },
+    querySearchCodeCont(queryString, cb) {
+      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
+      this.requestEqName.parammaps['eqCode'] = queryString
+      GetDataByName(this.requestEqName).then(response => {
+        console.log('备件名称模糊查询搜索data', response.data.list)
+        this.EqNameList = response.data.list
+        cb(this.EqNameList)
+      })
+    },
+    handleSelectEqCodeCont(item, row) {
+      console.log('备件名称/设备内部编号模糊查询选中值', item)
+      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
+      this.$set(row, 'eqName', item.eqName)
+      this.$forceUpdate()
+    },
+    blurSelectEqNameCont(item, row) {
+      this.$set(row, 'eqName', '')
+      this.$set(row, 'eqCode', '')
+    },
+    blurSelectEqCodeCont(item, row) {
+      this.$set(row, 'eqName', '')
+      this.$set(row, 'eqCode', '')
+    },
+
+
+    get_select_list() {
+      GetDataByNames(this.send_select_list).then(response => {
+        this.pastureNameList = response.data.findAllPasture.list
+        console.log("牧场下拉框", this.pastureNameList)
+        this.employeNameList = response.data.findAllEmploye.list
+        console.log("申请人下拉框", this.employeNameList)
+        this.providerNameList = response.data.findAllProviderByCt.list
+
+        this.get_depart_list1()
+      })
+    },
+    change_pasture1(item) {
+      this.getDepartParam1.parammaps.pastureId = this.pastureNameList.find(obj => obj.name == item).id
+      this.tableObj1.getdataListParm.parammaps.departmentId = ''
+      this.get_depart_list1()
+    },
+    //部门List
+    get_depart_list1() {
+      GetDataByName(this.getDepartParam1).then(response => {
+        this.departNameList1 = response.data.list
+      })
+    },
+
+
+    change_pasture2(item) {
+      this.getDepartParam2.parammaps.pastureId = item
+      this.get_depart_list2()
+    },
+
+    get_depart_list2() {
+      GetDataByName(this.getDepartParam2).then(response => {
+        this.departNameList2 = response.data.list
+      })
+    },
+
+    change_depart2(item) {
+      this.createTemp.departmentName = this.departNameList2.find(obj => obj.id == item).name
+    },
+
+
+    get_table_data1() {
+      this.tableObj1.listLoading = false
+
+      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
+        this.tableObj1.getdataListParm.parammaps.startdate = this.$refs['inputDatetime'].value[0]
+        this.tableObj1.getdataListParm.parammaps.enddate = this.$refs['inputDatetime'].value[1]
+
+
+      } else {
+        this.tableObj1.getdataListParm.parammaps.inputDatetime = ''
+        this.tableObj1.getdataListParm.parammaps.startdate = ''
+        this.tableObj1.getdataListParm.parammaps.enddate = ''
+      }
+
+      GetDataByName(this.tableObj1.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.tableObj1.list = response.data.list
+          this.tableObj1.pageNum = response.data.pageNum
+          this.tableObj1.pageSize = response.data.pageSize
+          this.tableObj1.total = response.data.total
+        } else {
+          this.tableObj1.list = [ ]
+        }
+
+        setTimeout(() => {
+          this.tableObj1.listLoading = false
+        }, 100)
+      })
+    },
+    form_search() {
+      console.log('查询')
+
+
+      this.get_table_data1()
+
+    },
+    change_contract(val) {
+      console.log(val)
+      if(val ==1){
+        this.createTemp.contract = 1
+      } else {
+        this.createTemp.contract = 0
+      }
+
+    },
+    form_add() {
+      this.reset_create()
+      this.getDepartParam2.parammaps.pastureId = this.createTemp.pastureId
+      this.get_depart_list2()
+      this.dialogStatus = 'create'
+      this.dialogFormVisible = true
+      this.listLoading = false
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+       //新增生成单号
+      this.get_create_num()
+    },
+
+    reset_create() {
+      this.createTemp.pastureId =  parseInt(Cookies.get('pastureid'))
+     this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
+
+
+     if(parseInt(Cookies.get('pastureid')) == 18){
+      this.createTemp.departmentId = ""
+     }
+     this.createTemp.departmentName = Cookies.get('departmentname')
+      this.createTemp.employeId = parseInt(Cookies.get('employeid'))
+      this.createTemp.date = parseTime(new Date(), '{y}-{m}-{d}')
+
+      this.createTemp.outsourcingCode = ''
+      this.createTemp.applicant = parseInt(Cookies.get('employeid'))
+      this.createTemp.providerId = ''
+      this.createTemp.contract = 1
+
+      this.createTemp.description = ''
+
+
+
+
+
+      this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
+
+    },
+
+    get_create_num() {
+      GetDataByName(this.getParmCreateNumber).then(response => {
+        this.$nextTick(() => {
+          console.log('新增单号', response.data.list[0].orderCode)
+          this.createTemp.outsourcingCode = response.data.list[0].orderCode
+          this.$forceUpdate()
+        })
+      })
+    },
+
+    add_dialog_save() {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['createTemp'].validate(valid => {
+        if (valid) {
+          console.log(this.listAddCont)
+          if (this.createTemp.outsourcingCode == '' || this.createTemp.outsourcingCode == null || this.createTemp.outsourcingCode == undefined) {
+            GetDataByName(this.getParmCreateNumber2).then(response => {
+              this.$nextTick(() => {
+                console.log('新增单号', response.data.list[0].orderCode)
+                this.createTemp.outsourcingCode = response.data.list[0].orderCode
+                this.$forceUpdate()
+                this.add_dialog_saveSave()
+              })
+            })
+          } else {
+            this.add_dialog_saveSave()
+          }
+        }
+      })
+    },
+
+
+    add_dialog_saveSave() {
+
+        for (var j = 0; j < this.listAddCont.length; j++) {
+          console.log(this.listAddCont[j].amount)
+          if(this.createTemp.contract == 1){
+            if(this.listAddCont[j].providerName == ''){
+              this.$message({ type: 'warning', message: '请检查供应商是否未填写', duration: 2000 })
+              return false
+            }
+          }
+          if(this.listAddCont[j].eqName == ''){
+            this.$message({ type: 'warning', message: '请检查设备名称是否未填写', duration: 2000 })
+            return false
+          }
+          if(this.listAddCont[j].eqCode == ''){
+            this.$message({ type: 'warning', message: '请检查设备内部编号是否未填写', duration: 2000 })
+            return false
+          }
+          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
+            // this.$message({ type: 'warning', message: '请检查金额是否未填写', duration: 2000 })
+            // return false
+          } else {
+            // var rulesAmount = /^[1-9]\d*$/
+            // if (!rulesAmount.test(this.listAddCont[j].amount)) {
+            //   this.$message({ type: 'error', message: '申购数量请输入正整数', duration: 2000 })
+            //   return false
+            // }
+          }
+
+          if (this.createTemp.contract == 1){
+            if (this.listAddCont[j].contractCode == null || this.listAddCont[j].contractCode === '') {
+              this.$message({ type: 'warning', message: '请检查合同编号是否未填写', duration: 2000 })
+              return false
+            }
+          }
+
+
+
+
+        }
+        var amount = 0
+        if(this.createTemp.contract==0){
+          amount = "@insertSpotList.amount"
+        }else{
+          amount = 0
+        }
+        if(this.createTemp.contract == 0){
+          // 无合同
+          this.$set(this.createTemp,'status',0)
+        }else{
+          // 有合同
+          this.$set(this.createTemp,'status',1)
+        }
+        var send_data = {
+          "common": {  "returnmap": "0" },
+          "data": [
+            {
+              "name": "addBigoutsourcing", "type": "e",
+              "parammaps": this.createTemp
+            },
+            {
+              "name": "insertSpotList",
+              "resultmaps": {  "list": this.listAddCont },
+
+              "children": [
+                {
+                    "name": "addOutsourcing",  "type": "e",
+                    "parammaps": {
+                      "bigId": "@addBigoutsourcing.LastInsertId",
+                      "providerId": "@insertSpotList.providerId",
+                      "amount": amount,
+                      "eqId": "@insertSpotList.eqId",
+                      "eqCode": "@insertSpotList.eqCode",
+                      "eqName": "@insertSpotList.eqName",
+                      "typea": "@insertSpotList.typea",
+                      "date": "@insertSpotList.date",
+                      "contractId": "@insertSpotList.contractId",
+                      "providerName": "@insertSpotList.providerName",
+                      "contractCode": "@insertSpotList.contractCode",
+                      "remark": "@insertSpotList.remark",
+                      "status":this.createTemp.status
+                      }
+                  }
+              ]
+              }
+            ]
+        }
+        ExecDataByConfig(send_data).then(response => {
+          console.log('新增保存发送参数', send_data)
+          if (response.msg === 'fail') {
+            this.$notify({
+              title: '保存失败',
+              message: response.data,
+              type: 'warning',
+              duration: 2000
+            })
+          } else {
+            if(this.createTemp.contract==1){
+              this.add_dialog_saveSave2()
+            }
+            this.dialogFormVisible = false
+
+            this.get_table_data1()
+
+            this.$notify({
+              title: '',
+              message: '保存成功',
+              type: 'success',
+              duration: 2000
+            })
+          }
+        })
+        return true
+
+    },
+
+
+
+
+
+    form_see(row){
+      console.log('查看======》',row)
+      this.getDepartParam2.parammaps.pastureId = row.pastureId
+      this.get_depart_list2()
+      this.createTemp = Object.assign({}, row)
+      this.dialogStatus = 'see'
+      this.dialogFormVisible = true
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+
+
+      //总价大于等于10000,有高级设备工程师
+      if(row.isAudit == 1) {
+        if (row.flowCompeleted == 1) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人' },
+              { title: '财务负责人' },
+              { title: '场长' },
+              { title: '运营支持部高级工程师' },
+            ]
+            this.active = 1
+          } else if (row.flowCompeleted == 2) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人' },
+              { title: '场长' },
+              { title: '运营支持部高级工程师' },
+            ]
+            this.active = 2
+          } else if (row.flowCompeleted === 3) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName,status: 'error', reason: row.workflowNote },
+              { title: '财务负责人' },
+              { title: '场长' },
+              { title: '运营支持部高级工程师' }
+            ]
+            this.active = 2
+          } else if (row.flowCompeleted === 4) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长' },
+              { title: '运营支持部高级工程师' }
+            ]
+            this.active = 3
+          } else if (row.flowCompeleted === 5) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName,status: 'error', reason: row.workflowNote },
+              { title: '场长' },
+              { title: '运营支持部高级工程师' }
+            ]
+            this.active = 3
+          } else if (row.flowCompeleted === 6) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName },
+              { title: '运营支持部高级工程师' }
+            ]
+            this.active = 4
+          } else if (row.flowCompeleted === 7) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName,status: 'error', reason: row.workflowNote },
+              { title: '运营支持部高级工程师' }
+            ]
+            this.active = 4
+          }else if (row.flowCompeleted === 8) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName },
+              { title: '运营支持部高级工程师',date: row.advanceddate, name: row.advancedName }
+            ]
+            this.active = 5
+          }else if (row.flowCompeleted === 9) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName},
+              { title: '运营支持部高级工程师',date: row.advanceddate, name: row.advancedName,status: 'error', reason: row.workflowNote  }
+            ]
+            this.active = 5
+          }
+
+
+
+      //总价小于10000 没有高级设备工程师,直接场长审核
+      } else {
+        if (row.flowCompeleted == 1) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人' },
+              { title: '财务负责人' },
+              { title: '场长' }
+            ]
+            this.active = 1
+          } else if (row.flowCompeleted == 2) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人' },
+              { title: '场长' }
+            ]
+            this.active = 2
+          } else if (row.flowCompeleted === 3) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName,status: 'error', reason: row.workflowNote },
+              { title: '财务负责人' },
+              { title: '场长' }
+            ]
+            this.active = 2
+          } else if (row.flowCompeleted === 4) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长' },
+            ]
+            this.active = 3
+          } else if (row.flowCompeleted === 5) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName,status: 'error', reason: row.workflowNote },
+              { title: '场长' }
+            ]
+            this.active = 3
+          } else if (row.flowCompeleted === 6) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName },
+            ]
+            this.active = 4
+          } else if (row.flowCompeleted === 7) {
+            this.activeList = [
+              { title: '设备处长', date: row.createTime, name: row.applicantName },
+              { title: '部门负责人', date: row.departmentdate, name: row.departmentUserName },
+              { title: '财务负责人',date: row.equipmentdate, name: row.equipmentName },
+              { title: '场长',date: row.fielddate, name: row.fieldName,status: 'error', reason: row.workflowNote }
+            ]
+            this.active = 4
+          }
+      }
+      if(row.contract == 1){
+        this.activeList = [
+          { title: '设备处长', date: row.createTime, name: row.applicantName }
+        ]
+        this.active = 1
+      }
+          this.getAddContListParam.parammaps.bigId = row.id
+         this.getAddContList()
+    },
+
+    getAddContList() {
+      GetDataByName(this.getAddContListParam).then(response => {
+        this.listAddCont = response.data.list
+        this.listLoading = false
+      })
+    },
+
+
+
+    form_edit(row) {
+      this.reset_create()
+      console.log('编辑',row)
+      this.getDepartParam2.parammaps.pastureId = row.pastureId
+      this.get_depart_list2()
+      if (row.providerId == undefined) {
+        row.providerId = ''
+        row.providerName = ''
+      }
+      this.createTemp = Object.assign({}, row) // copy obj
+      this.dialogStatus = 'update'
+      this.dialogFormVisible = true
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+      this.getAddContListParam.parammaps.bigId = row.id
+      this.getAddContList()
+    },
+    edit_dialog_save() {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['createTemp'].validate(valid => {
+        if (valid) {
+          this.edit_dialog_saveSave()
+        }
+      })
+    },
+    edit_dialog_saveSave() {
+
+        for (var j = 0; j < this.listAddCont.length; j++) {
+          console.log(this.listAddCont[j].amount)
+          // eslint-disable-next-line use-isnan
+          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
+            this.$message({ type: 'warning', message: '请检查申购数量是否未填写', duration: 2000 })
+            return false
+          }
+
+        }
+
+        this.listAddCont[0].providerId = "0"
+        this.listAddCont[0].eqId = "0"
+        this.listAddCont[0].contractId = "0"
+
+        var amount = 0
+        if(this.createTemp.contract==0){
+          amount = "@insertSpotList.amount"
+        }else{
+          amount = 0
+        }
+        var send_data = {
+          "common": {  "returnmap": "0" },
+          "data": [
+            {
+              "name": "editBigoutsourcing", "type": "e",
+              "parammaps": this.createTemp
+            },
+            {
+              "name": "insertSpotList",
+              "resultmaps": {  "list": this.listAddCont },
+              "children": [
+                {
+                    "name": "editOutsourcing",  "type": "e",
+                    "parammaps": {
+                      "bigId": "@insertSpotList.LastInsertId",
+                      "providerId": "@insertSpotList.providerId",
+                      "amount": amount,
+                      "eqId": "@insertSpotList.eqId",
+                      "eqCode": "@insertSpotList.eqCode",
+                      "eqName": "@insertSpotList.eqName",
+                      "typea": "@insertSpotList.typea",
+                      "date": "@insertSpotList.date",
+                      "contractId": "@insertSpotList.contractId",
+                      "id": "@insertSpotList.id",
+                      "providerName": "@insertSpotList.providerName",
+                      "contractCode": "@insertSpotList.contractCode"
+                      }
+                  }
+              ]
+            },
+            {
+              "name": "updateBigoutsourcingFlowCompeleted", "type": "e",
+              "parammaps":{
+                id:this.createTemp.id
+              }
+            },
+            ]
+        }
+
+        ExecDataByConfig(send_data).then(response => {
+          console.log('新增保存发送参数', send_data)
+          if (response.msg === 'fail') {
+            this.$notify({
+              title: '保存失败',
+              message: response.data,
+              type: 'warning',
+              duration: 2000
+            })
+          } else {
+            this.dialogFormVisible = false
+
+            this.get_table_data1()
+            this.$notify({
+              title: '',
+              message: '保存成功',
+              type: 'success',
+              duration: 2000
+            })
+          }
+        })
+
+    },
+
+    form_delete(row) {
+      console.log('点击了删除',row)
+      MessageBox.confirm('确认删除此条信息?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        var send_data = {
+        "common": { "returnmap": "0" },
+        "data": [
+          {
+            "name": "deleteBigoutsourcing", "type": "e",
+            "parammaps": { "id":row.id }
+           }
+          ]
+        }
+
+        ExecDataByConfig(send_data).then(response => {
+          this.get_table_data1()
+          this.$notify({
+            title: '成功',
+            message: '删除成功',
+            type: 'success',
+            duration: 2000
+          })
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        })
+      })
+    },
+
+
+    change_statue(val) {
+      if (val == 2) {
+        this.statueReason = true
+      } else {
+        this.statueReason = false
+      }
+    },
+
+    form_examine(row) {
+      console.log('点击了设备处长审核',row)
+      if (row == undefined) {
+        this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+        this.examineTemp = Object.assign({}, row)
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save() {
+      console.log('点击了设备处长审核', this.examineTemp)
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "3"
+          } else {
+            this.examineTemp.status = 0
+            this.examineTemp.flowCompeleted = "2"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  // {
+                  //     "name": "editBigoutsourcingEquipment",  "type": "e",
+                  //     "parammaps": this.examineTemp
+                  // },
+                  {
+                      "name": "editBigoutsourcingDepartment",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          console.log(send_data,'审核1保存')
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+
+    form_examine2(row) {
+      console.log('点击了场长审核',row)
+      this.examineTemp = Object.assign({}, row)
+      if (row == undefined) {
+        // this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.statueReason = false
+      this.dialogFormVisible_Examine = true
+      // GetDataByName(this.getParmCreateNumber).then(response => {
+      //   this.$nextTick(() => {
+      //     console.log('新增单号', response.data.list[0].orderCode)
+      //     this.examineTemp.acceptanceCode = response.data.list[0].orderCode
+      //     this.$set(this.examineTemp,'acceptanceCode',response.data.list[0].orderCode)
+      //     this.$forceUpdate()
+      //   })
+      // })
+    },
+    add_dialog_saveSave2() {
+      console.log(this.examineTemp,'=====---hss')
+      // this.examineTemp.iscontract =
+
+        //牧场
+        var mydata = {
+          // acceptanceCode:this.createTemp.acceptanceCode,
+          pastureId:  this.createTemp.pastureId,
+          departmentId: this.createTemp.departmentId,
+          applicant:Cookies.get('employeid'),
+          outsourcingCode:this.examineTemp.outsourcingCode,
+          applyType:0,
+          date:parseTime(new Date(), '{y}-{m}-{d}'),
+          status:1
+        }
+        if(this.examineTemp.contract == 0){
+          mydata.iscontract = 1
+        }else{
+          mydata.iscontract = 0
+        }
+        var send_data = {
+          "common": {  "returnmap": "0" },
+          "data": [
+            {
+              "name": "insertBigacceptance",
+              "type": "e",
+              "parammaps": mydata
+            }
+          ]
+        }
+        ExecDataByConfig(send_data).then(response => {
+          console.log('新增保存发送参数', send_data)
+          if (response.msg === 'fail') {
+            this.$notify({
+              title: '保存失败',
+              message: response.data,
+              type: 'warning',
+              duration: 2000
+            })
+          } else {
+            // this.$notify({
+            //   title: '',
+            //   message: '保存成功',
+            //   type: 'success',
+            //   duration: 2000
+            // })
+          }
+        })
+
+
+    },
+
+    form_examine_save2() {
+      console.log('点击了场长审核', this.examineTemp)
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      // this.examineTemp.acceptanceCode = this.createTemp.acceptanceCode
+
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "5"
+          } else {
+
+
+           // //总价大于等于10000 有高级设备工程师审核
+           //  if(this.examineTemp.isAudit == 1){
+           //     this.examineTemp.status = 0
+           // //总价小于10000 没有高级设备工程师,直接场长审核
+           //  } else {
+           //     this.examineTemp.status = 1
+           //  }
+           this.examineTemp.status = 0
+            this.examineTemp.flowCompeleted = "4"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  // {
+                  //     "name": "editBigoutsourcingField",  "type": "e",
+                  //     "parammaps": this.examineTemp
+                  // },
+                  {
+                      "name": "editBigoutsourcingEquipment",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          console.log(send_data,'审核2保存')
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              if(this.examineTemp.status == 1){
+                this.add_dialog_saveSave2()
+              }
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+
+    form_examine3(row) {
+      console.log('点击了高级工程师  审核',row)
+      this.examineTemp = Object.assign({}, row)
+      if (row == undefined) {
+        //this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save3() {
+      console.log('点击了高级工程师审核',this.examineTemp )
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "7"
+          } else {
+            //总价大于等于10000 有高级设备工程师审核
+             if(this.examineTemp.isAudit == 1){
+                this.examineTemp.status = 0
+            //总价小于10000 没有高级设备工程师,直接场长审核
+             } else {
+                this.examineTemp.status = 1
+             }
+            this.examineTemp.flowCompeleted = "6"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  // {
+                  //     "name": "editBigoutsourcingAdvanceddate",  "type": "e",
+                  //     "parammaps": this.examineTemp
+                  // },
+                  {
+                      "name": "editBigoutsourcingField",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          console.log(send_data,'审核3保存',this.examineTemp)
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              if(this.examineTemp.status == 1){
+                this.add_dialog_saveSave2()
+              }
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+    form_examine4(row) {
+      console.log('点击了高级工程师  审核',row)
+      this.examineTemp = Object.assign({}, row)
+      if (row == undefined) {
+        //this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save4() {
+      console.log('点击了高级工程师审核',this.examineTemp )
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "9"
+          } else {
+            this.examineTemp.status = 1
+            this.examineTemp.flowCompeleted = "8"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  // {
+                  //     "name": "editBigoutsourcingAdvanceddate",  "type": "e",
+                  //     "parammaps": this.examineTemp
+                  // },
+                  {
+                      "name": "editBigoutsourcingAdvanceddate",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          console.log(send_data,'审核4保存')
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              if(this.examineTemp.status == 1){
+                this.add_dialog_saveSave2()
+              }
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+
+
+  }
+}
+</script>
+<style lang="scss" scoped>
+
+  // .content{
+  //   padding: 20px 20px;
+  //   .title{
+  //     text-align: center;
+  //     font-weight: 700;
+  //   }
+  //   .title2{
+  //     float: left;
+  //     font-weight: 700;
+  //     padding: 10px 0;
+  //   }
+  // }
+
+</style>

+ 108 - 108
src/views/maintenance/subcontractingMainten/tabPage/tab11.vue

@@ -9,29 +9,29 @@
       <el-select v-model="tableObj1.getdataListParm.parammaps.departmentId" clearable style="width: 140px;" placeholder="部门1" class="filter-item">
         <el-option v-for="item in departNameList1" :key="item.id" :label="item.name" :value="item.id" />
       </el-select>
- 
+
       <el-input v-model="tableObj1.getdataListParm.parammaps.outsourcingCode" placeholder="委外维修单号" style="width: 200px;" class="filter-item" />
 
       <el-select v-model="tableObj1.getdataListParm.parammaps.status" style="width: 140px;" clearable placeholder="审核状态" class="filter-item">
         <el-option v-for="item in statuesNameList" :key="item.id" :label="item.name" :value="item.id" />
       </el-select>
-      
-      <el-input v-model="tableObj1.getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" /> 
 
-      <el-input v-model="tableObj1.getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 200px;" class="filter-item" /> 
+      <el-input v-model="tableObj1.getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 200px;" class="filter-item" />
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 200px;" class="filter-item" />
 
-      <el-input v-model="tableObj1.getdataListParm.parammaps.contractCode" placeholder="合同编号" style="width: 200px;" class="filter-item" /> 
-      
       <el-date-picker ref="inputDatetime" v-model="tableObj1.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  class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
 
       <el-button v-if="istab1Add" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button>
 
 
- 
+
     </div>
 
 
@@ -69,16 +69,16 @@
           <el-button v-if="istab1Edit && (row.status !== 0) && (row.status !== 1) "  type="success" size="mini" @click="form_edit(row)">编辑</el-button>
           <el-button v-if="istab1Del && (row.status !== 1) "  type="danger" size="mini" @click="form_delete(row)">删除</el-button>
 
-          <el-button  v-if="istab1Shenhe1 && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button> 
+          <el-button  v-if="istab1Shenhe1 && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
+
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
 
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine(row)">审核1</el-button> 
-         
           <el-button   v-if="istab1Shenhe2 && (row.flowCompeleted == 2 )" style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine2(row)">审核2</el-button> 
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
 
           <el-button   v-if="istab1Shenhe3 && (row.flowCompeleted == 4) " style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine3(row)">审核3</el-button> 
-          
+          <el-button v-else style="display:none" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
+
         </template>
       </el-table-column>
 
@@ -121,7 +121,7 @@
                 <el-radio-group v-model="createTemp.contract" :disabled="dialogStatus==='see'"  @change="change_contract" >
                   <el-radio   :label="0" :checked="createTemp.contract == 0">无合同</el-radio>
                   <el-radio   :label="1" :checked="createTemp.contract == 1">有合同</el-radio>
-                   
+
                 </el-radio-group>
               </el-form-item>
             </el-col>
@@ -138,7 +138,7 @@
                 <el-date-picker v-model="createTemp.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
               </el-form-item>
             </el-col>
-            
+
 
           </el-row>
           <el-row :gutter="20">
@@ -155,8 +155,8 @@
           </el-row>
         </el-form>
 
-           
-        
+
+
           <el-table
             :key="tableKey"
             v-loading="listLoading"
@@ -206,14 +206,14 @@
                       |<span class="addr">{{ item.eqCode }}</span>
                     </template>
                   </el-autocomplete>
-             
+
                 </template>
               </el-table-column>
               <el-table-column   label="设备内部编号" prop="eqCode" align="center" min-width="150">
                 <template slot-scope="scope">
 
-                
-                  <el-autocomplete  style="margin-top:10px" 
+
+                  <el-autocomplete  style="margin-top:10px"
                     v-model="scope.row.eqCode" :disabled="dialogStatus ==='see'"
                     class="inline-input"
                     :fetch-suggestions="querySearchCodeCont"
@@ -224,11 +224,11 @@
                     @blur="(value)=>
                     {blurSelectEqCodeCont(value, scope.row)}"
                   />
-                 
+
                 </template>
               </el-table-column>
 
-              
+
             <!-- <el-table-column label="设备名称" prop="eqName" min-width="80px" align="center">
               <template slot-scope="scope">
                 <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
@@ -238,7 +238,7 @@
               </template>
             </el-table-column>
 
-            
+
             <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="80px">
               <template slot-scope="scope">
                 <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
@@ -249,7 +249,7 @@
             </el-table-column> -->
             <el-table-column label="费用类型" prop="typea" align="center" min-width="80px">
               <template slot-scope="scope">
-             
+
                 <el-select v-model="scope.row.typea" placeholder="费用类型" class="filter-item" style="width: 120px; margin-top:10px " v-if="dialogStatus ==='create'||dialogStatus ==='update'">
                   <el-option v-for="item in costTypeList" :key="item.id" :label="item.name" :value="item.name" />
                 </el-select>
@@ -259,7 +259,7 @@
             <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
               <template slot-scope="scope">
                 <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                
+
                   <el-date-picker v-model="scope.row.date"   style="margin-top:10px"   type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd"   />
                 </span>
                 <span v-if="dialogStatus ==='see'">{{ scope.row.date }}</span>
@@ -281,14 +281,14 @@
                 <span v-if="dialogStatus ==='see'">{{ scope.row.remark }}</span>
               </template>
             </el-table-column>
-            
-            
-            
+
+
+
           </el-table>
 
-    
+
           <el-row :gutter="10" v-if="dialogStatus ==='see'  ">
-        
+
             <el-col>
               <h3>流程进度</h3>
               <el-steps :active="active" align-center finish-status="success">
@@ -308,8 +308,8 @@
               </el-steps>
             </el-col>
           </el-row>
-       
-      
+
+
 
 
         <div slot="footer" class="dialog-footer" style="bottom:10px">
@@ -350,8 +350,8 @@
         <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
       </div>
     </el-dialog>
-   
-  
+
+
   </div>
 </template>
 
@@ -369,55 +369,55 @@ export default {
   inject: ['reload'],
   data() {
     return {
-      
+
       //多个下拉框 - 请求内容
       send_select_list: [
         { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
         { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
         { name: 'findAllProviderByCt', offset: 0, pagecount: 0, parammaps: { 'id': Cookies.get('pastureid') }},
-        
+
       ],
- 
-       
-      //  下拉框 - 牧场 
+
+
+      //  下拉框 - 牧场
       pastureNameList: [
-        // {id: "犊牛1", name: "犊牛1"}, 
-        // {id: "犊牛2", name: "犊牛2"}, 
+        // {id: "犊牛1", name: "犊牛1"},
+        // {id: "犊牛2", name: "犊牛2"},
         // {id: "犊牛3", name: "犊牛3"}
-      ], 
+      ],
 
       getDepartParam1: {
         name: 'findAllDepart', offset: 0, pagecount: 0,
         parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
       },
-      employeNameList: [], 
-      departNameList1: [], 
+      employeNameList: [],
+      departNameList1: [],
       getDepartParam2: {
         name: 'findAllDepart', offset: 0, pagecount: 0,
         parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
       },
-      departNameList2: [], 
+      departNameList2: [],
 
       statuesNameList: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
       isokDisable: false,
 
-    
+
       tableObj1: {
         getdataListParm: {
           name: 'getBigoutsourcingList',
           //请求的 page 无用参数  offset 第几页  pagecount 每页多少条
-          page: 1, offset: 1,pagecount: 10,returntype: 'Map',
+          page: 1, offset: 1,pagecount: 50,returntype: 'Map',
           parammaps: { pastureName: Cookies.get('pasturename'), outsourcingCode: '',departmentName: '',status: "",eqName: "",eqCode: "",contractCode: "",inputDatetime:"",startdate: "",enddate: ""}
         },
         tableKey: 0,listLoading: false,
         //返回的 pageNum 第几页  pageSize 每页多少条 total 总条数
-        pageNum:'',pageSize:'',total: 0, 
+        pageNum:'',pageSize:'',total: 0,
         list: [
-         
+
         ]
       },
-   
-      getAddContListParam:  { 
+
+      getAddContListParam:  {
         name: "getOutsourcingList",
         page: 1,offset: 1,pagecount: 20,returntype: "Map",
         parammaps: {"bigId": ""}
@@ -479,7 +479,7 @@ export default {
       providerNameList:[
 
       ],
-  
+
 
       getParmCreateNumber: {
         name: 'autoCreatCode',
@@ -503,14 +503,14 @@ export default {
 
       EqNameList: [],
       requestEqName: {
-        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
         parammaps: { pastureId: Cookies.get('pastureid') }
       },
       EqCodeList: [],
 
       dialogFormVisible_Examine: false,
       examineTemp: {
-            "status": 1,   
+            "status": 1,
             "empid": "",
             "flowCompeleted":"",
             "workflowNote": "",
@@ -540,7 +540,7 @@ export default {
     }
   },
   created() {
-    
+
 
     this.get_select_list()
     this.get_table_data1()
@@ -551,7 +551,7 @@ export default {
     get_auto_buttons() {
       const istab1Add = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:add')
       this.istab1Add = istab1Add
-      
+
       const istab1Edit = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten:edit')
       this.istab1Edit = istab1Edit
 
@@ -608,7 +608,7 @@ export default {
       this.$set(row, 'eqCode', '')
     },
 
- 
+
     get_select_list() {
       GetDataByNames(this.send_select_list).then(response => {
         this.pastureNameList = response.data.findAllPasture.list
@@ -616,7 +616,7 @@ export default {
         this.employeNameList = response.data.findAllEmploye.list
         console.log("申请人下拉框", this.employeNameList)
         this.providerNameList = response.data.findAllProviderByCt.list
-        
+
         this.get_depart_list1()
       })
     },
@@ -631,7 +631,7 @@ export default {
         this.departNameList1 = response.data.list
       })
     },
-   
+
 
     change_pasture2(item) {
       this.getDepartParam2.parammaps.pastureId = item
@@ -648,15 +648,15 @@ export default {
       this.createTemp.departmentName = this.departNameList2.find(obj => obj.id == item).name
     },
 
-    
+
     get_table_data1() {
       this.tableObj1.listLoading = false
- 
+
       if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
         this.tableObj1.getdataListParm.parammaps.startdate = this.$refs['inputDatetime'].value[0]
         this.tableObj1.getdataListParm.parammaps.enddate = this.$refs['inputDatetime'].value[1]
 
-        
+
       } else {
         this.tableObj1.getdataListParm.parammaps.inputDatetime = ''
         this.tableObj1.getdataListParm.parammaps.startdate = ''
@@ -672,7 +672,7 @@ export default {
         } else {
           this.tableObj1.list = [ ]
         }
-     
+
         setTimeout(() => {
           this.tableObj1.listLoading = false
         }, 100)
@@ -681,9 +681,9 @@ export default {
     form_search() {
       console.log('查询')
 
-  
+
       this.get_table_data1()
-     
+
     },
     change_contract(val) {
       console.log(val)
@@ -692,7 +692,7 @@ export default {
       } else {
         this.createTemp.contract = 0
       }
-      
+
     },
     form_add() {
       this.reset_create()
@@ -719,22 +719,22 @@ export default {
      this.createTemp.departmentName = Cookies.get('departmentname')
       this.createTemp.employeId = parseInt(Cookies.get('employeid'))
       this.createTemp.date = parseTime(new Date(), '{y}-{m}-{d}')
-      
+
       this.createTemp.outsourcingCode = ''
       this.createTemp.applicant = parseInt(Cookies.get('employeid'))
       this.createTemp.providerId = ''
       this.createTemp.contract = 1
- 
+
       this.createTemp.description = ''
-      
-   
- 
- 
+
+
+
+
 
       this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
-      
+
     },
-   
+
     get_create_num() {
       GetDataByName(this.getParmCreateNumber).then(response => {
         this.$nextTick(() => {
@@ -771,7 +771,7 @@ export default {
 
 
     add_dialog_saveSave() {
-     
+
         for (var j = 0; j < this.listAddCont.length; j++) {
           console.log(this.listAddCont[j].amount)
           if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
@@ -792,9 +792,9 @@ export default {
             }
           }
 
-         
 
-           
+
+
         }
 
 
@@ -808,7 +808,7 @@ export default {
             {
               "name": "insertSpotList",
               "resultmaps": {  "list": this.listAddCont },
-              "children": [ 
+              "children": [
                 {
                     "name": "addOutsourcing",  "type": "e",
                     "parammaps": {
@@ -829,7 +829,7 @@ export default {
               }
             ]
         }
-        
+
         ExecDataByConfig(send_data).then(response => {
           console.log('新增保存发送参数', send_data)
           if (response.msg === 'fail') {
@@ -841,9 +841,9 @@ export default {
             })
           } else {
             this.dialogFormVisible = false
-        
+
             this.get_table_data1()
-       
+
             this.$notify({
               title: '',
               message: '保存成功',
@@ -853,7 +853,7 @@ export default {
           }
         })
         return true
-      
+
     },
 
     form_see(row){
@@ -866,7 +866,7 @@ export default {
       this.$nextTick(() => {
         this.$refs['createTemp'].clearValidate()
       })
-      
+
 
           if (row.flowCompeleted == 1) {
             this.activeList = [{ title: '委外验收', date: row.createTime, name: row.empname }, { title: '设备处长' }, { title: '场长' },{ title: '高级设备工程师' }]
@@ -889,7 +889,7 @@ export default {
           } else if (row.flowCompeleted === 7) {
             this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName },  { title: '设备处长', date: row.equipmentdate, name: row.equipmentName },{ title: '场长', date: row.fielddate, name: row.fieldName  },{  title: '高级设备工程师', date: row.advanceddate, name: row.advancedName, status: 'error', reason: row.workflowNote   }]
             this.active = 4
-          }    
+          }
 
 
 
@@ -905,7 +905,7 @@ export default {
       })
     },
 
-    
+
 
     form_edit(row) {
       this.reset_create()
@@ -937,21 +937,21 @@ export default {
       })
     },
     edit_dialog_saveSave() {
-      
+
         for (var j = 0; j < this.listAddCont.length; j++) {
           console.log(this.listAddCont[j].amount)
           // eslint-disable-next-line use-isnan
           if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
             this.$message({ type: 'warning', message: '请检查申购数量是否未填写', duration: 2000 })
             return false
-          }  
-          
+          }
+
         }
 
         this.listAddCont[0].providerId = "0"
         this.listAddCont[0].eqId = "0"
         this.listAddCont[0].contractId = "0"
-      
+
 
         var send_data = {
           "common": {  "returnmap": "0" },
@@ -963,7 +963,7 @@ export default {
             {
               "name": "insertSpotList",
               "resultmaps": {  "list": this.listAddCont },
-              "children": [ 
+              "children": [
                 {
                     "name": "editOutsourcing",  "type": "e",
                     "parammaps": {
@@ -992,7 +992,7 @@ export default {
             },
             ]
         }
-         
+
         ExecDataByConfig(send_data).then(response => {
           console.log('新增保存发送参数', send_data)
           if (response.msg === 'fail') {
@@ -1004,7 +1004,7 @@ export default {
             })
           } else {
             this.dialogFormVisible = false
- 
+
             this.get_table_data1()
             this.$notify({
               title: '',
@@ -1014,7 +1014,7 @@ export default {
             })
           }
         })
-         
+
     },
 
     form_delete(row) {
@@ -1026,14 +1026,14 @@ export default {
       }).then(() => {
         var send_data = {
         "common": { "returnmap": "0" },
-        "data": [ 
-          { 
+        "data": [
+          {
             "name": "deleteBigoutsourcing", "type": "e",
             "parammaps": { "id":row.id }
            }
           ]
         }
-        
+
         ExecDataByConfig(send_data).then(response => {
           this.get_table_data1()
           this.$notify({
@@ -1083,7 +1083,7 @@ export default {
       }, 1000)
       this.$refs['examineTemp'].validate(valid => {
         if (valid) {
-       
+
           //不通过
           if(this.statueReason){
             this.examineTemp.status = 2
@@ -1094,7 +1094,7 @@ export default {
             this.examineTemp.flowCompeleted = "2"
           }
           this.examineTemp.empid = Cookies.get('employeid')
-       
+
           var send_data = {
               "common": {  "returnmap": "0"  },
               "data": [
@@ -1132,7 +1132,7 @@ export default {
         this.$set(this.createTemp, 'status', 1)
         this.$set(this.createTemp, 'workflowNote', '')
       } else {
-      
+
         this.$set(this.examineTemp, 'status', 1)
         this.$set(this.examineTemp, 'workflowNote', '')
       }
@@ -1148,7 +1148,7 @@ export default {
       }, 1000)
       this.$refs['examineTemp'].validate(valid => {
         if (valid) {
-       
+
           //不通过
           if(this.statueReason){
             this.examineTemp.status = 2
@@ -1159,7 +1159,7 @@ export default {
             this.examineTemp.flowCompeleted = "4"
           }
           this.examineTemp.empid = Cookies.get('employeid')
-       
+
           var send_data = {
               "common": {  "returnmap": "0"  },
               "data": [
@@ -1197,7 +1197,7 @@ export default {
         this.$set(this.createTemp, 'status', 1)
         this.$set(this.createTemp, 'workflowNote', '')
       } else {
-       
+
         this.$set(this.examineTemp, 'status', 1)
         this.$set(this.examineTemp, 'workflowNote', '')
       }
@@ -1213,7 +1213,7 @@ export default {
       }, 1000)
       this.$refs['examineTemp'].validate(valid => {
         if (valid) {
-       
+
           //不通过
           if(this.statueReason){
             this.examineTemp.status = 2
@@ -1224,7 +1224,7 @@ export default {
             this.examineTemp.flowCompeleted = "6"
           }
           this.examineTemp.empid = Cookies.get('employeid')
-       
+
           var send_data = {
               "common": {  "returnmap": "0"  },
               "data": [
@@ -1253,8 +1253,8 @@ export default {
         }
       })
     },
-   
- 
+
+
   }
 }
 </script>

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

@@ -1,2414 +1,2414 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.pastureName" style="width: 140px;" placeholder="牧场" class="filter-item" @change="change_pasture1">
-        <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.departmentId" clearable style="width: 140px;" placeholder="部门" class="filter-item">
-        <el-option v-for="item in departNameList1" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.acceptanceCode" placeholder="委外验收单号" style="width: 200px;" class="filter-item" />
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.status" style="width: 140px;" clearable placeholder="审核状态" class="filter-item">
-        <el-option v-for="item in statuesNameList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="tableObj1.getdataListParm.parammaps.reject" style="width: 140px;" clearable placeholder="单据状态" class="filter-item">
-        <el-option v-for="item in rejectList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-
-      <el-input v-model="tableObj1.getdataListParm.parammaps.outsourcingCode" placeholder="委外申请单号" style="width: 200px;" class="filter-item" />
-
-      <el-select v-model="tableObj1.getdataListParm.parammaps.iscontract" style="width: 140px;" clearable placeholder="有无合同" class="filter-item">
-        <el-option v-for="item in iscontractList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-
-      <el-date-picker ref="inputDatetime" v-model="tableObj1.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  class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-
-      <!-- <el-button  v-if="istab2Add" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button> -->
-
-
-
-    </div>
-
-
-    <div class="elTable">
-      <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">
-          <template slot-scope="scope">
-            <span>{{ scope.$index + (tableObj1.pageNum-1) * tableObj1.pageSize + 1 }}</span>
-          </template>
-        </el-table-column>
-
-        <el-table-column label="委外验收单号" min-width="120px" align="center" prop="acceptanceCode" />
-        <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
-        <el-table-column label="部门 " min-width="120px" align="center" prop="departmentName" />
-
-        <el-table-column label="申请人" min-width="120px" align="center" prop="applicantName" />
-        <el-table-column label="合同" min-width="120px" align="center" prop="contract">
-          <template slot-scope="scope">
-              <span v-if="scope.row.iscontract == 0 ">有</span>
-              <span v-else>无</span>
-            </template>
-        </el-table-column>
-        <el-table-column label="日期" min-width="120px" align="center" prop="date" />
-        <el-table-column label="审核状态" min-width="150px" align="center">
-          <template slot-scope="scope">
-            <span v-if="scope.row.status == 0 ">未离厂</span>
-            <span v-else-if="scope.row.status == 1 ">未回厂</span>
-            <span v-else-if="scope.row.status == 2 ">已回厂</span>
-            <span v-else>已验收</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="单据状态" min-width="150px" align="center">
-          <template slot-scope="scope">
-            <span v-if="scope.row.reject == 0 ">正常</span>
-            <span v-if="scope.row.reject == 1 ">已关单</span>
-          </template>
-        </el-table-column>
-        <el-table-column label="操作" align="center" width="350" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-         <div v-if="row.reject != 1">
-          <el-button type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <el-button  v-if="istab2Edit && row.isAcceptance == 0"  type="success" size="mini" @click="form_edit(row)">编辑</el-button>
-          <el-button v-if="istab2Del && row.isAcceptance == 0" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
-          <el-button  v-if="row.isAcceptance == 0"  style="display:inline-block" type="success" size="mini" @click="form_submit(row)">提交</el-button>
-          <el-button  v-if="istab2Close &&  row.isAcceptance == 0"  style="display:inline-block" type="warning" size="mini" @click="form_closeSubmit(row)">关单</el-button>
-          <el-button  v-if="istab2Shenhe1  && row.isAcceptance == 1 && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
-          <el-button  v-if="istab2Shenhe2 && row.isAcceptance == 1 && (row.flowCompeleted == 2) "  style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
-          <el-button  v-if="istab2Shenhe3 && row.isAcceptance == 1 && (row.flowCompeleted == 4) "  style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
-         </div>
-         <div v-else>
-          <el-button type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <el-button v-if="istab2Del" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
-         </div>
-          </template>
-      </el-table-column>
-
-      </el-table>
-
-      <pagination v-show="tableObj1.total>0" :total="tableObj1.total" :page.sync="tableObj1.getdataListParm.offset" :limit.sync="tableObj1.getdataListParm.pagecount" @pagination="get_table_data1()" />
-    </div>
-
-
-    <!-- 弹出层新增or修改 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="90%">
-      <div class="app-container">
-
-       <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="100px" style="width: 100%;">
-          <el-row :gutter="20">
-            <el-col :span="8">
-              <el-form-item label="委外验收单号:" prop="acceptanceCode">
-                <el-input ref="acceptanceCode" v-model="createTemp.acceptanceCode" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="牧场:" prop="pastureId" >
-                <el-select v-model="createTemp.pastureId" placeholder="牧场" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' || dialogStatus==='see'" @change="change_pasture2" >
-                  <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-
-            <el-col :span="8">
-              <el-form-item label="责任部门:" prop="departmentId">
-                <el-select v-model="createTemp.departmentId" placeholder="责任部门" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' ||  dialogStatus==='see'"  @change="change_depart2">
-                  <el-option v-for="item in departNameList2" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row :gutter="20">
-
-            <el-col :span="8">
-              <el-form-item label="委外申请单号:" prop="outsourcingCode">
-                <el-autocomplete :disabled="dialogStatus==='update' ||  dialogStatus==='see'"
-                  v-model="createTemp.outsourcingCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="getOutNumber"
-                  placeholder=""
-                  style="width:100%"
-                  @select="changeOutNumber"
-                >
-                  <template slot-scope="{ item }">
-                    <div class="name" style="display: inline;">{{ item.outsourcingCode }}</div>
-                    <!-- <div class="name" style="display: inline;">{{ item.departmentName }}</div> -->
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-
-
-            <el-col :span="8">
-              <el-form-item label="录入人:" prop="applicant">
-                <el-select v-model="createTemp.applicant" placeholder="录入人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' ||  dialogStatus==='see'"  >
-                  <el-option v-for="item in employeNameList" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item  class="is-requied"  label="日期:" prop="date">
-                <el-date-picker v-model="createTemp.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row :gutter="20">
-            <el-col :span="8">
-              <el-form-item label="有无合同:" prop="iscontract">
-                <span v-if="createTemp.iscontract == 0">有合同</span>
-                <span v-else>无合同</span>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item  class="is-requied"  label="离厂日期:" prop="lcdate">
-                <el-date-picker v-model="createTemp.lcdate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item class="is-requied"  label="回厂日期 :" prop="hcdate">
-                <el-date-picker v-model="createTemp.hcdate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="备注:" prop="remark">
-                <el-input ref="remark" v-model="createTemp.remark" :disabled="dialogStatus==='see'" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-divider></el-divider>
-
-          <el-table
-             key="tableKey"
-            v-loading="listLoading"
-            element-loading-text="给我一点时间"
-            :data="listAddCont"
-            border
-            fit
-            highlight-current-row
-            style="width: 100%;margin-bottom:30px"
-            :row-style="rowStyle"
-            :cell-style="cellStyle"
-            class="elTable"
-          >
-            <!-- table表格 -->
-            <el-table-column label="序号" align="center" type="index" width="50px" />
-            <el-table-column label="供应商" prop="providerName" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span>{{ scope.row.providerName }}</span>
-              </template>
-            </el-table-column>
-            <!-- <el-table-column label="金额" prop="amount" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span>{{ scope.row.amount }}</span>
-              </template>
-            </el-table-column> -->
-            <el-table-column label="金额" v-if="createTemp.iscontract !== 0" prop="amount" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.amount" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="设备名称" prop="eqName" min-width="80px" align="center">
-              <template slot-scope="scope">
-
-                <span>{{ scope.row.eqName }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="80px">
-              <template slot-scope="scope">
-
-                <span>{{ scope.row.eqCode }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column label="费用类型" prop="typea" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span>{{ scope.row.typea }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column :render-header="addRedStar"  label="铅封号 " prop="sealNumber" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <el-input v-model="scope.row.sealNumber" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.sealNumber }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column   :render-header="addRedStar"  label="质保日期" prop="warrantydate" align="center" min-width="80px">
-              <template slot-scope="scope">
-                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                  <!-- <el-date-picker v-model="scope.row.warrantydate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="margin-top:10px" /> -->
-                  <el-date-picker v-model="scope.row.warrantydate"  type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="margin-top:10px" />
-                </span>
-                <span v-if="dialogStatus ==='see'">{{ scope.row.warrantydate }}</span>
-              </template>
-            </el-table-column>
-            <!-- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
-              <template slot-scope="scope">
-
-                <span>{{ scope.row.date }}</span>
-              </template>
-            </el-table-column> -->
-            <!-- <el-table-column  label="合同编号" prop="contractCode" align="center" min-width="80px">
-              <template slot-scope="scope">
-
-                <span>{{ scope.row.contractCode }}</span>
-              </template>
-            </el-table-column> -->
-            <el-table-column label="备注" prop="remark" align="center" min-width="80px">
-              <template slot-scope="scope">
-
-                <span >{{ scope.row.remark }}</span>
-              </template>
-            </el-table-column>
-
-
-
-          </el-table>
-
-          <el-divider></el-divider>
-
-          <el-row :gutter="20">
-            <el-col :span="8">
-              <el-form-item label="备件类型:" prop="applyType">
-                <el-radio-group v-model="createTemp.applyType" :disabled="dialogStatus==='see'"  @change="change_applyType" >
-                  <el-radio   :label="0" :checked="createTemp.applyType == 0">牧场</el-radio>
-                  <el-radio   :label="1" :checked="createTemp.applyType == 1">供应商</el-radio>
-
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-
-          </el-row>
-
-          <el-row :gutter="20" v-if = "createTemp.applyType == 0">
-
-
-            <el-button v-if = "dialogStatus !=='see' " class="filter-item" type="primary" size="mini" style="margin-bottom:10px" @click="handleCollectionSparePartsCreate">添加领用单</el-button>
-
-
-            <!-- <el-col :span="8">
-              <el-form-item label="领用单号:" prop="applyCode">
-                <el-input ref="applyCode" v-model="createTemp.applyCode" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="16">
-              <el-form-item label="备件:" prop="partCode">
-                <el-autocomplete v-model="orderPart.partCode" value-key="name" class="inline-input" :fetch-suggestions="sparePartSearch" placeholder="请输入备件编号或备件名称或备件规格" style="width:100%" @select="handleSelectSparePart" :disabled="dialogStatus==='update' ||  dialogStatus==='see'" >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
-                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
-                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    |  &nbsp;<b>品牌:</b><span class="addr">{{ item.brand }}</span>
-                    |  &nbsp;<b>库存:</b><span class="addr">{{ item.reportery }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col> -->
-
-          </el-row>
-
-
-          <el-table v-if = "createTemp.applyType == 0"
-              :key="tableKey"
-              v-loading="listLoading"
-              element-loading-text="给我一点时间"
-              :data="listCollectionSpareParts"
-              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">
-                <template slot-scope="scope">
-                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用单号" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.applyCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用部门" width="140px" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.departmentName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="领用日期" sortable prop="createDate" min-width="80px" align="center" />
-              <el-table-column label="领用备件" prop="details" align="center">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.details }}</span>
-                </template>
-              </el-table-column>
-
-
-
-
-
-              <el-table-column label="领用状态" min-width="100px" align="center" :formatter="statue" />
-              <el-table-column label="操作" min-width="80px" align="center">
-                <template slot-scope="{row}">
-                  <el-button type="primary" size="mini" @click="handleCollarUseSee(row)">查看</el-button>
-                </template>
-              </el-table-column>
-          </el-table>
-
-
-          <el-divider></el-divider>
-          <el-button v-if = "createTemp.applyType == 1 && dialogStatus !=='see'  " class="filter-item" type="primary" icon="el-icon-edit" @click="form_add_list2">新增</el-button>
-
-
-          <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" >
-              <!-- 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 v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.partCode" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.partCode }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件名称" min-width="60px" align="center">
-                <template slot-scope="scope">
-
-                   <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.partName" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.partName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.specification" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.specification }}</span>
-                </template>
-              </el-table-column>
-
-              <el-table-column label="备件品牌" prop="brand" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.brand" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.brand }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="供应商" prop="providerName" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.providerName" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.providerName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="计量单位" prop="unit" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.unit" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.unit }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column label="数量" prop="amount" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.amount" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
-                </template>
-              </el-table-column>
-
-              <el-table-column label="单价" prop="price" align="center" min-width="70">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.price" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.price }}</span>
-                </template>
-
-              </el-table-column>
-              <el-table-column label="总价" prop="totalPrice" align="center" min-width="70">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.price * parseFloat(scope.row.amount) }}</span>
-                </template>
-
-              </el-table-column>
-              <el-table-column label="备注" prop="remark" align="center" min-width="60">
-                <template slot-scope="scope">
-                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                      <el-input v-model="scope.row.remark" style="margin-top:10px" />
-                    </span>
-                    <span v-if="dialogStatus ==='see'">{{ scope.row.remark }}</span>
-
-                </template>
-              </el-table-column>
-              <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right" v-if="dialogStatus ==='create'||dialogStatus ==='update'">
-                <template slot-scope="{row}">
-                  <a class="del" @click="partDelete2(row)">删除</a>
-                </template>
-              </el-table-column>
-          </el-table>
-        </el-form>
-
-
-
-
-
-          <el-row v-if="dialogStatus ==='see'  ">
-            <el-col>
-              <h3 >流程进度</h3>
-              <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>
-                  </template>
-                </el-step>
-              </el-steps>
-            </el-col>
-          </el-row>
-
-
-
-
-        <div slot="footer" class="dialog-footer" style="bottom:10px">
-       <el-button type="primary" v-if="dialogStatus !=='see'"  @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
-          <!-- <el-button type="primary"  v-show ="dialogStatus==='create'" :disabled="isokDisable" @click="add_dialog_save()">保存并关闭1</el-button>
-          <el-button type="primary"  v-show ="dialogStatus==='update'" :disabled="isokDisable" @click="edit_dialog_save()">保存并关闭2</el-button> -->
-
-          <el-button @click="dialogFormVisible = false;get_table_data1()">取消并关闭</el-button>
-        </div>
-      </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 0 0 5%;line-height:50px;">请确认审核结果:</h3>
-        <el-form ref="examineTemp" :model="examineTemp" label-position="right" style="width: 50%;margin:0 auto;">
-          <el-row style="width:88%;height:150px;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.status" @change="change_statue">
-                  <el-radio :label="1" checked>通过</el-radio>
-                  <el-radio :label="2">不通过</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-            <el-col v-if="statueReason" :span="20">
-              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button  v-if="istab2Shenhe1 && (examineTemp.flowCompeleted == 1) "  type="primary" :disabled="isokDisable" @click="form_examine_save()">确认</el-button>
-        <el-button v-if="istab2Shenhe2 && (examineTemp.flowCompeleted == 2) "  type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
-        <el-button v-if="istab2Shenhe3 && (examineTemp.flowCompeleted == 4) " type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button>
-        <!-- <el-button v-if="dialogStatus==='examine22'" type="primary" :disabled="isokDisable" @click="form_examine_save22()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine33'" type="primary" :disabled="isokDisable" @click="form_examine_save33()">确认</el-button>
-        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button> -->
-        <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-
-    <el-dialog  title="领用单" :visible.sync="dialogFormVisible_CollectionSparePartsSee" :close-on-click-modal="false" width="90%">
-      <div class="collectionSparePartsSee" style="height: 500px;">
-        <el-form
-          ref="collectionSparePartsSeeTemp"
-          :rules="rules"
-          :model="collectionSparePartsSeeTemp"
-          label-position="right"
-          label-width="120px"
-          style="width: 90%;margin:0 auto;"
-        >
-          <el-row>
-            <el-col  :span="8">
-              <el-form-item label="领用单号:" prop="applyCode">
-                <el-input ref="applyCode" v-model="collectionSparePartsSeeTemp.applyCode" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="领用部门:" prop="departmentName">
-                <el-input ref="departmentName" v-model="collectionSparePartsSeeTemp.departmentName" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col   :span="8">
-              <el-form-item label="领用日期:" prop="applyDate">
-                <el-input ref="applyDate" v-model="collectionSparePartsSeeTemp.applyDate" disabled />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="isPartCode">
-            <el-col :span="16">
-              <el-form-item label="所需备件:" prop="partCode">
-                <el-autocomplete
-                  v-model="collectionSparePartsSeeTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="sparePartSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格"
-                  style="width:98%"
-                  @select="handleSelectSparePart"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
-                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
-                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
-                    |  &nbsp;<b>库存:</b><span class="addr">{{ item.reportery }}</span>
-                    |  &nbsp;<b>是否零库存:</b><span class="addr" v-if="item.isZeroStock==1">是</span>
-                    <span class="addr" v-else>否</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-
-          </el-row>
-        </el-form>
-        <el-table
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listCreateCollectionSpareParts"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :row-style="rowStyle"
-          :cell-style="cellStyle"
-          class="elTable table-fixed"
-        >
-          <!-- 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="80px" 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="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="库存数" prop="reportery" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.reportery }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="领用数量" prop="amount" align="center" min-width="80">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="amount">
-                  <el-input ref="amount" v-model="scope.row.amount" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <!-- <el-table-column  label="领用时间" prop="date" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.date }}</span>
-            </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" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-
-             <el-table-column   label="设备名称" prop="eqName" align="center" min-width="250">
-                <template slot-scope="scope">
-                  <el-autocomplete  v-if="isCreatePartDelete"
-                    v-model="scope.row.eqName"
-                    class="inline-input"
-                    :fetch-suggestions="querySearchEqName"
-                    value-key="eqName"
-                    placeholder="设备名称"
-                    @select="(value)=>
-                    {handleSelectEqName(value, scope.row)}"
-                    @blur="(value)=>
-                    {blurSelectEqName(value, scope.row)}"
-                  >
-                    <template slot-scope="{ item }">
-                      <span class="addr">{{ item.eqName }}</span>
-                      |<span class="addr">{{ item.eqCode }}</span>
-                    </template>
-                  </el-autocomplete>
-                  <span v-else class="addr">{{ scope.row.eqName }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column   label="设备内部编号" prop="eqCode" align="center" min-width="150">
-                <template slot-scope="scope">
-                  <el-autocomplete v-if="isCreatePartDelete"
-                    v-model="scope.row.eqCode"
-                    class="inline-input"
-                    :fetch-suggestions="querySearchCode"
-                    value-key="eqCode"
-                    placeholder="设备内部编号"
-                    @select="(value)=>
-                    {handleSelectEqCode(value, scope.row)}"
-                    @blur="(value)=>
-                    {blurSelectEqCode(value, scope.row)}"
-                  />
-                  <span v-else class="addr">{{ scope.row.eqCode }}</span>
-                </template>
-              </el-table-column>
-
-          <el-table-column v-if="isCreatePartDelete" label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="createPartDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px">
-        <el-button v-if="isPartCode" type="primary" :disabled="isokDisable" @click="createCollectionSparePartsData()">确认</el-button>
-        <!-- <el-button @click="dialogFormVisible_CollectionSparePartsSee = false;">关闭</el-button> -->
-        <el-button @click="closeCollectionSparePartsSee">关闭</el-button>
-      </div>
-    </el-dialog>
-
-
-
-  </div>
-</template>
-
-<script>
-import echarts from 'echarts'
-require('echarts/theme/macarons')
-import { GetDataByNames, GetReportform, GetDataByName, PostDataByName, checkButtons, ExecDataByConfig} from '@/api/common'
-import Cookies from 'js-cookie'
-import { parseTime, json2excel } from '@/utils/index.js'
-import { MessageBox } from 'element-ui'
-import Pagination from '@/components/Pagination'
-export default {
-  name: 'Tab2',
-  components: { Pagination },
-  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') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
-
-      ],
-
-
-      //  下拉框 - 牧场
-      pastureNameList: [
-        // {id: "犊牛1", name: "犊牛1"},
-        // {id: "犊牛2", name: "犊牛2"},
-        // {id: "犊牛3", name: "犊牛3"}
-      ],
-
-      getDepartParam1: {
-        name: 'findAllDepart', offset: 0, pagecount: 0,
-        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      employeNameList: [],
-      departNameList1: [],
-      getDepartParam2: {
-        name: 'findAllDepart', offset: 0, pagecount: 0,
-        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
-      },
-      departNameList2: [],
-      rejectList: [{ id: '0', name: '正常' }, { id: '1', name: '已关单' }],  // TODO: 已关单状态
-      statuesNameList: [{ id: '0', name: '未离厂' }, { id: '1', name: '未回厂' }, { id: '2', name: '已回厂' }, { id: '3', name: '已验收' }],
-      iscontractList: [{ id: '0', name: '有合同' },  {id: '1', name: '无合同' }],
-      isokDisable: false,
-      tableObj1: {
-        getdataListParm: {
-          name: 'getBigacceptanceList',
-          //请求的 page 无用参数  offset 第几页  pagecount 每页多少条
-          page: 1, offset: 1, pagecount: 10, returntype: 'Map',
-          parammaps: { pastureName: Cookies.get('pasturename'), acceptanceCode: '',departmentName: '',status: "",outsourcingCode: "", inputDatetime:"",startdate: "",enddate: "",iscontract:''}
-        },
-        tableKey: 0, listLoading: false,
-        //返回的 pageNum 第几页  pageSize 每页多少条 total 总条数
-        pageNum: '', pageSize: '', total: 0,
-        list: [
-
-        ]
-      },
-      pageNum:'',pageSize:'',total: 0,
-      getAddContListParam:  {
-        name: "getOutsourcingList",
-        page: 1,offset: 1,pagecount: 20,returntype: "Map",
-        parammaps: {"bigId": ""}
-      },
-
-      pickerOptions: {
-        disabledDate(time) {
-          return time.getTime() > Date.now()// 当天之前的时间可选
-        }
-      },
-      dialogFormVisible_CollectionSparePartsSee: false,
-      beforedialog:'',
-      listCreateCollectionSpareParts: [],
-      isCreatePartDelete: false,
-      isPartCode: true,
-      getCollarUseSeeParm: {
-        name: 'getpartapplyListBybig',
-        parammaps: {}
-      },
-      orderPart: {},
-      getOutCodetParm: {
-        name: 'getBigoutsourcingCode',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          outsourcingCode:"",
-        }
-      },
-      useForms: [],
-      getParmCreateAdd: {
-        name: 'getPartApplyByBig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-
-      rules: {
-        equipmentName: [{ required: true, message: '必填', trigger: 'blur' }],
-        // lcdate: [{ required: true, message: '必填', trigger: 'blur' }],
-        // hcdate: [{ required: true, message: '必填', trigger: 'blur' }],
-        // date: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      getPramPartApplyListBybig: {
-        name:"getpartapplyListBybig",
-        returntype:"Map",
-        parammaps:{"id":""}
-      },
-
-      getPramAcceptanceList: {
-        name:"getAcceptanceList",
-        returntype:"Map",
-        parammaps:{"bigId	":""}
-      },
-
-
-      getCollarUseListParm: {
-        name: 'getPartsapplybyMt',
-        page: 1,
-        offset: 1,
-        returntype: 'Map',
-        parammaps: {
-          "RUCode":"",
-        }
-      },
-
-      collectionSparePartsSeeTemp: {
-        applyCode:"",departmentName:"",applyDate:"",
-        isStock: 0,
-        applyDate:"",
-      },
-      listCollectionSpareParts: [],
-
-      tableKey: 0,
-      listLoading: true,
-      total: 0,
-      list: [],
-      dialogStatus: '',
-      dialogFormVisible: false,
-      dialogFormVisibleSee: false,
-      listLoadingSee: true,
-      listSee: [],
-      totalSee: 0,
-      seeTemp: {},
-      getdataListSee: {
-        name: 'getpartpurchaseBybig',
-        returntype: 'Map',
-        parammaps: {}
-      },
-      createTemp: {
-        pastureId: this.$store.state.user.pastureid,
-        departmentId: this.$store.state.user.departmentid,
-        employeId: this.$store.state.user.employeid,
-        date: parseTime(new Date(), '{y}-{m}-{d}'),
-        providerId: '',
-        contract:1,
-        acceptanceCode:"",
-        outsourcingCode:"",
-        applyType:0,
-        remark:'',
-
-        applicant: '',
-
-        departmentName: '',
-
-        contract:1,
-      },
-
-      getParmCreateNumber: {
-        name: 'autoCreatCode',
-        page: 0, offset: 0,  pagecount: 0,  returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'WY'
-        }
-      },
-      getParmCreateNumber2: {
-        name: 'autoCreatCode',
-        page: 0, offset: 0,  pagecount: 0,  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') }
-      },
-
-      EqNameList: [],
-      requestEqName: {
-        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
-        parammaps: { pastureId: Cookies.get('pastureid') }
-      },
-      EqCodeList: [],
-
-
-
-      listAdd:[],
-      listAdd2:[],
-      isData:false,
-
-      listAddCont:[
-        //  {providerName:"",providerId: "0",eqId: "0",contractId: "0",}
-      ],
-      activeList: [],
-      active: 1,
-
-      dialogFormVisible_Examine: false,
-      examineTemp: {
-            "status": 1,
-            "empid": "",
-            "flowCompeleted":"",
-            "workflowNote": "",
-            "id": ""
-      },
-      statueReason: false,
-      rowStyle: { maxHeight: 50 + 'px', height: 35 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      textMap: {
-        update: '编辑',
-        create: '新增',
-        see: '查看',
-        examine: '审核1',
-        examine22: '审核2',
-        examine2: '审核3',
-        examine33: '审核4',
-        examine3: '审核5',
-        collectionSparePartsSee: '查看领用',
-        collectionSparePartsSee1:'查看领用',
-        collectionSparePartsCreate: '添加领用',
-      },
-
-      istab2Add:[],
-      istab2Edit:[],
-      istab2Del:[],
-      istab2Close:[], // 关单权限 todo
-      istab2Shenhe1:[],
-      istab2Shenhe2:[],
-      istab2Shenhe3:[],
-    }
-  },
-  created() {
-
-
-    this.get_select_list()
-    this.get_table_data1()
-
-  },
-  methods: {
-     // 给表头加必填符号*
-     addRedStar(h, { column }) {
-      return [
-        h("span", { style: "color: red" }, "*"),
-        h("span", " " + column.label)
-      ]
-    },
-
-    //获取按钮权限
-    get_auto_buttons() {
-      const istab2Add = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:add')
-      this.istab2Add = istab2Add
-
-      const istab2Edit = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:edit')
-      this.istab2Edit = istab2Edit
-
-      const istab2Del = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:del')
-      this.istab2Del = istab2Del
-
-      const istab2Close = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:close')
-      this.istab2Close = istab2Close
-      console.log(this.istab2Close, 'this.istab2Close=====hss')
-
-      const istab2Shenhe1 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe1')
-      this.istab2Shenhe1 = istab2Shenhe1
-
-      const istab2Shenhe2 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe2')
-      this.istab2Shenhe2 = istab2Shenhe2
-
-      const istab2Shenhe3 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe3')
-      this.istab2Shenhe3 = istab2Shenhe3
-
-    },
-
-
-    get_select_list() {
-      GetDataByNames(this.send_select_list).then(response => {
-        this.pastureNameList = response.data.findAllPasture.list
-        console.log("牧场下拉框", this.pastureNameList)
-        this.employeNameList = response.data.findAllEmploye.list
-        console.log("申请人下拉框", this.employeNameList)
-
-        this.get_depart_list1()
-      })
-    },
-    change_pasture1(item) {
-      this.getDepartParam1.parammaps.pastureId = this.pastureNameList.find(obj => obj.name == item).id
-      this.tableObj1.getdataListParm.parammaps.departmentId = ''
-      this.get_depart_list1()
-    },
-    //部门List
-    get_depart_list1() {
-      GetDataByName(this.getDepartParam1).then(response => {
-        this.departNameList1 = response.data.list
-      })
-    },
-
-
-    change_pasture2(item) {
-      this.getDepartParam2.parammaps.pastureId = item
-      this.get_depart_list2()
-    },
-
-    get_depart_list2() {
-      GetDataByName(this.getDepartParam2).then(response => {
-        this.departNameList2 = response.data.list
-      })
-    },
-
-    change_depart2(item) {
-      this.createTemp.departmentName = this.departNameList2.find(obj => obj.id == item).name
-    },
-
-
-    get_table_data1() {
-      this.tableObj1.listLoading = false
-
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.tableObj1.getdataListParm.parammaps.startdate = this.$refs['inputDatetime'].value[0]
-        this.tableObj1.getdataListParm.parammaps.enddate = this.$refs['inputDatetime'].value[1]
-
-
-      } else {
-        this.tableObj1.getdataListParm.parammaps.inputDatetime = ''
-        this.tableObj1.getdataListParm.parammaps.startdate = ''
-        this.tableObj1.getdataListParm.parammaps.enddate = ''
-      }
-
-      GetDataByName(this.tableObj1.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          this.tableObj1.list = response.data.list
-          this.tableObj1.pageNum = response.data.pageNum
-          this.tableObj1.pageSize = response.data.pageSize
-          this.tableObj1.total = response.data.total
-        } else {
-          this.tableObj1.list = [ ]
-        }
-
-        setTimeout(() => {
-          this.tableObj1.listLoading = false
-        }, 100)
-      })
-    },
-    form_search() {
-      console.log('查询')
-
-
-      this.get_table_data1()
-
-    },
-    change_applyType(val) {
-      console.log(val)
-      if(val ==1){
-        this.createTemp.applyType = 1
-      } else {
-        this.createTemp.applyType = 0
-      }
-
-    },
-    form_add() {
-      this.reset_create()
-
-      this.getDepartParam2.parammaps.pastureId = this.createTemp.pastureId
-      this.get_depart_list2()
-      this.dialogStatus = 'create'
-
-
-      this.dialogFormVisible = true
-      this.listLoading = false
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-       //新增生成单号
-      this.getCreateNumber()
-
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '未领用'
-      } else if (cellValue.statue == 1) {
-        return '已领用'
-      }
-    },
-    reset_create() {
-      this.createTemp.pastureId =  parseInt(Cookies.get('pastureid'))
-      this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
-      this.createTemp.departmentName = Cookies.get('departmentname')
-      this.createTemp.employeId = parseInt(Cookies.get('employeid'))
-      this.createTemp.date = parseTime(new Date(), '{y}-{m}-{d}')
-      this.createTemp.outsourcingCode = ''
-      this.createTemp.applicant = parseInt(Cookies.get('employeid'))
-      this.createTemp.providerId = ''
-      this.createTemp.contract = 1
-
-      this.createTemp.description = ''
-
-      if(parseInt(Cookies.get('pastureid')) == 18){
-      this.createTemp.departmentId = ""
-     }
-
-      this.createTemp.outsourcingCode = ''
-      console.log(  this.createTemp.departmentName )
-
-
-
-
-      this.listAddCont = [
-      //   {providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}
-      ]
-      this.listAdd = []
-      this.listAdd2 = []
-      this.listCreateCollectionSpareParts = []
-      this.listCollectionSpareParts = []
-
-
-
-
-    },
-
-
-
-    handleCollarUseSee(row, isStock) {
-      console.log(row)
-      let beforedialog = ''
-      this.beforedialog = this.dialogStatus
-      this.collectionSparePartsSeeTemp = Object.assign({}, row)
-      this.dialogStatus = 'collectionSparePartsSee1'
-
-      this.collectionSparePartsSeeTemp.applyDate = row.createDate
-      this.dialogFormVisible_CollectionSparePartsSee = true
-      this.isCreatePartDelete = false
-      this.isPartCode = false
-      this.getCollarUseSeeList()
-    },
-    getCollarUseSeeList() {
-      this.getCollarUseSeeParm.parammaps.id = this.collectionSparePartsSeeTemp.id
-      GetDataByName(this.getCollarUseSeeParm).then(response => {
-        this.listCreateCollectionSpareParts = response.data.list
-
-      })
-    },
-
-    form_add_list2() {
-      var idDel = "id" + Math.round(Math.random()*100) + Math.round(Math.random()*100)
-
-      this.listAdd2.unshift({partCode:"",providerId: "0",eqId: "0",contractId: "0",idDel:idDel,partId: "",partCode: "",partName: "",brandId: "",brand: "",providerId: "",providerName: "",price: "",sumPrice: "",remark: "",amount: ""})
-
-
-    },
-
-    getCreateNumber() {
-      GetDataByName(this.getParmCreateNumber).then(response => {
-        this.$nextTick(() => {
-          console.log('新增委外维修单单号', response.data.list[0].orderCode)
-          this.createTemp.acceptanceCode = response.data.list[0].orderCode
-          this.$forceUpdate()
-        })
-      })
-
-    },
-
-
-    getCreateLYNumber() {
-
-      GetDataByName(this.getParmCreateNumber2).then(response => {
-        this.$nextTick(() => {
-          console.log('新增领用单号', response.data.list[0].orderCode)
-          this.collectionSparePartsSeeTemp.applyCode = response.data.list[0].orderCode
-          this.$forceUpdate()
-        })
-      })
-    },
-
-    add_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['createTemp'].validate(valid => {
-        if (valid) {
-          console.log(this.listAddCont)
-          if (this.createTemp.acceptanceCode == '' || this.createTemp.acceptanceCode == null || this.createTemp.acceptanceCode == undefined) {
-            GetDataByName(this.getParmCreateNumber).then(response => {
-              this.$nextTick(() => {
-                console.log('新增单号', response.data.list[0].orderCode)
-                this.createTemp.acceptanceCode = response.data.list[0].orderCode
-                this.$forceUpdate()
-                this.add_dialog_saveSave()
-              })
-            })
-          } else {
-            this.add_dialog_saveSave()
-          }
-        }
-      })
-    },
-
-
-    add_dialog_saveSave() {
-
-        for (var j = 0; j < this.listAddCont.length; j++) {
-          console.log(this.listAddCont[j].amount)
-          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
-            this.$message({ type: 'warning', message: '请检查金额是否未填写', duration: 2000 })
-            return false
-          } else {
-            // var rulesAmount = /^[1-9]\d*$/
-            // if (!rulesAmount.test(this.listAddCont[j].amount)) {
-            //   this.$message({ type: 'error', message: '申购数量请输入正整数', duration: 2000 })
-            //   return false
-            // }
-          }
-
-
-        }
-        //牧场
-        if(this.createTemp.applyType == 0){
-
-
-          let mySumPrice = 0
-          for (let i = 0; i < this.listAdd.length; i++) {
-            mySumPrice += parseFloat(this.listAdd[i].price) * parseFloat(this.listAdd[i].amount)
-          }
-          if (mySumPrice > 500) {
-            this.createTemp.SHStatus = 2
-          } else {
-            this.createTemp.SHStatus = 9
-          }
-
-
-          var send_data = {
-            "common": {  "returnmap": "0" },
-            "data": [
-              {
-                "name": "insertBigacceptance",
-                "type": "e",
-                "parammaps": this.createTemp
-              }
-            ]
-          }
-
-        }
-        //供应商
-        if(this.createTemp.applyType == 1){
-
-
-
-          if(this.listAdd2.length == 0){
-            this.$notify({
-              title: '失败',   message: "备件必选!",
-              type: 'warning',
-              duration: 2000
-            })
-            return false
-          }
-          this.listAdd2.map((item, index) => {
-             return item.partId = "0"
-          })
-          this.listAdd2.map((item, index) => {
-             return item.brandId = "0"
-          })
-
-          this.listAdd2.map((item, index) => {
-             return item.providerId = "0"
-          })
-
-
-          var send_data = {
-              "common": {
-                  "returnmap": "0"
-              },
-              "data": [
-                  {
-                      "name": "insertBigacceptance",
-                      "type": "e",
-                      "parammaps": this.createTemp
-                  },
-                  {
-                      "name": "insertSpotList",
-                      "resultmaps": {
-                          "list": this.listAdd2
-                      },
-                      "children": [
-                          {
-                              "name": "insertAcceptance",
-                              "type": "e",
-                              "parammaps": {
-                                "bigId":"@insertBigacceptance.LastInsertId",
-                                "partId":"@insertSpotList.partId",
-                                "partCode":"@insertSpotList.partCode",
-                                "partName":"@insertSpotList.partName",
-                                "brandId":"@insertSpotList.brandId",
-                                "brand":"@insertSpotList.brand",
-                                "providerId":"@insertSpotList.providerId",
-                                "providerName":"@insertSpotList.providerName",
-                                "unit":"@insertSpotList.unit",
-                                "price":"@insertSpotList.price",
-
-                                "remark":"@insertSpotList.remark",
-                                   "specification": "@insertSpotList.specification",
-                                "amount":"@insertSpotList.amount"
-                              }
-                          }
-                      ]
-                  }
-              ]
-          }
-
-
-        }
-
-        ExecDataByConfig(send_data).then(response => {
-          console.log('新增保存发送参数', send_data)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            this.dialogFormVisible = false
-
-            this.get_table_data1()
-
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-
-
-    },
-
-
-    getOutNumber(queryString, cb) {
-      console.log('委外申请单号模糊查询输入值', queryString)
-      this.getOutCodetParm.parammaps['outsourcingCode'] = queryString
-      GetDataByName(this.getOutCodetParm).then(response => {
-        console.log('委外申请单号模糊查询搜索data', response.data.list)
-        // this.useForms = response.data.list
-        cb(response.data.list)
-      })
-    },
-
-
-    changeOutNumber(item) {
-      console.log('委外申请单号模糊查询选中值', item)
-      this.createTemp.outsourcingCode = item.outsourcingCode
-      this.$set(this.createTemp, "outsourcingCode", item.outsourcingCode)
-      this.getAddContListParam.parammaps.bigId = item.id
-      this.getAddContList()
-
-
-      // this.createTemp.bid = item.id
-      // this.createTemp.applicatId = item.empId
-      // this.orderPart.applyCode = item.applyCode
-      // this.TotalAmount = 0
-      // this.get_table_dataAdd()
-    },
-
-
-    querySearchEqName(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqName'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        console.log('备件名称模糊查询搜索data', response.data.list)
-        this.EqNameList = response.data.list
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqName(item, row) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item.eqName)
-      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
-      this.$set(row, 'eqCode', item.eqCode)
-      this.$forceUpdate()
-    },
-    querySearchCode(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqCode'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        console.log('备件名称模糊查询搜索data', response.data.list)
-        this.EqNameList = response.data.list
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqCode(item, row) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item)
-      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
-      this.$set(row, 'eqName', item.eqName)
-      this.$forceUpdate()
-    },
-    blurSelectEqName(item, row) {
-      this.$set(row, 'eqName', '')
-      this.$set(row, 'eqCode', '')
-    },
-    blurSelectEqCode(item, row) {
-      this.$set(row, 'eqName', '')
-      this.$set(row, 'eqCode', '')
-    },
-
-
-
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps.pastureId = this.createTemp.pastureId
-      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.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.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
-    //         this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
-    //         this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
-    //       } else {
-    //         item.srcpath = ''
-    //         item.picpath = ''
-    //       }
-    //       this.listAdd.push(item)
-    //     }
-    //   } else {
-    //     if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
-    //       this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
-    //       this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
-    //     } else {
-    //       item.srcpath = ''
-    //       item.picpath = ''
-    //     }
-    //     this.listAdd.push(item)
-    //   }
-    //   // this.getEqNameList()
-    // },
-
-
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCreateCollectionSpareParts.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCreateCollectionSpareParts.find(obj => obj.partId === item.partId)) {
-          this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
-        } else {
-
-          item.date = this.collectionSparePartsSeeTemp.applyDate
-          this.listCreateCollectionSpareParts.unshift(item)
-        }
-      } else {
-        item.date = this.collectionSparePartsSeeTemp.applyDate
-        this.listCreateCollectionSpareParts.unshift(item)
-      }
-    },
-
-
-    createPartDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listCreateCollectionSpareParts.length; i++) {
-          console.log(this.listCreateCollectionSpareParts[i])
-          if (this.listCreateCollectionSpareParts[i].id === row.id) {
-            var listCreateCollectionSparePartsIndex = this.listCreateCollectionSpareParts.indexOf(this.listCreateCollectionSpareParts[i])
-          }
-          if (listCreateCollectionSparePartsIndex > -1) {
-            this.listCreateCollectionSpareParts.splice(listCreateCollectionSparePartsIndex, 1)
-            return
-          }
-        }
-      })
-    },
-
-    closeCollectionSparePartsSee(){
-      this.dialogFormVisible_CollectionSparePartsSee = false
-      this.dialogStatus = this.beforedialog
-    },
-    // 添加领用保存
-    createCollectionSparePartsData() {
-      this.isokDisable = true
-
-          if (this.listCreateCollectionSpareParts.length !== 0) {
-            for (var i = 0; i < this.listCreateCollectionSpareParts.length; i++) {
-              console.log(this.listCreateCollectionSpareParts[i].amount)
-              if (this.listCreateCollectionSpareParts[i].amount !== undefined && this.listCreateCollectionSpareParts[i].amount !== '') {
-                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                if (!rulesAmount.test(this.listCreateCollectionSpareParts[i].amount)) {
-                  this.$message({
-                    type: 'error',
-                    message: '领用数量请输入正数,最多保留两位小数',
-                    duration: 2000
-                  })
-                  return false
-                } else {
-                  var listCreateCollectionSpareParts1 = [] // >库存
-                  var listCreateCollectionSpareParts2 = [] // <=库存
-                  var amountList = []
-                  var amount2List = []
-
-
-                  let mySumPrice = 0
-                  for (let i = 0; i < listCreateCollectionSpareParts2.length; i++) {
-                    mySumPrice += parseFloat(listCreateCollectionSpareParts2[i].price) * parseFloat(listCreateCollectionSpareParts2[i].amount)
-                  }
-                  if (mySumPrice > 500) {
-                    this.collectionSparePartsSeeTemp.SHStatus = 2
-                  } else {
-                    this.collectionSparePartsSeeTemp.SHStatus = 9
-                  }
-
-
-
-                  var send_data ={
-                      "common": { "returnmap": "0"  },
-                      "data": [
-                          {
-                              "name": "insertBigpartapply",
-                              "type": "e",
-                              "parammaps": {
-                                  "pastureId": this.collectionSparePartsSeeTemp.pastureId,
-                                  "applyCode": this.collectionSparePartsSeeTemp.applyCode,
-                                  "applyType": 1,
-                                  "departmentId": this.collectionSparePartsSeeTemp.departmentId,
-                                  "empId": this.collectionSparePartsSeeTemp.empId,
-                                  "applyDate": this.collectionSparePartsSeeTemp.applyDate,
-                                  "RUCode": this.createTemp.acceptanceCode,
-                                  "SHStatus": 9
-                              }
-                          },
-                          {
-                              "name": "insertSpotList",
-                              "resultmaps": {
-                                  "list":this.listCreateCollectionSpareParts
-                              },
-                              "children": [
-                                  {
-                                      "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": "@insertSpotList.eqName",
-                                          "eqCode": "@insertSpotList.eqCode",
-                                          "providerId": "@insertSpotList.providerId",
-                                          "note": "@insertSpotList.note",
-                                          "reportery": "@insertSpotList.reportery",
-                                          "contractId": "@insertSpotList.contractId",
-                                          "locationId": "@insertSpotList.locationId"
-                                      }
-                                  }
-                              ]
-                          }
-                      ]
-                  }
-
-                  ExecDataByConfig(send_data).then(response => {
-                    console.log('添加领用保存发送参数',send_data)
-                    if (response.msg === 'fail') {
-                      this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-                    } else {
-                      this.dialogFormVisible_CollectionSparePartsSee = false
-                      this.getCollectionSpareParts()
-                      this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                    }
-                  })
-                  setTimeout(() => {
-                    this.isokDisable = false
-                  }, 2000)
-                  return true
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-
-
-          } else {
-            this.$notify({ title: '', type: 'warning', message: '请选择备件', duration: 2000 })
-
-
-            return false
-          }
-
-           setTimeout(() => {
-              this.isokDisable = false
-            }, 2000)
-
-    },
-    //看领用单
-    getCollectionSpareParts() {
-      this.getCollarUseListParm.parammaps.RUCode = this.createTemp.acceptanceCode
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用table数据', response.data.list)
-        this.listCollectionSpareParts = response.data.list
-      })
-    },
-
-    // 新增删除
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        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
-          }
-        }
-      })
-    },
-
-    partDelete2(row) {
-      console.log(this.listAdd2)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        for (var i = 0; i < this.listAdd2.length; i++) {
-          console.log(this.listAdd2[i])
-          if (this.listAdd2[i].idDel === row.idDel) {
-            var listAddIndex = this.listAdd2.indexOf(this.listAdd2[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd2.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    handleCollectionSparePartsCreate() {
-
-
-
-      if(this.createTemp.departmentId == "" || this.createTemp.departmentId == undefined){
-        this.$message({ type: 'warning', message: '请选择责任部门', duration: 2000 })
-        return false
-      }
-
-      if(this.createTemp.applicant == "" || this.createTemp.applicant == undefined){
-        this.$message({ type: 'warning', message: '请选择录入人', duration: 2000 })
-        return false
-      }
-      console.log( "createTemp)============",this.createTemp)
-
-
-      this.collectionSparePartsSeeTemp = Object.assign({}, this.createTemp)
-
-        this.collectionSparePartsSeeTemp.empId =  this.collectionSparePartsSeeTemp.applicant
-        this.collectionSparePartsSeeTemp.applyDate = parseTime(new Date(), '{y}-{m}-{d}')
-        this.dialogStatus = 'collectionSparePartsSee'
-        this.beforedialog = 'update'
-        this.dialogFormVisible_CollectionSparePartsSee = true
-        this.isCreatePartDelete = true
-        this.listCreateCollectionSpareParts = []
-        this.isPartCode = true
-        this.getCreateLYNumber()
-
-        console.log( "console.log( this.collectionSparePartsSeeTemp)============",this.collectionSparePartsSeeTemp)
-
-
-
-    },
-    // getCreateNumber() {
-    //   // GetDataByName(this.getParmCreateNumber).then(response => {
-    //   //   this.$nextTick(() => {
-    //   //     console.log('新增领用单号', response.data.list[0].orderCode)
-    //   //     this.collectionSparePartsSeeTemp.applyCode = response.data.list[0].orderCode
-    //   //     this.$forceUpdate()
-    //   //   })
-    //   // })
-    // },
-
-    form_see(row){
-      console.log('查看======》',row)
-      this.reset_create()
-
-      this.getDepartParam2.parammaps.pastureId = row.pastureId
-      this.get_depart_list2()
-
-      if (row.providerId == undefined) {
-        row.providerId = ''
-        row.providerName = ''
-      }
-      this.createTemp = Object.assign({}, row) // copy obj
-      this.dialogStatus = 'see'
-      this.dialogFormVisible = true
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-      //委外申请单号获取合同
-      this.getAddContListParam.parammaps.bigId = row.outsourcingId
-      this.getAddContList()
-
-      //牧场
-      if(row.applyType == 0){
-        this.getPramPartApplyListBybig.parammaps.id = row.partapplyId
-        this.getCollectionSpareParts()
-        this.isCreatePartDelete = false
-
-
-
-      }
-      //供应商
-      if(row.applyType == 1){
-        this.getPramAcceptanceList.parammaps.bigId = row.id
-        this.getListAdd2()
-
-
-      }
-
-
-           if (row.flowCompeleted == 1) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.empname }, { title: '供应处长' }, { title: '部门负责人' },{ title: '场长' }]
-            this.active = 1
-
-          } else if (row.flowCompeleted == 2) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人' },{ title: '场长' }]
-            this.active = 2
-          } else if (row.flowCompeleted === 3) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName, status: 'error', reason: row.workflowNote },{ title: '部门负责人' },{ title: '场长' }]
-            this.active = 2
-
-          } else if (row.flowCompeleted === 4) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{ title: '场长' }]
-            this.active = 3
-          } else if (row.flowCompeleted === 5) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name:row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser, status: 'error', reason: row.workflowNote   },{ title: '场长' }]
-            this.active = 3
-          } else if (row.flowCompeleted === 6) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date:row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{ title: '场长', date:row.fielddate, name:row.fieldName }]
-            this.active = 4
-          } else if (row.flowCompeleted === 7) {
-            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{  title: '场长', date: row.fielddate, name: row.fieldName, status: 'error', reason: row.workflowNote   }]
-            this.active = 4
-           }
-
-
-
-
-    },
-
-    getAddContList() {
-      GetDataByName(this.getAddContListParam).then(response => {
-        this.listAddCont = response.data.list
-        this.listLoading = false
-      })
-    },
-
-
-
-    form_edit(row) {
-      this.reset_create()
-      console.log('编辑',row)
-      this.getDepartParam2.parammaps.pastureId = row.pastureId
-      this.get_depart_list2()
-      if (row.providerId == undefined) {
-        row.providerId = ''
-        row.providerName = ''
-      }
-      this.createTemp = Object.assign({}, row) // copy obj
-      this.dialogStatus = 'update'
-      this.dialogFormVisible = true
-      this.$nextTick(() => {
-        this.$refs['createTemp'].clearValidate()
-      })
-      //委外申请单号获取合同
-      this.getAddContListParam.parammaps.bigId = row.outsourcingId
-      this.getAddContList()
-      this.isData = false
-      //牧场
-      if(row.applyType == 0){
-
-        this.getCollectionSpareParts()
-
-
-
-      }
-      //供应商
-      if(row.applyType == 1){
-        this.getPramAcceptanceList.parammaps.bigId = row.id
-        this.getListAdd2()
-
-
-      }
-    },
-
-    getListAdd() {
-      GetDataByName(this.getPramPartApplyListBybig).then(response => {
-        this.listAdd = response.data.list
-        this.listLoading = false
-      })
-    },
-
-    getListAdd2() {
-      GetDataByName(this.getPramAcceptanceList).then(response => {
-        this.listAdd2 = response.data.list
-        if(this.listAdd2.length>0){
-          this.isData = true
-        }else{
-          this.isData = false
-        }
-        this.listLoading = false
-      })
-    },
-
-    edit_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['createTemp'].validate(valid => {
-        if (valid) {
-          this.edit_dialog_saveSave()
-        }
-      })
-    },
-    edit_dialog_saveSave() {
-
-        //牧场
-        if(this.createTemp.applyType == 0){
-          for(let i=0;i<this.listAddCont.length;i++){
-            // if(this.listAddCont[i].sealNumber == ''){
-            //   this.$message({ type: 'warning', message: '请检查铅封号是否未填写', duration: 2000 })
-            //   return false
-            // }
-            // if(this.listAddCont[i].warrantydate == ''){
-            //   this.$message({ type: 'warning', message: '请检查质保日期是否未填写', duration: 2000 })
-            //   return false
-            // }
-          }
-
-
-
-                var send_data = {
-                    "common": { "returnmap": "0"  },
-                    "data": [
-                        {
-                            "name": "editBigacceptanceDate",
-                            "type": "e",
-                            "parammaps": {
-                                "id":this.createTemp.id,
-                                "date":this.createTemp.date,
-                                "applyType":this.createTemp.applyType
-                            }
-                        },
-                        {
-                          "name": "updateBigacceptanceFlowCompeleted", "type": "e",
-                          "parammaps":{
-                            id:this.createTemp.id
-                          }
-                        },
-                        {
-                          "name": "editBigacceptance", "type": "e",
-                          "parammaps":{
-                            id:this.createTemp.id,
-                            lcdate:this.createTemp.lcdate,
-                            hcdate:this.createTemp.hcdate,
-                            remark:this.createTemp.remark
-                          }
-                        },
-                        {
-                          "name": "insertSpotList",
-                          "resultmaps": {  "list": this.listAddCont },
-                          "children": [
-                            {
-                                "name": "editOutsourcingData",  "type": "e",
-                                "parammaps": {
-                                  "id": "@insertSpotList.id",
-                                  "amount": "@insertSpotList.amount",
-                                  "sealNumber": "@insertSpotList.sealNumber",
-                                  "warrantydate": "@insertSpotList.warrantydate"
-                                  }
-                              }
-                          ],
-                        }
-                    ]
-                }
-
-
-          }
-            //供应商
-            if(this.createTemp.applyType == 1){
-
-
-
-              if(this.listAdd2.length == 0){
-                this.$notify({
-                  title: '失败',   message: "备件必选!",
-                  type: 'warning',
-                  duration: 2000
-                })
-                return false
-              }
-              this.listAdd2.map((item, index) => {
-                return item.partId = "0"
-              })
-              this.listAdd2.map((item, index) => {
-                return item.brandId = "0"
-              })
-
-              this.listAdd2.map((item, index) => {
-                return item.providerId = "0"
-              })
-              var myname = ''
-              // var bigId = ''
-              if(this.isData == true){
-                myname = 'editAcceptance'
-                // bigId = "@insertBigacceptance.LastInsertId"
-                // bigId = "@insertSpotList.bigId"
-              }else{
-                myname = 'insertAcceptance'
-                for(let i=0;i<this.listAdd2.length;i++){
-                  this.$set(this.listAdd2[i],'bigId',this.createTemp.id)
-                }
-                // bigId = "@insertSpotList.bigId"
-              }
-              var send_data = {
-                  "common": { "returnmap": "0"  },
-                  "data": [
-                      {
-                          "name": "editBigacceptanceDate",
-                          "type": "e",
-                          "parammaps": {
-                              "id":this.createTemp.id,"date":this.createTemp.date,"applyType":this.createTemp.applyType
-                          }
-                      },
-                      {
-                          "name": "insertSpotList",
-                          "type": "e",
-                          "resultmaps": {
-                              "list": this.listAdd2
-                          },
-                          "children": [
-                              {
-                                  "name": myname,
-                                  "type": "e",
-                                  "parammaps": {
-                                    "id":"@insertSpotList.id",
-                                    "bigId":"@insertSpotList.bigId",
-                                    "partId":"@insertSpotList.partId",
-                                    "partCode":"@insertSpotList.partCode",
-                                    "partName":"@insertSpotList.partName",
-                                    "brandId":"@insertSpotList.brandId",
-                                    "brand":"@insertSpotList.brand",
-                                    "providerId":"@insertSpotList.providerId",
-                                    "providerName":"@insertSpotList.providerName",
-                                    "unit":"@insertSpotList.unit",
-                                    "price":"@insertSpotList.price",
-                                    "remark":"@insertSpotList.remark",
-                                    "specification":"@insertSpotList.specification",
-                                    "amount":"@insertSpotList.amount"
-                                  }
-                              }
-                          ]
-                      },
-                      {
-                        "name": "updateBigacceptanceFlowCompeleted", "type": "e",
-                        "parammaps":{
-                          id:this.createTemp.id
-                        }
-                      },
-                      {
-                        "name": "editBigacceptance", "type": "e",
-                        "parammaps":{
-                          id:this.createTemp.id,
-                          lcdate:this.createTemp.lcdate,
-                          hcdate:this.createTemp.hcdate
-                        }
-                      },
-                      {
-                        "name": "insertSpotList",
-                        "resultmaps": {  "list": this.listAddCont },
-                        "children": [
-                          {
-                              "name": "editOutsourcingData",  "type": "e",
-                              "parammaps": {
-                                "id": "@insertSpotList.id",
-                                "amount": "@insertSpotList.amount",
-                                "sealNumber": "@insertSpotList.sealNumber",
-                                "warrantydate": "@insertSpotList.warrantydate"
-                                }
-                            }
-                        ],
-                      }
-                  ]
-              }
-
-
-
-            }
-
-            ExecDataByConfig(send_data).then(response => {
-            console.log('编辑保存发送参数', send_data)
-            if (response.msg === 'fail') {
-              this.$notify({
-                title: '保存失败',
-                message: response.data,
-                type: 'warning',
-                duration: 2000
-              })
-            } else {
-              this.dialogFormVisible = false
-
-              this.get_table_data1()
-
-              this.$notify({
-                title: '',
-                message: '保存成功',
-                type: 'success',
-                duration: 2000
-              })
-            }
-            })
-
-    },
-
-    form_delete(row) {
-      console.log('点击了删除',row)
-      MessageBox.confirm('确认删除此条信息?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        var send_data = {
-        "common": { "returnmap": "0" },
-        "data": [
-          {
-            "name": "deleteBigacceptance", "type": "e",
-            "parammaps": { "id":row.id }
-           }
-          ]
-        }
-
-        ExecDataByConfig(send_data).then(response => {
-          this.get_table_data1()
-          this.$notify({
-            title: '成功',
-            message: '删除成功',
-            type: 'success',
-            duration: 2000
-          })
-        })
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消删除'
-        })
-      })
-    },
-
-
-    change_statue(val) {
-      if (val == 2) {
-        this.statueReason = true
-      } else {
-        this.statueReason = false
-      }
-    },
-
-    form_examine(row) {
-      console.log('点击了供应处长审核',row)
-      if (row == undefined) {
-        this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save() {
-      console.log('点击了供应处长审核', )
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "3"
-          } else {
-            this.examineTemp.status = 0
-            this.examineTemp.flowCompeleted = "2"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  {
-                      "name": "EditBigacceptanceEquipment",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-
-    form_examine2(row) {
-      console.log('点击了部门负责人审核',row)
-      if (row == undefined) {
-        this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save2() {
-      console.log('点击了部门负责人审核', )
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "5"
-          } else {
-            this.examineTemp.status = 0
-            this.examineTemp.flowCompeleted = "4"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  {
-                      "name": "EditBigacceptanceDepartment",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-
-    form_examine3(row) {
-      console.log('点击了场长  审核',row)
-      if (row == undefined) {
-        this.examineTemp = this.createTemp
-        this.$set(this.createTemp, 'status', 1)
-        this.$set(this.createTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'status', 1)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      this.dialogStatus = 'examine'
-      this.dialogFormVisible_Examine = true
-      this.statueReason = false
-    },
-    form_examine_save3() {
-      console.log('点击了场长审核', )
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-
-          //不通过
-          if(this.statueReason){
-            this.examineTemp.status = 2
-             //审核角色
-            this.examineTemp.flowCompeleted = "7"
-          } else {
-            this.examineTemp.status = 1
-            this.examineTemp.flowCompeleted = "6"
-          }
-          this.examineTemp.empid = Cookies.get('employeid')
-
-          var send_data = {
-              "common": {  "returnmap": "0"  },
-              "data": [
-                  {
-                      "name": "EditBigacceptanceField",  "type": "e",
-                      "parammaps": this.examineTemp
-                  }
-              ]
-          }
-          ExecDataByConfig(send_data).then(response => {
-            console.log('审核确认发送参数', send_data)
-            if (response.msg !== 'fail') {
-              this.get_table_data1()
-              this.dialogFormVisible_Examine = false
-              this.statueReason = false
-              this.$notify({
-                title: '成功',
-                message: '审核成功',
-                type: 'success',
-                duration: 2000
-              })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    form_submit(row){
-      MessageBox.confirm('确认提交此条信息?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        if(row.isPartapply == 1){
-          var send_data1 = {
-              "name": "checkOutsourcingAmount",
-              "parammaps": { "outsourcingCode":row.outsourcingCode }
-          }
-          var send_data2 = {
-          "common": { "returnmap": "0" },
-          "data": [
-            {
-              "name": "editBigacceptanceIsAcceptance", "type": "e",
-              "parammaps": { "id":row.id }
-             }
-            ]
-          }
-          GetDataByName(send_data1).then(response => {
-            if(parseFloat(response.data.list[0].amount) !== 0){
-              this.save_submit(send_data2)
-            }else{
-              this.$message({
-                type: 'error',
-                message: '数据未填写,请完善相关信息'
-              })
-            }
-          })
-        }else{
-          this.$message({ type: 'warning', message: '备件未领用,暂时不能提交。', duration: 2000 })
-        }
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消提交'
-        })
-      })
-    },
-    // 关单
-    form_closeSubmit(row){
-      console.log(row,'点击关单--ss')
-      MessageBox.confirm('确认关单,包括委外申请单及委外验收单?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-          var obj = {
-              "name": "updateBigacceptanceReject",
-              "parammaps": {'reject':"1" , "acceptanceCode":row.acceptanceCode }
-          }
-          PostDataByName(obj).then(res => {
-            const {code} = res;
-            if(code == 200){
-                this.$message({
-                type: 'success',
-                message: '已关单'
-              })
-              this.get_table_data1()
-            }
-             
-          })
-        
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消关单'
-        })
-      })
-    },
-    save_submit(send_data){
-      ExecDataByConfig(send_data).then(response => {
-        if (response.msg !== 'fail') {
-          this.$notify({ title: '成功', message: '提交成功', type: 'success', duration: 2000 })
-          this.get_table_data1()
-        }
-      })
-    }
-
-  }
-}
-</script>
-<style lang="scss" scoped>
- 
- ::v-deep .is-requied .el-form-item__label::before{
-    content:'*';
-    color:red;
-    margin-right: 4px;
-  }
-  .content{
-    padding: 20px 20px;
-    .title{
-      text-align: center;
-      font-weight: 700;
-    }
-    .title2{
-      float: left;
-      font-weight: 700;
-      padding: 10px 0;
-    }
-  }
-
-</style>
+<template>
+  <div class="app-container">
+    <div class="filter-container">
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.pastureName" style="width: 140px;" placeholder="牧场" class="filter-item" @change="change_pasture1">
+        <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.departmentId" clearable style="width: 140px;" placeholder="部门" class="filter-item">
+        <el-option v-for="item in departNameList1" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.acceptanceCode" placeholder="委外验收单号" style="width: 200px;" class="filter-item" />
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.status" style="width: 140px;" clearable placeholder="审核状态" class="filter-item">
+        <el-option v-for="item in statuesNameList" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+      <el-select v-model="tableObj1.getdataListParm.parammaps.reject" style="width: 140px;" clearable placeholder="单据状态" class="filter-item">
+        <el-option v-for="item in rejectList" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+
+      <el-input v-model="tableObj1.getdataListParm.parammaps.outsourcingCode" placeholder="委外申请单号" style="width: 200px;" class="filter-item" />
+
+      <el-select v-model="tableObj1.getdataListParm.parammaps.iscontract" style="width: 140px;" clearable placeholder="有无合同" class="filter-item">
+        <el-option v-for="item in iscontractList" :key="item.id" :label="item.name" :value="item.id" />
+      </el-select>
+
+      <el-date-picker ref="inputDatetime" v-model="tableObj1.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  class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
+
+      <!-- <el-button  v-if="istab2Add" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">新增</el-button> -->
+
+
+
+    </div>
+
+
+    <div class="elTable">
+      <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">
+          <template slot-scope="scope">
+            <span>{{ scope.$index + (tableObj1.pageNum-1) * tableObj1.pageSize + 1 }}</span>
+          </template>
+        </el-table-column>
+
+        <el-table-column label="委外验收单号" min-width="120px" align="center" prop="acceptanceCode" />
+        <el-table-column label="牧场" min-width="120px" align="center" prop="pastureName" />
+        <el-table-column label="部门 " min-width="120px" align="center" prop="departmentName" />
+
+        <el-table-column label="申请人" min-width="120px" align="center" prop="applicantName" />
+        <el-table-column label="合同" min-width="120px" align="center" prop="contract">
+          <template slot-scope="scope">
+              <span v-if="scope.row.iscontract == 0 ">有</span>
+              <span v-else>无</span>
+            </template>
+        </el-table-column>
+        <el-table-column label="日期" min-width="120px" align="center" prop="date" />
+        <el-table-column label="审核状态" min-width="150px" align="center">
+          <template slot-scope="scope">
+            <span v-if="scope.row.status == 0 ">未离厂</span>
+            <span v-else-if="scope.row.status == 1 ">未回厂</span>
+            <span v-else-if="scope.row.status == 2 ">已回厂</span>
+            <span v-else>已验收</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="单据状态" min-width="150px" align="center">
+          <template slot-scope="scope">
+            <span v-if="scope.row.reject == 0 ">正常</span>
+            <span v-if="scope.row.reject == 1 ">已关单</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="操作" align="center" width="350" class-name="small-padding fixed-width" fixed="right">
+        <template slot-scope="{row}">
+         <div v-if="row.reject != 1">
+          <el-button type="primary" size="mini" @click="form_see(row)">查看</el-button>
+          <el-button  v-if="istab2Edit && row.isAcceptance == 0"  type="success" size="mini" @click="form_edit(row)">编辑</el-button>
+          <el-button v-if="istab2Del && row.isAcceptance == 0" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
+          <el-button  v-if="row.isAcceptance == 0"  style="display:inline-block" type="success" size="mini" @click="form_submit(row)">提交</el-button>
+          <el-button  v-if="istab2Close &&  row.isAcceptance == 0"  style="display:inline-block" type="warning" size="mini" @click="form_closeSubmit(row)">关单</el-button>
+          <el-button  v-if="istab2Shenhe1  && row.isAcceptance == 1 && (row.flowCompeleted == 1) "  style="display:inline-block" type="success" size="mini" @click="form_examine(row)">审核1</el-button>
+          <el-button  v-if="istab2Shenhe2 && row.isAcceptance == 1 && (row.flowCompeleted == 2) "  style="display:inline-block" type="success" size="mini" @click="form_examine2(row)">审核2</el-button>
+          <el-button  v-if="istab2Shenhe3 && row.isAcceptance == 1 && (row.flowCompeleted == 4) "  style="display:inline-block" type="success" size="mini" @click="form_examine3(row)">审核3</el-button>
+         </div>
+         <div v-else>
+          <el-button type="primary" size="mini" @click="form_see(row)">查看</el-button>
+          <el-button v-if="istab2Del" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
+         </div>
+          </template>
+      </el-table-column>
+
+      </el-table>
+
+      <pagination v-show="tableObj1.total>0" :total="tableObj1.total" :page.sync="tableObj1.getdataListParm.offset" :limit.sync="tableObj1.getdataListParm.pagecount" @pagination="get_table_data1()" />
+    </div>
+
+
+    <!-- 弹出层新增or修改 -->
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="90%">
+      <div class="app-container">
+
+       <el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="100px" style="width: 100%;">
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="委外验收单号:" prop="acceptanceCode">
+                <el-input ref="acceptanceCode" v-model="createTemp.acceptanceCode" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="牧场:" prop="pastureId" >
+                <el-select v-model="createTemp.pastureId" placeholder="牧场" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' || dialogStatus==='see'" @change="change_pasture2" >
+                  <el-option v-for="item in pastureNameList" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+
+            <el-col :span="8">
+              <el-form-item label="责任部门:" prop="departmentId">
+                <el-select v-model="createTemp.departmentId" placeholder="责任部门" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' ||  dialogStatus==='see'"  @change="change_depart2">
+                  <el-option v-for="item in departNameList2" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row :gutter="20">
+
+            <el-col :span="8">
+              <el-form-item label="委外申请单号:" prop="outsourcingCode">
+                <el-autocomplete :disabled="dialogStatus==='update' ||  dialogStatus==='see'"
+                  v-model="createTemp.outsourcingCode"
+                  value-key="name"
+                  class="inline-input"
+                  :fetch-suggestions="getOutNumber"
+                  placeholder=""
+                  style="width:100%"
+                  @select="changeOutNumber"
+                >
+                  <template slot-scope="{ item }">
+                    <div class="name" style="display: inline;">{{ item.outsourcingCode }}</div>
+                    <!-- <div class="name" style="display: inline;">{{ item.departmentName }}</div> -->
+                  </template>
+                </el-autocomplete>
+              </el-form-item>
+            </el-col>
+
+
+            <el-col :span="8">
+              <el-form-item label="录入人:" prop="applicant">
+                <el-select v-model="createTemp.applicant" placeholder="录入人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update' ||  dialogStatus==='see'"  >
+                  <el-option v-for="item in employeNameList" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item  class="is-requied"  label="日期:" prop="date">
+                <el-date-picker v-model="createTemp.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="有无合同:" prop="iscontract">
+                <span v-if="createTemp.iscontract == 0">有合同</span>
+                <span v-else>无合同</span>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item  class="is-requied"  label="离厂日期:" prop="lcdate">
+                <el-date-picker v-model="createTemp.lcdate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item class="is-requied"  label="回厂日期 :" prop="hcdate">
+                <el-date-picker v-model="createTemp.hcdate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" :disabled="dialogStatus==='see'"  />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="备注:" prop="remark">
+                <el-input ref="remark" v-model="createTemp.remark" :disabled="dialogStatus==='see'" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-divider></el-divider>
+
+          <el-table
+             key="tableKey"
+            v-loading="listLoading"
+            element-loading-text="给我一点时间"
+            :data="listAddCont"
+            border
+            fit
+            highlight-current-row
+            style="width: 100%;margin-bottom:30px"
+            :row-style="rowStyle"
+            :cell-style="cellStyle"
+            class="elTable"
+          >
+            <!-- table表格 -->
+            <el-table-column label="序号" align="center" type="index" width="50px" />
+            <el-table-column label="供应商" prop="providerName" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span>{{ scope.row.providerName }}</span>
+              </template>
+            </el-table-column>
+            <!-- <el-table-column label="金额" prop="amount" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span>{{ scope.row.amount }}</span>
+              </template>
+            </el-table-column> -->
+            <el-table-column label="金额" v-if="createTemp.iscontract !== 0" prop="amount" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.amount" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="设备名称" prop="eqName" min-width="80px" align="center">
+              <template slot-scope="scope">
+
+                <span>{{ scope.row.eqName }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="80px">
+              <template slot-scope="scope">
+
+                <span>{{ scope.row.eqCode }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="费用类型" prop="typea" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span>{{ scope.row.typea }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column :render-header="addRedStar"  label="铅封号 " prop="sealNumber" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <el-input v-model="scope.row.sealNumber" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.sealNumber }}</span>
+              </template>
+            </el-table-column>
+            <el-table-column   :render-header="addRedStar"  label="质保日期" prop="warrantydate" align="center" min-width="80px">
+              <template slot-scope="scope">
+                <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                  <!-- <el-date-picker v-model="scope.row.warrantydate" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="margin-top:10px" /> -->
+                  <el-date-picker v-model="scope.row.warrantydate"  type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="margin-top:10px" />
+                </span>
+                <span v-if="dialogStatus ==='see'">{{ scope.row.warrantydate }}</span>
+              </template>
+            </el-table-column>
+            <!-- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
+              <template slot-scope="scope">
+
+                <span>{{ scope.row.date }}</span>
+              </template>
+            </el-table-column> -->
+            <!-- <el-table-column  label="合同编号" prop="contractCode" align="center" min-width="80px">
+              <template slot-scope="scope">
+
+                <span>{{ scope.row.contractCode }}</span>
+              </template>
+            </el-table-column> -->
+            <el-table-column label="备注" prop="remark" align="center" min-width="80px">
+              <template slot-scope="scope">
+
+                <span >{{ scope.row.remark }}</span>
+              </template>
+            </el-table-column>
+
+
+
+          </el-table>
+
+          <el-divider></el-divider>
+
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="备件类型:" prop="applyType">
+                <el-radio-group v-model="createTemp.applyType" :disabled="dialogStatus==='see'"  @change="change_applyType" >
+                  <el-radio   :label="0" :checked="createTemp.applyType == 0">牧场</el-radio>
+                  <el-radio   :label="1" :checked="createTemp.applyType == 1">供应商</el-radio>
+
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+
+          </el-row>
+
+          <el-row :gutter="20" v-if = "createTemp.applyType == 0">
+
+
+            <el-button v-if = "dialogStatus !=='see' " class="filter-item" type="primary" size="mini" style="margin-bottom:10px" @click="handleCollectionSparePartsCreate">添加领用单</el-button>
+
+
+            <!-- <el-col :span="8">
+              <el-form-item label="领用单号:" prop="applyCode">
+                <el-input ref="applyCode" v-model="createTemp.applyCode" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="16">
+              <el-form-item label="备件:" prop="partCode">
+                <el-autocomplete v-model="orderPart.partCode" value-key="name" class="inline-input" :fetch-suggestions="sparePartSearch" placeholder="请输入备件编号或备件名称或备件规格" style="width:100%" @select="handleSelectSparePart" :disabled="dialogStatus==='update' ||  dialogStatus==='see'" >
+                  <template slot-scope="{ item }">
+                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
+                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
+                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
+                    |  &nbsp;<b>品牌:</b><span class="addr">{{ item.brand }}</span>
+                    |  &nbsp;<b>库存:</b><span class="addr">{{ item.reportery }}</span>
+                  </template>
+                </el-autocomplete>
+              </el-form-item>
+            </el-col> -->
+
+          </el-row>
+
+
+          <el-table v-if = "createTemp.applyType == 0"
+              :key="tableKey"
+              v-loading="listLoading"
+              element-loading-text="给我一点时间"
+              :data="listCollectionSpareParts"
+              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">
+                <template slot-scope="scope">
+                  <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="领用单号" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.applyCode }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="领用部门" width="140px" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.departmentName }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="领用日期" sortable prop="createDate" min-width="80px" align="center" />
+              <el-table-column label="领用备件" prop="details" align="center">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.details }}</span>
+                </template>
+              </el-table-column>
+
+
+
+
+
+              <el-table-column label="领用状态" min-width="100px" align="center" :formatter="statue" />
+              <el-table-column label="操作" min-width="80px" align="center">
+                <template slot-scope="{row}">
+                  <el-button type="primary" size="mini" @click="handleCollarUseSee(row)">查看</el-button>
+                </template>
+              </el-table-column>
+          </el-table>
+
+
+          <el-divider></el-divider>
+          <el-button v-if = "createTemp.applyType == 1 && dialogStatus !=='see'  " class="filter-item" type="primary" icon="el-icon-edit" @click="form_add_list2">新增</el-button>
+
+
+          <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" >
+              <!-- 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 v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.partCode" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.partCode }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="备件名称" min-width="60px" align="center">
+                <template slot-scope="scope">
+
+                   <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.partName" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.partName }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.specification" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.specification }}</span>
+                </template>
+              </el-table-column>
+
+              <el-table-column label="备件品牌" prop="brand" align="center" min-width="60">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.brand" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.brand }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="供应商" prop="providerName" align="center" min-width="60">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.providerName" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.providerName }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="计量单位" prop="unit" align="center" min-width="60">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.unit" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.unit }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column label="数量" prop="amount" align="center" min-width="60">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.amount" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.amount }}</span>
+                </template>
+              </el-table-column>
+
+              <el-table-column label="单价" prop="price" align="center" min-width="70">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.price" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.price }}</span>
+                </template>
+
+              </el-table-column>
+              <el-table-column label="总价" prop="totalPrice" align="center" min-width="70">
+                <template slot-scope="scope">
+                  <span>{{ scope.row.price * parseFloat(scope.row.amount) }}</span>
+                </template>
+
+              </el-table-column>
+              <el-table-column label="备注" prop="remark" align="center" min-width="60">
+                <template slot-scope="scope">
+                  <span v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                      <el-input v-model="scope.row.remark" style="margin-top:10px" />
+                    </span>
+                    <span v-if="dialogStatus ==='see'">{{ scope.row.remark }}</span>
+
+                </template>
+              </el-table-column>
+              <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right" v-if="dialogStatus ==='create'||dialogStatus ==='update'">
+                <template slot-scope="{row}">
+                  <a class="del" @click="partDelete2(row)">删除</a>
+                </template>
+              </el-table-column>
+          </el-table>
+        </el-form>
+
+
+
+
+
+          <el-row v-if="dialogStatus ==='see'  ">
+            <el-col>
+              <h3 >流程进度</h3>
+              <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>
+                  </template>
+                </el-step>
+              </el-steps>
+            </el-col>
+          </el-row>
+
+
+
+
+        <div slot="footer" class="dialog-footer" style="bottom:10px">
+       <el-button type="primary" v-if="dialogStatus !=='see'"  @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
+          <!-- <el-button type="primary"  v-show ="dialogStatus==='create'" :disabled="isokDisable" @click="add_dialog_save()">保存并关闭1</el-button>
+          <el-button type="primary"  v-show ="dialogStatus==='update'" :disabled="isokDisable" @click="edit_dialog_save()">保存并关闭2</el-button> -->
+
+          <el-button @click="dialogFormVisible = false;get_table_data1()">取消并关闭</el-button>
+        </div>
+      </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 0 0 5%;line-height:50px;">请确认审核结果:</h3>
+        <el-form ref="examineTemp" :model="examineTemp" label-position="right" style="width: 50%;margin:0 auto;">
+          <el-row style="width:88%;height:150px;margin:0 auto;">
+            <el-col :span="20">
+              <el-form-item>
+                <el-radio-group v-model="examineTemp.status" @change="change_statue">
+                  <el-radio :label="1" checked>通过</el-radio>
+                  <el-radio :label="2">不通过</el-radio>
+                </el-radio-group>
+              </el-form-item>
+            </el-col>
+            <el-col v-if="statueReason" :span="20">
+              <el-input v-model="examineTemp.workflowNote" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入不通过原因" />
+            </el-col>
+          </el-row>
+        </el-form>
+      </div>
+      <div slot="footer" class="dialog-footer">
+        <el-button  v-if="istab2Shenhe1 && (examineTemp.flowCompeleted == 1) "  type="primary" :disabled="isokDisable" @click="form_examine_save()">确认</el-button>
+        <el-button v-if="istab2Shenhe2 && (examineTemp.flowCompeleted == 2) "  type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
+        <el-button v-if="istab2Shenhe3 && (examineTemp.flowCompeleted == 4) " type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button>
+        <!-- <el-button v-if="dialogStatus==='examine22'" type="primary" :disabled="isokDisable" @click="form_examine_save22()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="form_examine_save2()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine33'" type="primary" :disabled="isokDisable" @click="form_examine_save33()">确认</el-button>
+        <el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="form_examine_save3()">确认</el-button> -->
+        <el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
+      </div>
+    </el-dialog>
+
+    <el-dialog  title="领用单" :visible.sync="dialogFormVisible_CollectionSparePartsSee" :close-on-click-modal="false" width="90%">
+      <div class="collectionSparePartsSee" style="height: 500px;">
+        <el-form
+          ref="collectionSparePartsSeeTemp"
+          :rules="rules"
+          :model="collectionSparePartsSeeTemp"
+          label-position="right"
+          label-width="120px"
+          style="width: 90%;margin:0 auto;"
+        >
+          <el-row>
+            <el-col  :span="8">
+              <el-form-item label="领用单号:" prop="applyCode">
+                <el-input ref="applyCode" v-model="collectionSparePartsSeeTemp.applyCode" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="领用部门:" prop="departmentName">
+                <el-input ref="departmentName" v-model="collectionSparePartsSeeTemp.departmentName" disabled />
+              </el-form-item>
+            </el-col>
+            <el-col   :span="8">
+              <el-form-item label="领用日期:" prop="applyDate">
+                <el-input ref="applyDate" v-model="collectionSparePartsSeeTemp.applyDate" disabled />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row v-if="isPartCode">
+            <el-col :span="16">
+              <el-form-item label="所需备件:" prop="partCode">
+                <el-autocomplete
+                  v-model="collectionSparePartsSeeTemp.partCode"
+                  value-key="name"
+                  class="inline-input"
+                  :fetch-suggestions="sparePartSearch"
+                  placeholder="请输入备件编号或备件名称或备件规格"
+                  style="width:98%"
+                  @select="handleSelectSparePart"
+                >
+                  <template slot-scope="{ item }">
+                    <b>备件编号:</b><div class="name" style="display: inline;">{{ item.partCode }}</div>&nbsp;
+                    |  &nbsp;<b>备件名称:</b><span class="addr">{{ item.partName }}</span>&nbsp;
+                    |  &nbsp;<b>备件规格:</b><span class="addr">{{ item.specification }}</span>
+                    |  &nbsp;<b>库存:</b><span class="addr">{{ item.reportery }}</span>
+                    |  &nbsp;<b>是否零库存:</b><span class="addr" v-if="item.isZeroStock==1">是</span>
+                    <span class="addr" v-else>否</span>
+                  </template>
+                </el-autocomplete>
+              </el-form-item>
+            </el-col>
+
+          </el-row>
+        </el-form>
+        <el-table
+          :key="tableKey"
+          v-loading="listLoading"
+          element-loading-text="给我一点时间"
+          :data="listCreateCollectionSpareParts"
+          border
+          fit
+          highlight-current-row
+          style="width: 100%;margin-bottom:30px"
+          :row-style="rowStyle"
+          :cell-style="cellStyle"
+          class="elTable table-fixed"
+        >
+          <!-- 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="80px" 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="100">
+            <template slot-scope="scope">
+              <span>{{ scope.row.specification }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="库存数" prop="reportery" align="center" min-width="100">
+            <template slot-scope="scope">
+              <span>{{ scope.row.reportery }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column label="领用数量" prop="amount" align="center" min-width="80">
+            <template slot-scope="scope">
+              <el-form :model="scope.row">
+                <el-form-item prop="amount">
+                  <el-input ref="amount" v-model="scope.row.amount" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
+                </el-form-item>
+              </el-form>
+            </template>
+          </el-table-column>
+          <!-- <el-table-column  label="领用时间" prop="date" align="center" min-width="100">
+            <template slot-scope="scope">
+              <span>{{ scope.row.date }}</span>
+            </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" :disabled="dialogStatus==='collectionSparePartsSee1'" style="margin-top:15px" />
+                </el-form-item>
+              </el-form>
+            </template>
+          </el-table-column>
+
+             <el-table-column   label="设备名称" prop="eqName" align="center" min-width="250">
+                <template slot-scope="scope">
+                  <el-autocomplete  v-if="isCreatePartDelete"
+                    v-model="scope.row.eqName"
+                    class="inline-input"
+                    :fetch-suggestions="querySearchEqName"
+                    value-key="eqName"
+                    placeholder="设备名称"
+                    @select="(value)=>
+                    {handleSelectEqName(value, scope.row)}"
+                    @blur="(value)=>
+                    {blurSelectEqName(value, scope.row)}"
+                  >
+                    <template slot-scope="{ item }">
+                      <span class="addr">{{ item.eqName }}</span>
+                      |<span class="addr">{{ item.eqCode }}</span>
+                    </template>
+                  </el-autocomplete>
+                  <span v-else class="addr">{{ scope.row.eqName }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column   label="设备内部编号" prop="eqCode" align="center" min-width="150">
+                <template slot-scope="scope">
+                  <el-autocomplete v-if="isCreatePartDelete"
+                    v-model="scope.row.eqCode"
+                    class="inline-input"
+                    :fetch-suggestions="querySearchCode"
+                    value-key="eqCode"
+                    placeholder="设备内部编号"
+                    @select="(value)=>
+                    {handleSelectEqCode(value, scope.row)}"
+                    @blur="(value)=>
+                    {blurSelectEqCode(value, scope.row)}"
+                  />
+                  <span v-else class="addr">{{ scope.row.eqCode }}</span>
+                </template>
+              </el-table-column>
+
+          <el-table-column v-if="isCreatePartDelete" label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right">
+            <template slot-scope="{row}">
+              <a class="del" @click="createPartDelete(row)">删除</a>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+      <div slot="footer" class="dialog-footer" style="bottom:5px">
+        <el-button v-if="isPartCode" type="primary" :disabled="isokDisable" @click="createCollectionSparePartsData()">确认</el-button>
+        <!-- <el-button @click="dialogFormVisible_CollectionSparePartsSee = false;">关闭</el-button> -->
+        <el-button @click="closeCollectionSparePartsSee">关闭</el-button>
+      </div>
+    </el-dialog>
+
+
+
+  </div>
+</template>
+
+<script>
+import echarts from 'echarts'
+require('echarts/theme/macarons')
+import { GetDataByNames, GetReportform, GetDataByName, PostDataByName, checkButtons, ExecDataByConfig} from '@/api/common'
+import Cookies from 'js-cookie'
+import { parseTime, json2excel } from '@/utils/index.js'
+import { MessageBox } from 'element-ui'
+import Pagination from '@/components/Pagination'
+export default {
+  name: 'Tab2',
+  components: { Pagination },
+  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') }},
+        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
+
+      ],
+
+
+      //  下拉框 - 牧场
+      pastureNameList: [
+        // {id: "犊牛1", name: "犊牛1"},
+        // {id: "犊牛2", name: "犊牛2"},
+        // {id: "犊牛3", name: "犊牛3"}
+      ],
+
+      getDepartParam1: {
+        name: 'findAllDepart', offset: 0, pagecount: 0,
+        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
+      },
+      employeNameList: [],
+      departNameList1: [],
+      getDepartParam2: {
+        name: 'findAllDepart', offset: 0, pagecount: 0,
+        parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
+      },
+      departNameList2: [],
+      rejectList: [{ id: '0', name: '正常' }, { id: '1', name: '已关单' }],  // TODO: 已关单状态
+      statuesNameList: [{ id: '0', name: '未离厂' }, { id: '1', name: '未回厂' }, { id: '2', name: '已回厂' }, { id: '3', name: '已验收' }],
+      iscontractList: [{ id: '0', name: '有合同' },  {id: '1', name: '无合同' }],
+      isokDisable: false,
+      tableObj1: {
+        getdataListParm: {
+          name: 'getBigacceptanceList',
+          //请求的 page 无用参数  offset 第几页  pagecount 每页多少条
+          page: 1, offset: 1, pagecount: 50, returntype: 'Map',
+          parammaps: { pastureName: Cookies.get('pasturename'), acceptanceCode: '',departmentName: '',status: "",outsourcingCode: "", inputDatetime:"",startdate: "",enddate: "",iscontract:''}
+        },
+        tableKey: 0, listLoading: false,
+        //返回的 pageNum 第几页  pageSize 每页多少条 total 总条数
+        pageNum: '', pageSize: '', total: 0,
+        list: [
+
+        ]
+      },
+      pageNum:'',pageSize:'',total: 0,
+      getAddContListParam:  {
+        name: "getOutsourcingList",
+        page: 1,offset: 1,pagecount: 20,returntype: "Map",
+        parammaps: {"bigId": ""}
+      },
+
+      pickerOptions: {
+        disabledDate(time) {
+          return time.getTime() > Date.now()// 当天之前的时间可选
+        }
+      },
+      dialogFormVisible_CollectionSparePartsSee: false,
+      beforedialog:'',
+      listCreateCollectionSpareParts: [],
+      isCreatePartDelete: false,
+      isPartCode: true,
+      getCollarUseSeeParm: {
+        name: 'getpartapplyListBybig',
+        parammaps: {}
+      },
+      orderPart: {},
+      getOutCodetParm: {
+        name: 'getBigoutsourcingCode',
+        returntype: 'Map',
+        parammaps: {
+          pastureId: Cookies.get('pastureid'),
+          outsourcingCode:"",
+        }
+      },
+      useForms: [],
+      getParmCreateAdd: {
+        name: 'getPartApplyByBig',
+        returntype: 'Map',
+        parammaps: {}
+      },
+
+      rules: {
+        equipmentName: [{ required: true, message: '必填', trigger: 'blur' }],
+        // lcdate: [{ required: true, message: '必填', trigger: 'blur' }],
+        // hcdate: [{ required: true, message: '必填', trigger: 'blur' }],
+        // date: [{ required: true, message: '必填', trigger: 'blur' }]
+      },
+      getPramPartApplyListBybig: {
+        name:"getpartapplyListBybig",
+        returntype:"Map",
+        parammaps:{"id":""}
+      },
+
+      getPramAcceptanceList: {
+        name:"getAcceptanceList",
+        returntype:"Map",
+        parammaps:{"bigId	":""}
+      },
+
+
+      getCollarUseListParm: {
+        name: 'getPartsapplybyMt',
+        page: 1,
+        offset: 1,
+        returntype: 'Map',
+        parammaps: {
+          "RUCode":"",
+        }
+      },
+
+      collectionSparePartsSeeTemp: {
+        applyCode:"",departmentName:"",applyDate:"",
+        isStock: 0,
+        applyDate:"",
+      },
+      listCollectionSpareParts: [],
+
+      tableKey: 0,
+      listLoading: true,
+      total: 0,
+      list: [],
+      dialogStatus: '',
+      dialogFormVisible: false,
+      dialogFormVisibleSee: false,
+      listLoadingSee: true,
+      listSee: [],
+      totalSee: 0,
+      seeTemp: {},
+      getdataListSee: {
+        name: 'getpartpurchaseBybig',
+        returntype: 'Map',
+        parammaps: {}
+      },
+      createTemp: {
+        pastureId: this.$store.state.user.pastureid,
+        departmentId: this.$store.state.user.departmentid,
+        employeId: this.$store.state.user.employeid,
+        date: parseTime(new Date(), '{y}-{m}-{d}'),
+        providerId: '',
+        contract:1,
+        acceptanceCode:"",
+        outsourcingCode:"",
+        applyType:0,
+        remark:'',
+
+        applicant: '',
+
+        departmentName: '',
+
+        contract:1,
+      },
+
+      getParmCreateNumber: {
+        name: 'autoCreatCode',
+        page: 0, offset: 0,  pagecount: 0,  returntype: 'Map',
+        parammaps: {
+          pastureId: Cookies.get('pastureid'),
+          codeType: 'WY'
+        }
+      },
+      getParmCreateNumber2: {
+        name: 'autoCreatCode',
+        page: 0, offset: 0,  pagecount: 0,  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') }
+      },
+
+      EqNameList: [],
+      requestEqName: {
+        name: 'geteqbyNameCode', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
+        parammaps: { pastureId: Cookies.get('pastureid') }
+      },
+      EqCodeList: [],
+
+
+
+      listAdd:[],
+      listAdd2:[],
+      isData:false,
+
+      listAddCont:[
+        //  {providerName:"",providerId: "0",eqId: "0",contractId: "0",}
+      ],
+      activeList: [],
+      active: 1,
+
+      dialogFormVisible_Examine: false,
+      examineTemp: {
+            "status": 1,
+            "empid": "",
+            "flowCompeleted":"",
+            "workflowNote": "",
+            "id": ""
+      },
+      statueReason: false,
+      rowStyle: { maxHeight: 50 + 'px', height: 35 + 'px' },
+      cellStyle: { padding: 0 + 'px' },
+      textMap: {
+        update: '编辑',
+        create: '新增',
+        see: '查看',
+        examine: '审核1',
+        examine22: '审核2',
+        examine2: '审核3',
+        examine33: '审核4',
+        examine3: '审核5',
+        collectionSparePartsSee: '查看领用',
+        collectionSparePartsSee1:'查看领用',
+        collectionSparePartsCreate: '添加领用',
+      },
+
+      istab2Add:[],
+      istab2Edit:[],
+      istab2Del:[],
+      istab2Close:[], // 关单权限 todo
+      istab2Shenhe1:[],
+      istab2Shenhe2:[],
+      istab2Shenhe3:[],
+    }
+  },
+  created() {
+
+
+    this.get_select_list()
+    this.get_table_data1()
+
+  },
+  methods: {
+     // 给表头加必填符号*
+     addRedStar(h, { column }) {
+      return [
+        h("span", { style: "color: red" }, "*"),
+        h("span", " " + column.label)
+      ]
+    },
+
+    //获取按钮权限
+    get_auto_buttons() {
+      const istab2Add = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:add')
+      this.istab2Add = istab2Add
+
+      const istab2Edit = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:edit')
+      this.istab2Edit = istab2Edit
+
+      const istab2Del = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:del')
+      this.istab2Del = istab2Del
+
+      const istab2Close = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:close')
+      this.istab2Close = istab2Close
+      console.log(this.istab2Close, 'this.istab2Close=====hss')
+
+      const istab2Shenhe1 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe1')
+      this.istab2Shenhe1 = istab2Shenhe1
+
+      const istab2Shenhe2 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe2')
+      this.istab2Shenhe2 = istab2Shenhe2
+
+      const istab2Shenhe3 = checkButtons(this.$store.state.user.buttons, 'maintenance:subcontractingMainten2:shenhe3')
+      this.istab2Shenhe3 = istab2Shenhe3
+
+    },
+
+
+    get_select_list() {
+      GetDataByNames(this.send_select_list).then(response => {
+        this.pastureNameList = response.data.findAllPasture.list
+        console.log("牧场下拉框", this.pastureNameList)
+        this.employeNameList = response.data.findAllEmploye.list
+        console.log("申请人下拉框", this.employeNameList)
+
+        this.get_depart_list1()
+      })
+    },
+    change_pasture1(item) {
+      this.getDepartParam1.parammaps.pastureId = this.pastureNameList.find(obj => obj.name == item).id
+      this.tableObj1.getdataListParm.parammaps.departmentId = ''
+      this.get_depart_list1()
+    },
+    //部门List
+    get_depart_list1() {
+      GetDataByName(this.getDepartParam1).then(response => {
+        this.departNameList1 = response.data.list
+      })
+    },
+
+
+    change_pasture2(item) {
+      this.getDepartParam2.parammaps.pastureId = item
+      this.get_depart_list2()
+    },
+
+    get_depart_list2() {
+      GetDataByName(this.getDepartParam2).then(response => {
+        this.departNameList2 = response.data.list
+      })
+    },
+
+    change_depart2(item) {
+      this.createTemp.departmentName = this.departNameList2.find(obj => obj.id == item).name
+    },
+
+
+    get_table_data1() {
+      this.tableObj1.listLoading = false
+
+      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
+        this.tableObj1.getdataListParm.parammaps.startdate = this.$refs['inputDatetime'].value[0]
+        this.tableObj1.getdataListParm.parammaps.enddate = this.$refs['inputDatetime'].value[1]
+
+
+      } else {
+        this.tableObj1.getdataListParm.parammaps.inputDatetime = ''
+        this.tableObj1.getdataListParm.parammaps.startdate = ''
+        this.tableObj1.getdataListParm.parammaps.enddate = ''
+      }
+
+      GetDataByName(this.tableObj1.getdataListParm).then(response => {
+        if (response.data.list !== null) {
+          this.tableObj1.list = response.data.list
+          this.tableObj1.pageNum = response.data.pageNum
+          this.tableObj1.pageSize = response.data.pageSize
+          this.tableObj1.total = response.data.total
+        } else {
+          this.tableObj1.list = [ ]
+        }
+
+        setTimeout(() => {
+          this.tableObj1.listLoading = false
+        }, 100)
+      })
+    },
+    form_search() {
+      console.log('查询')
+
+
+      this.get_table_data1()
+
+    },
+    change_applyType(val) {
+      console.log(val)
+      if(val ==1){
+        this.createTemp.applyType = 1
+      } else {
+        this.createTemp.applyType = 0
+      }
+
+    },
+    form_add() {
+      this.reset_create()
+
+      this.getDepartParam2.parammaps.pastureId = this.createTemp.pastureId
+      this.get_depart_list2()
+      this.dialogStatus = 'create'
+
+
+      this.dialogFormVisible = true
+      this.listLoading = false
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+       //新增生成单号
+      this.getCreateNumber()
+
+    },
+    statue: function(cellValue) {
+      // console.log(cellValue.isZeroStock)
+      if (cellValue.statue == 0) {
+        return '未领用'
+      } else if (cellValue.statue == 1) {
+        return '已领用'
+      }
+    },
+    reset_create() {
+      this.createTemp.pastureId =  parseInt(Cookies.get('pastureid'))
+      this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
+      this.createTemp.departmentName = Cookies.get('departmentname')
+      this.createTemp.employeId = parseInt(Cookies.get('employeid'))
+      this.createTemp.date = parseTime(new Date(), '{y}-{m}-{d}')
+      this.createTemp.outsourcingCode = ''
+      this.createTemp.applicant = parseInt(Cookies.get('employeid'))
+      this.createTemp.providerId = ''
+      this.createTemp.contract = 1
+
+      this.createTemp.description = ''
+
+      if(parseInt(Cookies.get('pastureid')) == 18){
+      this.createTemp.departmentId = ""
+     }
+
+      this.createTemp.outsourcingCode = ''
+      console.log(  this.createTemp.departmentName )
+
+
+
+
+      this.listAddCont = [
+      //   {providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}
+      ]
+      this.listAdd = []
+      this.listAdd2 = []
+      this.listCreateCollectionSpareParts = []
+      this.listCollectionSpareParts = []
+
+
+
+
+    },
+
+
+
+    handleCollarUseSee(row, isStock) {
+      console.log(row)
+      let beforedialog = ''
+      this.beforedialog = this.dialogStatus
+      this.collectionSparePartsSeeTemp = Object.assign({}, row)
+      this.dialogStatus = 'collectionSparePartsSee1'
+
+      this.collectionSparePartsSeeTemp.applyDate = row.createDate
+      this.dialogFormVisible_CollectionSparePartsSee = true
+      this.isCreatePartDelete = false
+      this.isPartCode = false
+      this.getCollarUseSeeList()
+    },
+    getCollarUseSeeList() {
+      this.getCollarUseSeeParm.parammaps.id = this.collectionSparePartsSeeTemp.id
+      GetDataByName(this.getCollarUseSeeParm).then(response => {
+        this.listCreateCollectionSpareParts = response.data.list
+
+      })
+    },
+
+    form_add_list2() {
+      var idDel = "id" + Math.round(Math.random()*100) + Math.round(Math.random()*100)
+
+      this.listAdd2.unshift({partCode:"",providerId: "0",eqId: "0",contractId: "0",idDel:idDel,partId: "",partCode: "",partName: "",brandId: "",brand: "",providerId: "",providerName: "",price: "",sumPrice: "",remark: "",amount: ""})
+
+
+    },
+
+    getCreateNumber() {
+      GetDataByName(this.getParmCreateNumber).then(response => {
+        this.$nextTick(() => {
+          console.log('新增委外维修单单号', response.data.list[0].orderCode)
+          this.createTemp.acceptanceCode = response.data.list[0].orderCode
+          this.$forceUpdate()
+        })
+      })
+
+    },
+
+
+    getCreateLYNumber() {
+
+      GetDataByName(this.getParmCreateNumber2).then(response => {
+        this.$nextTick(() => {
+          console.log('新增领用单号', response.data.list[0].orderCode)
+          this.collectionSparePartsSeeTemp.applyCode = response.data.list[0].orderCode
+          this.$forceUpdate()
+        })
+      })
+    },
+
+    add_dialog_save() {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['createTemp'].validate(valid => {
+        if (valid) {
+          console.log(this.listAddCont)
+          if (this.createTemp.acceptanceCode == '' || this.createTemp.acceptanceCode == null || this.createTemp.acceptanceCode == undefined) {
+            GetDataByName(this.getParmCreateNumber).then(response => {
+              this.$nextTick(() => {
+                console.log('新增单号', response.data.list[0].orderCode)
+                this.createTemp.acceptanceCode = response.data.list[0].orderCode
+                this.$forceUpdate()
+                this.add_dialog_saveSave()
+              })
+            })
+          } else {
+            this.add_dialog_saveSave()
+          }
+        }
+      })
+    },
+
+
+    add_dialog_saveSave() {
+
+        for (var j = 0; j < this.listAddCont.length; j++) {
+          console.log(this.listAddCont[j].amount)
+          if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
+            this.$message({ type: 'warning', message: '请检查金额是否未填写', duration: 2000 })
+            return false
+          } else {
+            // var rulesAmount = /^[1-9]\d*$/
+            // if (!rulesAmount.test(this.listAddCont[j].amount)) {
+            //   this.$message({ type: 'error', message: '申购数量请输入正整数', duration: 2000 })
+            //   return false
+            // }
+          }
+
+
+        }
+        //牧场
+        if(this.createTemp.applyType == 0){
+
+
+          let mySumPrice = 0
+          for (let i = 0; i < this.listAdd.length; i++) {
+            mySumPrice += parseFloat(this.listAdd[i].price) * parseFloat(this.listAdd[i].amount)
+          }
+          if (mySumPrice > 500) {
+            this.createTemp.SHStatus = 2
+          } else {
+            this.createTemp.SHStatus = 9
+          }
+
+
+          var send_data = {
+            "common": {  "returnmap": "0" },
+            "data": [
+              {
+                "name": "insertBigacceptance",
+                "type": "e",
+                "parammaps": this.createTemp
+              }
+            ]
+          }
+
+        }
+        //供应商
+        if(this.createTemp.applyType == 1){
+
+
+
+          if(this.listAdd2.length == 0){
+            this.$notify({
+              title: '失败',   message: "备件必选!",
+              type: 'warning',
+              duration: 2000
+            })
+            return false
+          }
+          this.listAdd2.map((item, index) => {
+             return item.partId = "0"
+          })
+          this.listAdd2.map((item, index) => {
+             return item.brandId = "0"
+          })
+
+          this.listAdd2.map((item, index) => {
+             return item.providerId = "0"
+          })
+
+
+          var send_data = {
+              "common": {
+                  "returnmap": "0"
+              },
+              "data": [
+                  {
+                      "name": "insertBigacceptance",
+                      "type": "e",
+                      "parammaps": this.createTemp
+                  },
+                  {
+                      "name": "insertSpotList",
+                      "resultmaps": {
+                          "list": this.listAdd2
+                      },
+                      "children": [
+                          {
+                              "name": "insertAcceptance",
+                              "type": "e",
+                              "parammaps": {
+                                "bigId":"@insertBigacceptance.LastInsertId",
+                                "partId":"@insertSpotList.partId",
+                                "partCode":"@insertSpotList.partCode",
+                                "partName":"@insertSpotList.partName",
+                                "brandId":"@insertSpotList.brandId",
+                                "brand":"@insertSpotList.brand",
+                                "providerId":"@insertSpotList.providerId",
+                                "providerName":"@insertSpotList.providerName",
+                                "unit":"@insertSpotList.unit",
+                                "price":"@insertSpotList.price",
+
+                                "remark":"@insertSpotList.remark",
+                                   "specification": "@insertSpotList.specification",
+                                "amount":"@insertSpotList.amount"
+                              }
+                          }
+                      ]
+                  }
+              ]
+          }
+
+
+        }
+
+        ExecDataByConfig(send_data).then(response => {
+          console.log('新增保存发送参数', send_data)
+          if (response.msg === 'fail') {
+            this.$notify({
+              title: '保存失败',
+              message: response.data,
+              type: 'warning',
+              duration: 2000
+            })
+          } else {
+            this.dialogFormVisible = false
+
+            this.get_table_data1()
+
+            this.$notify({
+              title: '',
+              message: '保存成功',
+              type: 'success',
+              duration: 2000
+            })
+          }
+        })
+
+
+    },
+
+
+    getOutNumber(queryString, cb) {
+      console.log('委外申请单号模糊查询输入值', queryString)
+      this.getOutCodetParm.parammaps['outsourcingCode'] = queryString
+      GetDataByName(this.getOutCodetParm).then(response => {
+        console.log('委外申请单号模糊查询搜索data', response.data.list)
+        // this.useForms = response.data.list
+        cb(response.data.list)
+      })
+    },
+
+
+    changeOutNumber(item) {
+      console.log('委外申请单号模糊查询选中值', item)
+      this.createTemp.outsourcingCode = item.outsourcingCode
+      this.$set(this.createTemp, "outsourcingCode", item.outsourcingCode)
+      this.getAddContListParam.parammaps.bigId = item.id
+      this.getAddContList()
+
+
+      // this.createTemp.bid = item.id
+      // this.createTemp.applicatId = item.empId
+      // this.orderPart.applyCode = item.applyCode
+      // this.TotalAmount = 0
+      // this.get_table_dataAdd()
+    },
+
+
+    querySearchEqName(queryString, cb) {
+      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
+      this.requestEqName.parammaps['eqName'] = queryString
+      GetDataByName(this.requestEqName).then(response => {
+        console.log('备件名称模糊查询搜索data', response.data.list)
+        this.EqNameList = response.data.list
+        cb(this.EqNameList)
+      })
+    },
+    handleSelectEqName(item, row) {
+      console.log('备件名称/设备内部编号模糊查询选中值', item.eqName)
+      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
+      this.$set(row, 'eqCode', item.eqCode)
+      this.$forceUpdate()
+    },
+    querySearchCode(queryString, cb) {
+      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
+      this.requestEqName.parammaps['eqCode'] = queryString
+      GetDataByName(this.requestEqName).then(response => {
+        console.log('备件名称模糊查询搜索data', response.data.list)
+        this.EqNameList = response.data.list
+        cb(this.EqNameList)
+      })
+    },
+    handleSelectEqCode(item, row) {
+      console.log('备件名称/设备内部编号模糊查询选中值', item)
+      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
+      this.$set(row, 'eqName', item.eqName)
+      this.$forceUpdate()
+    },
+    blurSelectEqName(item, row) {
+      this.$set(row, 'eqName', '')
+      this.$set(row, 'eqCode', '')
+    },
+    blurSelectEqCode(item, row) {
+      this.$set(row, 'eqName', '')
+      this.$set(row, 'eqCode', '')
+    },
+
+
+
+    sparePartSearch(queryString, cb) {
+      console.log('备件模糊查询输入值', queryString)
+      this.requestSparePart.parammaps.pastureId = this.createTemp.pastureId
+      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.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.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
+    //         this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
+    //         this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
+    //       } else {
+    //         item.srcpath = ''
+    //         item.picpath = ''
+    //       }
+    //       this.listAdd.push(item)
+    //     }
+    //   } else {
+    //     if (item.srcpath !== null && item.picpath !== null && item.srcpath !== undefined && item.picpath !== undefined) {
+    //       this.$set(item, 'srcpath', process.env.VUE_APP_BASE_API + item.srcpath)
+    //       this.$set(item, 'picpath', process.env.VUE_APP_BASE_API + item.picpath)
+    //     } else {
+    //       item.srcpath = ''
+    //       item.picpath = ''
+    //     }
+    //     this.listAdd.push(item)
+    //   }
+    //   // this.getEqNameList()
+    // },
+
+
+    handleSelectSparePart(item) {
+      console.log('备件模糊查询选中值', item)
+      if (this.listCreateCollectionSpareParts.length > 0) {
+        // eslint-disable-next-line no-redeclare
+        if (this.listCreateCollectionSpareParts.find(obj => obj.partId === item.partId)) {
+          this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
+        } else {
+
+          item.date = this.collectionSparePartsSeeTemp.applyDate
+          this.listCreateCollectionSpareParts.unshift(item)
+        }
+      } else {
+        item.date = this.collectionSparePartsSeeTemp.applyDate
+        this.listCreateCollectionSpareParts.unshift(item)
+      }
+    },
+
+
+    createPartDelete(row) {
+      console.log(this.listAdd)
+      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        // console.log(this.list2)
+        for (var i = 0; i < this.listCreateCollectionSpareParts.length; i++) {
+          console.log(this.listCreateCollectionSpareParts[i])
+          if (this.listCreateCollectionSpareParts[i].id === row.id) {
+            var listCreateCollectionSparePartsIndex = this.listCreateCollectionSpareParts.indexOf(this.listCreateCollectionSpareParts[i])
+          }
+          if (listCreateCollectionSparePartsIndex > -1) {
+            this.listCreateCollectionSpareParts.splice(listCreateCollectionSparePartsIndex, 1)
+            return
+          }
+        }
+      })
+    },
+
+    closeCollectionSparePartsSee(){
+      this.dialogFormVisible_CollectionSparePartsSee = false
+      this.dialogStatus = this.beforedialog
+    },
+    // 添加领用保存
+    createCollectionSparePartsData() {
+      this.isokDisable = true
+
+          if (this.listCreateCollectionSpareParts.length !== 0) {
+            for (var i = 0; i < this.listCreateCollectionSpareParts.length; i++) {
+              console.log(this.listCreateCollectionSpareParts[i].amount)
+              if (this.listCreateCollectionSpareParts[i].amount !== undefined && this.listCreateCollectionSpareParts[i].amount !== '') {
+                var rulesAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
+                if (!rulesAmount.test(this.listCreateCollectionSpareParts[i].amount)) {
+                  this.$message({
+                    type: 'error',
+                    message: '领用数量请输入正数,最多保留两位小数',
+                    duration: 2000
+                  })
+                  return false
+                } else {
+                  var listCreateCollectionSpareParts1 = [] // >库存
+                  var listCreateCollectionSpareParts2 = [] // <=库存
+                  var amountList = []
+                  var amount2List = []
+
+
+                  let mySumPrice = 0
+                  for (let i = 0; i < listCreateCollectionSpareParts2.length; i++) {
+                    mySumPrice += parseFloat(listCreateCollectionSpareParts2[i].price) * parseFloat(listCreateCollectionSpareParts2[i].amount)
+                  }
+                  if (mySumPrice > 500) {
+                    this.collectionSparePartsSeeTemp.SHStatus = 2
+                  } else {
+                    this.collectionSparePartsSeeTemp.SHStatus = 9
+                  }
+
+
+
+                  var send_data ={
+                      "common": { "returnmap": "0"  },
+                      "data": [
+                          {
+                              "name": "insertBigpartapply",
+                              "type": "e",
+                              "parammaps": {
+                                  "pastureId": this.collectionSparePartsSeeTemp.pastureId,
+                                  "applyCode": this.collectionSparePartsSeeTemp.applyCode,
+                                  "applyType": 1,
+                                  "departmentId": this.collectionSparePartsSeeTemp.departmentId,
+                                  "empId": this.collectionSparePartsSeeTemp.empId,
+                                  "applyDate": this.collectionSparePartsSeeTemp.applyDate,
+                                  "RUCode": this.createTemp.acceptanceCode,
+                                  "SHStatus": 9
+                              }
+                          },
+                          {
+                              "name": "insertSpotList",
+                              "resultmaps": {
+                                  "list":this.listCreateCollectionSpareParts
+                              },
+                              "children": [
+                                  {
+                                      "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": "@insertSpotList.eqName",
+                                          "eqCode": "@insertSpotList.eqCode",
+                                          "providerId": "@insertSpotList.providerId",
+                                          "note": "@insertSpotList.note",
+                                          "reportery": "@insertSpotList.reportery",
+                                          "contractId": "@insertSpotList.contractId",
+                                          "locationId": "@insertSpotList.locationId"
+                                      }
+                                  }
+                              ]
+                          }
+                      ]
+                  }
+
+                  ExecDataByConfig(send_data).then(response => {
+                    console.log('添加领用保存发送参数',send_data)
+                    if (response.msg === 'fail') {
+                      this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
+                    } else {
+                      this.dialogFormVisible_CollectionSparePartsSee = false
+                      this.getCollectionSpareParts()
+                      this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
+                    }
+                  })
+                  setTimeout(() => {
+                    this.isokDisable = false
+                  }, 2000)
+                  return true
+                }
+              } else {
+                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
+                return false
+              }
+            }
+
+
+          } else {
+            this.$notify({ title: '', type: 'warning', message: '请选择备件', duration: 2000 })
+
+
+            return false
+          }
+
+           setTimeout(() => {
+              this.isokDisable = false
+            }, 2000)
+
+    },
+    //看领用单
+    getCollectionSpareParts() {
+      this.getCollarUseListParm.parammaps.RUCode = this.createTemp.acceptanceCode
+      GetDataByName(this.getCollarUseListParm).then(response => {
+        console.log('领用table数据', response.data.list)
+        this.listCollectionSpareParts = response.data.list
+      })
+    },
+
+    // 新增删除
+    partDelete(row) {
+      console.log(this.listAdd)
+      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        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
+          }
+        }
+      })
+    },
+
+    partDelete2(row) {
+      console.log(this.listAdd2)
+      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        for (var i = 0; i < this.listAdd2.length; i++) {
+          console.log(this.listAdd2[i])
+          if (this.listAdd2[i].idDel === row.idDel) {
+            var listAddIndex = this.listAdd2.indexOf(this.listAdd2[i])
+          }
+          if (listAddIndex > -1) {
+            this.listAdd2.splice(listAddIndex, 1)
+            return
+          }
+        }
+      })
+    },
+    handleCollectionSparePartsCreate() {
+
+
+
+      if(this.createTemp.departmentId == "" || this.createTemp.departmentId == undefined){
+        this.$message({ type: 'warning', message: '请选择责任部门', duration: 2000 })
+        return false
+      }
+
+      if(this.createTemp.applicant == "" || this.createTemp.applicant == undefined){
+        this.$message({ type: 'warning', message: '请选择录入人', duration: 2000 })
+        return false
+      }
+      console.log( "createTemp)============",this.createTemp)
+
+
+      this.collectionSparePartsSeeTemp = Object.assign({}, this.createTemp)
+
+        this.collectionSparePartsSeeTemp.empId =  this.collectionSparePartsSeeTemp.applicant
+        this.collectionSparePartsSeeTemp.applyDate = parseTime(new Date(), '{y}-{m}-{d}')
+        this.dialogStatus = 'collectionSparePartsSee'
+        this.beforedialog = 'update'
+        this.dialogFormVisible_CollectionSparePartsSee = true
+        this.isCreatePartDelete = true
+        this.listCreateCollectionSpareParts = []
+        this.isPartCode = true
+        this.getCreateLYNumber()
+
+        console.log( "console.log( this.collectionSparePartsSeeTemp)============",this.collectionSparePartsSeeTemp)
+
+
+
+    },
+    // getCreateNumber() {
+    //   // GetDataByName(this.getParmCreateNumber).then(response => {
+    //   //   this.$nextTick(() => {
+    //   //     console.log('新增领用单号', response.data.list[0].orderCode)
+    //   //     this.collectionSparePartsSeeTemp.applyCode = response.data.list[0].orderCode
+    //   //     this.$forceUpdate()
+    //   //   })
+    //   // })
+    // },
+
+    form_see(row){
+      console.log('查看======》',row)
+      this.reset_create()
+
+      this.getDepartParam2.parammaps.pastureId = row.pastureId
+      this.get_depart_list2()
+
+      if (row.providerId == undefined) {
+        row.providerId = ''
+        row.providerName = ''
+      }
+      this.createTemp = Object.assign({}, row) // copy obj
+      this.dialogStatus = 'see'
+      this.dialogFormVisible = true
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+      //委外申请单号获取合同
+      this.getAddContListParam.parammaps.bigId = row.outsourcingId
+      this.getAddContList()
+
+      //牧场
+      if(row.applyType == 0){
+        this.getPramPartApplyListBybig.parammaps.id = row.partapplyId
+        this.getCollectionSpareParts()
+        this.isCreatePartDelete = false
+
+
+
+      }
+      //供应商
+      if(row.applyType == 1){
+        this.getPramAcceptanceList.parammaps.bigId = row.id
+        this.getListAdd2()
+
+
+      }
+
+
+           if (row.flowCompeleted == 1) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.empname }, { title: '供应处长' }, { title: '部门负责人' },{ title: '场长' }]
+            this.active = 1
+
+          } else if (row.flowCompeleted == 2) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人' },{ title: '场长' }]
+            this.active = 2
+          } else if (row.flowCompeleted === 3) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName, status: 'error', reason: row.workflowNote },{ title: '部门负责人' },{ title: '场长' }]
+            this.active = 2
+
+          } else if (row.flowCompeleted === 4) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{ title: '场长' }]
+            this.active = 3
+          } else if (row.flowCompeleted === 5) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name:row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser, status: 'error', reason: row.workflowNote   },{ title: '场长' }]
+            this.active = 3
+          } else if (row.flowCompeleted === 6) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName }, { title: '供应处长', date:row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{ title: '场长', date:row.fielddate, name:row.fieldName }]
+            this.active = 4
+          } else if (row.flowCompeleted === 7) {
+            this.activeList = [{ title: '委外验收', date: row.createTime, name: row.applicantName },  { title: '供应处长', date: row.equipmentdate, name: row.equipmentName },{ title: '部门负责人', date: row.departmentdate, name: row.departmentUser  },{  title: '场长', date: row.fielddate, name: row.fieldName, status: 'error', reason: row.workflowNote   }]
+            this.active = 4
+           }
+
+
+
+
+    },
+
+    getAddContList() {
+      GetDataByName(this.getAddContListParam).then(response => {
+        this.listAddCont = response.data.list
+        this.listLoading = false
+      })
+    },
+
+
+
+    form_edit(row) {
+      this.reset_create()
+      console.log('编辑',row)
+      this.getDepartParam2.parammaps.pastureId = row.pastureId
+      this.get_depart_list2()
+      if (row.providerId == undefined) {
+        row.providerId = ''
+        row.providerName = ''
+      }
+      this.createTemp = Object.assign({}, row) // copy obj
+      this.dialogStatus = 'update'
+      this.dialogFormVisible = true
+      this.$nextTick(() => {
+        this.$refs['createTemp'].clearValidate()
+      })
+      //委外申请单号获取合同
+      this.getAddContListParam.parammaps.bigId = row.outsourcingId
+      this.getAddContList()
+      this.isData = false
+      //牧场
+      if(row.applyType == 0){
+
+        this.getCollectionSpareParts()
+
+
+
+      }
+      //供应商
+      if(row.applyType == 1){
+        this.getPramAcceptanceList.parammaps.bigId = row.id
+        this.getListAdd2()
+
+
+      }
+    },
+
+    getListAdd() {
+      GetDataByName(this.getPramPartApplyListBybig).then(response => {
+        this.listAdd = response.data.list
+        this.listLoading = false
+      })
+    },
+
+    getListAdd2() {
+      GetDataByName(this.getPramAcceptanceList).then(response => {
+        this.listAdd2 = response.data.list
+        if(this.listAdd2.length>0){
+          this.isData = true
+        }else{
+          this.isData = false
+        }
+        this.listLoading = false
+      })
+    },
+
+    edit_dialog_save() {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['createTemp'].validate(valid => {
+        if (valid) {
+          this.edit_dialog_saveSave()
+        }
+      })
+    },
+    edit_dialog_saveSave() {
+
+        //牧场
+        if(this.createTemp.applyType == 0){
+          for(let i=0;i<this.listAddCont.length;i++){
+            // if(this.listAddCont[i].sealNumber == ''){
+            //   this.$message({ type: 'warning', message: '请检查铅封号是否未填写', duration: 2000 })
+            //   return false
+            // }
+            // if(this.listAddCont[i].warrantydate == ''){
+            //   this.$message({ type: 'warning', message: '请检查质保日期是否未填写', duration: 2000 })
+            //   return false
+            // }
+          }
+
+
+
+                var send_data = {
+                    "common": { "returnmap": "0"  },
+                    "data": [
+                        {
+                            "name": "editBigacceptanceDate",
+                            "type": "e",
+                            "parammaps": {
+                                "id":this.createTemp.id,
+                                "date":this.createTemp.date,
+                                "applyType":this.createTemp.applyType
+                            }
+                        },
+                        {
+                          "name": "updateBigacceptanceFlowCompeleted", "type": "e",
+                          "parammaps":{
+                            id:this.createTemp.id
+                          }
+                        },
+                        {
+                          "name": "editBigacceptance", "type": "e",
+                          "parammaps":{
+                            id:this.createTemp.id,
+                            lcdate:this.createTemp.lcdate,
+                            hcdate:this.createTemp.hcdate,
+                            remark:this.createTemp.remark
+                          }
+                        },
+                        {
+                          "name": "insertSpotList",
+                          "resultmaps": {  "list": this.listAddCont },
+                          "children": [
+                            {
+                                "name": "editOutsourcingData",  "type": "e",
+                                "parammaps": {
+                                  "id": "@insertSpotList.id",
+                                  "amount": "@insertSpotList.amount",
+                                  "sealNumber": "@insertSpotList.sealNumber",
+                                  "warrantydate": "@insertSpotList.warrantydate"
+                                  }
+                              }
+                          ],
+                        }
+                    ]
+                }
+
+
+          }
+            //供应商
+            if(this.createTemp.applyType == 1){
+
+
+
+              if(this.listAdd2.length == 0){
+                this.$notify({
+                  title: '失败',   message: "备件必选!",
+                  type: 'warning',
+                  duration: 2000
+                })
+                return false
+              }
+              this.listAdd2.map((item, index) => {
+                return item.partId = "0"
+              })
+              this.listAdd2.map((item, index) => {
+                return item.brandId = "0"
+              })
+
+              this.listAdd2.map((item, index) => {
+                return item.providerId = "0"
+              })
+              var myname = ''
+              // var bigId = ''
+              if(this.isData == true){
+                myname = 'editAcceptance'
+                // bigId = "@insertBigacceptance.LastInsertId"
+                // bigId = "@insertSpotList.bigId"
+              }else{
+                myname = 'insertAcceptance'
+                for(let i=0;i<this.listAdd2.length;i++){
+                  this.$set(this.listAdd2[i],'bigId',this.createTemp.id)
+                }
+                // bigId = "@insertSpotList.bigId"
+              }
+              var send_data = {
+                  "common": { "returnmap": "0"  },
+                  "data": [
+                      {
+                          "name": "editBigacceptanceDate",
+                          "type": "e",
+                          "parammaps": {
+                              "id":this.createTemp.id,"date":this.createTemp.date,"applyType":this.createTemp.applyType
+                          }
+                      },
+                      {
+                          "name": "insertSpotList",
+                          "type": "e",
+                          "resultmaps": {
+                              "list": this.listAdd2
+                          },
+                          "children": [
+                              {
+                                  "name": myname,
+                                  "type": "e",
+                                  "parammaps": {
+                                    "id":"@insertSpotList.id",
+                                    "bigId":"@insertSpotList.bigId",
+                                    "partId":"@insertSpotList.partId",
+                                    "partCode":"@insertSpotList.partCode",
+                                    "partName":"@insertSpotList.partName",
+                                    "brandId":"@insertSpotList.brandId",
+                                    "brand":"@insertSpotList.brand",
+                                    "providerId":"@insertSpotList.providerId",
+                                    "providerName":"@insertSpotList.providerName",
+                                    "unit":"@insertSpotList.unit",
+                                    "price":"@insertSpotList.price",
+                                    "remark":"@insertSpotList.remark",
+                                    "specification":"@insertSpotList.specification",
+                                    "amount":"@insertSpotList.amount"
+                                  }
+                              }
+                          ]
+                      },
+                      {
+                        "name": "updateBigacceptanceFlowCompeleted", "type": "e",
+                        "parammaps":{
+                          id:this.createTemp.id
+                        }
+                      },
+                      {
+                        "name": "editBigacceptance", "type": "e",
+                        "parammaps":{
+                          id:this.createTemp.id,
+                          lcdate:this.createTemp.lcdate,
+                          hcdate:this.createTemp.hcdate
+                        }
+                      },
+                      {
+                        "name": "insertSpotList",
+                        "resultmaps": {  "list": this.listAddCont },
+                        "children": [
+                          {
+                              "name": "editOutsourcingData",  "type": "e",
+                              "parammaps": {
+                                "id": "@insertSpotList.id",
+                                "amount": "@insertSpotList.amount",
+                                "sealNumber": "@insertSpotList.sealNumber",
+                                "warrantydate": "@insertSpotList.warrantydate"
+                                }
+                            }
+                        ],
+                      }
+                  ]
+              }
+
+
+
+            }
+
+            ExecDataByConfig(send_data).then(response => {
+            console.log('编辑保存发送参数', send_data)
+            if (response.msg === 'fail') {
+              this.$notify({
+                title: '保存失败',
+                message: response.data,
+                type: 'warning',
+                duration: 2000
+              })
+            } else {
+              this.dialogFormVisible = false
+
+              this.get_table_data1()
+
+              this.$notify({
+                title: '',
+                message: '保存成功',
+                type: 'success',
+                duration: 2000
+              })
+            }
+            })
+
+    },
+
+    form_delete(row) {
+      console.log('点击了删除',row)
+      MessageBox.confirm('确认删除此条信息?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        var send_data = {
+        "common": { "returnmap": "0" },
+        "data": [
+          {
+            "name": "deleteBigacceptance", "type": "e",
+            "parammaps": { "id":row.id }
+           }
+          ]
+        }
+
+        ExecDataByConfig(send_data).then(response => {
+          this.get_table_data1()
+          this.$notify({
+            title: '成功',
+            message: '删除成功',
+            type: 'success',
+            duration: 2000
+          })
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
+        })
+      })
+    },
+
+
+    change_statue(val) {
+      if (val == 2) {
+        this.statueReason = true
+      } else {
+        this.statueReason = false
+      }
+    },
+
+    form_examine(row) {
+      console.log('点击了供应处长审核',row)
+      if (row == undefined) {
+        this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+        this.examineTemp = Object.assign({}, row)
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save() {
+      console.log('点击了供应处长审核', )
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "3"
+          } else {
+            this.examineTemp.status = 0
+            this.examineTemp.flowCompeleted = "2"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  {
+                      "name": "EditBigacceptanceEquipment",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+
+    form_examine2(row) {
+      console.log('点击了部门负责人审核',row)
+      if (row == undefined) {
+        this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+        this.examineTemp = Object.assign({}, row)
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save2() {
+      console.log('点击了部门负责人审核', )
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "5"
+          } else {
+            this.examineTemp.status = 0
+            this.examineTemp.flowCompeleted = "4"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  {
+                      "name": "EditBigacceptanceDepartment",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+
+    form_examine3(row) {
+      console.log('点击了场长  审核',row)
+      if (row == undefined) {
+        this.examineTemp = this.createTemp
+        this.$set(this.createTemp, 'status', 1)
+        this.$set(this.createTemp, 'workflowNote', '')
+      } else {
+        this.examineTemp = Object.assign({}, row)
+        this.$set(this.examineTemp, 'status', 1)
+        this.$set(this.examineTemp, 'workflowNote', '')
+      }
+      this.dialogStatus = 'examine'
+      this.dialogFormVisible_Examine = true
+      this.statueReason = false
+    },
+    form_examine_save3() {
+      console.log('点击了场长审核', )
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
+      this.$refs['examineTemp'].validate(valid => {
+        if (valid) {
+
+          //不通过
+          if(this.statueReason){
+            this.examineTemp.status = 2
+             //审核角色
+            this.examineTemp.flowCompeleted = "7"
+          } else {
+            this.examineTemp.status = 1
+            this.examineTemp.flowCompeleted = "6"
+          }
+          this.examineTemp.empid = Cookies.get('employeid')
+
+          var send_data = {
+              "common": {  "returnmap": "0"  },
+              "data": [
+                  {
+                      "name": "EditBigacceptanceField",  "type": "e",
+                      "parammaps": this.examineTemp
+                  }
+              ]
+          }
+          ExecDataByConfig(send_data).then(response => {
+            console.log('审核确认发送参数', send_data)
+            if (response.msg !== 'fail') {
+              this.get_table_data1()
+              this.dialogFormVisible_Examine = false
+              this.statueReason = false
+              this.$notify({
+                title: '成功',
+                message: '审核成功',
+                type: 'success',
+                duration: 2000
+              })
+            } else {
+              failproccess(response, this.$notify)
+            }
+          })
+        }
+      })
+    },
+    form_submit(row){
+      MessageBox.confirm('确认提交此条信息?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        if(row.isPartapply == 1){
+          var send_data1 = {
+              "name": "checkOutsourcingAmount",
+              "parammaps": { "outsourcingCode":row.outsourcingCode }
+          }
+          var send_data2 = {
+          "common": { "returnmap": "0" },
+          "data": [
+            {
+              "name": "editBigacceptanceIsAcceptance", "type": "e",
+              "parammaps": { "id":row.id }
+             }
+            ]
+          }
+          GetDataByName(send_data1).then(response => {
+            if(parseFloat(response.data.list[0].amount) !== 0){
+              this.save_submit(send_data2)
+            }else{
+              this.$message({
+                type: 'error',
+                message: '数据未填写,请完善相关信息'
+              })
+            }
+          })
+        }else{
+          this.$message({ type: 'warning', message: '备件未领用,暂时不能提交。', duration: 2000 })
+        }
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消提交'
+        })
+      })
+    },
+    // 关单
+    form_closeSubmit(row){
+      console.log(row,'点击关单--ss')
+      MessageBox.confirm('确认关单,包括委外申请单及委外验收单?', {
+        confirmButtonText: '确认',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+          var obj = {
+              "name": "updateBigacceptanceReject",
+              "parammaps": {'reject':"1" , "acceptanceCode":row.acceptanceCode }
+          }
+          PostDataByName(obj).then(res => {
+            const {code} = res;
+            if(code == 200){
+                this.$message({
+                type: 'success',
+                message: '已关单'
+              })
+              this.get_table_data1()
+            }
+
+          })
+
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消关单'
+        })
+      })
+    },
+    save_submit(send_data){
+      ExecDataByConfig(send_data).then(response => {
+        if (response.msg !== 'fail') {
+          this.$notify({ title: '成功', message: '提交成功', type: 'success', duration: 2000 })
+          this.get_table_data1()
+        }
+      })
+    }
+
+  }
+}
+</script>
+<style lang="scss" scoped>
+
+ ::v-deep .is-requied .el-form-item__label::before{
+    content:'*';
+    color:red;
+    margin-right: 4px;
+  }
+  .content{
+    padding: 20px 20px;
+    .title{
+      text-align: center;
+      font-weight: 700;
+    }
+    .title2{
+      float: left;
+      font-weight: 700;
+      padding: 10px 0;
+    }
+  }
+
+</style>

+ 1 - 1
src/views/maintenance/upkeep/index.vue

@@ -480,7 +480,7 @@ export default {
         name: 'getSeviceplanList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           pastureName: '',

+ 1 - 1
src/views/maintenance/vehicleRecords/index.vue

@@ -66,7 +66,7 @@
         listLoading:false,pageNum:0,pageSize:0,total:0,tableKey: 0,
         list:[],
         getdataListParm: {
-          page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: {
             pastureid: parseInt(Cookies.get('pastureid')),
             inputDatetime:[],

+ 3 - 3
src/views/news/news.vue

@@ -75,7 +75,7 @@ export default {
         name: 'getNoMesList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           empId: this.$store.state.user.employeid,
@@ -93,7 +93,7 @@ export default {
         name: 'getAllMesList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           empId: this.$store.state.user.employeid,
@@ -111,7 +111,7 @@ export default {
         name: 'getMesList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           empId: this.$store.state.user.employeid,

+ 1 - 1
src/views/report/completionRateMaintenance/index.vue

@@ -133,7 +133,7 @@ export default {
           name: 'UkdoneRatePasture',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             startTime: '',

+ 2 - 2
src/views/report/consume/index.vue

@@ -210,7 +210,7 @@ export default {
         name: 'getPartConsume',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           Year: parseTime(new Date(), '{y}'),
@@ -237,7 +237,7 @@ export default {
         name: 'getPartConsumedetail',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           Month: '',

+ 68 - 68
src/views/report/energyConsum/index.vue

@@ -8,13 +8,13 @@
       <el-select v-model="tableObj.parammaps.pastureName" placeholder="牧场" style="width: 140px;" class="filter-item" @change="change_pasture1">
         <el-option v-for="item in pastureList" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
-     
-    
+
+
       <el-date-picker v-model="tableObj.parammaps.date" type="monthrange" range-separator="至"
       start-placeholder="开始月份"
       end-placeholder="结束月份" style="width:240px;top:-3px;"  />
 
-      
+
 
       <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
       <div>
@@ -24,7 +24,7 @@
         <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>
         </el-upload>
-         
+
       </div>
     </div>
 
@@ -62,7 +62,7 @@
           <span>{{ scope.row.date }}</span>
         </template>
       </el-table-column>
- 
+
       <el-table-column label="全群饲养头日"  min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.firstday }}</span>
@@ -135,7 +135,7 @@
           <span>{{ scope.row.mccydj  }}</span>
         </template>
       </el-table-column>
-   
+
       <el-table-column label="牧场煤炭单价(元/吨)" min-width="110px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.mcmtdj     }}</span>
@@ -166,13 +166,13 @@
           <span>{{ scope.row.dtnyyl      }}</span>
         </template>
       </el-table-column>
- 
-    
+
+
       </el-table-column>
       <el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width" fixed="right">
         <template slot-scope="{row}">
           <el-button v-if="isElecModify" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
-   
+
           <el-button v-if="isElecModify" size="mini" type="danger" @click="form_delete(row)">删除</el-button>
         </template>
       </el-table-column>
@@ -182,9 +182,9 @@
     <!-- 弹出层新增or修改 -->
     <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false">
       <el-form ref="temp" :rules="rules" :model="temp" label-position="right" label-width="110px">
-        
+
         <el-row>
-           
+
           <el-col :span="8">
 
             <el-form-item label="能源消耗统计(牧场):" prop="pastureId" v-show="dialogStatus==='create'">
@@ -199,7 +199,7 @@
 
 
           </el-col>
-          
+
 
           <el-col :span="8">
             <el-form-item label="录入时间:" prop="date">
@@ -207,20 +207,20 @@
             </el-form-item>
           </el-col>
 
-  
+
 
           <el-col :span="8">
             <el-form-item label="全群饲养头日:" prop="firstday">
               <el-input ref="firstday" v-model="temp.firstday" :disabled="dialogStatus==='see'"  />
             </el-form-item>
           </el-col>
- 
 
-           
+
+
         </el-row>
         <el-row>
-          
-          
+
+
         </el-row>
         <el-row>
           <el-col :span="8">
@@ -330,9 +330,9 @@
               <el-input ref="dtnyyl" v-model="temp.dtnyyl" :disabled="dialogStatus==='see'"  />
             </el-form-item>
           </el-col>
-          
+
         </el-row>
-         
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="dialogStatus==='create'" ref="createb" type="success" :disabled="isokDisable" @click="add_dialog_save_again()">保存并新增</el-button>
@@ -340,8 +340,8 @@
         <el-button @click="dialogFormVisible = false;get_table_data()">取消并关闭</el-button>
       </div>
     </el-dialog>
-    
-   
+
+
   </div>
 </template>
 
@@ -374,8 +374,8 @@ export default {
       list: null,
       total: 0,
       listLoading: true,
- 
-   
+
+
       requestParam: {
         name: 'insertElectricity',
         offset: 0,
@@ -390,10 +390,10 @@ export default {
         name: 'getEnergyList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
-            pastureName: Cookies.get('pasturename'),  date: '',  startdate: '',  enddate: '',  
+            pastureName: Cookies.get('pasturename'),  date: '',  startdate: '',  enddate: '',
         }
       },
       downLoadObj: {
@@ -403,7 +403,7 @@ export default {
         pagecount: 0,
         returntype: 'Map',
         parammaps: {
-            pastureName: Cookies.get('pasturename'),  date: '',  startdate: '',  enddate: '',  
+            pastureName: Cookies.get('pasturename'),  date: '',  startdate: '',  enddate: '',
         }
       },
       downLoadList:[],
@@ -411,8 +411,8 @@ export default {
       useTypes: [{ id: 0, name: '1级表' }, { id: 1, name: '2级表' }, { id: 2, name: '3级表' }],
       getDictByName: [],
       findAllAssetType: [],
-     
- 
+
+
       pastureList: [],
       departList1:[],
       departList2:[],
@@ -434,12 +434,12 @@ export default {
         name: 'getElecList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { }
       },
 
-      temp: { 
+      temp: {
         "pastureName": '',
         "pastureId": '',
         "date": parseTime(new Date(), '{y}-{m}'),
@@ -456,12 +456,12 @@ export default {
       dialogFormDosageRecord: false,
       totalDosageRecord: 0,
       listDosageRecord: [],
-    
+
       getDosageRecordListParm: {
         name: 'getBiomassList',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: { "departmentId": ""}
       },
@@ -487,10 +487,10 @@ export default {
         //     }
         //   }, 0)
         // }, trigger: 'blur' }],
-      
+
         // startTime: [{ required: true, message: '必填', trigger: 'blur' }]
       },
-    
+
       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
       cellStyle: { padding: 0 + 'px' },
       buttons: [],
@@ -542,11 +542,11 @@ export default {
     },
     get_auto_buttons() {
       // 新增
-      const ElecAdd = 'energyConsum:add' 
+      const ElecAdd = 'energyConsum:add'
       const isElecAdd = checkButtons(this.$store.state.user.buttons, ElecAdd)
       this.isElecAdd = isElecAdd
 
-      const ElecAdd2 = 'energyConsum:moban' 
+      const ElecAdd2 = 'energyConsum:moban'
       const isElecAdd2 = checkButtons(this.$store.state.user.buttons, ElecAdd2)
       this.isElecAdd2 = isElecAdd2
       // 导出
@@ -579,7 +579,7 @@ export default {
         }
       }, 0)
     },
-   
+
     form_export() {
       this.downLoadObj.parammaps = this.tableObj.parammaps
       GetDataByName(this.downLoadObj).then(response => {
@@ -604,7 +604,7 @@ export default {
     },
 
 
-    
+
 
     formatJson(filterVal, jsonData) {
       return jsonData.map(v =>
@@ -643,16 +643,16 @@ export default {
              excel.export_json_to_excel({ header: tHeader, data: data1, filename: '导入报错信息', autoWidth: true, bookType: 'xlsx' })
            })
 
-           
+
         }
       } else {
         this.$notify({ title: '失败', message: '上传失败', type: 'danger', duration: 2000 })
       }
     },
-   
-  
-   
-  
+
+
+
+
     // 1-1: table&搜索
     get_table_data() {
       if(this.tableObj.parammaps.pastureName == '现代牧业'){
@@ -687,7 +687,7 @@ export default {
         this.get_departList2()
       })
     },
-    
+
     change_pasture1(item) {
       this.getDepartParam1.parammaps.pastureId = this.pastureList.find(obj => obj.name == item).id
       this.tableObj.parammaps.departName = ''
@@ -722,12 +722,12 @@ export default {
         this.tableObj.parammaps.startdate =parseTime(this.tableObj.parammaps.date[0], '{y}-{m}')
         this.tableObj.parammaps.enddate =parseTime(this.tableObj.parammaps.date[1], '{y}-{m}')
 
-        
+
       }
       console.log(this.tableObj.parammaps)
 
- 
-    
+
+
       this.get_table_data()
     },
 
@@ -737,12 +737,12 @@ export default {
       this.$set(this.temp, 'inputid', item)
       this.$forceUpdate()
     },
-   
+
     form_reset() {
 
-    
- 
-      this.temp = { 
+
+
+      this.temp = {
         "pastureName": '',
         "pastureId": '',
         "date": parseTime(new Date(), '{y}-{m}'),
@@ -750,20 +750,20 @@ export default {
       }
 
 
-      
+
     },
     form_add() {
       this.form_reset()
       this.dialogStatus = 'create'
       this.dialogFormVisible = true
-       
+
       this.$nextTick(() => {
         this.$refs['temp'].clearValidate()
       })
- 
+
     },
-   
-    
+
+
     add_dialog_save() {
       console.log("this.temp=====>",this.temp)
       this.isokDisable = true
@@ -775,7 +775,7 @@ export default {
 
 
 
-          this.temp.date =   parseTime(this.temp.date, '{y}-{m}') 
+          this.temp.date =   parseTime(this.temp.date, '{y}-{m}')
           var send_data = {
             "common": {  "returnmap": "0"  },
             "data": [
@@ -786,10 +786,10 @@ export default {
             ]
           }
 
-          
-          
+
+
           ExecDataByConfig(send_data).then(response => {
-  
+
             if (response.msg === 'fail') {
               this.$notify({
                 title: '保存失败',
@@ -820,7 +820,7 @@ export default {
       this.$refs['temp'].validate(valid => {
         if (valid) {
 
-          this.temp.date =   parseTime(this.temp.date, '{y}-{m}') 
+          this.temp.date =   parseTime(this.temp.date, '{y}-{m}')
           var send_data = {
             "common": {  "returnmap": "0"  },
             "data": [
@@ -830,7 +830,7 @@ export default {
                 }
             ]
           }
-          
+
           ExecDataByConfig(send_data).then(response => {
             console.log('保存发送参数', this.postDataPramas)
             if (response.msg === 'fail') {
@@ -866,7 +866,7 @@ export default {
     edit_dialog_save() {
       this.$refs['temp'].validate(valid => {
         if (valid) {
-          this.temp.date =   parseTime(this.temp.date, '{y}-{m}') 
+          this.temp.date =   parseTime(this.temp.date, '{y}-{m}')
           var send_data = {
             "common": {  "returnmap": "0"  },
             "data": [
@@ -876,7 +876,7 @@ export default {
                 }
             ]
           }
-          
+
           ExecDataByConfig(send_data).then(response => {
             if (response.msg === 'fail') {
               this.$notify({
@@ -906,7 +906,7 @@ export default {
         type: 'warning'
       })
         .then(() => {
-          
+
           var send_data = {
               "common": {  "returnmap": "0"  },
               "data": [
@@ -933,7 +933,7 @@ export default {
           })
         })
     },
-     
+
     // 导出模板
     handleDownloadTemp() {
       this.requestParam.name = 'pStockDownTemp'
@@ -952,7 +952,7 @@ export default {
               header: tHeader,
               data: data1,
               filename: '模板',
-          
+
               autoWidth: true,
               bookType: 'xlsx'
             })
@@ -960,7 +960,7 @@ export default {
         })
       })
     },
-  
+
 
   }
 }

+ 1 - 1
src/views/report/equipment/index.vue

@@ -495,7 +495,7 @@ export default {
           name: '',
           page: 1,
           offset: 1,
-          pagecount: 10,
+          pagecount: 50,
           returntype: 'Map',
           parammaps: {
             month: '',

+ 2 - 2
src/views/report/equipmentIndex/index.vue

@@ -417,7 +417,7 @@
       </div> -->
 
 
-      
+
 
 
 
@@ -616,7 +616,7 @@ export default {
         dialogFormVisible: false,
         tableKey: 0, listLoading: true, list: null, total: 0,
         getdataListParm: {
-          name: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: { startTime: '', endTime: '', pastureId: '' }
         }
       },

+ 1 - 1
src/views/report/equipmentIndex/index备份.vue

@@ -587,7 +587,7 @@ export default {
         dialogFormVisible: false,
         tableKey: 0, listLoading: true, list: null, total: 0,
         getdataListParm: {
-          name: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: { startTime: '', endTime: '', pastureId: '' }
         }
       },

+ 1 - 1
src/views/report/equipmentIndex/index改好.vue

@@ -614,7 +614,7 @@ export default {
         dialogFormVisible: false,
         tableKey: 0, listLoading: true, list: null, total: 0,
         getdataListParm: {
-          name: '', page: 1, offset: 1, pagecount: 10, returntype: 'Map',
+          name: '', page: 1, offset: 1, pagecount: 50, returntype: 'Map',
           parammaps: { startTime: '', endTime: '', pastureId: '' }
         }
       },

+ 3 - 3
src/views/report/equipmentOperation/index.vue

@@ -122,7 +122,7 @@ export default {
         name: 'getEqRunstatueListPasture',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           praseTime: parseTime(new Date().getTime() - 24 * 60 * 60 * 1000, '{y}-{m}-{d}')
@@ -145,7 +145,7 @@ export default {
         name: 'getEqRunstatueListDept',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           type: 0
@@ -157,7 +157,7 @@ export default {
         name: 'getEqRunstatueListEqclass',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {}
       },

+ 3 - 3
src/views/report/equipmentOverview/index.vue

@@ -230,7 +230,7 @@ export default {
         name: 'getEqRunSurveyListPasture',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           praseTime: parseTime(new Date().getTime() - 24 * 60 * 60 * 1000, '{y}-{m}-{d}'),
@@ -250,7 +250,7 @@ export default {
         name: 'getEqRunSurveyListDept',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           praseTime: parseTime(new Date().getTime() - 24 * 60 * 60 * 1000, '{y}-{m}-{d}'),
@@ -266,7 +266,7 @@ export default {
         name: 'getEqRunSurveyListEqclass',
         page: 1,
         offset: 1,
-        pagecount: 10,
+        pagecount: 50,
         returntype: 'Map',
         parammaps: {
           praseTime: parseTime(new Date().getTime() - 24 * 60 * 60 * 1000, '{y}-{m}-{d}'),

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels