Pārlūkot izejas kodu

临时添加奶源2

Shan9312 1 gadu atpakaļ
vecāks
revīzija
956deea709

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

@@ -1,6 +1,14 @@
 <template>
   <div class="app-container">
     <div class="filter-container">
+      <!-- TODO: -->
+      <el-select v-model="getdataListParm.parammaps.area" placeholder="区域" class="filter-item" style="width: 120px;" @change="changePastureName">
+        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+      <el-select v-model="getdataListParm.parammaps.milk" placeholder="奶源部" class="filter-item" style="width: 120px;" @change="changePastureName">
+        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+
       <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
         <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
@@ -47,6 +55,10 @@
           <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
         </template>
       </el-table-column>
+      <!-- TODO: -->
+      <el-table-column label="区域" align="center" prop="pastureName" />
+      <el-table-column label="奶源部" align="center" prop="eqClassName" />
+
       <el-table-column label="保养单号" min-width="140px" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.upkeepCode }}</span>

+ 10 - 1
src/views/maintenance/maintenancePlan/index.vue

@@ -1,6 +1,14 @@
 <template>
   <div class="app-container">
     <div class="filter-container">
+      <!-- TODO: -->
+      <el-select v-model="getdataListParm.parammaps.area" placeholder="区域" class="filter-item" style="width: 120px;" @change="changePastureName">
+        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+      <el-select v-model="getdataListParm.parammaps.milk" placeholder="奶源部" class="filter-item" style="width: 120px;" @change="changePastureName">
+        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
+      </el-select>
+
       <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
         <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
       </el-select>
@@ -427,7 +435,8 @@ export default {
         var year = temp[0]
         var month = temp[1]
         var d = new Date(year, month, 0)
-        var table = [{ 'label': '序号', 'column_name': 'i' }, { 'label': '牧场', 'column_name': 'pastureName' }, { 'label': '部门', 'column_name': 'deptName' }, { 'label': '设备名称', 'column_name': 'eqName' }, { 'label': '设备内部编号', 'column_name': 'eqCode' }, { 'label': '品牌', 'column_name': 'brand' }]
+        // TODO:
+        var table = [{ 'label': '序号', 'column_name': 'i' }, { 'label': '区域', 'column_name': 'i' }, { 'label': '奶源部', 'column_name': 'i' }, { 'label': '牧场', 'column_name': 'pastureName' }, { 'label': '部门', 'column_name': 'deptName' }, { 'label': '设备名称', 'column_name': 'eqName' }, { 'label': '设备内部编号', 'column_name': 'eqCode' }, { 'label': '品牌', 'column_name': 'brand' }]
         for (let index = 1; index <= d.getDate(); index++) {
           // eslint-disable-next-line no-undef
           index = JSON.stringify(index)

+ 0 - 1196
src/views/maintenance/maintenancePlan/index1.vue

@@ -1,1196 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;" @change="changePastureName">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-date-picker class="filter-item" v-model="getdataListParm.month" type="month" placeholder="选择日期" format="yyyy-MM" value-format="yyyy-MM" :clearable="false" @blur="blurMonth" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" style="width: 200px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" style="width: 140px;" class="filter-item" />
-      <tree-select
-        class="typeSelect"
-        :height="150"
-        :width="250"
-        size="small"
-        clearable
-        :data="parentType"
-        :disabled="disabled"
-        :placeholder="placeholder"
-        style="display:inline-block;"
-        :default-props="defaultProps"
-        :node-key="nodeKey"
-        :checked-keys="defaultCheckedKeys"
-        @popoverHide="popoverHide"
-      />
-      <el-select v-model="getdataListParm.parammaps.departmentId" clearable placeholder="部门" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllDepart" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.statue" placeholder="设备状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in equipmentStatusList" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-    </div>
-    <div class="month" style="height: 50px;">
-      <el-button v-if="isMaintenancePlanCopy" type="primary" icon="el-icon-copy-document" @click="handleCopy">复制</el-button>
-      <el-button v-if="isMaintenancePlanClear" type="danger" icon="el-icon-delete" @click="handleDelate">清空</el-button>
-      <el-button class="filter-item" type="success" icon="el-icon-download"  @click="handleDownload">导出</el-button>
-      <el-upload style="display: inline-block;" :headers="headers" :data="uploadData" :action="uploadExcelUrl" :show-file-list="false" :before-upload="beforeImportExcel" :on-success="handleImportExcelSuccess">
-        <el-button v-if="isMaintenancePlanUpload" v-waves class="filter-item" type="warning" icon="el-icon-download">导入</el-button>
-      </el-upload>
-      <el-button v-waves class="filter-item" type="info" icon="el-icon-download" @click="handleDownloadTemp">模板</el-button>
-    </div>
-    <el-table
-      slot="reference"
-      border
-      :data="list"
-      header-align="center"
-      :row-style="rowStyle"
-      :cell-style="tableCellClassName"
-      @cell-click="handleCellClick"
-      :max-height="myHeight"
-    >
-      <template v-for="(item,index) in tablelist">
-        <el-table-column :key="index" show-overflow-tooltip :prop="item.column_name" :label="item.label" :width="item.width" />
-      </template>
-    </el-table>
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="50%">
-      <div class="content-add">
-        <el-form
-          ref="createTemp"
-          :rules="rules"
-          :model="createTemp"
-          label-position="right"
-          label-width="95px"
-          style="width:90%;margin:0 auto"
-        >
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="保养名称:" prop="upkeepTemplateId">
-                <el-select v-model="createTemp.upkeepTemplateId" filterable placeholder="请选择" @change="changeUpkeep">
-                  <el-option
-                    v-for="item in upkeepTemps"
-                    :key="item.id"
-                    :label="item.name"
-                    :value="item.id"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="保养人:" prop="upkeepEmpId">
-                <el-select v-model="createTemp.upkeepEmpId" filterable placeholder="请选择">
-                  <el-option
-                    v-for="item in findAllEmploye"
-                    :key="item.id"
-                    :label="item.name"
-                    :value="item.id"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer" style="bottom:10px">
-          <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
-          <el-button @click="dialogFormVisible = false;">关闭</el-button>
-        </div>
-      </div>
-    </el-dialog>
-    <!-- 修改计划/删除计划/提前保养 -->
-    <el-dialog :title="textMap[dialogStatusBtn]" :visible.sync="dialogFormVisibleBtn" :close-on-click-modal="false" width="450px;" style="width:45%;margin:0 auto">
-      <div class="content-btn">
-        <el-button class="filter-item" type="primary" @click="handleRevisionPlan">修改计划</el-button>
-        <el-button class="filter-item" type="danger" @click="handleDeletionPlan">删除计划</el-button>
-        <el-button class="filter-item" type="warning" @click="handleAdvanceMaintenance">提前保养</el-button>
-      </div>
-    </el-dialog>
-    <!-- 复制 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisibleCopy" :close-on-click-modal="false" width="50%" style="width:90%;margin:0 auto">
-      <div class="app-copy">
-        <el-form ref="copyTemp" :rules="rules" :model="copyTemp" label-position="right" label-width="110px" style="width: 90%; margin: 0 auto;">
-          <el-row>
-            <el-col :span="12" label="月份:">
-              <el-form-item>
-                <el-select v-model="month" placeholder="月份" multiple style="width:100%">
-                  <el-option v-for="item in months" :key="item.id" :label="item.name" :value="item.name" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <div slot="footer" class="dialog-footer" style="right:30px;position:absolute;bottom:30px">
-          <el-button type="primary" @click="dialogStatus==='copy'?createCopyData():createCopyData()">确认</el-button>
-          <el-button @click="dialogFormVisibleCopy = false">关闭</el-button>
-        </div>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames, transData, GetUpkeepPlan, PostDataByName, failproccess, ExecDataByConfig, checkButtons,GetAccount } from '@/api/common'
-import waves from '@/directive/waves' // waves directive
-import Pagination from '@/components/Pagination'
-import { parseTime, json2excel } from '@/utils/index.js'
-import { MessageBox } from 'element-ui'
-import TreeSelect from '@/components/TreeSelect'
-import Cookies from 'js-cookie'
-import { getToken } from '@/utils/auth'
-export default {
-  name: 'MaintenancePlan',
-  components: { Pagination, TreeSelect },
-  directives: { waves },
-  data() {
-    return {
-      // ----------------------------------------------------
-      myHeight:document.documentElement.clientHeight - 85- 250,
-      equipmentStatusList: [{ id: 1, name: '正常设备' }, { id: 2, name: '非正常设备' }, { id: '', name: '全部' }],
-      visible: false,
-      findAllPasture: [],
-      findAllDepart: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }}
-      ],
-      getDepartParam: {
-        name: 'findAllDepart', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }
-      },
-      disabled: false,
-      parentType: [],
-      placeholder: '设备类别',
-      getParmType: {
-        name: 'geteqclasslist'
-      },
-      defaultProps: {
-        children: 'children',
-        label: 'typeName'
-      },
-      nodeKey: 'id',
-      defaultCheckedKeys: [],
-      dataform: {
-        id: '',
-        name: '',
-        selectType: [],
-        sort: '',
-        enable: '',
-        typeCode: ''
-      },
-      UpdateDataRelationParam: {
-        name: '',
-        dataname: '',
-        datavalue: '',
-        valuename: '',
-        values: ''
-      },
-      rowStyle: { maxHeight: 30 + 'px', height: 25 + 'px' },
-      total: 0,
-      tableKey: 0,
-      listLoading: true,
-      list: [],
-      listTest: {},
-      updateValue: {},
-      tablelist: [],
-      getdataListParm: {
-        name: 'geteqList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          pastureName: Cookies.get('pasturename'),
-          eqCode: '',
-          eqName: '',
-          typeCode: '',
-          partName: '',
-          statue: 1
-        },
-        month: parseTime(new Date(), '{y}-{m}')
-      },
-      getdataListParmSH: {
-        name: 'geteqList',
-        page: 0,
-        offset: 0,
-        pagecount: 0,
-        returntype: 'Map',
-        parammaps: {
-          pastureName: Cookies.get('pasturename'),
-          eqCode: '',
-          eqName: '',
-          typeCode: '',
-          partName: '',
-          statue: 1
-        },
-        month: parseTime(new Date(), '{y}-{m}')
-      },
-      dialogStatus: '',
-      dialogFormVisible: false,
-      dialogStatusBtn: '',
-      dialogFormVisibleBtn: false,
-      isokDisable: false,
-      rules: {
-        upkeepTemplateId: [{ required: true, message: '必填', trigger: 'blur' }],
-        upkeepEmpId: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      textMap: {
-        create: '添加保养计划',
-        update: '修改保养计划',
-        copy: '复制'
-      },
-      listAdd: [],
-      createTemp: {
-        upkeepTemplateId: '',
-        upkeepEmpId: ''
-      },
-      postDataPramas: {},
-      requestParam: {},
-      getParmUpemplateByeq: {
-        name: 'getUpemplateByeq',
-        parammaps: {}
-      },
-      getParmUpdatePlan: {
-        name: 'getseviceplanbyid',
-        parammaps: {}
-      },
-      upkeepTemps: [],
-      findAllEmploye: [],
-      dialogFormVisibleCopy: false,
-      months: [],
-      copyTemp: {},
-      month: [],
-      downLoadParm: {},
-      downLoadList: [],
-      buttons: [],
-      isMaintenancePlanCopy: [], isMaintenancePlanUpload: [], isMaintenancePlanClear: [], isMaintenancePlanAdd: [], isMaintenancePlanUpdate: []
-    }
-  },
-  computed: {
-    // 设置请求头
-    headers() {
-      return {
-        // 设置token
-        // eslint-disable-next-line no-undef
-        token: getToken()
-      }
-    },
-    uploadData() {
-      return {
-        name: 'uploadSevicplan',
-        importParams: '月份,部门名称,编码,资产名称,牧场,保养人,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31',
-        sheetname: 'SheetJS'
-      }
-    },
-    // 设置上传地址
-    uploadExcelUrl() {
-      // process.env.VUE_APP_BASE_API是服务器的路径,也是axios的基本路径
-      return process.env.VUE_APP_BASE_API + 'authdata/ImportExcel'
-    }
-  },
-  created() {
-    if (this.$route.query.myPath !== undefined && this.$route.query.myPath == 'CompletionRateMaintenance') {
-      if (this.$route.query.pastureName !== undefined && this.$route.query.eqCode !== undefined) {
-        this.getdataListParm.parammaps.pastureName = this.$route.query.pastureName
-        this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-        this.$forceUpdate()
-      } else {
-        this.getdataListParm.parammaps.pastureName = Cookies.get('pasturename')
-        this.getdataListParm.parammaps.eqCode = ''
-      }
-      this.get_table_data()
-    } else {
-      if (this.$route.query.pastureName !== undefined && this.$route.query.eqCode !== undefined) {
-        this.getdataListParm.parammaps.pastureName = this.$route.query.pastureName
-        this.getdataListParm.parammaps.eqCode = this.$route.query.eqCode
-      } else {
-        this.getdataListParm.parammaps.pastureName = Cookies.get('pasturename')
-        this.getdataListParm.parammaps.eqCode = ''
-      }
-      this.get_table_data()
-    }
-    this.getTypeList()
-    this.get_select_list()
-    this.getMonths()
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-    // 新增
-  },
-  methods: {
-    get_auto_buttons() {
-      // 复制
-      const MaintenancePlanCopy = 'maintenance:maintenancePlan:copy'
-      const isMaintenancePlanCopy = checkButtons(this.$store.state.user.buttons, MaintenancePlanCopy)
-      this.isMaintenancePlanCopy = isMaintenancePlanCopy
-      // 导入
-      const MaintenancePlanUpload = 'maintenance:maintenancePlan:upload'
-      const isMaintenancePlanUpload = checkButtons(this.$store.state.user.buttons, MaintenancePlanUpload)
-      this.isMaintenancePlanUpload = isMaintenancePlanUpload
-      // 清空
-      const MaintenancePlanClear = 'maintenance:maintenancePlan:clear'
-      const isMaintenancePlanClear = checkButtons(this.$store.state.user.buttons, MaintenancePlanClear)
-      this.isMaintenancePlanClear = isMaintenancePlanClear
-      // 新增
-      const MaintenancePlanAdd = 'maintenance:maintenancePlan:add'
-      const isMaintenancePlanAdd = checkButtons(this.$store.state.user.buttons, MaintenancePlanAdd)
-      this.isMaintenancePlanAdd = isMaintenancePlanAdd
-      // 编辑
-      const MaintenancePlanUpdate = 'maintenance:maintenancePlan:update'
-      const isMaintenancePlanUpdate = checkButtons(this.$store.state.user.buttons, MaintenancePlanUpdate)
-      this.isMaintenancePlanUpdate = isMaintenancePlanUpdate
-    },
-    popoverHide(checkedIds, checkedData) {
-      console.log('选中值', checkedIds, checkedData)
-      if (checkedData == null) {
-        this.dataform.eqClassId = checkedIds
-        this.dataform.typeCode = ''
-      } else {
-        this.dataform.eqClassId = checkedIds
-        this.dataform.typeCode = checkedData.typeCode
-      }
-    },
-    getTypeList() {
-      GetDataByName(this.getParmType).then(response => {
-        if (response.data.list !== null) {
-          this.parentType = transData(response.data.list, 'id', 'pid', 'children')
-        }
-      })
-    },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-        this.getDepartDownList()
-      })
-    },
-    getDepartDownList() {
-      GetDataByName(this.getDepartParam).then(response => {
-        this.findAllDepart = response.data.list
-      })
-    },
-    changePastureName(item) {
-      this.getDepartParam.parammaps.pastureId = this.findAllPasture.find(obj => obj.name == item).id
-      this.getdataListParm.parammaps.departmentId = ''
-      this.getDepartDownList()
-    },
-    get_table_data() {
-      this.listLoading = true
-      // this.getdataListParm.month = parseTime(new Date(), '{y}-{m}') // 更改为请求的月份
-      // this.getdataListParm.month = '2020-03' // 更改为请求的月份
-      GetUpkeepPlan(this.getdataListParm).then(response => {
-        console.log('table数据', response.data.list)
-        this.list = response.data.list
-        this.pageNum = response.data.pageNum
-        this.pageSize = response.data.pageSize
-        if (response.data.total) {
-          this.total = response.data.total
-        }
-        var temp = this.getdataListParm.month.split('-')
-        var year = temp[0]
-        var month = temp[1]
-        var d = new Date(year, month, 0)
-        var table = [{ 'label': '序号', 'column_name': 'i' }, { 'label': '牧场', 'column_name': 'pastureName' }, { 'label': '部门', 'column_name': 'deptName' }, { 'label': '设备名称', 'column_name': 'eqName' }, { 'label': '设备内部编号', 'column_name': 'eqCode' }, { 'label': '品牌', 'column_name': 'brand' }]
-        for (let index = 1; index <= d.getDate(); index++) {
-          // eslint-disable-next-line no-undef
-          index = JSON.stringify(index)
-          var m = { 'label': index, 'column_name': 'm' + index, 'width': '40' }
-          table.push(m)
-        }
-        var operation = { 'label': '操作', 'column_name': 'operation', 'width': '100' }
-        table.push(operation)
-        this.tablelist = table
-        for (var i = 0; i < this.list.length; i++) {
-          this.list[i].i = i + 1
-          if (this.isMaintenancePlanClear !== false) {
-            this.list[i].operation = <el-button type='danger' size='mini' style='width:60px;' ref='clear' id='clear' class-name='small-padding fixed-width' fixed='right'>清空</el-button>
-          }
-          // this.list[i].operation = '操作'
-          for (const key in this.list[i]) {
-            // console.log(key + '---' + this.list[i][key])
-            // this.list[i][key] = (this.list[i][key]).split('#')[0]
-            var reg = /^(?![^a-zA-Z]+$)(?!\D+$)/
-            // console.log(reg.test(key))
-            // console.log((this.list[i][key]))
-            if (reg.test(key)) {
-              // console.log(reg.test(key))
-              var a = JSON.stringify(i)
-              if (this.list[i][key] !== undefined) {
-                if ((this.list[i][key]).split('#')[0] == undefined) {
-                  this.listTest[key + a] = this.list[i][key]
-                  this.list[i][key] = ''
-                } else {
-                  this.listTest[key + a] = this.list[i][key]
-                  this.list[i][key] = (this.list[i][key]).split('#')[0]
-                }
-              }
-            }
-          }
-        }
-        console.log('table数据', this.list)
-        console.log('表头数据', this.tablelist)
-        this.$forceUpdate()
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    blurMonth() {
-      this.listLoading = true
-      if (this.dataform.eqClassId == null) {
-        this.getdataListParm.parammaps.typeCode = ''
-      } else {
-        this.getdataListParm.parammaps.typeCode = this.dataform.typeCode
-      }
-      this.get_table_data()
-    },
-    form_search() {
-      this.listLoading = true
-      if (this.dataform.eqClassId == null) {
-        this.getdataListParm.parammaps.typeCode = ''
-      } else {
-        this.getdataListParm.parammaps.typeCode = this.dataform.typeCode
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-    },
-    tableCellClassName({ row, column, rowIndex, columnIndex }) {
-      row.index = rowIndex
-      column.index = columnIndex
-      var rowStr = JSON.stringify(rowIndex)
-
-      // console.log(this.listTest)
-
-
-      console.log(row, column, rowIndex, columnIndex )
-      var test = this.listTest[this.tablelist[column.index].column_name + rowStr]
-
-      if (test !== undefined) {
-        if (test.split('#')[2] !== undefined) {
-          var colorTest = test.split('#')[2] // 0,1,2
-          var colorTest2 = test.split('#')[4] // 0,1,2
-
-          if(rowIndex == 1){
-
-            if(this.tablelist[column.index].column_name == 'm31'){
-              console.log('test',test)
-             console.log('rowIndex',rowIndex,'colorTest',  colorTest )
-             console.log('rowIndex',rowIndex,'colorTest2',  colorTest2 )
-            }
-
-          }
-
-
-          let cellStyle
-          if (parseFloat(colorTest2) !== 0) {
-            cellStyle = 'background: #E6A23C;color:#fff;width:48px'
-          } else {
-            switch (colorTest) {
-              case '0':
-                cellStyle = 'background: #4169E1;color:#fff;width:48px'
-                break
-              case '1':
-                cellStyle = 'background: #00FF00;color:#fff'
-                break
-              case '2':
-                cellStyle = 'background: red;color:#fff'
-                break
-              default:
-                cellStyle = 'background: #4169E1;color:#fff'
-            }
-          }
-          if (columnIndex >= 6 && row[this.tablelist[column.index].column_name] == test.split('#')[0]) {
-            return cellStyle
-          }
-        } else {
-          const cellStyle = 'background: #4169E1;color:#fff'
-          if (columnIndex >= 6 && row[this.tablelist[column.index].column_name] == test.split('#')[0]) {
-            return cellStyle
-          }
-        }
-      }
-    },
-    resetCreateTemp() {
-      this.createTemp.upkeepTemplateId = ''
-      this.listAdd = []
-    },
-    handleCellClick(row, column, rowIndex, columnIndex) {
-      // console.log(this.getdataListParm.month)
-      // console.log(parseTime(new Date(), '{y}-{m}-{d}'))
-      var day
-      if (this.tablelist[column.index].label < 10) {
-        day = '0' + this.tablelist[column.index].label
-      } else {
-        day = this.tablelist[column.index].label
-      }
-      if (this.getdataListParm.month + '-' + day > parseTime(new Date(), '{y}-{m}-{d}')) {
-        this.getParmUpemplateByeq.parammaps.assetCode = row.assetCode
-        this.getUpemplateByeq()
-        // console.log('row', row)
-        // console.log('table数据', this.list)
-        // console.log('行索引', rowIndex)
-        // console.log('lie索引', columnIndex)
-        // console.log('引', column.index)
-        if (column.index > 5) {
-          // console.log('row--行', row)
-          // console.log('--列索引', column.index)
-          // console.log('--行索引', row.index)
-          console.log('--表头', this.tablelist[column.index])
-          console.log('row[this.tablelist[column.index].column_name]', row[this.tablelist[column.index].column_name])
-          // console.log('row[this.tablelist[column.index].column_name].elm', row[this.tablelist[column.index].column_name].elm)
-          if (column.index >= 6 && row[this.tablelist[column.index].column_name] !== undefined) {
-            console.log(row[this.tablelist[column.index].column_name].elm)
-            if (row[this.tablelist[column.index].column_name].elm == undefined) {
-              // console.log(row[this.tablelist[column.index].column_name])
-              // console.log(row[this.tablelist[column.index].column_name])
-              var rowStr = JSON.stringify(row.index)
-              // console.log(this.tablelist[column.index].column_name + rowStr)
-              // 要分割值
-              this.updateValue = this.listTest[this.tablelist[column.index].column_name + rowStr]
-              console.log('要分割值', this.updateValue)
-              console.log('--年月', this.getdataListParm.month)
-              console.log(this.updateValue.split('#')[4])
-              if (this.updateValue.split('#')[4] == 0) {
-                console.log(this.isMaintenancePlanAdd, this.isMaintenancePlanUpdate)
-                if (this.isMaintenancePlanUpdate == true) {
-                  this.dialogFormVisibleBtn = true
-                }
-              }
-              this.createTemp.pastureId = row.pastureId
-              this.createTemp.deptId = row.deptId
-              this.createTemp.eqName = row.eqName
-              this.createTemp.eqCode = row.eqCode
-              this.createTemp.eqId = row.id
-              this.createTemp.eqClassId = row.eqClassId
-              this.createTemp.bigupkeeptemplateId = row.upkeepTemplateId
-              this.createTemp.month = this.getdataListParm.month
-              this.createTemp.upkeepType = row.upkeepType
-              this.createTemp.upkeepCycel = row.upkeepCycel
-              this.createTemp.upkeepName = row.upkeepName
-              this.createTemp.id = this.updateValue.split('#')[1]
-              this.createTemp.upkeepEmpId = row.upkeepEmpId
-              this.createTemp.day = this.tablelist[column.index].label
-              console.log('---------------------', row)
-            } else {
-              MessageBox.confirm('是否清空本设备本月保养计划?', {
-                confirmButtonText: '确认',
-                cancelButtonText: '取消',
-                type: 'warning'
-              }).then(() => {
-                this.requestParam.name = 'ClearoneSevicplan'
-                this.requestParam.parammaps = {}
-                this.requestParam.parammaps.id = row.id
-                this.requestParam.parammaps.monthIN = this.getdataListParm.month
-                PostDataByName(this.requestParam).then(() => {
-                  this.get_table_data()
-                  this.dialogFormVisible = false
-                  this.$notify({ title: '成功', message: '清空成功', type: 'success', duration: 2000 })
-                })
-              }).catch(() => {
-                this.$message({ type: 'info', message: '已取消清空' })
-              })
-            }
-          } else {
-            console.log('--年月', this.getdataListParm.month)
-            console.log('--日', this.tablelist[column.index].label)
-            this.resetCreateTemp()
-            this.createTemp.pastureId = row.pastureId
-            this.createTemp.deptId = row.deptId
-            this.createTemp.eqName = row.eqName
-            this.createTemp.eqCode = row.eqCode
-            this.createTemp.eqId = row.id
-            this.createTemp.eqClassId = row.eqClassId
-            this.createTemp.month = this.getdataListParm.month
-            this.createTemp.day = this.tablelist[column.index].label
-            this.dialogStatus = 'create'
-            console.log(this.isMaintenancePlanAdd, this.isMaintenancePlanUpdate)
-            if (this.isMaintenancePlanAdd == true) {
-              this.dialogFormVisible = true
-            }
-          }
-        }
-      } else {
-        console.log('点击后期跳转', row, column, rowIndex, columnIndex)
-        var str = 'm' + column.label
-        console.log(str, 'str')
-        console.log(row.str, 'row.str')
-        console.log(row['m' + column.label], '====')
-        if (row['m' + column.label] !== undefined && row['m' + column.label] !== '') {
-          var time = this.getdataListParm.month + '-' + day
-          if (Cookies.get('pasturename') == '现代牧业') {
-            this.$router.push({ path: '/maintenance/maintain', query: { myPath: 'MaintenancePlan', eqCode: row.eqCode, time: time }})
-          } else {
-            if (row.pastureName == Cookies.get('pasturename')) {
-              this.$router.push({ path: '/maintenance/maintain', query: { myPath: 'MaintenancePlan', eqCode: row.eqCode, time: time }})
-            } else {
-              this.$message({ type: 'error', message: '请联系管理员开通相关牧场数据权限' })
-            }
-          }
-        }
-      }
-    },
-    getUpemplateByeq() {
-      GetDataByName(this.getParmUpemplateByeq).then(response => {
-        if (response.data.list !== null) {
-          this.upkeepTemps = response.data.list
-          for (var i = 0; i < this.upkeepTemps.length; i++) {
-            this.upkeepTemps[i].name = this.upkeepTemps[i].upkeepName + '|' + this.upkeepTemps[i].upkeepType + '|' + this.upkeepTemps[i].upkeepLevel
-          }
-        }
-      })
-    },
-    changeUpkeep(item) {
-      console.log('保养名称', item)
-      console.log(this.upkeepTemps.find(obj => obj.id === item))
-      this.createTemp.upkeepTemplateId = item
-      this.createTemp.upkeepType = this.upkeepTemps.find(obj => obj.id === item).upkeepType
-      this.createTemp.upkeepCycel = this.upkeepTemps.find(obj => obj.id === item).upkeepCycel
-      this.createTemp.upkeepName = this.upkeepTemps.find(obj => obj.id === item).upkeepName
-    },
-    add_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      for (var i = parseInt(this.createTemp.day); i < this.tablelist.length - 5; i += this.createTemp.upkeepCycel) {
-        // this.listAdd.push()
-        var listObj = {}
-        listObj.pastureId = this.createTemp.pastureId
-        listObj.deptId = this.createTemp.deptId
-        listObj.eqName = this.createTemp.eqName
-        listObj.eqCode = this.createTemp.eqCode
-        listObj.eqId = this.createTemp.eqId
-        listObj.eqClassId = this.createTemp.eqClassId
-        listObj.upkeepPerson = this.createTemp.upkeepEmpId
-        listObj.bigupkeeptemplateId = this.createTemp.upkeepTemplateId
-        var b = i
-        if (b < 10) {
-          listObj.plantime = this.createTemp.month + '-' + '0' + b
-        } else {
-          listObj.plantime = this.createTemp.month + '-' + b
-        }
-        this.listAdd.push(listObj)
-      }
-      console.log('this.listAdd', this.listAdd)
-      this.$refs['createTemp'].validate(valid => {
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'insertseviceplan', 'type': 'e', 'parammaps': {
-          pastureId: this.createTemp.pastureId,
-          deptId: this.createTemp.deptId,
-          eqName: this.createTemp.eqName,
-          eqCode: this.createTemp.eqCode,
-          eqId: this.createTemp.eqId,
-          eqClassId: this.createTemp.eqClassId,
-          upkeepTemplateId: this.createTemp.upkeepTemplateId,
-          upkeepType: this.createTemp.upkeepType,
-          upkeepCycel: this.createTemp.upkeepCycel,
-          upkeepName: this.createTemp.upkeepName,
-          month: this.createTemp.month,
-          day: this.createTemp.day,
-          upkeepEmpId: this.createTemp.upkeepEmpId
-        }}
-        // eslint-disable-next-line no-irregular-whitespace
-        this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-        this.postDataPramas.data[1].children = []
-        this.postDataPramas.data[1].children[0] = { 'name': 'insertBigupKeep', 'type': 'e', 'parammaps': {
-          seviceplanId: '@insertseviceplan.LastInsertId',
-          pastureId: '@insertSpotList.pastureId',
-          deptId: '@insertSpotList.deptId',
-          eqName: '@insertSpotList.eqName',
-          eqCode: '@insertSpotList.eqCode',
-          eqId: '@insertSpotList.eqId',
-          eqClassId: '@insertSpotList.eqClassId',
-          bigupkeeptemplateId: '@insertSpotList.bigupkeeptemplateId',
-          plantime: '@insertSpotList.plantime',
-          upkeepPerson: '@insertSpotList.upkeepPerson'
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          console.log('新增保存发送参数', this.postDataPramas)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            this.dialogFormVisible = false
-            this.getdataListParm.parammaps.inputDatetime = ''
-            this.get_table_data()
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-      })
-    },
-    handleRevisionPlan() {
-      console.log('点击了修改计划', this.updateValue)
-      console.log('年月', this.getdataListParm.month)
-      this.dialogFormVisibleBtn = false
-      this.dialogStatus = 'update'
-      this.dialogFormVisible = true
-      this.getUpdatePlan()
-    },
-    getUpdatePlan() {
-      this.getParmUpdatePlan.parammaps.id = (this.updateValue).split('#')[1]
-      GetDataByName(this.getParmUpdatePlan).then(response => {
-        if (response.data.list !== null) {
-          console.log(response.data.list[0])
-          this.createTemp.id = response.data.list[0].id
-          this.createTemp.upkeepCycel = response.data.list[0].upkeepCycel
-          this.createTemp.upkeepEmpId = response.data.list[0].upkeepEmpId
-          this.createTemp.upkeepName = response.data.list[0].upkeepName
-          this.createTemp.upkeepTemplateId = response.data.list[0].upkeepTemplateId
-          this.createTemp.upkeepType = response.data.list[0].upkeepType
-        }
-      })
-    },
-    edit_dialog_save() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      // for (var i = parseInt(this.createTemp.upkeepCycel); i < this.tablelist.length - 5; i += this.createTemp.upkeepCycel) {
-      //   // this.listAdd.push()
-      //   var listObj = {}
-      //   listObj.pastureId = this.createTemp.pastureId
-      //   listObj.deptId = this.createTemp.deptId
-      //   listObj.eqName = this.createTemp.eqName
-      //   listObj.eqCode = this.createTemp.eqCode
-      //   listObj.eqId = this.createTemp.eqId
-      //   listObj.eqClassId = this.createTemp.eqClassId
-      //   listObj.upkeepPerson = this.createTemp.upkeepEmpId
-      //   listObj.bigupkeeptemplateId = this.createTemp.upkeepTemplateId
-      //   var b = i
-      //   if (b < 10) {
-      //     listObj.plantime = this.createTemp.month + '-' + '0' + b
-      //   } else {
-      //     listObj.plantime = this.createTemp.month + '-' + b
-      //   }
-      //   this.listAdd.push(listObj)
-      // }
-      console.log('this.listAdd', this.listAdd)
-      this.$refs['createTemp'].validate(valid => {
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'updateseviceplanId', 'type': 'e', 'parammaps': {
-          id: (this.updateValue).split('#')[3]
-        }}
-        this.postDataPramas.data[1] = { 'name': 'insertseviceplan', 'type': 'e', 'parammaps': {
-          pastureId: this.createTemp.pastureId,
-          deptId: this.createTemp.deptId,
-          eqName: this.createTemp.eqName,
-          eqCode: this.createTemp.eqCode,
-          eqId: this.createTemp.eqId,
-          eqClassId: this.createTemp.eqClassId,
-          upkeepTemplateId: this.createTemp.upkeepTemplateId,
-          upkeepType: this.createTemp.upkeepType,
-          upkeepCycel: this.createTemp.upkeepCycel,
-          upkeepName: this.createTemp.upkeepName,
-          month: this.createTemp.month,
-          day: this.createTemp.day,
-          upkeepEmpId: this.createTemp.upkeepEmpId
-        }}
-        this.postDataPramas.data[2] = { 'name': 'updateBigUpkeep', 'type': 'e', 'parammaps': {
-          id: (this.updateValue).split('#')[3],
-          bigupkeeptemplateId: this.createTemp.upkeepTemplateId,
-          seviceplanId:	'@insertseviceplan.LastInsertId',
-          upkeepPerson:	this.createTemp.upkeepEmpId
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          console.log('新增保存发送参数', this.postDataPramas)
-          if (response.msg === 'fail') {
-            this.$notify({
-              title: '保存失败',
-              message: response.data,
-              type: 'warning',
-              duration: 2000
-            })
-          } else {
-            this.dialogFormVisible = false
-            this.getdataListParm.parammaps.inputDatetime = ''
-            this.get_table_data()
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-      })
-    },
-    handleDeletionPlan() {
-      console.log('点击了删除计划')
-      this.dialogFormVisibleBtn = false
-      MessageBox.confirm('是否删除本天保养计划?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'deleteBigUpkeep'
-        this.requestParam.parammaps = {}
-        console.log('要分割值', this.updateValue)
-        this.requestParam.parammaps.id = (this.updateValue).split('#')[3]
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.dialogFormVisible = false
-          this.$notify({
-            title: '成功',
-            message: '删除成功',
-            type: 'success',
-            duration: 2000
-          })
-        })
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消删除'
-        })
-      })
-    },
-    // 提前保养
-    handleAdvanceMaintenance() {
-      console.log('点击了提前保养', this.updateValue)
-      MessageBox.confirm('是否确认提前一天保养本设备?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'advanceBigupkeep', 'type': 'e', 'parammaps': {
-          id: this.updateValue.split('#')[3]
-        }}
-        this.postDataPramas.data[1] = { 'name': 'updateadvanceupkeep', 'type': 'e', 'parammaps': {
-          id: this.updateValue.split('#')[3],
-          advanceId: '@advanceBigupkeep.LastInsertId'
-        }}
-        this.postDataPramas.data[2] = { 'name': 'advanceBupUt', 'type': 'e', 'parammaps': {
-          bigupkeeptemplateId: this.updateValue.split('#')[1],
-          id: '@advanceBigupkeep.LastInsertId'
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          console.log('提前保养发送参数', this.postDataPramas)
-          if (response.msg === 'fail') {
-            // key 'pastureId'
-            var pmonth = new RegExp("key 'pastureId'")
-            if (pmonth.test(response.data)) {
-              this.$notify({
-                title: '',
-                message: '前一天已有保养计划,不可重复添加',
-                type: 'warning',
-                duration: 2000
-              })
-            } else {
-              this.$notify({
-                title: '保存失败',
-                message: '参数错误',
-                type: 'warning',
-                duration: 2000
-              })
-            }
-          } else {
-            this.dialogFormVisibleBtn = false
-            this.getdataListParm.parammaps.inputDatetime = ''
-            this.get_table_data()
-            this.$notify({
-              title: '',
-              message: '保存成功',
-              type: 'success',
-              duration: 2000
-            })
-          }
-        })
-      })
-    },
-    getMonths() {
-      var data = new Date()
-      data.setMonth(data.getMonth(), 1) // 获取到当前月份,设置月份
-      for (var i = 0; i < 12; i++) {
-        data.setMonth(data.getMonth() + 1) // 每次循环一次 月份值减1
-        var m = data.getMonth() + 1
-        m = m < 10 ? '0' + m : m
-        var monthObj = {}
-        monthObj.id = i
-        monthObj.name = data.getFullYear() + '-' + m
-
-        this.months.push(monthObj)
-      }
-      console.log(this.months, '---------------')
-    },
-    handleCopy() {
-      this.dialogStatus = 'copy'
-      this.dialogFormVisibleCopy = true
-    },
-    createCopyData() {
-      console.log(this.month)
-      if (this.month.length === 0) {
-        this.$message({
-          message: '请选择设备',
-          type: 'warning',
-          duration: 2000
-        })
-      } else {
-        var selectMonth = []
-        for (var i = 0; i < this.month.length; i++) {
-          var checkedIdsObj = {}
-          checkedIdsObj['NewmonthIN'] = this.month[i]
-          selectMonth.push(checkedIdsObj)
-        }
-        console.log('处理选中值', selectMonth)
-        this.dialogStatusCopy = 'copy'
-        this.dialogFormVisibleCopy = true
-        this.postDataPramas.common = { 'returnmap': '0' }
-        this.postDataPramas.data = []
-        this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': selectMonth }}
-        this.postDataPramas.data[0].children = []
-        this.postDataPramas.data[0].children[0] = { 'name': 'CopySevicplan', 'type': 'e', 'parammaps': {
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          typeCode: this.getdataListParm.parammaps.typeCode,
-          departmentId: this.getdataListParm.parammaps.departmentId,
-          monthIN: this.getdataListParm.month,
-          NewmonthIN: '@insertSpotList.NewmonthIN'
-        }}
-        ExecDataByConfig(this.postDataPramas).then(response => {
-          console.log('复制保存发送参数', this.postDataPramas)
-          if (response.msg !== 'fail') {
-            this.dialogFormVisibleCopy = false
-            this.$notify({
-              title: '成功',
-              message: '复制成功',
-              type: 'success',
-              duration: 2000
-            })
-          } else {
-            failproccess(response, this.$notify)
-          }
-        })
-      }
-    },
-    handleDelate() {
-      MessageBox.confirm('是否清空本月保养计划?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'ClearSevicplan'
-        this.requestParam.parammaps = {}
-        this.requestParam.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
-        this.requestParam.parammaps.eqName = this.getdataListParm.parammaps.eqName
-        this.requestParam.parammaps.eqCode = this.getdataListParm.parammaps.eqCode
-        this.requestParam.parammaps.typeCode = this.getdataListParm.parammaps.typeCode
-        this.requestParam.parammaps.departmentId = this.getdataListParm.parammaps.departmentId
-        this.requestParam.parammaps.monthIN = this.getdataListParm.month
-        PostDataByName(this.requestParam).then(() => {
-          this.get_table_data()
-          this.dialogFormVisible = false
-          this.$notify({
-            title: '成功',
-            message: '清空成功',
-            type: 'success',
-            duration: 2000
-          })
-        })
-      }).catch(() => {
-        this.$message({
-          type: 'info',
-          message: '已取消清空'
-        })
-      })
-    },
-    beforeImportExcel(file) {
-      const isLt2M = file.size / 1024 / 1024 < 10
-      if (!isLt2M) {
-        this.$message.error('上传文件大小不能超过 10MB!')
-      }
-      return isLt2M
-    },
-    handleImportExcelSuccess(res, file) {
-      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 = [
-               '月份', '部门名称', '编码', '资产名称', '牧场', '保养人', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', 'error_msg'
-             ]
-             const filterVal = [
-               '月份', '部门名称', '编码', '资产名称', '牧场', '保养人', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', 'error_msg'
-             ]
-             const data1 = this.formatJson(filterVal, list1)
-             excel.export_json_to_excel({
-               header: tHeader,
-               data: data1,
-               filename: '保养计划',
-               autoWidth: true,
-               bookType: 'xlsx'
-             })
-           })
-        }
-      } 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]
-          }
-        })
-      )
-    },
-    handleDownloadTemp() {
-      this.downLoadParm = {}
-      this.downLoadParm.name = 'getUpkeepeqlist'
-      this.downLoadParm.month = this.getdataListParm.month
-      this.downLoadParm.parammaps = this.getdataListParm.parammaps
-      GetDataByName(this.downLoadParm).then(response => {
-        if (response.data.list !== null) {
-          this.downloadList = response.data.list
-        } else {
-          this.downloadList = []
-        }
-        var temp = this.downLoadParm.month.split('-')
-        var year = temp[0]
-        var month = temp[1]
-        var d = new Date(year, month, 0)
-        var tHeader = ['月份', '部门名称', '编码', '资产名称', '牧场', '保养人']
-        for (let index = 1; index <= d.getDate(); index++) {
-          // eslint-disable-next-line no-undef
-          index = JSON.stringify(index)
-          var m = { 'label': index, 'column_name': 'm' + index, 'width': '40' }
-          // table.push(m)
-          tHeader.push(index)
-        }
-        console.log(tHeader, '====')
-
-        // return
-        const elecExcelDatas = [
-          {
-            tHeader: tHeader,
-            filterVal: ['i', 'name', 'deptName', 'eqName', 'eqCode', 'brandname'],
-            // tableDatas: this.downloadList,
-            tableDatas: [],
-            sheetName: 'SheetJS'
-          }
-        ]
-        json2excel(elecExcelDatas, '保养计划模板', true, 'xlsx')
-      })
-    },
-
-    handleDownload() {
-      this.$alert('保养计划正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
-      this.isPercentage = true
-      this.percentage = 1
-      var timer = setInterval(() => {
-        this.percentage += 5
-        if (this.percentage > 95) {
-          this.percentage = 99
-          clearInterval(timer)
-        }
-        this.percentage = this.percentage
-      }, 1000)
-      this.getdataListParmSH.month = this.getdataListParm.month
-      this.getdataListParmSH.parammaps = this.getdataListParm.parammaps
-      GetUpkeepPlan(this.getdataListParmSH).then(response => {
-        this.downLoadList = response.data.list
-        if (response.data.list !== '') {
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        }
-        console.log('ssssss',this.downLoadList)
-
-        var temp = this.getdataListParmSH.month.split('-')
-        var year = temp[0]
-        var month = temp[1]
-        var d = new Date(year, month, 0)
-        var tHeader = ['月份', '部门名称', '编码', '资产名称', '牧场', '保养人','1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31']
-        this.downLoadList.forEach(row => {
-          row.m1 = (typeof row.m1 ===  'undefined') ? '' : row.m1.substr(0,1)
-          row.m2 = (typeof row.m2 ===  'undefined') ? '' : row.m2.substr(0,1)
-          row.m3 = (typeof row.m3 ===  'undefined') ? '' : row.m3.substr(0,1)
-          row.m4 = (typeof row.m4 ===  'undefined') ? '' : row.m4.substr(0,1)
-          row.m5 = (typeof row.m5 ===  'undefined') ? '' : row.m5.substr(0,1)
-          row.m6 = (typeof row.m6 ===  'undefined') ? '' : row.m6.substr(0,1)
-          row.m7 = (typeof row.m7 ===  'undefined') ? '' : row.m7.substr(0,1)
-          row.m8 = (typeof row.m8 ===  'undefined') ? '' : row.m8.substr(0,1)
-          row.m9 = (typeof row.m9 ===  'undefined') ? '' : row.m9.substr(0,1)
-          row.m10 = (typeof row.m10 ===  'undefined') ? '' : row.m10.substr(0,1)
-          row.m11 = (typeof row.m11 ===  'undefined') ? '' : row.m11.substr(0,1)
-          row.m12 = (typeof row.m12 ===  'undefined') ? '' : row.m12.substr(0,1)
-          row.m13 = (typeof row.m13 ===  'undefined') ? '' : row.m13.substr(0,1)
-          row.m14 = (typeof row.m14 ===  'undefined') ? '' : row.m14.substr(0,1)
-          row.m15 = (typeof row.m15 ===  'undefined') ? '' : row.m15.substr(0,1)
-          row.m16 = (typeof row.m16 ===  'undefined') ? '' : row.m16.substr(0,1)
-          row.m17 = (typeof row.m17 ===  'undefined') ? '' : row.m17.substr(0,1)
-          row.m18 = (typeof row.m18 ===  'undefined') ? '' : row.m18.substr(0,1)
-          row.m19 = (typeof row.m19 ===  'undefined') ? '' : row.m19.substr(0,1)
-          row.m20 = (typeof row.m20 ===  'undefined') ? '' : row.m20.substr(0,1)
-          row.m21 = (typeof row.m21 ===  'undefined') ? '' : row.m21.substr(0,1)
-          row.m22 = (typeof row.m22 ===  'undefined') ? '' : row.m22.substr(0,1)
-          row.m23 = (typeof row.m23 ===  'undefined') ? '' : row.m23.substr(0,1)
-          row.m24 = (typeof row.m24 ===  'undefined') ? '' : row.m24.substr(0,1)
-          row.m25 = (typeof row.m25 ===  'undefined') ? '' : row.m25.substr(0,1)
-          row.m26 = (typeof row.m26 ===  'undefined') ? '' : row.m26.substr(0,1)
-          row.m27 = (typeof row.m27 ===  'undefined') ? '' : row.m27.substr(0,1)
-          row.m28 = (typeof row.m28 ===  'undefined') ? '' : row.m28.substr(0,1)
-          row.m29 = (typeof row.m29 ===  'undefined') ? '' : row.m29.substr(0,1)
-          row.m30 = (typeof row.m30 ===  'undefined') ? '' : row.m30.substr(0,1)
-          row.m31 = (typeof row.m31 ===  'undefined') ? '' : row.m31.substr(0,1)
-        });
-        const elecExcelDatas = [
-          {
-            tHeader: tHeader,
-            filterVal: ['month','deptName','eqCode','eqName','pastureName','employeName','m1','m2','m3','m4','m5','m6','m7','m8','m9','m10','m11','m12','m13','m14','m15','m16','m17','m18','m19','m20','m21','m22','m23','m24','m25','m26','m27','m28','m29','m30','m31'],
-            tableDatas: this.downLoadList,
-            sheetName: 'SheetJS'
-          }
-        ]
-        json2excel(elecExcelDatas, '保养计划', true, 'xlsx')
-      })
-    },
-
-  }
-}
-</script>
-<style lang="scss">
-.el-input--small .el-input__inner{
-  height: 38px !important;
-}
-</style>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 406 - 452
src/views/maintenance/repair/index.vue


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

@@ -1,3255 +0,0 @@
-<template>
-  <div class="app-container">
-    <div class="filter-container">
-      <el-select v-model="getdataListParm.parammaps.pastureName" placeholder="牧场" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
-      </el-select>
-      <el-input v-model="getdataListParm.parammaps.repairCode" placeholder="报修单号" clearable style="width: 130px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqName" placeholder="设备名称" clearable style="width: 130px;" class="filter-item" />
-      <el-input v-model="getdataListParm.parammaps.eqCode" placeholder="设备内部编号" clearable style="width: 130px;" class="filter-item" />
-      <el-select v-model="getdataListParm.parammaps.orderStatue" clearable placeholder="处理状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in orderStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-select v-model="getdataListParm.parammaps.SHStatue" clearable placeholder="审核状态" class="filter-item" style="width: 120px;">
-        <el-option v-for="item in SHStatues" :key="item.id" :label="item.name" :value="item.id" />
-      </el-select>
-      <el-date-picker
-        ref="inputDatetime"
-        v-model="getdataListParm.parammaps.inputDatetime"
-        class="inputDatetime"
-        type="datetimerange"
-        style="width: 250px;top:-3px;"
-        format="yyyy-MM-dd"
-        value-format="yyyy-MM-dd"
-        range-separator="至"
-        start-placeholder="开始日期"
-        end-placeholder="结束日期"
-      />
-      <el-button class="filter-item" type="primary" icon="el-icon-search" @click="form_search">搜索</el-button>
-      <div>
-        <el-button v-if="isRepair" class="filter-item" type="primary" icon="el-icon-edit" @click="form_add">报修</el-button>
-        <!-- 临时注释 -->
-        <el-button v-if="isRepairExport" class="filter-item" type="success" icon="el-icon-download" style="" @click="handleDownload">导出</el-button>
-        <!-- 临时注释 -->
-        <el-radio-group v-model="radioAll" style="margin-top:-9px" @change="changeAll()">
-          <el-radio-button label="全部" />
-          <el-badge :value="pending.total" class="item">
-            <el-radio-button label="待处理" />
-          </el-badge>
-          <el-radio-button label="已处理" />
-        </el-radio-group>
-      </div>
-    </div>
-    <el-table
-      :key="tableKey"
-      v-loading="listLoading"
-      element-loading-text="给我一点时间"
-      :data="list"
-      border
-      fit
-      highlight-current-row
-      style="width: 100%;"
-      :row-style="rowStyle"
-      :cell-style="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 + (pageNum-1) * pageSize + 1 }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="报修单号" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.repairCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="牧场" width="140px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.pastureName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备内部编号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqCode }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="设备名称" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.eqName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="规格型号" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.specification }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.departmentName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="故障情况" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.details }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="报修人" min-width="100px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.requesterName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="报修时间" sortable prop="requestTime" min-width="110px" align="center" />
-      <el-table-column label="维修日期" sortable prop="stopTime" min-width="110px" align="center" />
-      <el-table-column label="维修部门" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.repairDeptName }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="处理状态" min-width="100px" align="center" :formatter="orderStatue" />
-      <el-table-column label="领用单状态" min-width="80px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LYStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="旧品录入状态" min-width="110px" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.LRStatue }}</span>
-        </template>
-      </el-table-column>
-      <el-table-column label="审核状态" min-width="100px" align="center" :formatter="SHStatue" />
-      <el-table-column label="操作" align="center" min-width="400" class-name="small-padding fixed-width" fixed="right">
-        <template slot-scope="{row}">
-          <el-button v-if="isMaintenanceSee" type="primary" size="mini" @click="form_see(row)">查看</el-button>
-          <!-- 维修审核 -->
-          <el-button v-if="(row.SHStatue == 2) && isMaintenanceAudit && row.requesterId == getdataListParm.parammaps.loginId" style="display:inline-block" type="success" size="mini" class="successMaintenanceAudit" @click="handleExamine(row)">维修审核</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" class="successMaintenanceAudit" @click="handleExamine(row)">维修审核</el-button>
-          <!-- 维修审核2 -->
-          <el-button v-if="(row.SHStatue == 3) && isMaintenanceAudit2" style="display:inline-block" type="success" size="mini" class="successMaintenanceAudit" @click="handleExamine2(row)">维修审核2</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" class="successMaintenanceAudit" @click="handleExamine2(row)">主管审核</el-button>
-          <!-- 派单 -->
-          <el-button v-if="(row.orderStatue == 0) && isDistributeLeaflets" style="display:inline-block" type="success" size="mini" @click="handleDistributeLeaflets(row)">派单</el-button>
-          <el-button v-else-if="(row.orderStatue == 1 ||row.orderStatue == 2 )" style="display:none" type="success" size="mini" @click="handleDistributeLeaflets(row)">派单</el-button>
-          <!-- 接单 -->
-          <el-button v-if="(row.orderStatue == 0 && isReceipt && (row.pickId == getdataListParm.parammaps.loginId))" style="display:inline-block" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
-          <el-button v-else-if="(row.orderStatue == 1 ||row.orderStatue == 2 )" style="display:none" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
-          <!-- 维修及领用 -->
-          <el-button v-if="(row.orderStatue == 1 && row.SHStatue== 1 || row.SHStatue== 4 || row.SHStatue== 6) && isMaintenanceRequisition && (row.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="handleMaintenanceRequisition(row)">维修及领用</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" class="successRequisition" @click="handleMaintenanceRequisition(row)">维修及领用</el-button>
-          <!-- 完成维修 -->
-          <el-button v-if="(row.orderStatue == 1 && (row.SHStatue == 1 || row.SHStatue== 4 || row.SHStatue== 6)) && isRepairComplete && (row.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" size="mini" class="successMaintenanceAudit" @click="handleRepairComplete(row)">完成维修</el-button>
-          <el-button v-else style="display:none" type="success" size="mini" class="successMaintenanceAudit" @click="handleRepairComplete(row)">完成维修</el-button>
-          <!-- 删除 -->
-          <el-button v-if="((row.orderStatue == 0 && row.SHStatue == 1) && isDelete)" style="display:inline-block" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
-          <el-button v-else style="display:none" type="success" size="danger" @click="form_delete(row)">删除</el-button>
-          <!-- 驳回报修 -->
-          <el-button v-if="(row.orderStatue == 0 && isRejectRepair)" style="display:inline-block;" type="success" class="successMaintenanceAudit" size="mini" @click="handleRejectRepair(row)">报修驳回</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
-    <!-- 分页 -->
-    <pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
-  
-  
-      <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_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;">
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="报修单号:" prop="repairCode">
-                <el-input ref="repairCode" v-model="createTemp.repairCode" disabled />
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="设备名称:" prop="eqName">
-                <el-autocomplete
-                  v-model="createTemp.eqName"
-                  class="inline-input"
-                  :fetch-suggestions="querySearchEqName"
-                  value-key="eqName"
-                  placeholder="设备名称"
-                  style="width:100%"
-                  @select="handleSelectEqName"
-                >
-                  <template slot-scope="{ item }">
-                    <b>名称:</b><span>{{ item.eqName }}</span>&nbsp;
-                    |&nbsp;<b>规格:</b><span>{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="设备内部编号:" prop="eqCode">
-                <el-autocomplete
-                  v-model="createTemp.eqCode"
-                  class="inline-input"
-                  :fetch-suggestions="querySearchCode"
-                  style="width:100%"
-                  value-key="eqCode"
-                  placeholder="设备内部编号"
-                  @select="handleSelectEqCode"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="维修人:" prop="pickId">
-                <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>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="故障情况:" prop="details">
-                <el-input ref="details" v-model="createTemp.details" />
-              </el-form-item>
-               <!-- 这里PC和APP都需要等后端接口出来,是选了设备后带出故障内容。T T -->
-              <!-- <el-form-item label="故障情况:" prop="pickId">
-                <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> -->
-
-
-
-
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="牧场:" prop="pastureName">
-                <el-select v-model="createTemp.pastureId" style="width: 100%;" placeholder="牧场" class="filter-item">
-                  <el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.id" />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="部门:" prop="deptName">
-                <el-input ref="deptName" v-model="createTemp.deptName" disabled />
-              </el-form-item>
-              <!-- <el-form-item label="部门:" prop="departmentId">
-                <el-select v-model="createTemp.departmentId" placeholder="部门" class="filter-item" style="width:100%">
-                  <el-option
-                    v-for="item in findAllDepart"
-                    :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="requesterId">
-                <el-select ref="requesterId" v-model="createTemp.requesterId" placeholder="报修人" class="filter-item" style="width:100%">
-                  <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="requestTime">
-                <el-date-picker
-                  v-model="createTemp.requestTime"
-                  :picker-options="pickerOptions1"
-                  type="datetime"
-                  placeholder="报修日期"
-                  format="yyyy-MM-dd HH:mm"
-                  value-format="yyyy-MM-dd HH:mm"
-                  style="width: 100%;"
-                  disabled
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='create'?add_dialog_save():edit_dialog_save()">保存并关闭</el-button>
-        <el-button @click="dialogFormVisible_Create = false;get_table_data()">关闭</el-button>
-      </div>
-    </el-dialog>
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_See" :close-on-click-modal="false" width="90%">
-      <div class="app-see">
-        <div v-if="orderStatue1" class="see">
-          <el-form ref="seeTemp" :rules="rules" :model="seeTemp" label-position="right" label-width="130px" style="width: 90%;margin:0 auto;">
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="报修单号:" prop="repairCode">
-                  <el-input ref="repairCode" v-model="seeTemp.repairCode" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备名称:" prop="eqName">
-                  <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="设备内部编号:" prop="eqCode">
-                  <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <!-- <el-col :span="8">
-                <el-form-item label="维修组:" prop="repairDeptName">
-                  <el-input ref="repairDeptName" v-model="seeTemp.repairDeptName" disabled />
-                </el-form-item>
-              </el-col> -->
-              <el-col :span="8">
-                <el-form-item label="维修人:" prop="pickName">
-                  <el-input ref="pickName" v-model="seeTemp.pickName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="故障情况:" prop="details">
-                  <el-input ref="details" v-model="seeTemp.details" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="牧场:" prop="pastureName">
-                  <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="部门:" prop="departmentName">
-                  <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="报修人:" prop="requesterName">
-                  <el-input ref="requesterName" v-model="seeTemp.requesterName" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col :span="8">
-                <el-form-item label="报修日期:" prop="requestTime">
-                  <el-input ref="requestTime" v-model="seeTemp.requestTime" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col v-if="seeTemp.orderStatue == 3" :span="8">
-                <el-form-item label="驳回日期:" prop="shutdownDate">
-                  <el-input ref="shutdownDate" v-model="seeTemp.shutdownDate" disabled />
-                </el-form-item>
-              </el-col>
-              <el-col v-if="seeTemp.orderStatue == 3" :span="8">
-                <el-form-item label="驳回原因:" prop="shutdownReason">
-                  <el-input ref="shutdownReason" v-model="seeTemp.shutdownReason" disabled />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-row>
-              <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>{{ item.scores }}</div>
-
-                      </div>
-                    </template>
-                  </el-step>
-                </el-steps>
-              </el-col>
-            </el-row>
-            <el-row>
-              <el-col>
-                <el-form-item label="操作:">
-                  <!-- 维修审核 -->
-                  <el-button v-if="(seeTemp.SHStatue == 2) && isMaintenanceAudit && seeTemp.requesterId == getdataListParm.parammaps.loginId" style="display:inline-block" type="success" @click="handleExamine()">维修审核</el-button>
-                  <el-button v-else style="display:none" type="success" @click="handleExamine()">维修审核</el-button>
-                  <!-- 维修审核2 -->
-                  <el-button v-if="(seeTemp.SHStatue == 3) && isMaintenanceAudit2" style="display:inline-block" type="success" @click="handleExamine2(row)">维修审核2</el-button>
-                  <el-button v-else style="display:none" type="success" @click="handleExamine2()">主管审核</el-button>
-                  <!-- 派单 -->
-                  <el-button v-if="(seeTemp.orderStatue == 0) && isDistributeLeaflets" style="display:inline-block" type="success" @click="handleDistributeLeaflets()">派单</el-button>
-                  <el-button v-else-if="(seeTemp.orderStatue == 1 ||seeTemp.orderStatue == 2 )" style="display:none" type="success" @click="handleDistributeLeaflets()">派单</el-button>
-                  <!-- 接单 -->
-                  <el-button v-if="(seeTemp.orderStatue == 0 && isReceipt && (seeTemp.pickId == getdataListParm.parammaps.loginId))" style="display:inline-block" type="success" @click="handleReceipt()">接单</el-button>
-                  <el-button v-else-if="(seeTemp.orderStatue == 1 ||seeTemp.orderStatue == 2 )" style="display:none" type="success" @click="handleReceipt()">接单</el-button>
-                  <!-- 维修及领用 -->
-                  <el-button v-if="(seeTemp.orderStatue == 1 && seeTemp.SHStatue== 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6) && isMaintenanceRequisition && (seeTemp.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" @click="handleMaintenanceRequisition()">维修及领用</el-button>
-                  <el-button v-else style="display:none" @click="handleMaintenanceRequisition()">维修及领用</el-button>
-                  <!-- 完成维修 -->
-                  <el-button v-if="(seeTemp.orderStatue == 1 && (seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6)) && isRepairComplete && (seeTemp.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" @click="handleRepairComplete()">完成维修</el-button>
-                  <el-button v-else style="display:none" @click="handleRepairComplete()">完成维修</el-button>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </div>
-        <div v-if="orderStatue2" class="see">
-          <el-tabs v-model="activeName">
-            <el-tab-pane label="基础信息" name="first">
-              <el-form ref="seeTemp" :rules="rules" :model="seeTemp" label-position="right" label-width="130px" style="width: 90%;margin:0 auto;">
-                <el-row>
-                  <el-col :span="8">
-                    <h3>报修信息</h3>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="报修单号:" prop="repairCode">
-                      <el-input ref="repairCode" v-model="seeTemp.repairCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备名称:" prop="eqName">
-                      <el-input ref="eqName" v-model="seeTemp.eqName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="设备内部编号:" prop="eqCode">
-                      <el-input ref="eqCode" v-model="seeTemp.eqCode" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <!-- <el-col :span="8">
-                    <el-form-item label="维修组:" prop="repairDeptName">
-                      <el-input ref="repairDeptName" v-model="seeTemp.repairDeptName" disabled />
-                    </el-form-item>
-                  </el-col> -->
-                  <el-col :span="8">
-                    <el-form-item label="维修人:" prop="pickName">
-                      <el-input ref="pickName" v-model="seeTemp.pickName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="故障情况:" prop="details">
-                      <el-input ref="details" v-model="seeTemp.details" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="牧场:" prop="pastureName">
-                      <el-input ref="pastureName" v-model="seeTemp.pastureName" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="部门:" prop="departmentName">
-                      <el-input ref="departmentName" v-model="seeTemp.departmentName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="报修人:" prop="requesterName">
-                      <el-input ref="requesterName" v-model="seeTemp.requesterName" disabled />
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item label="报修日期:" prop="requestTime">
-                      <el-input ref="requestTime" v-model="seeTemp.requestTime" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <h3>维修信息</h3>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="维修日期:" prop="stopTime">
-                      <el-input ref="stopTime" v-model="seeTemp.stopTime" disabled />
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col :span="8">
-                    <h3>故障诊断</h3>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingFault"
-                element-loading-text="给我一点时间"
-                :data="listFault"
-                border
-                fit
-                highlight-current-row
-                style="width: 90%;margin:0 auto"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="故障部位" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="故障详情" prop="appearanceName" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.appearanceName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="故障原因" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.failureCause }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="处理方式" prop="treatmentMethod" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.treatmentMethod }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-              <el-form
-                ref="seeTemp"
-                :rules="rules"
-                :model="seeTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto;"
-              >
-                <el-row>
-                  <el-col>
-                    <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" style="font-size:18px">
-                          <div class="step-row">
-                            <div>{{ item.name }}</div>
-                            <div>{{ item.date }}</div>
-                            <div>{{ item.reason }}</div>
-                            <div>{{ item.scores }}</div>
-                          </div>
-                        </template>
-                      </el-step>
-                    </el-steps>
-                  </el-col>
-                </el-row>
-                <el-row>
-                  <el-col>
-                    <h3 style="display:inline">操作</h3>
-                    <!-- 维修审核 -->
-                    <el-button v-if="(seeTemp.SHStatue == 2) && isMaintenanceAudit && seeTemp.requesterId == getdataListParm.parammaps.loginId" style="display:inline-block" type="success" @click="handleExamine()">维修审核</el-button>
-                    <el-button v-else style="display:none" type="success" @click="handleExamine()">维修审核</el-button>
-                    <!-- 维修审核2 -->
-                    <el-button v-if="(seeTemp.SHStatue == 3) && isMaintenanceAudit2" style="display:inline-block" type="success" @click="handleExamine2(row)">维修审核2</el-button>
-                    <el-button v-else style="display:none" type="success" @click="handleExamine2()">主管审核</el-button>
-                    <!-- 派单 -->
-                    <el-button v-if="(seeTemp.orderStatue == 0) && isDistributeLeaflets" style="display:inline-block" type="success" @click="handleDistributeLeaflets()">派单</el-button>
-                    <el-button v-else-if="(seeTemp.orderStatue == 1 ||seeTemp.orderStatue == 2 )" style="display:none" type="success" @click="handleDistributeLeaflets()">派单</el-button>
-                    <!-- 接单 -->
-                    <el-button v-if="(seeTemp.orderStatue == 0 && isReceipt && (seeTemp.pickId == getdataListParm.parammaps.loginId))" style="display:inline-block" type="success" @click="handleReceipt()">接单</el-button>
-                    <el-button v-else-if="(seeTemp.orderStatue == 1 ||seeTemp.orderStatue == 2 )" style="display:none" type="success" @click="handleReceipt()">接单</el-button>
-                    <!-- 维修及领用 -->
-                    <el-button v-if="(seeTemp.orderStatue == 1 && seeTemp.SHStatue== 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6) && isMaintenanceRequisition && (seeTemp.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" @click="handleMaintenanceRequisition()">维修及领用</el-button>
-                    <el-button v-else style="display:none" type="success" @click="handleMaintenanceRequisition()">维修及领用</el-button>
-                    <!-- 完成维修 -->
-                    <el-button v-if="(seeTemp.orderStatue == 1 && (seeTemp.SHStatue == 1 || seeTemp.SHStatue== 4 || seeTemp.SHStatue== 6)) && isRepairComplete && (seeTemp.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" @click="handleRepairComplete()">完成维修</el-button>
-                    <el-button v-else style="display:none" type="success" @click="handleRepairComplete()">完成维修</el-button>
-                  </el-col>
-                </el-row>
-              </el-form>
-            </el-tab-pane>
-            <el-tab-pane label="领用记录" name="second">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingCollarUse"
-                element-loading-text="给我一点时间"
-                :data="listCollarUse"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @cell-click="openDetails"
-              >
-                <!-- table表格 -->
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="领用单号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.applyCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="领用部门" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.departmentName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="领用日期" sortable prop="createDate" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.createDate }}</span>
-                  </template>
-                </el-table-column>
-                <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="110px" align="center" :formatter="statue" />
-                <el-table-column label="操作" min-width="110px" align="center">
-                  <template slot-scope="{row}">
-                    <el-button type="primary" size="mini" @click="handleCollarUseSee(row,0)">查看</el-button>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-            <el-tab-pane label="旧品录入记录" name="third">
-              <el-table
-                :key="tableKey"
-                v-loading="listLoadingOldProducts"
-                element-loading-text="给我一点时间"
-                :data="listOldProducts"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;"
-                :row-style="rowStyle"
-                :cell-style="cellStyle"
-                class="elTable"
-                @sort-change="tableSort1"
-              >
-                <el-table-column label="序号" align="center" type="index" width="50px">
-                  <template slot-scope="scope">
-                    <span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件编号" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partCode }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件名称" prop="id" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.partName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="备件规格" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.specification }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="录入数量" sortable prop="acturalAmount" min-width="110px" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.acturalAmount }}</span>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </el-tab-pane>
-          </el-tabs>
-        </div>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px;">
-        <el-button @click="dialogFormVisible_See = false">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 派单 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_DistributeLeaflets" :close-on-click-modal="false" width="50%">
-      <div class="distributeLeaflets">
-        <el-form
-          ref="distributeLeafletsTemp"
-          :rules="rules"
-          :model="distributeLeafletsTemp"
-          label-position="right"
-          label-width="120px"
-          style="width: 90%;margin:0 auto;"
-        >
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="维修人:" prop="pickId">
-                <el-select v-model="distributeLeafletsTemp.pickId" filterable placeholder="维修人" 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>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="派单人:" prop="chargeId">
-                <el-select v-model="distributeLeafletsTemp.chargeId" placeholder="派单人" class="filter-item" style="width:100%">
-                  <el-option
-                    v-for="item in findAllEmploye"
-                    :key="item.id"
-                    :label="item.name"
-                    :value="item.id"
-                  />
-                </el-select>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="派单日期:" prop="chargeDate">
-                <el-date-picker
-                  v-model="distributeLeafletsTemp.chargeDate"
-                  :picker-options="pickerOptions1"
-                  type="date"
-                  placeholder="派单日期"
-                  style="width:100%;"
-                  format="yyyy-MM-dd"
-                  value-format="yyyy-MM-dd"
-                />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='distributeLeaflets'?createDistributeLeafletsData():createDistributeLeafletsData()">确认</el-button>
-        <el-button @click="dialogFormVisible_DistributeLeaflets = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 审核 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_MaintenanceAudit" :close-on-click-modal="false" width="30%">
-      <div class="maintenanceAudit">
-        <h3 style="width: 100%;margin:0 0 0 5%;line-height:50px;">请确认维修审核结果:</h3>
-        <el-form ref="examineTemp" :rules="rules" :model="examineTemp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row style="width:90%;margin:0 auto;">
-            <el-col :span="20">
-              <el-form-item>
-                <el-radio-group v-model="examineTemp.statue" @change="changeStatue">
-                  <el-radio :label="3" checked>通过</el-radio>
-                  <el-radio :label="4">不通过</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-row v-if="examineTemp.SHStatue == 2 && examineTemp.statue== 3" style="width:90%;margin:0 auto;">
-            <el-col :span="24">
-              <el-form-item label="评分:" prop="scores">
-                <el-rate v-model="examineTemp.scores" show-text :texts="['1分','2分', '3分', '4分', '5分']" style="width:100%;margin-top:10px;" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='maintenanceAudit'?createExamineData():createExamineData2()">确认</el-button>
-        <el-button @click="dialogFormVisible_MaintenanceAudit = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_RepairComplete" :close-on-click-modal="false" width="50%">
-      <div class="repairComplete">
-        <el-form
-          ref="repairCompleteTemp"
-          :rules="rules"
-          :model="repairCompleteTemp"
-          label-position="right"
-          label-width="120px"
-          style="width: 90%;margin:0 auto;"
-        >
-          <el-row>
-            <el-col :span="20">
-              <el-form-item label="是否录入旧品:" prop="isOldProducts">
-                <el-radio-group v-model="repairCompleteTemp.isOldProducts" @change="changeIsOldProducts">
-                  <el-radio :label="0" checked>否</el-radio>
-                  <el-radio :label="1">是</el-radio>
-                </el-radio-group>
-              </el-form-item>
-            </el-col>
-          </el-row>
-          <el-row v-if="No2">
-            <el-col :span="24">
-              <el-form-item label="旧品录入:" prop="partCode">
-                <el-autocomplete
-                  v-model="repairCompleteTemp.partCode"
-                  value-key="name"
-                  class="inline-input"
-                  :fetch-suggestions="oldProductsSearch"
-                  placeholder="请输入备件编号或备件名称或备件规格"
-                  style="width:100%"
-                  @select="handleSelectOldProducts"
-                >
-                  <template slot-scope="{ item }">
-                    <b>备件编号:</b><span class="name">{{ item.partCode }}</span>
-                    |<b>备件名称:</b><span class="addr">{{ item.partName }}</span>
-                    |<b style="padding-left:3em;">备件规格:</b><span class="addr">{{ item.specification }}</span>
-                  </template>
-                </el-autocomplete>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <el-table
-          v-if="No2"
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="listAdd"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :cell-style="cellStyle"
-          class="elTable"
-          :row-style="rowStyle"
-        >
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="备件编号" min-width="90px" prop="partCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件名称" min-width="60px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.partName }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="备件规格" prop="specification" align="center" min-width="90">
-            <template slot-scope="scope">
-              <span>{{ scope.row.specification }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="录入数量" prop="brand" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row" :rules="rules">
-                <el-form-item prop="acturalAmount">
-                  <el-input ref="acturalAmount" v-model="scope.row.acturalAmount" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="用途" prop="note" align="center" min-width="60">
-            <template slot-scope="scope">
-              <el-form :model="scope.row">
-                <el-form-item prop="note">
-                  <el-input ref="note" v-model="scope.row.note" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column label="操作" align="center" width="60" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="del" @click="partDelete(row)">删除</a>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="dialogStatus==='repairComplete'?createRepairCompleteData():createRepairCompleteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_RepairComplete = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_MaintenanceRequisition" :close-on-click-modal="false" width="90%">
-      <div style="position: absolute;top:12px;left:120px;font:18px/40px '' ;color:#303133;">
-        <span style="margin:0 10px;">设备名称:{{ maintenanceRequisitionTemp.eqName }}</span>
-        <span>内部编号:{{ maintenanceRequisitionTemp.eqCode }}</span>
-      </div>
-      <div class="maintenanceRequisition" style="width:90%;margin:0 auto;">
-        <el-tabs v-model="activeName2" @tab-click="tabMaintenance">
-          <el-tab-pane label="维修" name="first">
-            <el-form
-              ref="maintenanceRequisitionTemp"
-              :rules="rules"
-              :model="maintenanceRequisitionTemp"
-              label-position="right"
-              label-width="120px"
-              style="width: 90%;margin:0 auto;"
-            >
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="维修日期" prop="repirsTime">
-                    <el-date-picker
-                      v-model="maintenanceRequisitionTemp.repirsTime"
-                      :picker-options="pickerOptions1"
-                      type="date"
-                      placeholder="维修日期"
-                      style="width:100%;"
-                      format="yyyy-MM-dd"
-                      value-format="yyyy-MM-dd"
-                      :clearable="false"
-                    />
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </el-form>
-            <div class="newFault">
-              <el-form
-                ref="newFaultTemp"
-                :rules="rules"
-                :model="newFaultTemp"
-                label-position="right"
-                label-width="120px"
-                style="width: 90%;margin:0 auto"
-              >
-                <el-row>
-                  <el-col :span="8">
-                    <el-form-item label="故障诊断:" prop="positionId">
-                      <el-select v-model="newFaultTemp.positionId" style="width:100%;" filterable placeholder="故障部位" @change="changePosition">
-                        <el-option
-                          v-for="item in positions"
-                          :key="item.id"
-                          :label="item.positionName"
-                          :value="item.id"
-                        />
-                      </el-select>
-                    </el-form-item>
-                  </el-col>
-                  <el-col :span="8">
-                    <el-form-item>
-                      <el-select v-model="newFaultTemp.appearanceName" style="width:100%;" filterable placeholder="故障详情" @change="changeAppearance">
-                        <el-option
-                          v-for="item in appearances"
-                          :key="item.id"
-                          :label="item.appearanceName"
-                          :value="item.appearanceName"
-                        />
-                      </el-select>
-                    </el-form-item>
-                  </el-col>
-                </el-row>
-              </el-form>
-              <el-table
-                :key="tableKey"
-                v-loading="listLoading"
-                element-loading-text="给我一点时间"
-                :data="listNewFault"
-                border
-                fit
-                highlight-current-row
-                style="width: 100%;margin-bottom:30px"
-                :cell-style="cellStyle"
-                class="elTable"
-                :row-style="rowStyle"
-              >
-                <el-table-column type="index" label="序号" align="center" width="50px" />
-                <el-table-column label="故障部位" min-width="90px" prop="positionName" align="center">
-                  <template slot-scope="scope">
-                    <span>{{ scope.row.positionName }}</span>
-                  </template>
-                </el-table-column>
-                <el-table-column label="故障详情" min-width="60px" align="center" prop="appearanceName">
-                  <template slot-scope="scope">
-                    <el-input ref="appearanceName" v-model="scope.row.appearanceName" />
-                  </template>
-                </el-table-column>
-                <el-table-column label="故障原因" min-width="60px" align="center" prop="failureCause">
-                  <template slot-scope="scope">
-                    <el-input ref="failureCause" v-model="scope.row.failureCause" />
-                  </template>
-                </el-table-column>
-                <el-table-column label="处理方式" min-width="60px" align="center" prop="treatmentMethod">
-                  <template slot-scope="scope">
-                    <el-input ref="treatmentMethod" v-model="scope.row.treatmentMethod" />
-                  </template>
-                </el-table-column>
-                <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right">
-                  <template slot-scope="{row}">
-                    <a class="del" @click="newFaultDelete(row)">删除</a>
-                  </template>
-                </el-table-column>
-              </el-table>
-            </div>
-          </el-tab-pane>
-          <el-tab-pane label="备件领用" name="second">
-            <el-button class="filter-item" type="primary" size="mini" style="margin-bottom:10px" @click="handleCollectionSparePartsCreate">添加领用单</el-button>
-            <h4>有库存领用</h4>
-            <el-table
-              :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,0)">查看</el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-            <h4>无库存领用</h4>
-            <el-table
-              :key="tableKey2"
-              v-loading="listLoading"
-              element-loading-text="给我一点时间"
-              :data="listCollectionSpareParts2"
-              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="领用部门" 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">
-                <template slot-scope="scope">
-                  <span>{{ scope.row.createDate }}</span>
-                </template>
-              </el-table-column>
-              <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,1)">查看</el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-          </el-tab-pane>
-        </el-tabs>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px">
-        <el-button v-if="rapairBtn" type="primary" :disabled="isokDisable" @click="dialogStatus==='maintenanceRequisition'?createMaintenanceRequisitionteData():createMaintenanceRequisitionteData()">确认</el-button>
-        <el-button @click="dialogFormVisible_MaintenanceRequisition = false;get_table_data();">关闭</el-button>
-      </div>
-    </el-dialog>
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_CollectionSparePartsSee" :close-on-click-modal="false" width="90%">
-      <div class="collectionSparePartsSee">
-        <el-form
-          ref="collectionSparePartsSeeTemp"
-          :rules="rules"
-          :model="collectionSparePartsSeeTemp"
-          label-position="right"
-          label-width="120px"
-          style="width: 90%;margin:0 auto;"
-        >
-          <el-row>
-            <el-col v-if="collectionSparePartsSeeTemp.isStock !== 1" :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 v-if="collectionSparePartsSeeTemp.isStock !== 1" :span="8">
-              <el-form-item label="领用日期:" prop="createDate">
-                <el-input ref="createDate" v-model="collectionSparePartsSeeTemp.createDate" 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-col :span="2">
-              <el-button type="primary" @click="handleAddSparePartsToBeCollected">添加待领用备件</el-button>
-            </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==='collectionSparePartsSee'" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column v-if="collectionSparePartsSeeTemp.isStock==1" 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==='collectionSparePartsSee'" style="margin-top:15px" />
-                </el-form-item>
-              </el-form>
-            </template>
-          </el-table-column>
-          <el-table-column v-if="collectionSparePartsSeeTemp.isStock==1" label="操作" align="center" width="100" class-name="small-padding fixed-width" fixed="right">
-            <template slot-scope="{row}">
-              <a class="primary" @click="handleViewProgress(row)">查看进度</a>
-            </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="dialogStatus==='collectionSparePartsCreate'?createCollectionSparePartsData():createCollectionSparePartsData()">确认</el-button>
-        <el-button @click="dialogFormVisible_CollectionSparePartsSee = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 查看进度 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_ViewProgress" :close-on-click-modal="false" width="90%">
-      <div class="viewProgress">
-        <el-form
-          ref="viewProgressTemp"
-          :rules="rules"
-          :model="viewProgressTemp"
-          label-position="right"
-          label-width="120px"
-          style="width: 90%;margin:0 auto;"
-        >
-          <el-row>
-            <el-col :span="8">
-              <el-form-item label="本次领用数量:" prop="amountY">
-                <span> {{ numbersList.amountY }} </span>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="其他领用数量:" prop="amountQT">
-                <span> {{ numbersList.amountQT }} </span>
-              </el-form-item>
-            </el-col>
-            <el-col :span="8">
-              <el-form-item label="未出库数量:" prop="amountLY">
-                <span> {{ numbersList.amountLY }} </span>
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-        <h4>申购情况:</h4>
-        <el-table
-          :key="tableKey"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="purchaseapplicationList"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :row-style="rowStyle"
-          :cell-style="cellStyle"
-          class="elTable table-fixed"
-          @sort-change="tableSort2"
-        >
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="申购单号" min-width="90px" prop="orderNumber" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.orderNumber }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column sortable prop="amount" label="申购数量" min-width="80px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.amount }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="申购时间" sortable prop="createTime" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.createTime }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="申购部门" prop="deptName" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.deptName }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="申购人" prop="amount" align="center" min-width="80">
-            <template slot-scope="scope">
-              <span>{{ scope.row.empName }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="是否配单" prop="buyStatu" align="center" min-width="80">
-            <template slot-scope="scope">
-              <span>{{ scope.row.buyStatu }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="配单号" prop="matchCode" align="center" min-width="80">
-            <template slot-scope="scope">
-              <span>{{ scope.row.matchCode }}</span>
-            </template>
-          </el-table-column>
-        </el-table>
-        <h4>采购情况:</h4>
-        <el-table
-          :key="tableKey2"
-          v-loading="listLoading"
-          element-loading-text="给我一点时间"
-          :data="procurementList"
-          border
-          fit
-          highlight-current-row
-          style="width: 100%;margin-bottom:30px"
-          :row-style="rowStyle"
-          :cell-style="cellStyle"
-          class="elTable table-fixed"
-          @sort-change="tableSort3"
-        >
-          <el-table-column type="index" label="序号" align="center" width="50px" />
-          <el-table-column label="采购单号" min-width="90px" prop="buyeCode" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.buyeCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column sortable prop="amount" label="采购数量" min-width="80px" align="center">
-            <template slot-scope="scope">
-              <span>{{ scope.row.amount }}</span><br>
-            </template>
-          </el-table-column>
-          <el-table-column label="配单号" prop="specification" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.matchCode }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column label="提交时间" prop="buyerDate" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.buyerDate }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column sortable prop="receiveAmount" label="入库数量" align="center" min-width="100">
-            <template slot-scope="scope">
-              <span>{{ scope.row.receiveAmount }}</span>
-            </template>
-          </el-table-column>
-        </el-table>
-      </div>
-      <div slot="footer" class="dialog-footer" style="bottom:5px">
-        <el-button @click="dialogFormVisible_ViewProgress = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-    <!-- 报修驳回 -->
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="rejectRepair.dialogFormVisible" :close-on-click-modal="false" width="30%">
-      <div class="maintenanceAudit">
-        <h3 style="width: 100%;margin:0 0 0 5%;line-height:50px;">请输入报修驳回原因:</h3>
-        <el-form ref="rejectRepair" :rules="rules" :model="rejectRepair.temp" label-position="right" style="width: 60%;height:150px;margin:0 auto;">
-          <el-row>
-            <el-col :span="20">
-              <el-form-item prop="shutdownReason">
-                <el-input v-model="rejectRepair.temp.shutdownReason" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" placeholder="请输入报修驳回原因" />
-              </el-form-item>
-            </el-col>
-          </el-row>
-        </el-form>
-      </div>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" :disabled="isokDisable" @click="rejectRepairData()">确认</el-button>
-        <el-button @click="rejectRepair.dialogFormVisible = false;">关闭</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-// 引入
-import { GetDataByName, GetDataByNames,GetAccount, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
-import { mapGetters } from 'vuex'
-import waves from '@/directive/waves' // waves directive
-import { parseTime, sortChange,json2excel } from '@/utils/index.js'
-// eslint-disable-next-line no-unused-vars
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
-import { MessageBox } from 'element-ui'
-import Cookies from 'js-cookie'
-export default {
-  name: 'Repair',
-  components: { Pagination },
-  directives: { waves },
-  data() {
-    return {
-      myHeight:document.documentElement.clientHeight - 85- 200,
-      isokDisable: false,
-      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
-      cellStyle: { padding: 0 + 'px' },
-      findAllPasture: [],
-      findAllDepart: [],
-      findAllEmploye: [],
-      requestParams: [
-        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
-        { name: 'findAllDepart1', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }},
-        { name: 'findAllEmploye', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }}
-      ],
-      orderStatues: [{ id: '0', name: '待接单' }, { id: '1', name: '维修中' }, { id: '2', name: '维修完成' }],
-      SHStatues: [{ id: '0', name: '审核中' }, { id: '1', name: '已通过' }, { id: '2', name: '未通过' }],
-      rules: {
-        repairDept: [{ required: true, message: '必填', trigger: 'blur' }],
-        pickId: [{ required: true, message: '必填', trigger: 'blur' }],
-        chargeDate: [{ required: true, message: '必填', trigger: 'blur' }],
-        chargeId: [{ required: true, message: '必填', trigger: 'blur' }],
-        repirsTime: [{ required: true, message: '必填', trigger: 'blur' }],
-        positionId: [{ required: true, message: '必填', trigger: 'blur' }],
-        repairCode: [{ required: true, message: '必填', trigger: 'blur' }],
-        eqName: [{ required: true, message: '必填', trigger: 'blur' }],
-        eqCode: [{ required: true, message: '必填', trigger: 'blur' }],
-        deptName: [{ required: true, message: '必填', trigger: 'blur' }],
-        details: [{ required: true, message: '必填', trigger: 'blur' }],
-        shutdownReason: [{ required: true, message: '必填', trigger: 'blur' }]
-      },
-      getdataListParm: {
-        name: 'getRepirsList',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {
-          pastureName: Cookies.get('pasturename'),
-          repairCode: '',
-          eqName: '',
-          eqCode: '',
-          orderStatue: '',
-          SHStatue: '',
-          inputDatetime: '',
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Repair',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-      },
-
-      isCanSubmit:false,
-      total: 0,
-      tableKey: 0,
-      listLoading: false,
-      list: [],
-      dialogFormVisible_Create: false,
-      createTemp: {
-        pastureId: '',
-        departmentId: '',
-        eqId: '',
-        eqCode: '',
-        eqName: '',
-        repairDept: '',
-        details: '',
-        requesterId: '',
-        requestTime: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}'),
-        pickId: '',
-        repairCode: '',
-        deptName: ''
-      },
-      requestEqName: {
-        name: 'geteqbyNameCode',
-        page: 1,
-        offset: 1,
-        pagecount: '',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-      EqNameList: [],
-      EqCodeList: [],
-      getRepairNumberParm: {
-        name: 'autoCreatCode',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'BX'
-        }
-      },
-      radioAll: '全部',
-      dialogFormVisible_See: false,
-      dialogStatus: '',
-      textMap: {
-        create: '报修',
-        see: '查看详情',
-        distributeLeaflets: '派单',
-        maintenanceAudit: '维修审核',
-        maintenanceAudit2: '维修审核',
-        repairComplete: '完成维修',
-        maintenanceRequisition: '维修及领用',
-        collectionSparePartsSee: '查看领用',
-        collectionSparePartsCreate: '添加领用',
-        ViewProgress: '查看进度', rejectRepair: '报修驳回', update: '修改报修'
-      },
-      activeList: [],
-      active: 3,
-      seeTemp: {},
-      activeName: 'first',
-      orderStatue1: false,
-      orderStatue2: false,
-      // Reason: false,
-      // MaintenanceAudit: false,
-      listLoadingFault: false,
-      listFault: [],
-      getFaultListParm: {
-        name: 'getmaintainappearance',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingCollarUse: false,
-      listCollarUse: [],
-      getCollarUseListParm: {
-        name: 'getPartsapplybyMt',
-        page: 1,
-        offset: 1,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      getCollarUseListParm2: {
-        name: 'getPartsapplybyMt_m',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      listLoadingOldProducts: false,
-      listOldProducts: [],
-      getOldProductsListParm: {
-        name: 'getMaintainRefuse',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      dialogFormVisible_DistributeLeaflets: false,
-      distributeLeafletsTemp: {
-        repairDept: '',
-        pickId: '',
-        chargeId: this.$store.state.user.employeid,
-        chargeDate: parseTime(new Date(), '{y}-{m}-{d}')
-      },
-      pickerOptions1: {
-        disabledDate(time) {
-          return time.getTime() > Date.now()// 当天之前的时间可选
-        }
-      },
-      receiptTemp: {},
-      requestParam: {},
-      maintainers: [],
-      getRepirsEmpParm: {
-        name: 'getRepirsEmp',
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-      examineTemp: {
-        statue: 3
-      },
-      statueReason: false,
-      dialogFormVisible_MaintenanceAudit: false,
-      dialogFormVisible_RepairComplete: false,
-      repairCompleteTemp: {
-        isOldProducts: 0
-      },
-      requestOldProducts: {
-        name: 'getAllPartsListWB',
-        page: 1,
-        offset: 1,
-        pagecount: 10,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      No2: false,
-      listAdd: [],
-      postDataPramas: {},
-      maintenanceRequisitionTemp: {
-        repirsTime: ''
-      },
-      dialogFormVisible_MaintenanceRequisition: false,
-      activeName2: 'first',
-      rowId: 0,
-      listNewFault: [],
-      newFaultTemp: {},
-      appearances: [],
-      positions: [],
-      getPositionsParm: {
-        name: 'geteqPosition',
-        parammaps: {}
-      },
-      getAppearanceParm: {
-        name: 'getAppearancebyPid',
-        parammaps: {}
-      },
-      rapairBtn: true,
-      listCollectionSpareParts: [],
-      tableKey2: 1,
-      listCollectionSpareParts2: [],
-      collectionSparePartsSeeTemp: {
-        isStock: 0
-      },
-      getParmCreateNumber: {
-        name: 'autoCreatCode',
-        page: 0,
-        offset: 0,
-        pagecount: 0,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid'),
-          codeType: 'LY'
-        }
-      },
-      requestSparePart: {
-        name: 'getPartsListLY_m',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {
-          pastureId: Cookies.get('pastureid')
-        }
-      },
-      addSparePartsToBeCollectedParam: {
-        name: 'getPartapply_mr',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      dialogFormVisible_CollectionSparePartsSee: false,
-      listCreateCollectionSpareParts: [],
-      isCreatePartDelete: false,
-      isPartCode: true,
-      getCollarUseSeeParm: {
-        name: 'getpartapplyListBybig',
-        parammaps: {}
-      },
-      getCollarUseSeeParm2: {
-        name: 'getpartapplyListBybig_m',
-        parammaps: {}
-      },
-      dialogFormVisible_ViewProgress: false,
-      viewProgressTemp: {},
-      getNumbersParm: {
-        name: 'getpartApply_mstatue',
-        page: 1,
-        offset: 1,
-        pagecount: 20,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      numbersList: [],
-      getPurchaseapplicationParm: {
-        name: 'getpartApply_mstatueSG',
-        page: 1,
-        offset: 1,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      purchaseapplicationList: [], // 采购情况
-      getProcurementParm: {
-        name: 'getpartApply_mstatueCG',
-        page: 1,
-        offset: 1,
-        returntype: 'Map',
-        parammaps: {}
-      },
-      procurementList: [], // 采购情况
-      rejectRepair: {
-        dialogFormVisible: false,
-        temp: {}
-      },
-      // 权限按钮
-      isRepair: [],
-      isMaintenanceSee: [],
-      isDistributeLeaflets: [],
-      isReceipt: [],
-      isMaintenanceRequisition: [],
-      isRepairComplete: [],
-      isDelete: [],
-      isMaintenanceAudit: [],
-      isMaintenanceAudit2: [], isRejectRepair: [],
-      isRepairExport:[],
-      buttons: [],
-      pending: {
-        total: 0,
-        getdataListParm: {
-          name: 'getRepirsWebListNO', page: 1, offset: 1, getTotal: 'total3', pagecount: 10, returntype: 'Map',
-          parammaps: {}
-        }
-      },
-      isPercentage: false,
-      percentage: 1,
-      downLoadParm:{},
-      downLoadList:[],
-      resubmit:{}
-    }
-  },
-  // computed: {
-  //   ...mapGetters([
-  //     'buttons'
-  //   ])
-  // },
-  created() {
-    const that = this
-    GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
-      that.buttons = response.data.list
-      that.get_auto_buttons()
-    })
-  },
-  methods: {
-    tableSort1(column) {
-      sortChange(column, this.listOldProducts)
-    },
-    tableSort2(column) {
-      sortChange(column, this.purchaseapplicationList)
-    },
-    tableSort3(column) {
-      sortChange(column, this.procurementList)
-    },
-    get_auto_buttons() {
-      // 报修
-      const Repair = 'maintenance:repair:baoxiu'
-      const isRepair = checkButtons(this.buttons, Repair)
-      this.isRepair = isRepair
-      // 派单
-      const DistributeLeaflets = 'maintenance:repair:paidan'
-      const isDistributeLeaflets = checkButtons(this.buttons, DistributeLeaflets)
-      this.isDistributeLeaflets = isDistributeLeaflets
-      // 接单
-      const Receipt = 'maintenance:repair:jiedan'
-      const isReceipt = checkButtons(this.buttons, Receipt)
-      this.isReceipt = isReceipt
-      // 维修及领用
-      const Repairlingyong = 'maintenance:repair:lingyong'
-      const isMaintenanceRequisition = checkButtons(this.buttons, Repairlingyong)
-      this.isMaintenanceRequisition = isMaintenanceRequisition
-      // 维修完成
-      const RepairComplete = 'maintenance:repair:weixiuwancheng'
-      const isRepairComplete = checkButtons(this.buttons, RepairComplete)
-      this.isRepairComplete = isRepairComplete
-      // 删除
-      const Delete = 'maintenance:repair:delete'
-      const isDelete = checkButtons(this.buttons, Delete)
-      this.isDelete = isDelete
-      // 维修审核
-      const MaintenanceAudit = 'maintenance:repair:seeMaintenanceAudit'
-      const isMaintenanceAudit = checkButtons(this.buttons, MaintenanceAudit)
-      this.isMaintenanceAudit = isMaintenanceAudit
-      // 查看
-      const See = 'maintenance:repair:see'
-      const isMaintenanceSee = checkButtons(this.buttons, See)
-      this.isMaintenanceSee = isMaintenanceSee
-      // 主管审核
-      const MaintenanceAudit2 = 'maintenance:repair:shenhe2'
-      const isMaintenanceAudit2 = checkButtons(this.buttons, MaintenanceAudit2)
-      this.isMaintenanceAudit2 = isMaintenanceAudit2
-      // 报修驳回
-      const RejectRepair = 'maintenance:repair:rejectRepair'
-      const isRejectRepair = checkButtons(this.buttons, RejectRepair)
-      this.isRejectRepair = isRejectRepair
-      // 导出
-      const RejectExport = 'maintenance:repair:rejectExport'
-      const isRepairExport = checkButtons(this.buttons, RejectExport)
-      this.isRepairExport = isRepairExport
-      this.get_select_list()
-      this.get_table_data()
-      this.getPendingList()
-    },
-    get_select_list() {
-      GetDataByNames(this.requestParams).then(response => {
-        this.findAllPasture = response.data.findAllPasture.list
-        this.findAllDepart = response.data.findAllDepart1.list
-        this.findAllEmploye = response.data.findAllEmploye.list
-      })
-    },
-    getPendingList() {
-      this.pending.getdataListParm.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
-      this.pending.getdataListParm.parammaps.repairCode = this.getdataListParm.parammaps.repairCode
-      this.pending.getdataListParm.parammaps.eqName = this.getdataListParm.parammaps.eqName
-      this.pending.getdataListParm.parammaps.eqCode = this.getdataListParm.parammaps.eqCode
-      this.pending.getdataListParm.parammaps.SHStatue = this.getdataListParm.parammaps.SHStatue
-      this.pending.getdataListParm.parammaps.inputDatetime = this.getdataListParm.parammaps.inputDatetime
-      this.pending.getdataListParm.parammaps.loginId = this.getdataListParm.parammaps.loginId
-      this.pending.getdataListParm.parammaps.menu = this.getdataListParm.parammaps.menu
-      this.pending.getdataListParm.parammaps.logindeptId = this.getdataListParm.parammaps.logindeptId
-      this.pending.getdataListParm.parammaps.loginpastureId = this.getdataListParm.parammaps.loginpastureId
-      this.pending.getdataListParm.parammaps.empId = Cookies.get('employeid')
-      this.pending.getdataListParm.parammaps.pastureId = Cookies.get('pastureid')
-      this.pending.getdataListParm.parammaps.deptId = Cookies.get('departmentid')
-      GetDataByName(this.pending.getdataListParm).then(response => {
-        this.pending.total = response.data.total3
-      })
-    },
-    get_table_data() {
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
-        this.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.listLoading = true
-      GetDataByName(this.getdataListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('table数据', response.data.list)
-          this.list = response.data.list
-          this.pageNum = response.data.pageNum
-          this.pageSize = response.data.pageSize
-        } else {
-          this.list = []
-        }
-        this.total = response.data.total
-        setTimeout(() => {
-          this.listLoading = false
-        }, 100)
-      })
-    },
-    changeAll() {
-      console.log(this.radioAll)
-      if (this.radioAll === '全部') {
-        this.getdataListParm.name = 'getRepirsList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          pastureName: Cookies.get('pasturename'),
-          inputDatetime: '',
-          loginId: Cookies.get('employeid'),
-          menu: 'Repair',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '待处理') {
-        this.getdataListParm.name = 'getRepirsWebListNO'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          repairCode: this.getdataListParm.parammaps.repairCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          orderStatue: this.getdataListParm.parammaps.orderStatue,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-
-          loginId: Cookies.get('employeid'),
-          menu: 'Repair',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      } else if (this.radioAll === '已处理') {
-        this.getdataListParm.name = 'getRepirsWebList'
-        this.getdataListParm.offset = 1
-        this.getdataListParm.parammaps = {
-          pastureName: this.getdataListParm.parammaps.pastureName,
-          repairCode: this.getdataListParm.parammaps.repairCode,
-          eqName: this.getdataListParm.parammaps.eqName,
-          eqCode: this.getdataListParm.parammaps.eqCode,
-          orderStatue: this.getdataListParm.parammaps.orderStatue,
-          SHStatue: this.getdataListParm.parammaps.SHStatue,
-          inputDatetime: this.getdataListParm.parammaps.inputDatetime,
-          loginId: Cookies.get('employeid'),
-          menu: 'Repair',
-          logindeptId: Cookies.get('departmentid'),
-          loginpastureId: Cookies.get('pastureid'),
-          empId: Cookies.get('employeid'),
-          pastureId: Cookies.get('pastureid'),
-          deptId: Cookies.get('departmentid')
-        }
-        this.get_table_data()
-      }
-    },
-    orderStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.orderStatue == 0) {
-        return '待接单'
-      } else if (cellValue.orderStatue == 1) {
-        return '维修中'
-      } else if (cellValue.orderStatue == 2) {
-        return '维修完成'
-      } else if (cellValue.orderStatue == 3) {
-        return '已驳回'
-      }
-    },
-    SHStatue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.SHStatue == 1) {
-        return ''
-      } else if (cellValue.SHStatue == 2) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 3) {
-        return '审核中'
-      } else if (cellValue.SHStatue == 4) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 6) {
-        return '未通过'
-      } else if (cellValue.SHStatue == 5) {
-        return '已通过'
-      }
-    },
-    form_search() {
-      console.log('点击了table搜索')
-      this.listLoading = true
-      if (this.getdataListParm.parammaps.inputDatetime === null) {
-        this.getdataListParm.parammaps.inputDatetime = ''
-      }
-      this.getdataListParm.offset = 1
-      this.get_table_data()
-      this.getPendingList()
-    },
-    resetCreateTemp() {
-      this.createTemp.pastureId = this.$store.state.user.pastureid
-      this.createTemp.departmentId = this.$store.state.user.departmentid
-      this.createTemp.eqId = ''
-      this.createTemp.eqCode = ''
-      this.createTemp.eqName = ''
-      this.createTemp.repairDept = ''
-      this.createTemp.details = ''
-      this.createTemp.requesterId = this.$store.state.user.employeid
-      this.createTemp.requestTime = parseTime(new Date(), '{y}-{m}-{d} {h}:{i}')
-      this.createTemp.pickId = ''
-      this.createTemp.repairCode = ''
-      this.createTemp.deptName = ''
-      this.createTemp.departmentId = ''
-    },
-    changePickId(val) {
-      if (this.dialogStatus == 'create') {
-        this.createTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
-      } else {
-        this.distributeLeafletsTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
-      }
-    },
-    form_add() {
-      this.dialogStatus = 'create'
-      this.dialogFormVisible_Create = true
-
-      this.resetCreateTemp()
-      this.getRepairNumber()
-      this.getRepirsEmp()
-    },
-    isToDayrResubmit(){
-      //一天同一牧场同一设备同一故障是否重复提交
-
-      this.resubmit.name = 'checkMaintain'
-      this.resubmit.parammaps = {
-        pastureId : this.createTemp.pastureId,
-        eqId : this.createTemp.eqId,
-        eqName : this.createTemp.eqName,
-        eqCode : this.createTemp.eqCode,
-        details : this.createTemp.details,
-        requestTime : parseTime(new Date(), '{y}-{m}-{d}')
-      }
-      
-    },
-    getRepairNumber() {
-      GetDataByName(this.getRepairNumberParm).then(response => {
-        this.$nextTick(() => {
-          console.log('新增报修单号', response.data.list[0].orderCode)
-          this.createTemp.repairCode = response.data.list[0].orderCode
-          this.$forceUpdate()
-        })
-      })
-    },
-    add_dialog_save() {
-      this.isToDayrResubmit()
-      GetDataByName(this.resubmit).then(response => {
-        console.log('今天已提交,请勿重复提交', this.requestParam,this.resubmit,response)
-        if (response.msg !== 'fail') {
-          if(response.data.total > 0){
-            this.$notify({ title: '提交失败', message: '今天已提交,请勿重复提交', type: 'warning', duration: 2000 })
-            this.isCanSubmit = false
-            return false
-          }
-          this.isCanSubmit = true
-          // 可以提交
-          this.isokDisable = true
-          setTimeout(() => {
-            this.isokDisable = false
-          }, 1000)
-          this.$refs['createTemp'].validate(valid => {
-            if (valid) {
-              if (this.createTemp.repairCode == '' || this.createTemp.repairCode == null || this.createTemp.repairCode == undefined) {
-                GetDataByName(this.getRepairNumberParm).then(response => {
-                  this.$nextTick(() => {
-                    console.log('新增报修单号', response.data.list[0].orderCode)
-                    this.createTemp.repairCode = response.data.list[0].orderCode
-                    this.$forceUpdate()
-                    this.add_dialog_saveSave()
-                  })
-                })
-              } else {
-                this.add_dialog_saveSave()
-              }
-            }
-          })
-        }else{
-          this.$notify({ title: '请检查接口', message: "name: checkMaintain", type: 'warning', duration: 2000 })
-        }
-      })
-    },
-    add_dialog_saveSave() {
-      this.requestParam.name = 'insertmaintain'
-      this.requestParam.parammaps = this.createTemp
-      PostDataByName(this.requestParam).then(response => {
-        console.log('新增保存发送参数', this.requestParam)
-        if (response.msg !== 'fail') {
-          this.get_table_data()
-          this.getPendingList()
-          this.dialogFormVisible_Create = false
-          this.$notify({ title: '成功', message: '新增成功', type: 'success', duration: 2000 })
-        } else {
-          failproccess(response, this.$notify)
-        }
-      })
-    },
-    querySearchEqName(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqName'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        if (response.data.list !== null) {
-          console.log('备件名称模糊查询搜索data', response.data.list)
-          this.EqNameList = response.data.list
-        } else {
-          this.EqNameList = []
-        }
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqName(item) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item)
-      this.$set(this.createTemp, 'eqCode', item.eqCode)
-      this.$set(this.createTemp, 'eqId', item.eqId)
-      if (item.deptName !== undefined && item.departmentId !== undefined) {
-        this.$set(this.createTemp, 'deptName', item.deptName)
-        this.$set(this.createTemp, 'departmentId', item.departmentId)
-      } else {
-        this.$set(this.createTemp, 'deptName', '')
-        this.$set(this.createTemp, 'departmentId', '')
-      }
-      this.$forceUpdate()
-    },
-    querySearchCode(queryString, cb) {
-      console.log('备件名称/设备内部编号模糊查询输入值', queryString)
-      this.requestEqName.parammaps['eqCode'] = queryString
-      GetDataByName(this.requestEqName).then(response => {
-        if (response.data.list !== null) {
-          console.log('备件名称模糊查询搜索data', response.data.list)
-          this.EqNameList = response.data.list
-        } else {
-          this.EqNameList = []
-        }
-        cb(this.EqNameList)
-      })
-    },
-    handleSelectEqCode(item, row) {
-      console.log('备件名称/设备内部编号模糊查询选中值', item)
-      console.log('备件名称/设备内部编号模糊查询选中值所在行', row)
-      this.$set(this.createTemp, 'eqName', item.eqName)
-      this.$set(this.createTemp, 'eqId', item.eqId)
-      if (item.deptName !== undefined && item.departmentId !== undefined) {
-        this.$set(this.createTemp, 'deptName', item.deptName)
-        this.$set(this.createTemp, 'departmentId', item.departmentId)
-      } else {
-        this.$set(this.createTemp, 'deptName', '')
-        this.$set(this.createTemp, 'departmentId', '')
-      }
-      this.$forceUpdate()
-    },
-    form_see(row) {
-      console.log(row)
-      this.seeTemp = Object.assign({}, row)
-      // 流程图
-      var reason = '未通过原因:' + this.seeTemp.workflowNote
-      var scores = '评分:' + this.seeTemp.scores + '分'
-      if (this.seeTemp.orderStatue === 0) {
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单' }, { title: '完成维修' }, { title: '使用人审核' }, { title: '设备主管审核' }]
-        this.active = 1
-      } else if (this.seeTemp.orderStatue == 3) {
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '报修驳回', date: this.seeTemp.shutdownDate, name: this.seeTemp.shutdownPerson }]
-        this.active = 1
-      } else if (this.seeTemp.orderStatue === 1 && this.seeTemp.SHStatue === 1) {
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修' }, { title: '使用人审核' }, { title: '设备主管审核' }]
-        this.active = 2
-      } else if (this.seeTemp.SHStatue === 2) {
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修', date: this.seeTemp.stopTime, name: this.seeTemp.pickName }, { title: '使用人审核' }, { title: '设备主管审核' }]
-        this.active = 3
-      } else if (this.seeTemp.SHStatue === 3) {
-        this.active = 4
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修', date: this.seeTemp.stopTime, name: this.seeTemp.pickName }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, scores: scores }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 4) {
-        this.active = 4
-        // var reason = '未通过原因:' + this.seeTemp.workflowNote
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修', date: this.seeTemp.stopTime, name: this.seeTemp.pickName }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, status: 'error', reason: reason }, { title: '设备主管审核' }]
-      } else if (this.seeTemp.SHStatue === 5) {
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修', date: this.seeTemp.stopTime, name: this.seeTemp.pickName }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, scores: scores }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }]
-        this.active = 5
-      } else if (this.seeTemp.SHStatue === 6) {
-        // var reason = '未通过原因:' + this.seeTemp.workflowNote
-        this.activeList = [{ title: '报修', date: this.seeTemp.requestTime, name: this.seeTemp.requesterName }, { title: '维修接单', date: this.seeTemp.orderTime, name: this.seeTemp.pickName }, { title: '完成维修', date: this.seeTemp.stopTime, name: this.seeTemp.pickName }, { title: '使用人审核', date: this.seeTemp.useChargeDate, name: this.seeTemp.useChargePerson, scores: scores }, { title: '设备主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }]
-        this.active = 5
-      }
-      this.seeTemp.requestTime = parseTime(this.seeTemp.requestTime, '{y}-{m}-{d}')
-      this.seeTemp.shutdownDate = parseTime(this.seeTemp.shutdownDate, '{y}-{m}-{d}')
-      this.seeTemp.orderTime = parseTime(this.seeTemp.orderTime, '{y}-{m}-{d}')
-      this.dialogStatus = 'see'
-      this.dialogFormVisible_See = true
-      if (row.orderStatue == 0) {
-        this.orderStatue1 = true
-        this.orderStatue2 = false
-      } else if (row.orderStatue == 3) {
-        this.orderStatue1 = true
-        this.orderStatue2 = false
-      } else {
-        this.orderStatue1 = false
-        this.orderStatue2 = true
-        this.getFaultList()
-        this.getOldProductsList()
-        this.getCollarUseList()
-      }
-    },
-    resetDistributeLeafletsTemp() {
-      this.distributeLeafletsTemp.repairDept = ''
-      this.distributeLeafletsTemp.pickId = ''
-      this.distributeLeafletsTemp.chargeDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.distributeLeafletsTemp.chargeId = this.$store.state.user.employeid
-    },
-    // 派单
-    handleDistributeLeaflets(row) {
-      if (row == undefined) {
-        this.distributeLeafletsTemp = this.seeTemp
-      } else {
-        this.distributeLeafletsTemp = Object.assign({}, row)
-      }
-      console.log('点击了派单')
-      this.dialogStatus = 'distributeLeaflets'
-      this.dialogFormVisible_DistributeLeaflets = true
-      this.resetDistributeLeafletsTemp()
-      this.getRepirsEmp()
-    },
-    changeMaintenanceTeam(val) {
-      console.log(val)
-      this.getRepirsEmpParm.parammaps.deptid = val
-      this.createTemp.pickId = ''
-      this.distributeLeafletsTemp.pickId = ''
-      this.getRepirsEmp()
-    },
-    getRepirsEmp() {
-      GetDataByName(this.getRepirsEmpParm).then(response => {
-        console.log('维修人数据', response.data.list)
-        this.maintainers = response.data.list
-      })
-    },
-    // 派单-保存
-    createDistributeLeafletsData() {
-      console.log('点击了派单确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['distributeLeafletsTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'setRepirsEmp'
-          this.requestParam.parammaps = this.distributeLeafletsTemp
-          this.requestParam.parammaps.id = this.distributeLeafletsTemp.id
-          PostDataByName(this.requestParam).then(response => {
-            console.log('派单确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              this.listLoading = true
-              this.get_table_data()
-              this.dialogFormVisible_DistributeLeaflets = false
-              this.dialogFormVisible_See = false
-              this.getPendingList()
-              this.$notify({ title: '成功', message: '派单成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    getFaultList() {
-      this.listLoadingFault = true
-      if (this.dialogStatus == 'repairComplete') {
-        this.getFaultListParm.parammaps.maintainId = this.repairCompleteTemp.id
-      } else {
-        this.getFaultListParm.parammaps.maintainId = this.seeTemp.id
-      }
-      GetDataByName(this.getFaultListParm).then(response => {
-        if (response.data.list !== null) {
-          console.log('故障table数据', response.data.list)
-          this.listFault = response.data.list
-        } else {
-          this.listFault = []
-        }
-        setTimeout(() => {
-          this.listLoadingFault = false
-        }, 100)
-      })
-    },
-    getCollarUseList() {
-      this.listLoadingCollarUse = true
-      this.getCollarUseListParm.parammaps.RUCode = this.seeTemp.repairCode
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用记录table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    statue: function(cellValue) {
-      // console.log(cellValue.isZeroStock)
-      if (cellValue.statue == 0) {
-        return '未领用'
-      } else if (cellValue.statue == 1) {
-        return '已领用'
-      }
-    },
-    getOldProductsList() {
-      this.listLoadingOldProducts = true
-      this.getOldProductsListParm.parammaps.repairCode = this.seeTemp.repairCode
-      GetDataByName(this.getOldProductsListParm).then(response => {
-        console.log('旧品录入记录table数据', response.data.list)
-        this.listOldProducts = response.data.list
-        setTimeout(() => {
-          this.listLoadingOldProducts = false
-        }, 100)
-      })
-    },
-    // 维修及审核
-    handleExamine(row) {
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'statue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-        this.$set(this.seeTemp, 'scores', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'statue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-        this.$set(this.examineTemp, 'scores', '')
-      }
-      console.log('点击了维修审核')
-      this.dialogStatus = 'maintenanceAudit'
-      this.dialogFormVisible_MaintenanceAudit = true
-    },
-    changeStatue(val) {
-      if (val == 4) {
-        this.statueReason = true
-      } else {
-        this.statueReason = false
-      }
-    },
-    // 维修审核-保存
-    createExamineData() {
-      console.log('点击了维修审核确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['examineTemp'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'maintainCharge'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.id = this.examineTemp.id
-          this.requestParam.parammaps.statue = this.examineTemp.statue
-          this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-          this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-          if (this.requestParam.parammaps.statue == 4) {
-            this.requestParam.parammaps.scores = 5
-          } else {
-            this.requestParam.parammaps.scores = this.examineTemp.scores
-          }
-          PostDataByName(this.requestParam).then(response => {
-            console.log('维修审核确认发送参数', this.requestParam)
-            if (response.msg !== 'fail') {
-              if (this.getdataListParm.parammaps.inputDatetime === null) {
-                this.getdataListParm.parammaps.inputDatetime = ''
-              }
-              this.get_table_data()
-              this.getPendingList()
-              this.dialogFormVisible_MaintenanceAudit = false
-              this.dialogFormVisible_See = false
-              this.statueReason = false
-              this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    // 维修审核2
-    handleExamine2(row) {
-      if (row == undefined) {
-        this.examineTemp = this.seeTemp
-        this.$set(this.seeTemp, 'statue', 3)
-        this.$set(this.seeTemp, 'workflowNote', '')
-      } else {
-        this.examineTemp = Object.assign({}, row)
-        this.$set(this.examineTemp, 'statue', 3)
-        this.$set(this.examineTemp, 'workflowNote', '')
-      }
-      console.log('点击了维修审核')
-      this.dialogStatus = 'maintenanceAudit2'
-      this.dialogFormVisible_MaintenanceAudit = true
-    },
-    // 维修审核2-保养
-    createExamineData2() {
-      if (this.examineTemp.statue == 3) {
-        console.log('点击了维修审核确认-通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'maintainChargDone'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 5
-            this.requestParam.parammaps.orderStatue = 2
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('维修审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_MaintenanceAudit = false
-                this.dialogFormVisible_See = false
-                this.statueReason = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      } else {
-        console.log('点击了维修审核确认-未通过')
-        this.isokDisable = true
-        setTimeout(() => {
-          this.isokDisable = false
-        }, 1000)
-        this.$refs['examineTemp'].validate(valid => {
-          if (valid) {
-            this.requestParam.name = 'maintainCharge1'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.examineTemp.id
-            this.requestParam.parammaps.statue = 6
-            this.requestParam.parammaps.empId	 = Cookies.get('employeid')
-            this.requestParam.parammaps.workflowNote = this.examineTemp.workflowNote
-            PostDataByName(this.requestParam).then(response => {
-              console.log('维修审核确认发送参数', this.requestParam)
-              if (response.msg !== 'fail') {
-                if (this.getdataListParm.parammaps.inputDatetime === null) {
-                  this.getdataListParm.parammaps.inputDatetime = ''
-                }
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_MaintenanceAudit = false
-                this.dialogFormVisible_See = false
-                this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          }
-        })
-      }
-    },
-    // 接单
-    handleReceipt(row) {
-      if (row == undefined) {
-        this.receiptTemp = this.seeTemp
-      } else {
-        this.receiptTemp = Object.assign({}, row)
-      }
-      MessageBox.confirm('是否确认接单', {
-        title: '接单',
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'takeRepirsEmp'
-        this.requestParam.parammaps = {}
-        this.requestParam.parammaps.id = this.receiptTemp.id
-        PostDataByName(this.requestParam).then((response) => {
-          if (response.msg !== 'fail') {
-            this.get_table_data()
-            this.getPendingList()
-            this.dialogFormVisible_See = false
-            this.$notify({ title: '成功', message: '接单成功', type: 'success', duration: 2000 })
-          } else {
-            failproccess(response, this.$notify)
-          }
-        })
-      })
-    },
-    // 完成维修
-    handleRepairComplete(row) {
-      console.log('点击了完成维修', row)
-      if (row == undefined) {
-        this.$set(this.seeTemp, 'isOldProducts', 0)
-        this.repairCompleteTemp = this.seeTemp
-      } else {
-        this.repairCompleteTemp = Object.assign({}, row)
-        this.$set(this.repairCompleteTemp, 'isOldProducts', 0)
-      }
-      this.No2 = false
-      this.dialogStatus = 'repairComplete'
-      this.dialogFormVisible_RepairComplete = true
-      this.getFaultList()
-    },
-    changeIsOldProducts(val) {
-      console.log(val)
-      if (val == 1) {
-        this.No2 = true
-      } else {
-        this.No2 = false
-      }
-    },
-    // 完成维修保存
-    createRepairCompleteData() {
-      console.log('点击了完成维修确认')
-      if (this.listFault.length > 0) {
-        if (this.repairCompleteTemp.laidcou == 0) {
-          if (this.repairCompleteTemp.isOldProducts == 0) {
-            console.log('否')
-            this.requestParam.name = 'completeRepirs'
-            this.requestParam.parammaps = {}
-            this.requestParam.parammaps.id = this.repairCompleteTemp.id
-            PostDataByName(this.requestParam).then((response) => {
-              if (response.msg !== 'fail') {
-                this.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_RepairComplete = false
-                this.dialogFormVisible_See = false
-                this.$notify({ title: '成功', message: '成功', type: 'success', duration: 2000 })
-              } else {
-                failproccess(response, this.$notify)
-              }
-            })
-          } else {
-            console.log('是')
-            this.isokDisable = true
-            setTimeout(() => {
-              this.isokDisable = false
-            }, 1000)
-            this.$refs['repairCompleteTemp'].validate(valid => {
-              if (valid) {
-                if (this.listAdd.length !== 0) {
-                  for (var i = 0; i < this.listAdd.length; i++) {
-                    if (this.listAdd[i].acturalAmount == null || this.listAdd[i].acturalAmount == '') {
-                      this.$message({
-                        type: 'warning',
-                        message: '请录入数量是否未填写',
-                        duration: 2000
-                      })
-                      return false
-                    } else {
-                      var rulesActuralAmount = /(^[1-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
-                      if (!rulesActuralAmount.test(parseFloat(this.listAdd[i].acturalAmount))) {
-                        this.$message({ type: 'error', message: '录入数量请输入正数,最多保留两位小数点', duration: 2000 })
-                        return false
-                      }
-                    }
-                  }
-                  this.postDataPramas.common = { 'returnmap': '0' }
-                  this.postDataPramas.data = []
-                  this.postDataPramas.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
-                  this.postDataPramas.data[0].children = []
-                  this.postDataPramas.data[0].children[0] = { 'name': 'insertRepirsRefuse', 'type': 'e', 'parammaps': {
-                    pastureId: this.repairCompleteTemp.pastureId,
-                    deptId: this.repairCompleteTemp.departmentId,
-                    partCode: '@insertSpotList.partCode',
-                    partName: '@insertSpotList.partName',
-                    partId: '@insertSpotList.id',
-                    specification: '@insertSpotList.specification',
-                    unit: '@insertSpotList.unit',
-                    acturalAmount: '@insertSpotList.acturalAmount',
-                    eqId: this.repairCompleteTemp.eqId,
-                    eqCode: this.repairCompleteTemp.eqCode,
-                    eqName: this.repairCompleteTemp.eqName,
-                    repairCode: this.repairCompleteTemp.repairCode,
-                    listType: 0
-                  }}
-                  this.postDataPramas.data[1] = { 'name': 'completeRepirs', 'type': 'e', 'parammaps': {
-                    id: this.repairCompleteTemp.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.listAdd = []
-                      this.dialogFormVisible_RepairComplete = false
-                      this.dialogFormVisible_See = false
-                      this.get_table_data()
-                      this.getPendingList()
-                      this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                    }
-                  })
-                  return true
-                } else {
-                  this.$notify({ title: '', message: '请完善旧品信息', type: 'warning', duration: 2000 })
-                  return false
-                }
-              }
-            })
-          }
-        } else {
-          this.$notify({ message: '备件未领用不可完成维修', type: 'warning', duration: 2000 })
-        }
-      } else {
-        this.$message({ type: 'warning', message: '请完善故障信息!' })
-      }
-    },
-    oldProductsSearch(queryString, cb) {
-      console.log('旧品录入模糊查询输入值', queryString)
-      this.requestOldProducts.parammaps['partCode'] = queryString
-      this.requestOldProducts.parammaps['RUCode'] = this.repairCompleteTemp.repairCode
-      GetDataByName(this.requestOldProducts).then(response => {
-        console.log('旧品录入模糊查询搜索data', response.data.list)
-        cb(response.data.list)
-      })
-    },
-    handleSelectOldProducts(item) {
-      this.repairCompleteTemp.partCode = ''
-      console.log('旧品录入模糊查询选中值', item)
-      if (this.listAdd.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listAdd.find(obj => obj.id === item.id)) {
-          this.$message({ type: 'warning', message: '此旧品已存在,请重新选择旧品' })
-        } else {
-          if (item.checkoutNumber == null) {
-            this.$set(item, 'checkoutNumber', item.reportery)
-          }
-          this.listAdd.unshift(item)
-        }
-      } else {
-        if (item.checkoutNumber == null) {
-          this.$set(item, 'checkoutNumber', item.reportery)
-        }
-        this.listAdd.unshift(item)
-      }
-    },
-    partDelete(row) {
-      console.log(this.listAdd)
-      MessageBox.confirm('设备名称:' + row.partName, '确认删除?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        // console.log(this.list2)
-        for (var i = 0; i < this.listAdd.length; i++) {
-          console.log(this.listAdd[i])
-          if (this.listAdd[i].id === row.id) {
-            var listAddIndex = this.listAdd.indexOf(this.listAdd[i])
-          }
-          if (listAddIndex > -1) {
-            this.listAdd.splice(listAddIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 维修及领用
-    handleMaintenanceRequisition(row) {
-      console.log('点击了维修及领用')
-      if (row == undefined) {
-        this.maintenanceRequisitionTemp = this.seeTemp
-        this.$set(this.maintenanceRequisitionTemp, 'repirsTime', parseTime(new Date(), '{y}-{m}-{d}'))
-      } else {
-        this.maintenanceRequisitionTemp = Object.assign({}, row)
-        this.$set(this.maintenanceRequisitionTemp, 'repirsTime', parseTime(new Date(), '{y}-{m}-{d}'))
-      }
-      this.dialogStatus = 'maintenanceRequisition'
-      this.dialogFormVisible_MaintenanceRequisition = true
-      this.getNewFaultList()
-      this.getPosition()
-      this.getCollectionSpareParts()
-      this.getCollectionSpareParts2()
-    },
-    getNewFaultList() {
-      this.listLoadingFault = true
-      this.getFaultListParm.parammaps.maintainId = this.maintenanceRequisitionTemp.id
-      GetDataByName(this.getFaultListParm).then(response => {
-        console.log('故障table数据', response.data.list)
-        if (response.data.list !== null) {
-          this.listNewFault = response.data.list
-        } else {
-          this.listNewFault = []
-        }
-        setTimeout(() => {
-          this.listLoadingFault = false
-        }, 100)
-      })
-    },
-    getNewCollarUseList() {
-      this.listLoadingCollarUse = true
-      this.getCollarUseListParm.parammaps.RUCode = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('领用记录table数据', response.data.list)
-        this.listCollarUse = response.data.list
-        setTimeout(() => {
-          this.listLoadingCollarUse = false
-        }, 100)
-      })
-    },
-    tabMaintenance(tab, event) {
-      console.log(tab.name)
-      if (tab.name == 'first') {
-        this.rapairBtn = true
-      } else {
-        this.rapairBtn = false
-      }
-    },
-    getPosition() {
-      this.getPositionsParm.parammaps.eqId = this.maintenanceRequisitionTemp.eqId
-      GetDataByName(this.getPositionsParm).then(response => {
-        console.log('故障部位数据', response.data.list)
-        this.positions = response.data.list
-      })
-    },
-    changePosition(val) {
-      console.log('故障部位输入值', val)
-      console.log(this.positions.find(obj => obj.id == val).positionName)
-      this.newFaultTemp.positionName = this.positions.find(obj => obj.id == val).positionName
-      this.getAppearanceParm.parammaps.id = val
-      this.getAppearance()
-    },
-    getAppearance() {
-      GetDataByName(this.getAppearanceParm).then(response => {
-        console.log('故障详情数据', response.data.list)
-        this.appearances = response.data.list
-      })
-    },
-    changeAppearance(val) {
-      console.log('故障详情输入值', val)
-      if (this.newFaultTemp.positionId == '') {
-        this.$message({
-          type: 'warning',
-          message: '请选择故障部位'
-        })
-      }
-      if (this.listNewFault == null) {
-        this.listNewFault = []
-        this.listNewFault.push({ 'rowId': this.rowId++, positionId: this.newFaultTemp.positionId, positionName: this.newFaultTemp.positionName, appearanceName: val, failureCause: this.newFaultTemp.failureCause, treatmentMethod: this.newFaultTemp.treatmentMethod })
-        this.newFaultTemp = {}
-        this.appearances = []
-      } else {
-        this.listNewFault.push({ 'rowId': this.rowId++, positionId: this.newFaultTemp.positionId, positionName: this.newFaultTemp.positionName, appearanceName: val, failureCause: this.newFaultTemp.failureCause, treatmentMethod: this.newFaultTemp.treatmentMethod })
-        this.newFaultTemp = {}
-        this.appearances = []
-      }
-    },
-    newFaultDelete(row) {
-      console.log(row)
-      MessageBox.confirm('确认删除?', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        for (var i = 0; i < this.listNewFault.length; i++) {
-          console.log(this.listNewFault[i])
-          if (this.listNewFault[i].rowId === row.rowId) {
-            var listNewFaultIndex = this.listNewFault.indexOf(this.listNewFault[i])
-          }
-          if (listNewFaultIndex > -1) {
-            this.listNewFault.splice(listNewFaultIndex, 1)
-            return
-          }
-        }
-      })
-    },
-    // 维修及领用-维修确认
-    createMaintenanceRequisitionteData() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['maintenanceRequisitionTemp'].validate(valid => {
-        if (valid) {
-          console.log(this.newFaultTemp.positionId)
-          if (this.listNewFault.length == 0) {
-            this.$notify({ title: '', message: '请输入故障诊断', type: 'warning', duration: 2000 })
-            return false
-          } else {
-            for (let i = 0; i < this.listNewFault.length; i++) {
-              if (this.listNewFault[i].failureCause == '' || this.listNewFault[i].failureCause == undefined) {
-                this.$notify({ title: '', message: '请输入故障原因', type: 'warning', duration: 2000 })
-                return false
-              }
-            }
-          }
-          if (this.listNewFault.length !== 0) {
-            this.postDataPramas.common = { 'returnmap': '0' }
-            this.postDataPramas.data = []
-            this.postDataPramas.data[0] = { 'name': 'deleteMaintainAppearance', 'type': 'e', 'parammaps': {
-              maintainId: this.maintenanceRequisitionTemp.id
-            }}
-            this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listNewFault }}
-            this.postDataPramas.data[1].children = []
-            this.postDataPramas.data[1].children[0] = { 'name': 'insertMaintainAppearance', 'type': 'e', 'parammaps': {
-              appearanceName: '@insertSpotList.appearanceName',
-              positionId: '@insertSpotList.positionId',
-              positionName: '@insertSpotList.positionName',
-              repirsTime: this.maintenanceRequisitionTemp.repirsTime,
-              maintainId: this.maintenanceRequisitionTemp.id,
-              failureCause: '@insertSpotList.failureCause',
-              treatmentMethod: '@insertSpotList.treatmentMethod'
-            }}
-            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.get_table_data()
-                this.getPendingList()
-                this.dialogFormVisible_MaintenanceRequisition = false
-                this.dialogFormVisible_See = false
-                this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-              }
-            })
-          } else {
-            this.$notify({ title: '', message: '请选择故障', type: 'warning', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    getCollectionSpareParts() {
-      this.getCollarUseListParm.parammaps.RUCode = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.getCollarUseListParm).then(response => {
-        console.log('备件领用table数据', response.data.list)
-        this.listCollectionSpareParts = response.data.list
-      })
-    },
-    getCollectionSpareParts2() {
-      this.getCollarUseListParm2.parammaps.RUCode = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.getCollarUseListParm2).then(response => {
-        console.log('备件领用无库存table数据', response.data.list)
-        this.listCollectionSpareParts2 = response.data.list
-      })
-    },
-    openDetails(row, column, cell, event) {
-      if (column.label !== '操作') {
-        this.$router.push({ path: '/customs/Receive', query: { applyCode: row.applyCode }})
-      }
-    },
-    handleCollarUseSee(row, isStock) {
-      this.collectionSparePartsSeeTemp = Object.assign({}, row)
-      this.dialogStatus = 'collectionSparePartsSee'
-      this.dialogFormVisible_CollectionSparePartsSee = true
-      this.isCreatePartDelete = false
-      this.isPartCode = false
-      if (isStock == 0) {
-        this.collectionSparePartsSeeTemp.isStock = 0
-        this.getCollarUseSeeList()
-      } else if (isStock == 1) {
-        this.collectionSparePartsSeeTemp.isStock = 1
-        this.getCollarUseSeeList2()
-      }
-    },
-    getCollarUseSeeList() {
-      this.getCollarUseSeeParm.parammaps.id = this.collectionSparePartsSeeTemp.id
-      GetDataByName(this.getCollarUseSeeParm).then(response => {
-        this.listCreateCollectionSpareParts = response.data.list
-      })
-    },
-    getCollarUseSeeList2() {
-      // console.log(this.collectionSparePartsSeeTemp)
-      this.getCollarUseSeeParm2.parammaps.bigId = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.getCollarUseSeeParm2).then(response => {
-        this.listCreateCollectionSpareParts = response.data.list
-      })
-    },
-    handleCollectionSparePartsCreate() {
-      this.collectionSparePartsSeeTemp = this.maintenanceRequisitionTemp
-      this.collectionSparePartsSeeTemp.createDate = parseTime(new Date(), '{y}-{m}-{d}')
-      this.dialogStatus = 'collectionSparePartsCreate'
-      this.dialogFormVisible_CollectionSparePartsSee = true
-      this.isCreatePartDelete = true
-      this.listCreateCollectionSpareParts = []
-      this.isPartCode = true
-      this.getCreateNumber()
-    },
-    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()
-        })
-      })
-    },
-    sparePartSearch(queryString, cb) {
-      console.log('备件模糊查询输入值', queryString)
-      this.requestSparePart.parammaps['partCode'] = queryString
-      GetDataByName(this.requestSparePart).then(response => {
-        console.log('备件模糊查询搜索data', response.data.list)
-        if (response.data.list == null) {
-          cb([])
-        } else {
-          cb(response.data.list)
-        }
-      })
-    },
-    handleSelectSparePart(item) {
-      console.log('备件模糊查询选中值', item)
-      if (this.listCreateCollectionSpareParts.length > 0) {
-        // eslint-disable-next-line no-redeclare
-        if (this.listCreateCollectionSpareParts.find(obj => obj.partId === item.partId)) {
-          this.$message({ type: 'warning', message: '此备件已存在,请重新选择备件' })
-        } else {
-          this.listCreateCollectionSpareParts.unshift(item)
-        }
-      } else {
-        this.listCreateCollectionSpareParts.unshift(item)
-      }
-    },
-    handleAddSparePartsToBeCollected() {
-      console.log('添加待领用备件')
-      this.addSparePartsToBeCollectedParam.parammaps.RUCode = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.addSparePartsToBeCollectedParam).then(response => {
-        if (response.data.list == null) {
-          this.$message({ type: 'warning', message: '无可添加待领用备件' })
-        } else {
-          if (this.listCreateCollectionSpareParts.length > 0) {
-            console.log(this.filtersArr(this.listCreateCollectionSpareParts, response.data.list))
-            this.listCreateCollectionSpareParts = this.filtersArr(this.listCreateCollectionSpareParts, response.data.list)
-          } else {
-            this.listCreateCollectionSpareParts = response.data.list
-          }
-        }
-      })
-    },
-    filtersArr(list, list2) {
-      for (var i = 0; i < list.length; i++) {
-        for (var j = 0; j < list2.length; j++) {
-          if (list[i].partId == list2[j].partId) {
-            list[i] = list2[j]
-            list2.splice(j, 1)
-          }
-        }
-      }
-      return list.concat(list2)
-    },
-    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
-          }
-        }
-      })
-    },
-    handleViewProgress(row) {
-      console.log('查看进度', row)
-      console.log(this.maintenanceRequisitionTemp)
-      this.viewProgressTemp = Object.assign({}, row)
-      this.dialogStatus = 'ViewProgress'
-      this.dialogFormVisible_ViewProgress = true
-      this.getNumbers()
-      this.getPurchaseapplicationList()
-      this.getProcurementList()
-    },
-    getNumbers() {
-      this.getNumbersParm.parammaps.contractId = this.viewProgressTemp.contractId
-      this.getNumbersParm.parammaps.RUCode = this.maintenanceRequisitionTemp.repairCode
-      GetDataByName(this.getNumbersParm).then(response => {
-        this.numbersList = response.data.list[0]
-      })
-    },
-    // 申购情况
-    getPurchaseapplicationList() {
-      this.getPurchaseapplicationParm.parammaps.createDate = this.viewProgressTemp.date
-      this.getPurchaseapplicationParm.parammaps.partCode = this.viewProgressTemp.partCode
-      this.getPurchaseapplicationParm.parammaps.pastureId = this.viewProgressTemp.pastureId
-      GetDataByName(this.getPurchaseapplicationParm).then(response => {
-        if (response.data.list !== null) {
-          this.purchaseapplicationList = response.data.list
-        } else {
-          this.purchaseapplicationList = []
-        }
-      })
-    },
-    // 采购情况
-    getProcurementList() {
-      this.getProcurementParm.parammaps.createDate = this.viewProgressTemp.date
-      this.getProcurementParm.parammaps.partCode = this.viewProgressTemp.partCode
-      this.getProcurementParm.parammaps.pastureId = this.viewProgressTemp.pastureId
-      GetDataByName(this.getProcurementParm).then(response => {
-        if (response.data.list !== null) {
-          this.procurementList = response.data.list
-        } else {
-          this.procurementList = []
-        }
-      })
-    },
-    // 添加领用保存
-    createCollectionSparePartsData() {
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['collectionSparePartsSeeTemp'].validate(valid => {
-        if (valid) {
-          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 = []
-                  for (let i = 0; i < this.listCreateCollectionSpareParts.length; i++) {
-                    var obj = {}
-                    var obj2 = {}
-                    obj.amount = this.listCreateCollectionSpareParts[i].amount
-                    obj.bigId = this.listCreateCollectionSpareParts[i].bigId
-                    obj.brand = this.listCreateCollectionSpareParts[i].brand
-                    obj.brandId = this.listCreateCollectionSpareParts[i].brandId
-                    obj.contractId = this.listCreateCollectionSpareParts[i].contractId
-                    obj.enable = this.listCreateCollectionSpareParts[i].enable
-                    obj.id = this.listCreateCollectionSpareParts[i].id
-                    obj.inventoryType = this.listCreateCollectionSpareParts[i].inventoryType
-                    obj.isZeroStock = this.listCreateCollectionSpareParts[i].isZeroStock
-                    obj.partCode = this.listCreateCollectionSpareParts[i].partCode
-                    obj.partId = this.listCreateCollectionSpareParts[i].partId
-                    obj.partName = this.listCreateCollectionSpareParts[i].partName
-                    obj.partRepId = this.listCreateCollectionSpareParts[i].partRepId
-                    obj.pastureId = this.listCreateCollectionSpareParts[i].pastureId
-                    obj.pastureName = this.listCreateCollectionSpareParts[i].pastureName
-                    obj.planAmount = this.listCreateCollectionSpareParts[i].planAmount
-                    obj.price = this.listCreateCollectionSpareParts[i].price
-                    obj.providerId = this.listCreateCollectionSpareParts[i].providerId
-                    obj.providerName = this.listCreateCollectionSpareParts[i].providerName
-                    obj.remark = this.listCreateCollectionSpareParts[i].remark
-                    obj.reportery = this.listCreateCollectionSpareParts[i].reportery
-                    obj.specification = this.listCreateCollectionSpareParts[i].specification
-                    obj.unit = this.listCreateCollectionSpareParts[i].unit
-                    obj.prid = this.listCreateCollectionSpareParts[i].prid
-                    obj.mr = this.listCreateCollectionSpareParts[i].mr
-                    obj.locationId = this.listCreateCollectionSpareParts[i].locationId
-                    amountList.push(obj)
-                    obj2.amount = this.listCreateCollectionSpareParts[i].amount
-                    obj2.bigId = this.listCreateCollectionSpareParts[i].bigId
-                    obj2.brand = this.listCreateCollectionSpareParts[i].brand
-                    obj2.brandId = this.listCreateCollectionSpareParts[i].brandId
-                    obj2.contractId = this.listCreateCollectionSpareParts[i].contractId
-                    obj2.enable = this.listCreateCollectionSpareParts[i].enable
-                    obj2.id = this.listCreateCollectionSpareParts[i].id
-                    obj2.inventoryType = this.listCreateCollectionSpareParts[i].inventoryType
-                    obj2.isZeroStock = this.listCreateCollectionSpareParts[i].isZeroStock
-                    obj2.partCode = this.listCreateCollectionSpareParts[i].partCode
-                    obj2.partId = this.listCreateCollectionSpareParts[i].partId
-                    obj2.partName = this.listCreateCollectionSpareParts[i].partName
-                    obj2.partRepId = this.listCreateCollectionSpareParts[i].partRepId
-                    obj2.pastureId = this.listCreateCollectionSpareParts[i].pastureId
-                    obj2.pastureName = this.listCreateCollectionSpareParts[i].pastureName
-                    obj2.planAmount = this.listCreateCollectionSpareParts[i].planAmount
-                    obj2.price = this.listCreateCollectionSpareParts[i].price
-                    obj2.providerId = this.listCreateCollectionSpareParts[i].providerId
-                    obj2.providerName = this.listCreateCollectionSpareParts[i].providerName
-                    obj2.remark = this.listCreateCollectionSpareParts[i].remark
-                    obj2.reportery = this.listCreateCollectionSpareParts[i].reportery
-                    obj2.specification = this.listCreateCollectionSpareParts[i].specification
-                    obj2.unit = this.listCreateCollectionSpareParts[i].unit
-                    obj2.prid = this.listCreateCollectionSpareParts[i].prid
-                    obj.mr = this.listCreateCollectionSpareParts[i].mr
-                    obj2.locationId = this.listCreateCollectionSpareParts[i].locationId
-                    amount2List.push(obj2)
-                  }
-                  for (let i = 0; i < amountList.length; i++) {
-                    if (parseFloat(amountList[i].amount) > parseFloat(amountList[i].reportery)) {
-                      var amount = String(parseFloat(amountList[i].amount) - parseFloat(amountList[i].reportery))
-                      amountList[i].amount = amount
-                      listCreateCollectionSpareParts1.push(amountList[i])
-                      if (parseFloat(amountList[i].reportery) > 0) {
-                        amount2List[i].amount = String(amount2List[i].reportery)
-                        listCreateCollectionSpareParts2.push(amount2List[i])
-                      }
-                    } else {
-                      listCreateCollectionSpareParts2.push(amountList[i])
-                    }
-                  }
-                  console.log(this.listCreateCollectionSpareParts, 'this.listCreateCollectionSpareParts')
-                  console.log(listCreateCollectionSpareParts1, '>库存listCreateCollectionSpareParts1')
-                  console.log(listCreateCollectionSpareParts2, '<=库存listCreateCollectionSpareParts2')
-                  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
-                  }
-                  this.postDataPramas.common = { 'returnmap': '0' }
-                  this.postDataPramas.data = []
-                  this.postDataPramas.data[0] = { 'name': 'insertSpotList3', 'resultmaps': { 'list': this.listCreateCollectionSpareParts }}
-                  this.postDataPramas.data[0].children = []
-                  this.postDataPramas.data[0].children[0] = { 'name': 'updatePartapplyuseAmount_m', 'type': 'e', 'parammaps': {
-                    amount: '@insertSpotList3.amount',
-                    paid: '@insertSpotList3.contractId',
-                    RUCode: this.collectionSparePartsSeeTemp.repairCode
-                  }}
-                  this.postDataPramas.data[1] = { 'name': 'insertBigpartapply_m', 'type': 'e', 'parammaps': {
-                    pastureId: this.collectionSparePartsSeeTemp.pastureId,
-                    applyCode: this.collectionSparePartsSeeTemp.applyCode,
-                    applyType: 1,
-                    departmentId: this.collectionSparePartsSeeTemp.departmentId,
-                    empId: this.collectionSparePartsSeeTemp.pickId,
-                    applyDate: this.collectionSparePartsSeeTemp.createDate,
-                    RUCode: this.collectionSparePartsSeeTemp.repairCode
-                  }}
-                  this.postDataPramas.data[2] = { 'name': 'insertSpotList2', 'resultmaps': { 'list': listCreateCollectionSpareParts1 }}
-                  this.postDataPramas.data[2].children = []
-                  this.postDataPramas.data[2].children[0] = { 'name': 'insertpartapply_m', 'type': 'e', 'parammaps': {
-                    bigId: this.collectionSparePartsSeeTemp.repairCode,
-                    prid: '@insertSpotList2.prid',
-                    pastureId: '@insertSpotList2.pastureId',
-                    partId: '@insertSpotList2.partId',
-                    partCode: '@insertSpotList2.partCode',
-                    partName: '@insertSpotList2.partName',
-                    specification: '@insertSpotList2.specification',
-                    brandId: '@insertSpotList2.brandId',
-                    price: '@insertSpotList2.price',
-                    amount: '@insertSpotList2.amount',
-                    eqName: this.collectionSparePartsSeeTemp.eqName,
-                    eqCode: this.collectionSparePartsSeeTemp.eqCode,
-                    providerId: '@insertSpotList2.providerId',
-                    note: '@insertSpotList2.note',
-                    reportery: '@insertSpotList2.reportery',
-                    contractId: '@insertSpotList2.contractId'
-                  }}
-                  if (listCreateCollectionSpareParts2.length > 0) {
-                    this.postDataPramas.data[3] = { 'name': 'insertBigpartapply', 'type': 'e', 'parammaps': {
-                      pastureId: this.collectionSparePartsSeeTemp.pastureId,
-                      applyCode: this.collectionSparePartsSeeTemp.applyCode,
-                      applyType: 1,
-                      departmentId: this.collectionSparePartsSeeTemp.departmentId,
-                      empId: this.collectionSparePartsSeeTemp.pickId,
-                      applyDate: this.collectionSparePartsSeeTemp.createDate,
-                      RUCode: this.collectionSparePartsSeeTemp.repairCode,
-                      SHStatus: this.collectionSparePartsSeeTemp.SHStatus
-                    }}
-                    this.postDataPramas.data[4] = { 'name': 'insertSpotList', 'resultmaps': { 'list': listCreateCollectionSpareParts2 }}
-                    this.postDataPramas.data[4].children = []
-                    this.postDataPramas.data[4].children[0] = { 'name': 'insertpartapply', 'type': 'e', 'parammaps': {
-                      bigId: '@insertBigpartapply.LastInsertId',
-                      pastureId: '@insertSpotList.pastureId',
-                      partId: '@insertSpotList.partId',
-                      partCode: '@insertSpotList.partCode',
-                      partName: '@insertSpotList.partName',
-                      specification: '@insertSpotList.specification',
-                      brandId: '@insertSpotList.brandId',
-                      price: '@insertSpotList.price',
-                      amount: '@insertSpotList.amount',
-                      eqName: this.collectionSparePartsSeeTemp.eqName,
-                      eqCode: this.collectionSparePartsSeeTemp.eqCode,
-                      providerId: '@insertSpotList.providerId',
-                      note: '@insertSpotList.note',
-                      reportery: '@insertSpotList.reportery',
-                      contractId: '@insertSpotList.contractId',
-                      locationId: '@insertSpotList.locationId'
-                    }}
-                  }
-                  ExecDataByConfig(this.postDataPramas).then(response => {
-                    console.log('添加领用保存发送参数', this.postDataPramas)
-                    if (response.msg === 'fail') {
-                      this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-                    } else {
-                      this.dialogFormVisible_CollectionSparePartsSee = false
-                      this.getCollectionSpareParts()
-                      this.getCollectionSpareParts()
-                      this.getCollectionSpareParts2()
-                      this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-                    }
-                  })
-                  return true
-                }
-              } else {
-                this.$message({ type: 'error', message: '请检查领用数量是否未填写', duration: 2000 })
-                return false
-              }
-            }
-          } else {
-            this.$notify({ title: '', type: 'warning', message: '请选择备件', duration: 2000 })
-            return false
-          }
-        }
-      })
-    },
-    form_delete(row) {
-      MessageBox.confirm('确认删除?', {
-        confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
-      }).then(() => {
-        this.requestParam.name = 'deleteMaintain'
-        this.requestParam.parammaps = {}
-        this.requestParam.parammaps.id = row.id
-        PostDataByName(this.requestParam).then((response) => {
-          if (response.msg !== 'fail') {
-            this.get_table_data()
-            this.getPendingList()
-            this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
-          } else {
-            failproccess(response, this.$notify)
-          }
-        })
-      }).catch(() => {
-        this.$message({ type: 'info', message: '已取消删除' })
-      })
-    },
-    handleRejectRepair(row) {
-      console.log('报修驳回')
-      this.rejectRepair.temp = Object.assign({}, row)
-      this.dialogStatus = 'rejectRepair'
-      this.rejectRepair.dialogFormVisible = true
-    },
-    rejectRepairData() {
-      console.log('报修驳回确认')
-      this.isokDisable = true
-      setTimeout(() => {
-        this.isokDisable = false
-      }, 1000)
-      this.$refs['rejectRepair'].validate(valid => {
-        if (valid) {
-          this.requestParam.name = 'updateMaintain'
-          this.requestParam.parammaps = {}
-          this.requestParam.parammaps.shutdownPerson = Cookies.get('employeid')
-          this.requestParam.parammaps.id = this.rejectRepair.temp.id
-          this.requestParam.parammaps.shutdownReason = this.rejectRepair.temp.shutdownReason
-          PostDataByName(this.requestParam).then((response) => {
-            if (response.msg !== 'fail') {
-              this.get_table_data()
-              this.getPendingList()
-              this.rejectRepair.dialogFormVisible = false
-              this.$notify({ title: '成功', message: '驳回成功', type: 'success', duration: 2000 })
-            } else {
-              failproccess(response, this.$notify)
-            }
-          })
-        }
-      })
-    },
-    handleDownload() {
-      this.$alert('设备维修正在导出中,请勿刷新或离开本页面,若导出时间过长,建议缩小导出数据范围重新导出', {})
-      this.isPercentage = true
-      this.percentage = 1
-      var timer = setInterval(() => {
-        this.percentage += 5
-        if (this.percentage > 95) {
-          this.percentage = 99
-          clearInterval(timer)
-        }
-        this.percentage = this.percentage
-      }, 1000)
-      this.downLoadParm = {}
-      this.downLoadParm.name = 'loadRepirsList'
-      this.downLoadParm.offset = 0
-      this.downLoadParm.page = 1
-      this.downLoadParm.returntype = 'Map'
-      if (this.$refs['inputDatetime'] !== undefined && this.$refs['inputDatetime'].value !== null) {
-        this.getdataListParm.parammaps.startTime = this.$refs['inputDatetime'].value[0]
-        this.getdataListParm.parammaps.stopTime = this.$refs['inputDatetime'].value[1]
-      } else {
-        this.getdataListParm.parammaps.startTime = ''
-        this.getdataListParm.parammaps.stopTime = ''
-      }
-      this.downLoadParm.parammaps = this.getdataListParm.parammaps
-      GetAccount(this.downLoadParm).then(response => {
-        if(response.data.list !== null && response.data.list !== ''){
-          for(let i=0;i<response.data.list.length;i++){
-            if(response.data.list[i].orderStatue == 0){
-              this.$set(response.data.list[i],'orderStatue','待接单')
-            }else if(response.data.list[i].orderStatue == 1){
-              this.$set(response.data.list[i],'orderStatue','维修中')
-            }else if(response.data.list[i].orderStatue == 2){
-              this.$set(response.data.list[i],'orderStatue','维修完成')
-            }else if(response.data.list[i].orderStatue == 3){
-              this.$set(response.data.list[i],'orderStatue','已驳回')
-            }
-            if (response.data.list[i].SHStatue == 1) {
-              this.$set(response.data.list[i],'SHStatue','')
-            } else if (response.data.list[i].SHStatue == 2 || response.data.list[i].SHStatue == 3) {
-              this.$set(response.data.list[i],'SHStatue','审核中')
-            } else if (response.data.list[i].SHStatue == 4 || response.data.list[i].SHStatue == 6) {
-              this.$set(response.data.list[i],'SHStatue','未通过')
-            } else if (response.data.list[i].SHStatue == 5) {
-              this.$set(response.data.list[i],'SHStatue','已通过')
-            }
-          }
-        }else{
-          response.data.list = []
-        }
-        this.downLoadList = response.data.list
-        console.log(this.downLoadList)
-        if (response.data.list !== '') {
-          this.percentage = 99
-          setTimeout(() => {
-            this.isPercentage = false
-          }, 2000)
-        }
-        const elecExcelDatas = [
-          {
-            tHeader: ['报修单号', '牧场', '设备内部编号', '设备名称', '规格型号', '部门', '故障情况','报修人','报修时间','维修日期','维修部门','处理状态','领用单状态','旧品录入状态','审核状态','故障部位','故障详情','故障原因','处理方式'],
-            filterVal: ['repairCode', 'pastureName', 'eqCode', 'eqName', 'specification', 'departmentName', 'details','requesterName','requestTime','stopTime','repairDeptName','orderStatue','LYStatue','LRStatue','SHStatue','positionName','appearanceName','failureCause','treatmentMethod'],
-            tableDatas: this.downLoadList,
-            sheetName: '设备维修'
-          }
-        ]
-        json2excel(elecExcelDatas, '设备维修', true, 'xlsx')
-      })
-    },
-  }
-}
-</script>
-<style lang="scss" scoped>
-.successMaintenanceAudit{
-  width: 70px;
-  color: #fff;
-}
-.successRequisition{
-  width: 80px;
-  color: #fff;
-}
-/deep/ .el-badge__content.is-fixed{
-    z-index: 1;
-  }
-</style>
-<style lang="scss">
-.el-step__head.is-success {
-    color: #409EFF;
-    border-color: #409EFF;
-}
-.el-step__title.is-success{
-  color: #409EFF;
-}
-.el-step__head.is-process{
-  color: #409EFF;
-  border-color: #409EFF;
-  .el-step__icon.is-text{
-    background: #409EFF;
-    color: #fff;
-  }
-}
-.step-row{
-  color: #000;
-}
-</style>

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